4
votes
1answer
71 views

Changing side of line numbering in two columns documents part two

I have the same question as this one: tex.stackexchange.com/questions/9510/changing-side-of-line-numbering-in-two-columns-documents/ I'd like to use the listings package in a twocolumn document. An ...
2
votes
2answers
158 views

Put figure and listing side by side [duplicate]

I'm trying to put a listing and figure side by side. I tried to follow the suggestions in this link How to put algorithm and figure(s) side by side? without using caption package but the listing stays ...
4
votes
1answer
270 views

Placing listing and figure side by side in memoir

I am writing a document using the memoir class where I want to place listings (with the listings package) and figures side by side. My first approach was to save the listing in a box and use subbottom ...
1
vote
0answers
121 views

LaTeX places a float in the middle of my script. How do I prevent this? [closed]

I have a multi-page script in my thesis, and I have used the listings package to format the source code. This works really well, however LaTeX wants to put a float in the middle of this code, which ...
3
votes
1answer
2k 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
550 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
256 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
247 views

How to prevent figures from floating 'into' listings [closed]

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 ...
4
votes
2answers
249 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
291 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: ...
8
votes
2answers
397 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
93 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
2k 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
3answers
1k 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 : ...