I have a Spanish character not working in 'listings' package.  In the code example below, the first occurrence of the word 'ignorará' works. The second generates the error:  ! Package inputenc Error: Unicode char \u8:├\expandafter not set up for use with LaTeX.  I believe it is because I'm in the lstlisting block. How do I fix this?  \documentclass[paper=8in:10in,pagesize=pdftex,                headinclude=on,footinclude=on,12pt]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish,english]{babel} \usepackage{listings}  \lstset{ language=Python }  \lstloadlanguages{ Python }  \begin{document}  y el compilador lo ignorará.  \begin{lstlisting}[language=python] # Esto es un comentario, comienza con el signo # # y el compilador lo ignorará.  print("Esto no es un comentario, el ordenador") print("ejecutará esto y lo imprimirá.") \end{lstlisting}  \end{document}
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}
Show: $\sum_{k=1}^{\infty}\mu(\left\{f\geq k\right\})\leq\int f\, d\mu\leq\sum_{k=0}^{\infty}\mu(\left\{f>k\right\})$ Show that für $f\colon (\Omega,\mathcal{A})\to\mathbb{R}_{\geq 0}$ measurable, it is     $$ \sum_{k=1}^{\infty}\mu(\left\{f\geq k\right\})\leq\int f\, d\mu\leq\sum_{k=0}^{\infty}\mu(\left\{f&gt;k\right\}). $$      I do not know if one needs it here, but we defined the integral of a non-negative measurable function $f\colon (\Omega,\mathcal{A})\to (\overline{\mathbb{R}},\overline{\mathcal{B}})$ by $$ \int_{\Omega}f\, d\mu=\sup\left\{\sum_{k=1}^{n}(\inf\left\{f(x): x\in A_k\right\})\mu(A_k): n\in\mathbb{N}, A_1,\ldots,A_n\in\mathcal{A}\mbox{ disjoint },\Omega=\bigcup_{k=1}^{n}A_k\right\}. $$    My first idea was to use this definition, but I did not come along with it...  Maybe you can help me to show that?  (I think, maybe it has something to do with monotone convergence theorem or majorated convergence?) I understand why the Empire would want to start using more than one genetic template to create clone troopers, but why did it start using non-clone troopers instead of just continuing the cloning program?  It seems that with cloning they were able to use a training program (and genetic manipulation) that gave them completely loyalty (other than when the Kaminoan rebellion, where the Kaminoans had sabotaged the training programs).  Why stop using such troops and start using people that might question orders or aren't as easily controlled as clones were? Let $K/F$ be a finite field extension and suppose that $F$ is infinite. Is it possible to have a nonzero polynomial $p \in K[x_1,...,x_n]$ that vanishes in $F^n$? Let $T$ be a self adjoint operator on a finite dimensional inner product space. And let $4$ and $5$ be the only eigenvalues of $T$. Show $T^2-9T + 20I = 0$ .  proof:Let $T$ be a self adjoint. And let $4 , 5$ be the only eigenvalues of $T$. Then $Tv = 4v, Tv = 5v$ for some $v \neq 0$. Then $Tv = 4v, Tv = 5v$ if and only if $(T-4I)v = 0, (T-5I)v=0$.  Then $ (T-4I) (T-5I)v=0$ implies $(T^2 -5T -4T + 20I^2)v = 0$, implies   $(T^2 -9T + 20I)v = 0$, so we have  $T^2 -9T + 20I = 0  $. Can someone please check this? if it's not correct, could I please have some help on it? Thank you Probability of correctly guessing 12 zodiac signs without replacement I just watched  where someone assigns a zodiac sign to twelve different individuals. There is one of each sign.  My question, Guessing at random, (this was not quite at random), what number of people are you expected to guess correctly? And with what probability are you expected to guess a given number of people correctly?  i.e. What are the odds of getting 1, 2, 3, 4, etc. correct. Suppose I have two tables that don't have many columns (3, for example). How can I position them side by side? If $aRb \land bRc$ never occurs, is a relation considered transitive? What resolution should a large format artwork for print be? How align the qedsymbol after of a big formula in display mode? Bathroom vanity light with no junction box If you activated a free upgrade to Windows 10 or bought and activated   Windows 10 from the Microsoft Store, you have a digital license for   your device. This means you can reinstall the same edition of Windows   10 that your device has a digital license for without entering a   product key. During reinstallation, if you’re asked to enter a product   key, you can skip this step. Windows 10 will automatically activate   online after the installation is complete.   source:   Does MS digital license 'fingerprint' hardware information  during the free upgrade / activation and store it (at Microsoft) , so that the next re-install queries MS for the fingerprint and activates Windows 10?  Thought the disk drive may change, I expect that none of the other fingerprinted hardware will change. Product of two cyclic groups is cyclic iff their orders are co-prime Say you have two groups $G = \langle g \rangle$ with order $n$ and $H = \langle h \rangle$ with order $m$. Then the product $G \times H$ is a cyclic group if and only if $\gcd(n,m)=1$.  I can't seem to figure out how to start proving this. I have tried with some examples, where I pick $(g,h)$ as a candidate generator of $G \times H$. I see that what we want is for the cycles of $g$ and $h$, as we take powers of $(g,h)$, to interleave such that we do not get $(1,1)$ until the $(mn)$-th power. However, I am having a hard time formalizing this and relating it to the greatest common divisor.  Any hints are much appreciated! How to highlight important parts (with a gray background) In the below link        the author highlights anything which is important using a greyish color background. For example, if you see Equation 1.5.3 (which on page 22 of the book) it is highlighted in grey. I would like to know the TeX commands for producing similar output. I'm working on a mac, I use the package TikZ and it works. But I have problems when I want use ellipse or diamond ex :  \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[ellipse] {Ellipse}; \end{tikzpicture} \end{document}   If somebody could help me thank you ! How To Make Clickable Text In Minecraft I am trying to make clickable text in Minecraft in the chat box. It was used in the adventure map, "UP".   The idea is that you are given an option in the text to click, "Yes", or "No". Each word will give an output of a command.  How is this achieved? Is there a way to convert a List(of Object) to a List(of String) in c# or vb.net without iterating through all the items? (Behind the scenes iteration is fine – I just want concise code)  Update: The best way is probably just to do a new select  myList.Select(function(i) i.ToString()).ToList();   or  myList.Select(i =&gt; i.ToString()).ToList(); Maven project with native dependency and copying files Default behavior of "git push" without a branch specified "May" & "Might": What's the right context? I may not be coming in tomorrow...    I might not be coming in tomorrow...       When should I use "may" and "might"? Show that  $$t(n) = 1 + \sum_{ j=0}^{n-1} t(j)$$  is the same as  $$t(n) = 2^n$$  Initial condition $t(0) = 1$