I have a LaTeX class in which I define a new command as:
Code: Select all
\newcommand{\bb}[1]{\textbf{\textcolor{red}{#1}}}
\bb{Al\'{e}s}
I get this error:
Code: Select all
!Missin } inserted
1.18 \bb{Al\'{e}s}
Code: Select all
\newcommand{\bb}[1]{\textbf{\textcolor{red}{#1}}}
\bb{Al\'{e}s}
I get this error:
Code: Select all
!Missin } inserted
1.18 \bb{Al\'{e}s}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{color}
\newcommand{\bb}[1]{\textbf{\textcolor{red}{#1}}}
\begin{document}
\bb{Al\'{e}s}
\end{document}
Code: Select all
\def\currversion{April 17, 2012}
\typeout{LaTeX class for TEST alphabetical display of thesaurus terms.}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{testClass}
\LoadClass[12pt]{article}
\RequirePackage{cantarell}
\RequirePackage{multicol}
\RequirePackage{color}
\RequirePackage[english,french,german,italian]{babel}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\newcommand{\bb}[1]{\textbf{\textcolor{red}{#1}}}
\renewcommand{\familydefault}{fca}
\newcommand{\nt}{\>NT \=}
\newcommand{\push}{\>\>}
\newcommand{\rt}{\>RT \=}
\newcommand{\bt}{\>BT \=}
\newcommand{\uf}{\>UF \=}
\newcommand{\topt}{\>TT \=}
\newenvironment{mytabbing}{\begin{tabbing}
\hspace{0.50 cm}\= \\ }
{\end{tabbing}}
\setlength{\parindent}{0in}
Code: Select all
\documentclass{testClass}
\begin{document}
\begin{mytabbing}
\bb{Al\'{e}s}
\end{mytabbing}
\end{document}
\'
within a {tabbing}
environment, where the shortcut \'
has a different meaning. You can fix it by writing \a'
instead:Code: Select all
\begin{mytabbing}
\bb{Al\a'{e}s}
\end{mytabbing}
NEW: TikZ book now 40% off at Amazon.com for a short time.