2
votes
1answer
118 views

Set my lstlisting at the exact place in my code (like “h” for figure)

When using lstlisting, my displayed code is sent back on the top of my page. I would like to have the same kind of option as: \begin{figure}[h] ... \end{figure} ie having displayed my code exactly ...
1
vote
0answers
115 views

How to force LaTeX to place a figure exactly where I want [duplicate]

Possible Duplicate: Force figure placement in text How to influence the position of float environments like figure and table in LaTeX? How can I force LaTeX to insert a figure exactly ...
2
votes
1answer
65 views

Picture breaking listing

When putting long code using lstlisting on a page it breaks, which is fine. When placing a picture in a floating figure environment, it gets between the two parts of the listing, which obviously is ...
2
votes
1answer
69 views

How to prevent figures from floating 'into' listings

I have a problem with floats and listings. Sometimes it happens that a listing is split over two pages and when a figure is near the listing it happens that the listing starts on the first page, on ...
3
votes
2answers
143 views

Sourcecode on the left, Nassi–Shneiderman on the right (float?)

I’d like to place a Nassi-Schneiderman diagram into my LaTeX document but also to have the source code for the shown algorithm beside it. Drawing the diagram worked just fine using the ...
9
votes
1answer
142 views

Label a lstlisting listing in the lower right corner

I want to put a label in the lower right corner of my listings, in this case to indicate the kind of code listed there. I have a bad hack that works somewhat and illustrates what I want: ...
7
votes
2answers
306 views

combining listings and tufte-book, listings caption on tufte's margin

I am not very familiar with all latex details, but I'd like to use the listings package in a tufte-book document. However, the listings package places its captions above or below the listing and I ...
6
votes
1answer
82 views

Can I let a listing move up two lines without introducing a break in a paragraph? [duplicate]

Possible Duplicate: How to prevent lstlisting from splitting code between pages? I have a rather long listing on a page that has 3-4 lines on the following page. Just before the listing is ...
5
votes
2answers
838 views

Multicolumn listing for comparison in LaTeX

I have some C code that I want to insert in a LaTeX document using a listing. I also want to display its translation to assembly code. I don't know how to display those two kind of codes in a ...
3
votes
2answers
781 views

Changing side of line numbering in two columns documents

I'm trying to type some report and I have a small problem with the twocolums document class and the line numbering in listings. The document is on two columns : ...