Linked Questions

20
votes
5answers
5k views

How can I provide a verbatim (unescaped) commandline for executing with \write18?

When using \write18 to execute shell commands, there are some cases where lots of backslash strings, and other 'special' LaTeX characters are required in the commandline to be executed (e.g. if a ...
20
votes
3answers
8k views

How to insert a nice tilde in a lstlisting?

How do I insert a nice tilde that is centered in the middle in a lstlisting? I found another thread about tildes but I can't apply it because the method described there only works outside of ...
7
votes
3answers
2k views

How to use underscores with pgfplotstable?

I have an input file like this: some_entry 123 another_entry 456 yet_another_entry 789 and I want to typeset it as a table with: \pgfplotstabletypeset[col sep=space]{FILENAME} Problem is that ...
5
votes
3answers
644 views

Display “.\integrate blah” in monospaced font (like \texttt and \verb)

I'm trying to display the following: .\integrate blah in a monospaced font. For everything else I've wanted to put in a monospace font, \texttt or \verb has worked fine, but it doesn't with this. I'...
17
votes
1answer
2k views

Making a unary operator out of a binary operator or relation symbol

Often in physics, the symbol \sim is used as a unary operator to mean "approximately." For example, one might say "the energy of these processes is $\sim 4$ eV." However, this looks awkward because \...
5
votes
1answer
3k views

What does symbol ~ do in Latex?

I noticed this symbol in an example. Including or excluding this from the source doesn't change anything. However, if I include \~, it puts a ~ on the first letter of the next word. So, what could be ...
2
votes
2answers
4k views

How to print '~' character using latex [duplicate]

Possible Duplicate: URL with tilde character? I tried \~, which doesn't work; the ~ will appear on top of the following letter. ~ will print nothing but an empty spot. What I want is to print a ...
3
votes
4answers
2k views

How can I escape plain text?

How, given string of plain text one may produce equivalent latex code? For example red fox sauté zażółć gęślą jaźń \newline is a new line in LaTeX Samp_Dist_Corr would produce something like red ...
2
votes
1answer
5k views

How do you get a lower or higher tilde/~?

I want to presents hours and say from hour x to hour y by using sample '~'. Please guide me how I can present the symbol "~"? In contrast to How does one insert a backslash or a tilde (~) into LaTeX?...
5
votes
1answer
2k views

How to input \Sexpr{ as verbatim in Sweave?

Building on my question here: Include Sweave input as verbatim Is there a way to include the term \Sexpr{ in the Sweave document as verbatim. For example, to write: R code can be evaluated inline ...
5
votes
2answers
315 views

Timing response of externally called commands via write18: blocking or not?

I was wondering: when we use \immediate\write18{...} to run commands in an external shell from Latex, is the \write18 a blocking call or not? In other words, will it wait for the external code to ...
2
votes
1answer
872 views

Itemize character [duplicate]

I want to change bullet in itemize to specific char but I can't find solution how to put '^' and ']' char in to this... Any thoughts? \begin{itemize}[labelindent=1.5em,labelsep=1cm,leftmargin=*] \...
2
votes
1answer
676 views

How to correctly use siunitx to align number in the center of a table for number with preamble

I would like to have my numbers aligned left but centered in a table as in this solution, which I also tried to apply. Now my numbers are of the form ~24%. For a correct alignment I tried to protect ...
1
vote
1answer
141 views

The symbol “~” is not showing up [duplicate]

I am trying to type the symbol "~" in normal text, but it is not showing up. Why is this?
3
votes
1answer
445 views

Package to run multiple iterations of a variable, with compilation?

I guess this is somewhat similar to Animations in LaTeX, except what I would want is something like this: Say you have a .tex document, which uses some macro \tester as parameter. I'd like to load a ...

15 30 50 per page