I have the piece of code:  \begin{lstlisting} &lt;?xml version="1.0"?&gt; &lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"                  xmlns:ex="http://www.example.org/" &gt;   &lt;rdf:Description rdf:about="http://www.example.org/Heitor_Villa-Lobos"&gt;       &lt;ex:origem rdf:resource="http://www.example.org/Rio_de_Janeiro"/&gt;    &lt;/rdf:Description&gt; &lt;/rdf:RDF&gt; \end{lstlisting}   and I want to show it in the footnote. I've tried to use   \footnote{ \begin{lstlisting} &lt;?xml version="1.0"?&gt; &lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"                  xmlns:ex="http://www.example.org/" &gt;   &lt;rdf:Description rdf:about="http://www.example.org/Heitor_Villa-Lobos"&gt;       &lt;ex:origem rdf:resource="http://www.example.org/Rio_de_Janeiro"/&gt;    &lt;/rdf:Description&gt; &lt;/rdf:RDF&gt; \end{lstlisting}   }  I've added an extra bracket "{}" to protect the content, but it doesn't work, too. When I run this I get the following error: "Argument of \lst@next has an extra }. }".  Does anyone could help me?  TIA
This code won't compile:  \documentclass{article} \usepackage{listings} \lstset{     language=C,     basicstyle=\small }  \begin{document} lorem ipsum\footnote{% \begin{lstlisting} // some C code or whatever... printf("Blah blah\n"); \end{lstlisting}} \end{document}   It says Illegal parameter number in definition of \lst@insertargs. I know listings is really picky about where it goes, but there must be a way to cram a listing into a footnote, right?  (This is a MWE and my tex files are a bit more complex; my actual error is Paragraph ended before \lst@next was complete. but they are hopefully related; I couldn't get this error with the MWE.)
This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  How do I unit test code that includes a SOAP or REST-based callout, or indirectly calls code that makes a callout? I'm getting an error saying that callouts are not supported. Can I change my Ubuntu Desktop into a different flavour (like Kubuntu)? Can I convert Ubuntu into another form of Ubuntu like Kubuntu or Ubuntu Studio and the system recognize itself as the new form?  UPDATE: After getting an answer and talking with people, I managed to gain a lot of information on this topic. I then wrote an article about converting between Ubuntu systems - Is it okay to record audio for a lecture? Sometimes the Professor will say things quickly, or say things before I can write them down. It would be of great benefit if I could record audio for the course, but I am not sure the legal guidelines around doing so. Arc length parameterization lying on a sphere I've been studying about the command line and learned that | (pipeline) is meant to redirect the output from a command to the input of another one. So why does the command ls | file doesn't work?  file input is one of more filenames, like file filename1 filename2  ls output is a list of directories and files on a folder, so I thought ls | file was supposed to show the file type of every file on a folder.  When I use it however, the output is:      Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]         [-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...     file -C [-m magicfiles]     file [--help]   As there was some error with the usage of the file command Continuous function on closed unit ball Take a continuous mapping $f: \bar{B^{n}} \rightarrow \bar{B^{n}}$, where $\bar{B^{n}}$ is a closed unit ball in $\mathbb{R}^{n}$. Assume that $f(x) \neq x$ for every $x \in \bar{B^{n}}$. Define another function $r$ by following the directed line segment from $f(x)$ through $x$ to its intersection with $\partial B^{n}$, and let the intersection point be $r(x)$. Is it immediately evident that $r$ is a continuous function? Is so how does it follow? Thanks. How many square meters "twenty feet square" is? One would assume it to be about 2 square meters, but this is obviously not the case. In fact, I'm reading Illium by Dan Simmons. A quote follows:     Much like the room they had faxed into, this space was windowless and about twenty feet square. But unlike the other room, this one was warm, lighted, and free of snow or ice. And unlike the other room, this one was almost filled with an oval metal machine about fifteen feet long.   By this description, "twenty feet square" seems to mean 20x20 feet aka 400 square feet or 40 square meters. Given that Dan Simmons is a renowned American writer, it's not likely that he just can't speak English correctly. So, who's right and who's wrong here? Often I need two (or more) map frames in map layout to present different data next to each other. It is easy to make multiple map frames in QGIS Print Composer. BUT...  It is in the nature of my work that very often I need to update some map frames because data I am presenting in map changed or I need to add/remove layer, change scale, projection etc.  So if I create one map frame, lock it (Lock layers for map item), create second map frame with different layers, scale,projection etc. and than realize I need to change something in first frame, I can't find a simple way to do it...  To simply do that in Mapinfo, there are more Map Windows, in ArcGIS there are multiple Data Frames. What is in QGIS to achieve that? For example:  javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. How to access the grub boot menu in order to generate bootchart? I am running Ubuntu Gnome 15.04, and I want to generate a bootchart to help me diagnose some system problems. However in  it says:    So how do I access the grub boot menu in order to append this text? And just to be clear, how should the line look once I have appended the necessary text? Also, is grub already installed for I don't appear to have either or these packages: grub or grub2?    OS Information:  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:    15.04 Codename:   vivid Sweave.sty causing error in verbatim environment? A woman's butt was allegedly touched by a man several times during a commute on the MRT.   How to use butt, bottom, buttock and ass? I am confusing with these words. In Windows, you can run android application using BlueStack.   I was wondering, is there any way these apps can be run on Ubuntu 12.04? How do I connect a PS3 Controller with Xperia P? I am trying to find and replace the * (star, or shift+8) character in a bunch of formulas in Excel 2007.  * of course matches the ENTIRE contents of the cell, which is not what I want.  How do I disable this behavior? How can't install a 338KB app when I have 474MB free? I have a Motorola phone, with 8GB of internal memory.  To my surprise, in a few days, I had 474MB of free space, but couldn't install a 338KB app!! So, clearly the limit of ~25MB referred to in some comments ( and ) are not always the case. A user just told me the following:     Actually it's "25MB or 10% of the storage", whichever is hit first. So   with e.g. 10 GB internal storage, it would hit you as soon as you drop   below 1 GB free. Crazy, but that's what it is.   Actually, that's not correct, because I didn't have to free up 1GB of internal memory. But anyway, half a gigabyte is enough to run a full operational system. I've seen similar complaints of hundreds of MB not enough to install apps ~ 1MB or similar small operations ( and ).  What's wrong here? Erf as term for plot of land in a town or city. Is this word only used in southern Africa? How do I reverse a list using recursion in Python? Defaults to true.  If set to true replaces all instances of known swear words with replacements (comical or * based). If false renders the content as originally presented.  Benefits:    Reduces moderation requirements necessary to ensure that people behind corporate firewalls are not blocked by an errent swear word.   Stops idiots like me complaining about it. Is the collection of all functions between two sets a set?