Tagged Questions
1
vote
0answers
21 views
Lyx program listings output wrong symbols [duplicate]
This is what I added to the preamble:
basicstyle={\footnotesize\ttfamily}
emph={si, //,{,}, <, >, if, para, cada, devolver, en, de}
emphstyle={\color{red}}
frame=single
...
3
votes
1answer
81 views
Changing lstlistoflistings title [closed]
I'm having difficulty getting the list-of-listings section to display the proper title, it simply says "Contents" no matter what sort of changes I make. Here is the command I put in the preamble at a ...
4
votes
2answers
267 views
Unicode characters changing order in listings (XeTeX)
I am trying to input code listings with unicode characters and everything seems to work (more or less) except some unicode characters being displayed out of order. For example instead of
służąca ...
1
vote
1answer
134 views
How to define a hotkey in LyX to insert an inline listings?
In LyX, I can define a hot-key for listing-insert. But in this case, what appears is the \begin{lstlisting}...\end{lstlisting} environment. In fact I want to insert a inline listings command ...
5
votes
1answer
93 views
Is it possible to change the font of line numbers in a code listing?
Using LyX I can add line numbers to my code listing. However, these are in the document (serif/Roman) font and look strange next to code blocks (Typewriter font). Is it possible to change the font of ...
3
votes
2answers
1k views
Lyx is ignoring typewriter font setting for program listings
I'm using Lyx's Insert|Program Listing to insert a code listing into my document. Unfortunately, Lyx seems to ignore the Typewriter font selection I made in DocumentOptions under Fonts ⇒ ...
3
votes
1answer
608 views
LyX Error: Could not find LaTeX command for character '' (code point 0x2009)
I have been trying to copy and paste some code into LyX (via the 'Program Listings' menu item), and when I compile the document I get the LyX error:
Could not find LaTeX command for character '' ...
3
votes
1answer
141 views
Problem with listings-ext [closed]
I am using listings-ext on Ubuntu 11.10 (with LyX) and listings.cfg defines the style colored-code - which I also use in the LaTeX preamble:
\usepackage[style=colored-code]{listings-ext}
But ...
2
votes
1answer
2k views
Is there a way to enable syntax highlighting coloring in Lyx for program listings?
I want to embed a small program listing and have used Insert -> Program Listing in LyX's menu for that.
The settings dialog supports selecting a language (Java), but I can't actually see any ...
1
vote
2answers
449 views
Biblatex and listings incompatibility…
Does someone know why biblatex and listings are incompatible and if there is a way to fix it?
I have a Lyx document and whenever I insert program listings I get errors like:
al trabajo de ...
7
votes
1answer
257 views
Get List of Listings in an Appendix
I am using LyX with the listings package. I want to have Appendix A be titled "Code Listings" and then have the List of Listings.
Right now I have \lstlistoflistings in an ERT.
By using ...
2
votes
1answer
865 views
LyX: listings over multiple pages
I am trying to use LyX to insert child document-listing-program. The program imports OK but it is too long to fit on a single page. At the bottom of the page it outputs over the margin, sometimes ...
4
votes
1answer
834 views
`backgroundcolor` in `lstset` does not work
When I use the backgroundcolor option in lstset, all I get is a colored line above the listing:
\lstset{%
language=Matlab,
backgroundcolor=\color{blue}
}
and in the document:
...
5
votes
3answers
4k views
Rename “Algorithm” to “Listing”
Background
Syntax-highlighted source code image listings are being used as Algorithm floats with the lst: prefix for captions.
Problem
The following LaTeX code in the preamble renames the caption ...