Search found 13 matches
- Wed Nov 06, 2013 1:14 pm
- Forum: Text Formatting
- Topic: non-math use of $ in lstlisting
- Replies: 5
- Views: 7331
Re: non-math use of $ in lstlisting
Ok, that apparently works. I checked the package that I use for the 4 listings I have so far, which is listings, not lstlistings. I checked http://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings which basically does the same as I do. And I can't find the lstlistings package. So can you tell me ...
- Tue Nov 05, 2013 8:34 pm
- Forum: Text Formatting
- Topic: non-math use of $ in lstlisting
- Replies: 5
- Views: 7331
Re: non-math use of $ in lstlisting
These are the last 3 lines of the listing, so in here is only 1 ${}. The complete listing has 4.
\begin{lstlisting}
<child link="hand_cam_\${whichside}"/>
<origin xyz="0.18 0.0 0.038" rpy="0.0 0.0 0.0"/>
</joint>
\end{lstlisting}
Due to the \$, the error is given at \end{listing}. With only ...
\begin{lstlisting}
<child link="hand_cam_\${whichside}"/>
<origin xyz="0.18 0.0 0.038" rpy="0.0 0.0 0.0"/>
</joint>
\end{lstlisting}
Due to the \$, the error is given at \end{listing}. With only ...
- Mon Nov 04, 2013 9:59 pm
- Forum: Text Formatting
- Topic: non-math use of $ in lstlisting
- Replies: 5
- Views: 7331
non-math use of $ in lstlisting
Hi,
I want to use ${} in an lstlisting with xml-like code, but compiling gives "! Missing $ inserted." How I can I solve this ? I tried \${}, which clears the error on that place, but gives the error at \end{lstlisting}.
Thanks
I want to use ${} in an lstlisting with xml-like code, but compiling gives "! Missing $ inserted." How I can I solve this ? I tried \${}, which clears the error on that place, but gives the error at \end{lstlisting}.
Thanks
- Mon Jul 30, 2012 6:02 am
- Forum: General
- Topic: listings | Displayed Code not wrapped to next Page
- Replies: 3
- Views: 3426
listings | Displayed Code not wrapped to next Page
\usepackage[framed]{mcode}
\begin{document}
\begin{figure}[!ht]
\begin{lstlisting}
<long text>
\end{lstlisting}
\caption{main.cpp}
\label{main}
\end{figure}
All code is placed between the lstlisting. In 1 occasion it exceeds the page, but instead of continuing on the next, it just drops off the ...
\begin{document}
\begin{figure}[!ht]
\begin{lstlisting}
<long text>
\end{lstlisting}
\caption{main.cpp}
\label{main}
\end{figure}
All code is placed between the lstlisting. In 1 occasion it exceeds the page, but instead of continuing on the next, it just drops off the ...
- Sun Jul 29, 2012 1:45 pm
- Forum: General
- Topic: listings | Displayed Code not wrapped to next Page
- Replies: 3
- Views: 3426
listings | Displayed Code not wrapped to next Page
Hi,
I'm including C++ code using the listings package and one file is longer than one page. Usually no problem, except that here the last part of the code is not shown on the next page. It just disappears at the end of the page. How can I solve this? Thank you.
I'm including C++ code using the listings package and one file is longer than one page. Usually no problem, except that here the last part of the code is not shown on the next page. It just disappears at the end of the page. How can I solve this? Thank you.
- Fri Jun 29, 2012 6:24 am
- Forum: Graphics, Figures & Tables
- Topic: Two Figures with Captions at same Height
- Replies: 3
- Views: 10492
Two Figures with Captions at same Height
Had to remove the
\rule
commands, but it works. Thank you.- Thu Jun 28, 2012 10:00 pm
- Forum: Graphics, Figures & Tables
- Topic: Two Figures with Captions at same Height
- Replies: 3
- Views: 10492
Two Figures with Captions at same Height
Hi,
I want to show two figures next to each other and each with its own caption and label. However, as soon as I place the caption, the second figure automatically moves to the position below. I use the code below without the captions to show both figures next to each other. Can this be done? Thank ...
I want to show two figures next to each other and each with its own caption and label. However, as soon as I place the caption, the second figure automatically moves to the position below. I use the code below without the captions to show both figures next to each other. Can this be done? Thank ...
- Wed Jan 04, 2012 3:48 pm
- Forum: General
- Topic: Get Preface and Summary into ToC
- Replies: 2
- Views: 2237
Re: Get Preface and Summary into ToC
Thank you. That works.
- Tue Jan 03, 2012 1:12 pm
- Forum: General
- Topic: Get Preface and Summary into ToC
- Replies: 2
- Views: 2237
Get Preface and Summary into ToC
Hi,
I'm writing a report with automated generation of ToC, but the preface and summary are not in the ToC Preface and summary are both started using \section*{}, the other sections using \section{}. What could be going wrong?
Thank you.
I'm writing a report with automated generation of ToC, but the preface and summary are not in the ToC Preface and summary are both started using \section*{}, the other sections using \section{}. What could be going wrong?
Thank you.
- Wed Mar 16, 2011 9:22 pm
- Forum: Math & Science
- Topic: character under word
- Replies: 4
- Views: 3589
Re: character under word
Thank you very much.