Tagged Questions
1
vote
0answers
38 views
Latex to HTML using Pandoc
I have a bunch of tutorials I have written and they are written in Latex. Now I want to convert them to HTML and to Blogger also.
I heard about Pandoc and decided to try it. Below are my results :
...
5
votes
1answer
65 views
Is it possible to use the listings package incrementally in beamer?
Given a frame that has code rendered in a \begin{lstlisting}...\end{lstlisting} environment, is it possible to use beamer's incremental frame building feature to highlight code snippets?
Here is an ...
3
votes
1answer
123 views
How to include Maple code in LaTeX?
At here Fanciest way to include Mathematica code in LaTeX we can include Mathematica in LaTeX.
I want to include the code
restart:
with(geom3d):
eqS:=Equation(sphere(S,(x-1)^2 + (y-1)^2 +(z-1)^2 ...
1
vote
1answer
45 views
lst include has first line indented [duplicate]
When I'm including a source file, by way of \lstinputlistings{file/path/to/file}
However, This results in the following below:
Why is the first line not being formatted correctly? And how do i fix ...
1
vote
1answer
64 views
lstlisting: how to align highlighted code
I want to define a couple of new commands in order to highlight parts of my code (this is actually for a trace dump, not for a programming language).
My problem is that I can't seem to make the ...
2
votes
1answer
104 views
Syntax highlighting for different programming languages [duplicate]
In my paper I want to include some source codes with colored sytax. For syntax highlighting I use the listings package:
\lstset{frame=tb,
language={[Visual]Basic},
aboveskip=3mm,
belowskip=3mm,
...
9
votes
2answers
246 views
Two code blocks working syncronously
I need two code blocks in my beamer frame. One will be the code and other will be the output for each line of code.
I want to uncover each code line and corresponding output line.
So, first it will ...
10
votes
1answer
449 views
\listings code style for HTML5 (CSS, HTML, JavaScript)
I would like to create a code style for HTML5 that can be used with the \listings package.
An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
7
votes
2answers
755 views
Which package to use for writing algorithms?
I am looking for a package that will allow me to write pseudocode
of algorithms. The pseudocode may include mathematical symbols, like
\forall, \in and subscripts. But I would like also to "talk" ...
3
votes
1answer
799 views
Color \ , [], {} and / in listings environment
I tried to color a source code listing as follows.
I would like the \ to be the same color as the word that follows for example:
\documentclass in red including "\"
\usepackage in blue including "\"
...
2
votes
1answer
206 views
Force minted to insert new space in code that won't fit on the page
Essentially I would like to have listings' breaklines option on minted. I can't seem to find it. I could manually insert new lines but it becomes difficult when the code comes from an external file.
2
votes
1answer
619 views
LaTeX/Packages/Listings and subindex
I am using LaTeX/Packages/Listings AND this code to make a rectangle with sql source code inside of it, but I would like to have the option to insert subindexes...
I try it using the following but ...
1
vote
1answer
249 views
Listings settings for command line arguments
I am typesetting a set of instructions which includes several (Unix) command line arguments. I have been using the listings package to include these arguments, but the colouring is less than ideal. ...
3
votes
1answer
1k views
Fortran syntax highlighting in listings
I've got some Fortran 90 source code I want to put into my thesis appendix. For this I'm using the listings package. Is it possible to have colored syntax highlighting for the Fortran code?
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 ...
4
votes
1answer
562 views
\fbox inside listings
I am trying to highlight a specific line inside a listing with listinline. The code I am currently using looks like this:
\begin{lstlisting}[escapechar=!]
class A {
void m() {
B b = ...
...
3
votes
1answer
186 views
Shrink code chunks in a documentation
i'm making a documentation of a system, and i have a lot of code chunks that i want to explain, but some of them are too long. My questions if there are some way to automatically shrink those too big ...