SDStyLeZ SDStyLeZ - 1 year ago 223
LaTeX Question

Adding Arrows inside itemize in latex

I want to add a long left right arrow inside itemize.
At the moment I use:

\item DNS <-> check\_dns
\item DHCP <-> check\_dhcp

But I want something like ↔ instead of <->.

Unfurtunatly I can't use "\longleftrightarrow" cause i get "\item invalid in math mode" if I try.

any ideas?

Answer Source

The answer to your question is quite simple. The command "\longleftrightarrow" only works in math mode. The solution is thus to use inline math mode by using \( \longleftrightarrow \) or $ \longleftrightarrow $.

Your code then changes to:

    \item DNS **\(\longleftrightarrow\)** check\_dns
    \item DHCP **\(\longleftrightarrow\)** check\_dhcp

Note: if you are a new latex user and you want more information about the concept math mode, then this link could be interesting: wikibooks about latex

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download