Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If I use

\begin{itemize}
\item asdasd
\item dsfsdf
\end{itemize}

the items are with a bullet, but how can I itemize these two with a "-" (a dash / a hyphen / a small line)?

share|improve this question

migrated from stackoverflow.com Jul 7 '12 at 10:44

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Jul 7 '12 at 14:22
add comment

3 Answers

up vote 36 down vote accepted

One-at-a-time method:

\begin{itemize}
\item[--] asdasd
\item[--] dsfsdf
\end{itemize}

Set all first-level bullet-point to --:

At preamble,

\def\labelitemi{--}

Set the first-level bullet-point to -- only in one itemize environment:

\begin{itemize}
\renewcommand\labelitemi{--}
\item asdasd
\item dsfsdf
\end{itemize}
share|improve this answer
    
Note that there's no reason that it would have to be two dashes instead of one; this would work equally well as \item[-]. –  Tyler McHenry Mar 13 '10 at 15:35
    
@Tyler: - (hyphen) is shorter than -- (en-dash). –  KennyTM Mar 13 '10 at 15:35
9  
@Tyler except that it is poorer typographical style, I believe. –  Vasily Korolev Mar 13 '10 at 15:41
3  
@Vasily I would not say "poorer"; it's a poor style (it's a thing you want to do when you want to look like MSWord). –  tohecz Jul 7 '12 at 11:53
    
@picco's answer is what's needed here, I'd say. –  LondonRob 15 hours ago
add comment

For reference, here's a package-wise approach using the (de-facto) list manipulation package, enumitem:

enter image description here

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\begin{itemize}[label={--}]
\item asdasd
\item dsfsdf
\end{itemize}
\end{document}
share|improve this answer
add comment
% before \begin{document}
\usepackage{enumerate}

% after \begin{document}
\begin{enumerate}[-]
 \item asdasd
 \item dsfdsf
\end{enumerate}

Ideally, the enumerate package is already in MiKTeX so you need not download it.

share|improve this answer
1  
Welcome to TeX.sx! You can format code using the {} button in the edit window or by indenting the code by four blank spaces. –  Peter Jansson Feb 28 '13 at 11:14
    
@picco: enumerate is a latex “required” package; a distribution that doesn't contain it is non-conforming. so idealism ought not to be required... –  wasteofspace Feb 28 '13 at 14:55
    
This totally looks like an up-to-date best practice to me. –  Martin Betz Feb 28 '13 at 17:31
    
This is clearly the best answer! –  LondonRob 15 hours ago
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.