I would like to show "cp x.0* ~/Desktop/rv_vb10/" in latex just the way it is. For this I do the following:
\textbf{$\rm{cp x.0* ~/Desktop/rv_vb10/}$} \newline
However the input comes out as:
cpx.0 ∗ /Desktop/rvv b10/
where the second "v" is below "rv". I know the reason why it is doing it but I do not know how to show this in latex correctly.
Thanks
Text Formatting ⇒ special characters
NEW: TikZ book now 40% off at Amazon.com for a short time.
special characters
Try with
Code: Select all
\verb+cp x.0* ~/Desktop/rv_vb10/+
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 12
- Joined: Fri Mar 12, 2010 5:43 pm
special characters
Thanks your reply. I used the following:
and I get the following error (see below). Do I need some special package?
after which every sentence is italcized. Without this line the latex runs without error.
Code: Select all
\textbf{$\verb+cp x.0* ~/Desktop/rv_vb10/+$} \newline
Code: Select all
! Missing $ inserted.
<inserted text>
$
l.29 \textbf{$\verb+cp x.0* ~/Desktop/rv_vb10/+$}
\newline
?
special characters
Why did you go into math mode? The following example shows two options:
Code: Select all
\documentclass{article}
\begin{document}
text text \verb+cp x.0* ~/Desktop/rv_vb10/+ text text
text text \textbf{cp x.0 \textasciitilde\negthinspace/Desktop/rv\textunderscore vb10/} text text
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 12
- Joined: Fri Mar 12, 2010 5:43 pm
Re: special characters
I went into math mode because the first example does not work with \textbf{}. However the second more explicit example worked just fine!
Thank you very much!
Thank you very much!