Fonts & Character Sets ⇒ The Bullet in Other Colours
The Bullet in Other Colours
I was wondering if it is possible to have "bullets" (\textbullet) in blue, but not in black, as they tend to appear in a document.
Many thanks in advance.
Regards,
Marie
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
The Bullet in Other Colours
you can easily define your own macro with color:
Code: Select all
\usepackage{color}
\newcommand*{\bluebullet}{\textcolor{blue}{\textbullet}}

Stefan
The Bullet in Other Colours
Many thanks for your prompt answer. Everything works fine now. I was wondering if it is possible to change the color and make it similar to the bullets I get with the color “seahorse” in beamer. Another question I have is if it is possible to separate a bit more the bullet from the text.
Here is my minimal working example:
Code: Select all
\documentclass[10pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish,ngerman,catalan,english]{babel}
\usepackage{pdfpages}
\usefonttheme[stillsansserifsmall]{serif}
\usefonttheme{structuresmallcapsserif}
\usetheme{Pittsburgh}
\usecolortheme{seahorse}
\setbeamertemplate{footline}[frame number]
\beamertemplatenavigationsymbolsempty
\usepackage{color}
\newcommand*{\bluebullet}{\textcolor{blue}{\textbullet}}
\begin{document}
\begin{frame}
\bluebullet This bullet should have the same colour as the bullets in
the following items and have a bigger distance between the bullet and the text.
Some Items:
\begin{itemize}
\item First Item
\item Second Item
\item Third Item
\end{itemize}
\end{frame}
\end{document}
Many thanks in advance.
Regards,
Marie
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
The Bullet in Other Colours
\usebeamercolor
, and add some space as desired, for example ~
for a non-breaking space, as I think you don't want a line break after the bullet:Code: Select all
\newcommand*{\bluebullet}{{\usebeamercolor[fg]{item}{\textbullet~}}}
The Bullet in Other Colours
Many thanks for your answer.
When I try this new command I get the following error:
Code: Select all
[
--- TeX said ---
! File ended while scanning use of \@argdef.
--- HELP ---
No help available
Here is my minimal example:
Code: Select all
\documentclass[10pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish,ngerman,catalan,english]{babel}
\usepackage{pdfpages}
\usepackage{tabularx}
\usepackage{tabu}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{amsfonts}
\usepackage{color}
%\newcommand*{\bluebullet}{\textcolor{blue}{\textbullet}}
\newcommand*{\bluebullet}{{\usebeamercolor[fg]{item}{\textbullet~}}}
\usefonttheme[stillsansserifsmall]{serif}
\usefonttheme{structuresmallcapsserif}
\usetheme{Pittsburgh}
%\usecolortheme{whale}
\usecolortheme{seahorse}
\setbeamertemplate{footline}[frame number]
\beamertemplatenavigationsymbolsempty
\addto{\captionsspanish}{%
\renewcommand*{\tablename}{Tabla}
}
\begin{document}
\newcommand*\numer{N"o}
\selectlanguage{spanish}
\begin{frame}
\titlepage
\end{frame}
\frame{
\frametitle{{\'I}ndice}
\tableofcontents
[pausesections]
}
\begin{frame}
\bluebullet
\end{frame}
\end{document}
Regards,
Marie
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
The Bullet in Other Colours
~
is a shortcut in babel
with Spanish. Either replace it by \
(backslash and whitespace) or use the es-notilde option to disable the shortcut, especially if there could be further issues with ~:Code: Select all
\usepackage[spanish,es-notilde,ngerman,catalan,english]{babel}
Re: The Bullet in Other Colours
Everything works fine now

Regards,
Marie