4
votes
2answers
109 views

Showing two listings in a table side-by-side [duplicate]

I wonder is there any possibility to show two different listings in one table side by side? Here is my code that only show one listening but how can I embed it in a table and another one? EDIT: Even ...
2
votes
1answer
78 views

display both an image and a code, side-by-side

I'd like to display both an image and a code using pdflatex, side-by-side to illustrate a concept. The code uses listing package. How could I do that ?
3
votes
1answer
89 views

Lstlisting in twocolumn document

I have a problem when using lstlisting in twocolumn document. At my university I have to make reports in twocolumn documents. My teacher send me pre done .tex file with this code in it: ...
4
votes
1answer
67 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 ...
4
votes
1answer
163 views

Two columns for grammar environment

My grammar is long and thin. I'd like to space it out horizontally, as two columns. \newenvironment{BNF} {\captionsetup{type=lstlisting}} {} \begin{BNF} \caption{My Grammar} ...
8
votes
2answers
315 views

Using listings package for documenting LISP code in two column mode

Using listings package, I am trying to write some LISP code. The issue is that LISP uses a lot of '-' in function name, and it makes the line width too large to break the boundary in two column mode. ...
2
votes
2answers
296 views

Make several pages of source code into 1 column within a twocolumn book format

I have a \documentclass[11pt, 12pt, oneside, twocolumn, fleqn, leqno]{book} which was given to us by our professor. My problem is, he want us to put the LaTex Code inside the pdf document that will ...
3
votes
3answers
974 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 : ...
5
votes
2answers
2k views

Listing over two columns - how to page break?

I have a two column article: \documentclass[a4paper, twocolumn]{article} Inside this is a bigger lstlisting which has a float=* to merge the two columns. However this listing needs a page break. ...
11
votes
1answer
2k views

Double-column listing package

Not too well up on LaTeX, but I want to use the listings package for listings spanning a two-column format. Unfortunately, asterisks cannot save me (like for figures/tables); this doesn't work: ...