How can i highlit text in latex.
Thank you.
As is pictured here(in red circle):
2 Answers
If you mean making the text bold by Highlighting you can use \textbf for making the text bold but highlighting has a different general meaning that is implemented by \hl keyword.
\documentclass{report} \usepackage{color,soul} \begin{document} \hl{foo} \hl{\textbf{foo}} {my garden } \textbf{black}{foo} {my good job} \textbf{\textcolor{red}{\hl{foo}}} \textcolor{red}{\textbf{\hl{foo}}} \end{document}this is the result :
As you can see the word "black" is highlighted the way you desired.
The word "foo" is highlighted in the general meaning of highlighting.
2This links look useful:
- Insert symbols inside verbatim mode LaTeX
- Putting math inside a verbatim environment without altering the formatting
If you just wanted graph.exe I would suggest using \begin{verbatim} graph.exe \end{verbatim} or \verb+graph.exe+ .
However you want to use the <..> expression which can be created with $ \langle ... \rangle $ . The $..$ indicates inline math mode. Those two links discuss getting verbatim text in math environments.
I think tex.stackexchange.com will be more helpful rather than stack overflow.
1