listings Questions

25

Solved

Trying to include a source-file into my latex document using the listings package, i got problems with german umlauts inside of the comments in the code. Using \lstset{ extendedchars=\true, inpute...
Passacaglia asked 12/7, 2009 at 15:41

5

Solved

Is there a command in PostgreSQL to select active connections to a given database? psql states that I can't drop one of my databases because there are active connections to it, so I would like to ...
Angloirish asked 12/12, 2014 at 2:20

4

Solved

I tried to change the "List of Listings" text with the command \renewcommand*{\lstlistlistingname}{List of XYZ} before my \begin{document}. What's wrong with this? By the way \renewcommand*{\l...
Graphophone asked 25/4, 2010 at 20:47

5

Solved

I have a bunch of code in a lstlisting environment. How can I highlight (color background) just a particular chunk of code within the environment?
Kincardine asked 20/8, 2009 at 6:32

1

Solved

I'm trying to split my listing into several pages, but unfortunately, it doesn't work. I have read it should work automatically if you set breaklines=true. I can't. Is there another option without...
Gendarmerie asked 28/9, 2018 at 7:58

1

Solved

My question is inspired from this one. However, the difference is that my output is PDF. I have a C++ code saved in an external file. I want to print it into a r markdown PDF with syntax highlight...
Effloresce asked 12/5, 2020 at 19:30

4

Solved

I created my first repository with GitHub but when I try to google it, its not listing RoboSpice-Extn-Retrofit-Tutorial EDIT I don't know how long it will take. On the other hand anyone ca...
Sawn asked 5/10, 2014 at 4:48

1

Solved

I would like to incorporate listings of code drawn from external files in an Rmarkdown file. I would like it pretty (syntax highlighting, auto-indentation, etc.). The code is not R code (otherwis...
Jokester asked 30/9, 2015 at 3:22

1

Solved

I am using minted along with listings LaTeX packages to style code snippets in my paper. I am trying to change the numbering system of the code snippets to be section.numberinsection. So the two c...
Abessive asked 6/6, 2014 at 16:14

1

Solved

I wish to insert a R code chunk in a LaTeX document. The default settings for the listings package also changes the font, but not the colour, which I need. Although I understand that I can set the...
Motorman asked 28/1, 2014 at 9:52

3

This is driving me crazy. I want to center a lstlisting in LaTeX. After 3 hours attempting here's some code: \lstset{ % caption=Descriptive Caption Text, label=lst:descr_capti_text, basicstyl...
Ecstatic asked 24/6, 2010 at 0:5

2

When using: \begin{listing} ... \caption{foo} \end{listing} The caption will say: Listing x: foo. How can I replace the word Listing with something else?
Napier asked 29/5, 2012 at 11:33

3

I have an Amazon S3 account where I would like to store several directories of files. I would like a visitor to this site to be able to see and download the files and folders I have placed there. T...
Stabilize asked 5/5, 2011 at 12:17

1

Solved

I wrote a NASM program and created a listing file from it using nasm -f elf -l rs.lst rs.asm. The program, which works perfectly, takes in a key input value, and outputs whether the value is a cont...
Pygmy asked 22/4, 2013 at 19:12

0

Hello guys I have tried to make a list like that. But nothing find. The items shown in list moves up and down. Main question is how to set items like a circle. This is possible in iphone, but...
Antemortem asked 23/10, 2012 at 6:15

3

Solved

How do I get a a complete list of all the urls that my rails application could generate? I don't want the routes that I get get form rake routes, instead I want to get the actul URLs corrospondin...
Nordic asked 17/9, 2008 at 15:12

3

Solved

How can I set certain parts of an lstlisting in boldface? \begin{lstlisting}[escapechar=@] fun(foo, bar, @\textbf{baz}@ ); \end{lstlisting} This compiles, but baz isn't set in boldface :( What a...
Attic asked 24/4, 2010 at 10:17

4

Solved

Does anybody know a provider offering TV listings (through API or download) for all channel and cable providers? Or is there any independent company collecting/providing such data? An API/RE...
Endothelioma asked 7/10, 2010 at 22:21

2

Solved

I am wondering how one is supposed to format Objective C code using the listings package of LaTeX? I know that the language supports C (Objective) , so how do i set this in the \lstset language opt...
Blouin asked 9/4, 2010 at 13:11

1

Solved

Writing some docs with code snippets which I want to be copyable to run as written. These snippets may include lines with preceding spaces. The listings package formats the text fine, but the space...
Pounds asked 20/8, 2010 at 1:27

1

I'm trying to create a verbatim environment with a colored background and which can span across pages (so using a colorbox is not an option). It seemed that the listings package was a good wa...
Anglesite asked 30/7, 2010 at 17:54

2

Solved

Listing style is normally used for source code listing, but to me the default font used is not so pretty for source code listing. Attached is a comparison between listing and verbatim. http://img2...
Osmo asked 18/7, 2010 at 5:0

1

Solved

I've been looking at Philip Bunge's post on how to create a "Tango" style with LaTeX listings, and trying to adapt this to make the default text style white and the background black (this is for sl...
Bothwell asked 28/6, 2010 at 13:57

1

Solved

I've got a list of listings at the end of my document following my list of tables and my list of figures. The thing that is really annoying me is that they look the same except the list of listings...
Oversize asked 12/6, 2010 at 16:9

1

Solved

I have a question about the listings package. Do you know how to change it to get a title like this "Algorithm ## Title" rather than the casual "Listing ## Title" in the title line?
Bilge asked 11/5, 2010 at 21:53

© 2022 - 2024 — McMap. All rights reserved.