I am including some MATLAB code into my main document, using the listings package, which contains a unicode theta (θ). How can I render an actual unicode theta instead of using \theta. Here is a MWE:  \documentclass{article} \usepackage{listings} \  \begin{document}  \begin{lstlisting} θ \end{lstlisting}  \end{document}   This returns the error "Package inputenc Error: Invalid UTF-8 byte sequence."
I need to include code in the appendix of my thesis. The code contains comments and the compilation instantly breaks returning:  Unicode char �\lst@FillFixed@ (U+5A8) (inputenc)                not set up for use with LaTeX. l.160       if (lastArg &lt; 0, lastArg = 360°                                               + lastArg);   This is only one of many characters which produce problems. I cannot change my entire code just because this won't compile. Is there any way to include code with arbitrary unicode characters? Thank you.   Edit: complete sample code, as requested.  \RequirePackage[l2tabu,orthodox]{nag}   \documentclass[headsepline,footsepline,footinclude=false,oneside,fontsize=11pt,paper=a4,listof=totoc,bibliography=totoc]{scrbook} % one-sided   \usepackage[toc,page]{appendix} \usepackage{listings} \usepackage[utf8]{inputenc}  \lstset{     inputencoding=utf8,   extendedchars=true,   basicstyle=\footnotesize\ttfamily,   showstringspaces=false,   showspaces=false,   numbers=left,   numberstyle=\footnotesize,   numbersep=9pt,   tabsize=2,   breaklines=true,   showtabs=false,   captionpos=b,     literate={ö}{{\"o}}1 {ä}{{\"a}}1 {ü}{{\"u}}1  }  \begin{document}  \begin{appendices} \lstinputlisting{code/power_series.html} \end{appendices}  \end{document}   Relevant content of power_series.html:  if (lastArg &lt; 0, lastArg = 360° + lastArg);   There really is not much to say about this problem. I only want to be able to use all unicode characters inside a listing. Thank you.
Show that $$\sum_{k=0}^n(-1)^k\binom nk=0$$ So for odd $n$ we have an even number of terms. So $\binom nk=\binom n{n-k}$ which have opposite signs. Thus the sum is 0.  For even $n$ we have that $$\sum_{k=0}^n(-1)^k\binom nk= \binom n0+\sum_{k=1}^{n-1}(-1)^k\binom nk+\binom nn$$ Now $$\sum_{k=1}^{n-1}(-1)^k\binom nk= \sum_{k=1}^{n-1}(-1)^k\left[\binom{n-1}k+\binom{n-1}{k-1}\right]$$ What would that sum be in the square brackets? I've read before that, by the Principle of Explosion, if a theory is inconsistent, then absolutely any statement can be proven within it.  Obviously, there are statements which are independent of ZFC (Continuum Hypothesis, etc). It seems to me that this proves that ZFC is incomplete. Why does it not then follow that ZFC is consistent? It seems to me that we could say "Assume ZFC is inconsistent. Then the the Continuum Hypothesis is provable in ZFC. But the Continuum Hypothesis is neither provable nor disprovable in ZFC. Therefore ZFC is consistent."  What am I missing here? Why doesn't the Moon fall onto the Earth? Why doesn't the Moon fall onto the Earth? For that matter, why doesn't anything rotating a larger body ever fall onto the larger body? Is smell a bad way of determining whether meat is still good? I have always relied on my sense of smell to determine whether meat (most often chicken) is bad and I thought it was reliable. However, I have just heard that [1] smell is not always reliable, since some of the toxins produced by bacteria won't cause any smell whatsoever and you won't be able to notice that the meat is off until after you've eaten it.   Is this true? If yes, is this true for all meat or only for some? Is there a more reliable way of determining whether meat is still good.  [1] "Heard that" isn't very reliable; so that's why I'm asking the question here. :) I want to get that fancy LaTeX symbol to put in one of my documents but I cannot find it anywhere.  All searching for things like latex symbol have not resulted in the symbol but other symbols. Common binaries with support for command execution, like `awk` and `vim`, not respecting setuid bit? When editing a profile’s “About me” section, or a tag wiki, and hitting CtrlG, or clicking the “Image” button from the formatting bar to insert an image, the Imgur upload modal dialog will appear. The same modal will also appear when uploading a profile picture. This is different from questions and answers where an uploader overlay bar (technically referred to as inline-dialog) appears. This modal dialog has an × button for closing, but it does nothing when clicked. I also can’t try tabbing to it and hit Enter, because it’s a regular &lt;div&gt; with no tabindex attribute, so it’s not tabbable and not an interactive element. (After manually inserting a tabindex and pressing Enter, it also did nothing, of course.)  There are no errors produced in the console of any browser. It doesn’t even seem to have any event listener bound to it. Pressing the Esc key or clicking outside of the modal dialog will dismiss the dialog, but the × button is currently useless. An obvious possible  would be to unify all Imgur upload dialogs to the way they appear on questions and answers, as an inline-dialog. But for the profile picture uploader, this dialog doesn’t have an obvious alternative, so in this instance, it’s necessary to redesign the close button so that it acts as a normal button (interactive element, tabbable) and closes the modal popup.  Related   and  — showing this modal in action; closing it used to work.  — for an older dialog design. I'm working in Lee's book on topological manifolds and have gotten stumped on the first question in chapter 5, the chapter on cell complexes.  The problem is:   Let $D$ and $D'$ be two closed cells not necessarily of the same dimension.     Show that any continuous map $f:\partial D \to \partial D'$ can be extended to a continuous map $F:D \to D'$ such that $F(Int \; D) \subseteq Int \; D'$. Given points $p \in Int \; D$ and $p' \in Int \; D'$, show that $F$ can be chosen so $F(p) = p'$. Show that if $f$ is a homeomorphism then $F$ can be chosen to be a homeomorphism.   I proved the first part roughly as follows: First suppose $D$ and $D'$ are convex and each contain $0$ in their interior (in their respective ambient spaces).  Then every element other than $0$ in $D$ can be expressed uniquely in the form $\lambda q$ where $q \in \partial D$ and $\lambda\in (0,1]$ (an equivalence relation on the chords connecting $0$ to boundary points partitions $D- \{0\}$).  I then define the map $F(\lambda q) = \lambda f(q)$ which is continuous since if $\lambda_n q_n \to \lambda q$ in $D$ then $F(\lambda_n q_n) \to F(\lambda q)$.  Lastly $\lambda q \in Int \; D$ implies $\lambda &lt;1$ and so $\lambda f(q)$ is an interior point of $D'$ since $f(q)$ is a boundary point and $D'$ is convex.    Now if we suppose $D$ and $D'$ are arbitrary closed cells there are homeomorphisms $g_1: \overline{\mathbb{B}^n} \to D$ and $g_2: \overline{\mathbb{B}^m} \to D'$ (where possibly $m=n$) then we have that $g_2^{-1}\circ f \circ g_1$ is a continuous map between the boundaries of two closed balls and so by the first part can be extended to a continuous map $F:\overline{\mathbb{B}^n} \to \overline{\mathbb{B}^m}$.  The mapping $g_2 \circ F \circ g_1^{-1}$ is a continuous map that satisfies the desired claim.    My issue is that parts 2 and 3 don't seem (to me at least) to follow that easily from the proof I constructed.  Maybe my proof is wrong and I'm not seeing it, but more likely I think that I'm missing the spirit in which Lee is intending for us to approach this problem. CSS Selector that applies to elements with two classes Non-normality in residuals Prove or disprove: If H is a normal subgroup of G such that H and G/H are abelian, then G is abelian. it seems like it... should be? In that I can't think of any counterexamples off the top of my head. I was looking up these  and saw the quaternion group, but the subgroups of the quaternion group aren't abelian... I want to create a DEB file manually. I would like to just provide a folder which contains data to install, and a script to be executed after installation.  Is this possible? Sieve of eratosthenes infinite primes I don't understand why the sieve of eratosthenes doesn't prove an infinite number of primes.  For example the number 2 eliminates 1/2 of an infinite number of numbers.  The next prime, 3, eliminates 1/3 of the remainder, not 1/3 of all the numbers and so on.  5 would eliminate 1/5 of the remaining numbers. Why doesn't that prove an infinite number of primes? Thanks My LAN server won't let my cousin join me or me join my cousin. It won't show up on the multiplayer screen - it keeps saying "scanning for LAN servers" but it never finds it. I am at his house and we use different computers but it won't connect. How can I fix this? Where did object dimensions go in 2.8? Anyone seen this panel? Essential for precise modeling. What are Identity Columns? I was reviewing the  for PostgreSQL and I saw that Pg is likely going to get "identity columns" sometime soon.  I found some mention in  but nothing much  is_identity         yes_or_no         Applies to a feature not available in PostgreSQL identity_generation character_data    Applies to a feature not available in PostgreSQL identity_start      character_data    Applies to a feature not available in PostgreSQL identity_increment  character_data    Applies to a feature not available in PostgreSQL identity_maximum    character_data    Applies to a feature not available in PostgreSQL identity_minimum    character_data    Applies to a feature not available in PostgreSQL identity_cycle      yes_or_no         Applies to a feature not available in PostgreSQL    doesn't say much either     An identity column differs from a primary key in that its values are managed by the server and usually cannot be modified. In many cases an identity column is used as a primary key; however, this is not always the case.   But, I don't see anything else on them. How do identity columns work? Do they provide any new functionality or is this just a standard method to create sequences? Any breakdown of the new feature and how it works? Disk brakes severely reduced in power after replacing bearings Usually I don't mind about LaTeX's compilation speed, because a paper of less than 20 pages is compiled rather fast.  However, I am working on a large document - A report with more than 80 pages.  Compilation times are starting to slow me down.  I saw the couple of answers here on this topic, but most of my graphics are external and I don't use Tikz.  As a matter of fact, I'm not sure what's slowing the compilation down, other than the amount of text and required layout.   What's your best speeding-tex-up trick, other than externalizing graphics and pre-compiling the preamble? How can I know what's slowing TeX down? How to change the language for the front-end only? How can I send an email using a template? I have created a email template in ExactTarget API and I want to use it executing XML from SoapUI.  Is there any tutorial or examples of how can this be done?  I'm new at this and I'm not sure how ExactTarget really works.