0

I´m new to the "enumitem" package and would like to make an itemize with blue triangles, instead of the regular black dots. How do i do this? either as a global setting in my preamble or as a local setting for each itemize environment.

I want it to be like the picture, but just in a blue color.

How do I do this?

1

You can use code like this:

\documentclass[12pt,twoside,portrait,a4paper]{article}    
\usepackage{tikz}
\usepackage{enumerate}    
\usepackage[utf8]{vietnam}    
\newcommand{\myarrow}{    
\begin{tikzpicture}    
\fill[green](90:.1)--(0:.2)--(270:.1)--cycle;    
\end{tikzpicture}    
}
\begin{document}    
\begin{enumerate}[\myarrow]    
\item This firts    
\item This second    
\end{enumerate}    
\end{document}

enter image description here

  • How is \fillgreen defined? – leandriis Oct 27 at 14:10
  • 1
    Your \myarrow macro contains two new paragraphs (actually four, but those inside the tikzpicture do no harm), I don't think that is intentional. You should change it's definition to not contain additional spaces or paragraphs by commenting out the line ending after the opening brace and the line ending after \end{tikzpicture}. Additionally you should remove the empty lines. – Skillmon Oct 27 at 14:22
2

A version without TikZ, but with enumitem, amssymb and xcolor:

\documentclass[]{article}

\usepackage{enumitem}
\usepackage{amssymb}
\usepackage{xcolor}

\newcommand*\myarrow
  {%
    \leavevmode
    \rlap{\kern.1em\textcolor{gray}{$\blacktriangleright$}}%
    \raise.1em\hbox{\textcolor{orange}{$\blacktriangleright$}}%
    \kern.1em
  }

\begin{document}
\begin{itemize}[label=\myarrow]
  \item Foo
  \item Bar
  \item Baz
\end{itemize}
\end{document}

enter image description here

0

A tikz picture can be set as label for enumerate

 \setlist[enumerate]{label=\protect\tikz{\fill[gray] (0,-0.05)--+(-0.1,-0.1)--+(-0.1,0.1)--cycle;\fill[orange] (0,0)--(-0.1,-0.1)--(-0.1,0.1)--cycle;}}

enter image description here

\documentclass{article}
\usepackage{enumitem}
\usepackage{tikz}
\setlist[enumerate]{label=\protect\tikz{\fill[gray] (0,-0.05)--+(-0.1,-0.1)--+(-0.1,0.1)--cycle;\fill[orange] (0,0)--(-0.1,-0.1)--(-0.1,0.1)--cycle;}}

\begin{document}
\begin{enumerate}
\item first
\item second
\item third
\end{enumerate}
\end{document}

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.