The code tag has no wiki summary.
2
votes
0answers
35 views
Deciding whether to end a line with a character or not in lstlisting
I need to write a document where there are written inputs and outputs of unix command line interface software (through bash).
For example I need to show something like:
$ git log --pretty=format:"%h ...
0
votes
1answer
28 views
Pandoc caption for code blocks [closed]
Consider the following code block:
~~~~{.Python .numberLines caption="test"}
def myfunction(var):
""" Oh how awesome this is. """
pass
~~~~
The code gets formatted correctly in the Pdf, but the ...
0
votes
0answers
32 views
Eclipse with texclipse code completion
I am using Eclipse with texclipse. Code completions are not showing up for some of the commands. For example: \mbox{}, \mathcal{} and for some others that i cannot recall at the moment.
(If this ...
1
vote
1answer
86 views
How to keep tables readable in code
What is the best practice for creating and updating tables in Latex? I am using Texmaker but I find it hard to update a table like adding entries or adding a column. I have to count entries which is ...
4
votes
0answers
67 views
Collapse/expand in document
Perhaps this is a dumb question.
I write a small pdf-book on coding and use there many examples using listings package.
But the amount of code expands text too much, for every 5 lines of text there ...
8
votes
1answer
71 views
listings package: no numbering in case the code has only one line
I have a custom style in lstlisting with numbers on the left and the number step is set every line. I would want to know how the listings could appear without number in case the listing has only one ...
2
votes
0answers
54 views
Using '%' at end of line [duplicate]
When browsing though LaTeX source code, I have noticed that many people put % at the end of a line or after closing brackets. I would like to know if there is any benefit in this practice.
Moreover, ...
2
votes
1answer
69 views
Latex find formatted text and print it at the end of document
I am currently coding my interview transcripts for qualitative research by highlighting sentences in different colours (using soul and xcolor packages).
So, I want to print all text which belong to ...
5
votes
1answer
47 views
“Listings” environment for GAP
I was searching the web for a possible environment where I can put my GAP (Groups, Algorithms, Programming) codes. The most promising I saw was the "listings" package. But to my disappointment, this ...
3
votes
0answers
93 views
Highlight LaTeX code and presenting results as in a manual
I would like to write a short guidelines of LaTeX for my students. In the spirit of some LaTeX manuals, I'd like to present the code and the result as follows,
This example illustrate more or less ...
5
votes
1answer
84 views
Command for the table Ruffini-Horner algorithm
I am trying to code a command in LaTeX to type the tables used in the computation of the Ruffini-Horner algorithm. You can see in the Wikipedia link above that these are rather simple tables. There is ...
2
votes
0answers
116 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 :
...
8
votes
3answers
192 views
Which package should I use for doing a connecting homomorphism diagram like this in latex
which package should I use for doing a diagram like this in latex:
0
votes
1answer
74 views
LaTeX code for different choice [closed]
Could you please help me to find the LaTeX code that will gives the following result:
3
votes
0answers
95 views
What is a working python code snippet for escaping a string, so that it can be included in a tex file? [closed]
I'm using python to populate a tex template with arbitrary strings - and I would like to escape the strings so they're interpreted and displayed properly inside the tex file (rather than having them ...