1

Does anybody know why I get an error message when I use \tqt in \section{}? How can the issue be rectified?

\documentclass[11pt,a4paper,twoside,openright]{book}
\usepackage[T1]{fontenc}
\usepackage{fontspec,lipsum}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Calibri}
\usepackage{quotmark}
\begin{document}
\tqt{asldfjlkasdj}
\section{\tqt{asdfas}}
\end{document}
3
  • Use \section{\protect\tqt{asfas}}
    – egreg
    Commented May 2, 2015 at 15:06
  • Do you know the csquotes package?
    – egreg
    Commented May 2, 2015 at 15:58
  • David's solution works.
    – Reza
    Commented May 4, 2015 at 9:29

1 Answer 1

2
\documentclass[11pt,a4paper,twoside,openright]{book}
\usepackage[T1]{fontenc}
\usepackage{fontspec,lipsum}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Calibri}
\usepackage{quotmark}
\begin{document}
\tqt{asldfjlkasdj}
\section{\protect\tqt{asdfas}}
\end{document}

Fragile command in moving argument.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .