1

there seems to be a problem regarding \bcode in chapter ETC environment. It seems that LaTeX cannot solve the \tableofcontents entry:

\documentclass[a4paper,fontsize=12pt]{scrartcl} 
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,ngerman]{babel}
\usepackage[ngerman]{betababel}
\begin{document}
\title{\bcode{*nou=s}}
\author{\bcode{*poihtiko/s}}
\maketitle
\tableofcontents

\section{\bcode{*e)ntele/xeia}}

\bcode{dia/noia}

\end{document}

If you % the \tableofcontents it does work flawlessly. (Just put the other \bcode in to test out what does work and what does not)

Is there a solution or a work around for that problem?

Kind Regards, Sebastian

1 Answers1

2

All fragile commands in moving arguments must be preceded by \protect, see What is the purpose of \protect? and What is the difference between Fragile and Robust commands?.

\documentclass[a4paper,fontsize=12pt]{scrartcl} 
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,ngerman]{babel}
\usepackage[ngerman]{betababel}
\begin{document}
\title{\bcode{*nou=s}}
\author{\bcode{*poihtiko/s}}
\maketitle
\tableofcontents

\section{\protect\bcode{*e)ntele/xeia}}% <-

\bcode{dia/noia}

\end{document}

enter image description here

esdd
  • 85,675