How can I highlight text in latex [closed]

How can i highlit text in latex. Thank you.

As is pictured here(in red circle):enter image description here

0

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 :

enter image description here

As you can see the word "black" is highlighted the way you desired.

The word "foo" is highlighted in the general meaning of highlighting.

2

This links look useful:

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

You Might Also Like