Tag Info

6

The following command could solve it: \def\uppaal{\raisebox{.5ex}{\scshape Uppaal}} and use \uppaal wherever required.

0

In a pinch, a horizontal \rule may also suffice: \documentclass{article} \newcommand{\TextUnderscore}{\rule{.4em}{.4pt}} \begin{document} \texttt{Samp\textunderscore{}Dist\textunderscore{}Corr}\par \texttt{Samp\_Dist\_Corr}\par \texttt{Samp\TextUnderscore{}Dist\TextUnderscore{}Corr} \end{document} The width - .4em - can be adjusted to suit. The height - ...

3

The posted code does not produce an indent \documentclass{article} \begin{document} \noindent {\tt \noindent [cloud-user@sgmanager1 ~]\$sudo yum list | grep kumo\\ service\_guard.x86\_64\hskip 8em 0.2-0007\hskip 8em @kumo-sg\\ } \end{document} produces However the second \noindent is doing nothing, \tt should not be used in LaTeX, and \\ at the end of ... 0 The answer by egreg loads new fonts that seems to change fonts for the whole document -- not only in listings (in my document it changed the font used in paragraphs). The accepted answer uses pcr -- some may find it not very beautiful. You could use lmtt instead. Below is the version that uses lmtt and additionally wraps the font-change command into the ... 0 One advantage of \verb is that underscores are typeset better. For example in \documentclass{article} \usepackage{verbatim} \begin{document} \texttt{foo\_bar} \verb|foo_bar| \end{document} the first foo_bar has a thinner underscore. See Underscores in words (text) for more details. 0 If you are using fontspec you should also be using either mathspec or unicode-math. If you use mathspec, then you can set the font for \mathtt like this: \documentclass[fleqn]{article} \usepackage{mathspec} \setmonofont[Mapping=tex-text]{Courier New} \setmathtt{Courier New} \begin{document} \texttt{Farschad \% + - * \$ ! } \[ \mathtt{Farschad \% + - * ...

Top 50 recent answers are included