3 votes
Accepted

Strange Autoref Countering of lstlisting

Use caption and set the position to bottom: \documentclass[]{article} \usepackage[german]{babel} \usepackage[]{hyperref} \usepackage{listings} \lstset{frame=tb,captionpos=b} \renewcommand\...
user avatar
1 vote
Accepted

How can I remove extra white space of a caption when listing wrap inside a figure?

Your MWE shouldn't rely on external files. If possible, please provide a standalone code that can be copy-pasted. However, a possible solution is to use the caption feature of listings, instead of ...
user avatar
  • 570
1 vote
Accepted

Syntax highlighting of numeric literals with the listings package

Try this code. Its a very simplified solution. See the links mentioned in the comments and also Changing the color of numbers and special words for more comprehensive solutions. \documentclass{...
user avatar
  • 24.4k
1 vote

How to render a long code listing in multiple pages with the package minted?

As example for the first part, a breakable tcb listing box using minted (tcb code somewhat adapted from another answer on this site about quoting; javascript code is from this page): There are three ...
user avatar
  • 7,046
1 vote

Syntax highlighting in listings for C# that it looks like in Visual Studio

Since i wasn't able to find a really satisfying solution to C# listings in Latex , i invested a few hours and created a really perfect set of listing settings. I know this thread is really old but i ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible