I want to show some nicely formatted source code, e.g.:  er ist ein bisschen ein ötto geworden   My document:  \documentclass[a4paper,10pt,ngerman]{scrartcl} \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[a4paper,margin=2.5cm]{geometry} \usepackage{listings}  \begin{document} Ünnormal diggi hä \lstinputlisting[language = python]{testinclude.txt} \end{document}   The text outside the listing works, but the txt file produces the error Package utf8x Error: Character182appearedalone.  How do I show code that contains special characters?  Like  suggested, I tried escaping the ö or setting a literate to \''o, but both times I only got this in utf8 and utf8x:
I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words...  \documentclass[12pt,a4paper]{scrbook} \KOMAoptions{twoside=false,open=any,chapterprefix=on,parskip=full,fontsize=14pt}  \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listingsutf8}  \usepackage{inconsolata} \lstset{     language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão     basicstyle=\ttfamily\small,     numberstyle=\footnotesize,     numbers=left,     backgroundcolor=\color{gray!10},     frame=single,     tabsize=2,     rulecolor=\color{black!30},     title=\lstname,     escapeinside={\%*}{*)},     breaklines=true,     breakatwhitespace=true,     framextopmargin=2pt,     framexbottommargin=2pt,     extendedchars=false,     inputencoding=utf8 }  \begin{document} \begin{lstlisting} &lt;?php  echo 'Olá mundo!'; print 'Olá mundo!'; \end{lstlisting}  \end{document} \end{lstlisting}
How much of an $n$-dimensional manifold can we embed into $\mathbb{R}^n$? I observed some naive examples. Spheres, for example, when we cut out one point, can be embedded into $\mathbb{R}^n$. And if we cut out a measure zero set of a projective space, it can be embedded into the Euclidean space of the same dimension. So I wonder if all manifolds can be embedded into a same dimensional Euclidean space when we cut out a measure zero set? Can anyone prove it or disprove it by giving me some counterexamples? What is the most accurate way to retrieve a user's correct IP address in PHP? Cannot turn Bluetooth off Let's have breakfast    Let's have a good breakfast      I've learned that indefinite articles aren't used before uncountable nouns, so why is a used before the adjective "good" here?    Is there an exception to the rules or is it wrong? How many switches can be stacked/interconnected? I would like to know how many switch can be stacked with fiber channel to get a best transfer rate between computers.  I have 200 computers connected to 12 3Com switches. All switches have two fiber ports.  Is the best way to have fiber backbone switch and connect fiber channel from every switch to the backbone? Or connect switch 1 to switch 2 to switch 3 to ... switch 12 to switch 1 again?  Thanks! Linux equivalent to PowerShell's "one-to-many" remoting I read a story--the first part of one, at any rate--years ago, and haven't tracked it down since. It started with a man been sent to a planet under attack to pose as a monk--he arrived in the middle of an assault, but still had to do penance for being late. So he wore a hair shirt, that created an agonising reaction. He was captured by the attackers (who took him for the man he was posing as), who then stood off the planet in their starships and watched as a 'hell burner' weapon tumbled out of deep space and torched the planet. The attackers then explained that they weren't responsible for the hell burner, but every time they arrived at a planet, a hell burner turned up afterwards, at shorter and shorter intervals.  As the story developed, there was some kind of time travelling dimension, and a character turned out to have his organs reversed. I may have got some details wrong, but this was the shape of it.  Anyone know this story, and the author? I recently upgraded to Windows 8 from Win 7 64 bit and have started to encounter a strange issue. When I have any program running which plays sound, such as a game or spotify, after a random interval (usually around 5-10 minutes) the program sound will set itself really low.    If I Alt-Tab to the desktop and check the Mixer I can see that the Application volume has automatically set itself really low - the other volume levels (i.e. the Device speakers) stay the same.  I'm able to just set the application volume back to a reasonable level and it stays that way for another 5 - 10 minutes then goes quiet again.  My sound is Realtek High Definition Audio and my machine is an Acer Aspire 5738G if that helps in any way.  Any help much appreciated! Exclude a view from master layout? I need to update a vector layer's data when the visibility is turned back on.  My update does not occur when the visibility is off.  To what signal do I need to connect to catch the visibility change? Extra slash added to the chat room URLs in the side bar There is a extra slash added to the chat room URLs in the side bar. This is not causing any redirection issue or 404 not found error. Just observed it and want to notify to the development team about this. Seems it is not a bug, but that can . Currently the following URLs are binded against the chat rooms in the side bar.  Tavern on the Meta https://chat.meta.stackexchange.com//rooms/89  The Fire Department https://chat.meta.stackexchange.com//rooms/1181   GIF for the reference: How did they dispose old Joe's wife's body in the movie Looper (2012)? The reason given in the movie Looper for sending targets to the past is that it is difficult to dispose bodies.  From ,     Thirty years into the future in 2074, time travel is invented, but is   immediately outlawed. However, because by that point tracking   technology has rendered it nearly impossible to dispose of bodies   secretly, crime bosses turn to time travel to send their targets to   the past to be killed using "loopers": hired guns paid in silver to   kill whoever is sent to them.   When trying to capture old Joe, they kill his wife. So how did they dispose the body of his wife? Or is it difficult to dispose bodies only in US and not in China? And they came for old Joe only because the Rainmaker wanted to close the loops?  Could someone explain? What am I missing? How do I convert an argument list to a sequence of arguments? After reinstalling TeXLive distribution (install-tl-20160318, Ubuntu 14.04), a issue occurs with the updated version of the titlesec package: the section numbering is lost.  What could it be missing? Is there a modification I have not seen?  Below is a MWE comparison of the two versions. The prevtitlesec package is a reinstall of the previous version (2011/12/15).  \documentclass{book} \usepackage[margin=2cm,a4paper]{geometry} %\usepackage{prevtitlesec}% 2011/12/15 version \usepackage{titlesec}% 2016/03/15 version \usepackage{lipsum}  \begin{document}  \chapter{Title of the first chapter} \lipsum[1] \section{A test section} \lipsum[4] \subsection{A test subsection} \lipsum[4] \subsection{A test subsection} \lipsum[4]  \end{document}   titlesec package 2011/12/15:    titlesec package 2016/03/15: Newline in a WPF-label? How can I add a newline in the text of a label in WPF such as the following?  &lt;Label&gt;Lorem    ipsum&lt;/Label&gt; Today 4/30/20 my seemingly worthless USO call option increased in value.   Specifically: USO1 $2.5 Call 5/8  On 4/29 it was valued at $.04 and stayed there.   4/30 I checked after hours and now it’s up to $.08? Which was wasn’t even the highest it went to today.  So who is buying this contract?  Who is allowed to buy this contract? Bc I’m only able to sell and from what I understood, nobody is able to buy it.   I have screenshots and will post if requested. Thank you Do not enumerate a section, but add it into table of contents How do I rid of number of a section in the way that it still would be in the table of contents.  If I use   ... \section{SN1} ...   then I see this section name in table of contents as   1 SN1  2 SN2  3 SN3  ...   If I use   \section*{SN}   I don't see it in the content:   1 SN2  2 SN3   How to get in content just   SN1  1 SN2  2 SN3   ? How do I get and modify the source code of packages installed through apt-get? ls -la symbolics... what does that last symbol mean? Post apocalyptic journey in search of knowledge from fallen society (ours) I'm racking my memory for a post-apocalyptic novel that I borrowed from a library maybe 15 years ago, but I'm sure it was published a few years before that though (maybe early 90s?).  I remember a party of people travelling across the flooded USA after some kind of apocalypse (climate change/flooding?). Towards the end of the book the group makes their way to New York(?) and finds a partially flooded library, discovering a set of books that gives hope for the return/rebuilding of society.