开发者

How do you change the image of a bullet point in LaTeX Beamer

When I use the itemize environment, i.e.

\begin{itemize} 
    \item one
    \item two
    \item three
\end{itemize}

The bullet points开发者_Python百科 are ugly bitmap graphics that have harsh (aliased) edges. I'd like it to be a nice, clean font character or vector graphic


You can simply set a symbol of your choice. Let me assume you'd like the \checkmark symbol, just write:

\begin{itemize} 
    \item[\checkmark] one
    \item[\checkmark] two
    \item[\checkmark] three
\end{itemize}

Furthermore, if it's too long to write, you can set a new command:

\newcommand{\myitem}{\item[\checkmark]}

and the whole thing becomes:

\begin{itemize} 
   \myitem one
   \myitem two
   \myitem three
\end{itemize}

Otherwise, you can use the enumitem package as stated in the answer below.


For document classes other than beamer, there are two more ways to do the trick:

In the preamble, write:

\def\labelitemi{\checkmark}

If you want to change the symbol in only one itemize environment, write:

\begin{itemize} 
\newcommand{\labelitemi}{\checkmark}
   \item one
   \item two
   \item three
\end{itemize}


Probably the best way is to use the beamer template:

\setbeamertemplate{itemize items}{\checkmark}


So here is the long answer. I found this in the beamer manual. In beamer there are kind of two things you can do. One is to set the "innertheme".

\useinnertheme{circles}

This will have (roughly) the same effect as

\newcommand{\myitem}{\item[\textbullet]}

The other thing you can do is set the template

\setbeamertemplate{itemize item}{\textbullet}


You can also use a nice image with graphicx:

\usepackage{graphicx}
...
\item[\includegraphics{./images/image.png}]{Text}


If you \usepackage{enumitem} you can then then set the label as a parameter

\begin{itemize}[label=\checkmark]
   \item ....
   \item ...
\end{itemize}

Full documentation is here.


I solved my trobules with Russian and custom beamber symbols using Asana-math:

\setmathfont{Asana-Math.otf}

which implies using XeLaTeX, but the idea is the same for LaTeX -- just set the symbols manually:

\setbeamertemplate{itemize item}{$\blacktriangleright$}
\setbeamertemplate{itemize subitem}{$\QED$}
\setbeamertemplate{itemize subsubitem}{$\smblkcircle$}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜