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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- 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}}
xcolor package if you would like to have more color names or features.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: 10397
- 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: 10397
- 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