5

I need to write a list of hyphen.

Following are subjects in high-school.

- Physics
- Chemistry 
- Biology

How can i generate such list with hyphen as indicator?

9

With powerful enumitem

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{itemize}[label=-]
  \item Physics
  \item Chemistry
  \item Mathematics
\end{itemize}
\end{document}

enter image description here

Without any package

\documentclass{article}

\begin{document}
\begin{itemize}
 \renewcommand\labelitemi{-}
  \item Physics
  \item Chemistry
  \item Mathematics
\end{itemize}
\end{document}

If you want this for all itemize environments, put the \renewcommand\labelitemi{-} outside (say in preamble).

6
\documentclass{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}[-]
\item test
\item test 2
\end{enumerate}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.