Tagged Questions
5
votes
1answer
227 views
How to share a counter for a subfloat
I am trying to make a listing float containing 3 subfloats. I have managed to to make the actual float by combining the answers from question1 and question2.
Now I only need to make mylisting use the ...
2
votes
2answers
336 views
LaTeX Source Code Listing Horizontally In Figure With Subfloats
I'm trying to embed a couple of listings
\begin{lstlisting}
>>> from sympy import Integral, latex
>>> from sympy.abc import x
>>> latex(x**2)
x^{2}
\end{lstlisting}
...
3
votes
2answers
1k views
How can I put lstlisting block into subfloat block?
I'm trying to compile my document but it's exploding. I've narrowed it down to this section:
\begin{figure}[h]
\caption{These are my awesome code snippets}
\subfloat[This code runs every cycle.]{
...
3
votes
1answer
608 views
Code listing in subfigure
I am trying to use the subfigure package of LaTeX to display a code listing. Here was my first attempt:
\begin{figure}
\subfigure[Standard approach]{
{\footnotesize
\begin{verbatim}
var caps = new ...
2
votes
1answer
3k views
Size of lstlisting in subfig
For a paper, I have to present two code snippets that do the same thing to compare them.
I started having them in two different figures, but now, I'm trying to have them side by side, and that's ...
4
votes
1answer
2k views
Using listings and subfigure together
I am writing a document in which code listings and diagrams appear side-by-side frequently. I am using the listings package for the code and \includegraphics for the diagrams. I want to put them both ...