Text Formattingcsquotes: Undefined control sequence.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
surgelato
Posts: 4
Joined: Thu Dec 03, 2009 7:44 pm

csquotes: Undefined control sequence.

Post by surgelato »

Hello
If I try to compile my code:

Code: Select all

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[style=authortitle-icomp]{biblatex}

\begin{document}
test
\end{document}
I get this error:
! Undefined control sequence.
<argument> ...ater.\MessageBreak I found: '\csuse{ver@etoolbox.sty}'.\Messa...
l.36 \endinput}
I use Texlive on Ubuntu and csquotes v 4.4c.

Anybody any idea?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

csquotes: Undefined control sequence.

Post by localghost »

I don't see what this has to do with csquotes. Your example doesn't use it. Make sure that you use the most recent version of packages.


Best regards
Thorsten
surgelato
Posts: 4
Joined: Thu Dec 03, 2009 7:44 pm

csquotes: Undefined control sequence.

Post by surgelato »

Oh I'm sorry, that was a mistake, I posted the wrong code. This is the right one:

Code: Select all

    \documentclass[a4paper]{article}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
    \usepackage[ngerman]{babel}
    \usepackage[style=authortitle-icomp]{biblatex}
    \usepackage[babel,ngerman=guillemets]{csquotes}

    \begin{document}
    test
    \end{document}
The quoted error in the first post reports a part of the csquotes.sty. If I dont load csquotes the error is gone.
localghost wrote:Make sure that you use the most recent version of packages.
I use the newest versions, its a new installation.
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

csquotes: Undefined control sequence.

Post by phi »

The csquotes package doesn't provide an option named ngerman. The following code compiles without errors:

Code: Select all

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[style=authortitle-icomp]{biblatex}
\usepackage[babel,german=guillemets]{csquotes}

\begin{document}
test
\end{document}
surgelato
Posts: 4
Joined: Thu Dec 03, 2009 7:44 pm

csquotes: Undefined control sequence.

Post by surgelato »

phi wrote:The csquotes package doesn't provide an option named ngerman. The following code compiles without errors:
Hm, not here. Same error. :cry:
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

csquotes: Undefined control sequence.

Post by phi »

OK, let's compare package versions. Please add a \listfiles command before the \documentclass line and compare the output with my version list:

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
   babel.sty    2008/07/06 v3.8l The Babel package
ngermanb.ldf    2008/07/06 v2.6n new German support from the babel system
biblatex.sty    2009/09/20 v0.8i programmable bibliographies
etoolbox.sty    2009/08/06 v1.8 e-TeX tools for LaTeX
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
biblatex.def    2009/09/20 v0.8i biblatex generic definitions
standard.bbx    2009/07/04 v0.8e biblatex bibliography style
authortitle.bbx    2009/07/04 v0.8e biblatex bibliography style
authortitle-icomp.bbx    2009/07/04 v0.8e biblatex bibliography style
authortitle-icomp.cbx    2009/07/04 v0.8e biblatex citation style
biblatex.cfg    
csquotes.sty    2009/09/23 v4.4c context-sensitive quotations
csquotes.def    2009/09/23 v4.4c csquotes generic definitions
csquotes.cfg    2009/05/30 v4.4 csquotes configuration
  german.lbx    2009/07/04 v0.8e biblatex localization
 ngerman.lbx    2009/07/04 v0.8e biblatex localization
Annika
Posts: 3
Joined: Sun Sep 12, 2010 6:26 pm

csquotes: Undefined control sequence.

Post by Annika »

I am currently writing my thesis and got similar problems with csquotes. When I compile my document, it always says

- unknown option babel for package csquotes
- unknown option ngerman=quotes for package csquotes

The csquotes package is installed, but of course there are no "..." in my final document.

Code: Select all

%
%Diplomarbeit
%
\documentclass[pdftex,a4paper,12pt]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[babel,ngerman=quotes]{csquotes}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[round]{natbib}
\usepackage{textcomp}
\usepackage{array,tabularx}
\usepackage{pdflscape}
\usepackage{multibib}
\newcites{int}{Internetquellen}
\parindent0pt
\parskip6pt

\begin{document}
\enquote{This is my example}
\end{document}



What am I doing wrong? I also tried to insert question marks with a different code and it also did not work...Therefore I guess that I have to install something in addition?

Code: Select all

\documentclass{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\begin{document}

Genau, dies ist \enquote{nur} ein Beispiel.

\end{document}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

csquotes: Undefined control sequence.

Post by gmedina »

Hi,

replace

Code: Select all

\usepackage[babel,ngerman=quotes]{csquotes}
with

Code: Select all

\usepackage[autostyle=true,german=quotes]{csquotes}
The babel option is deprecated and ngerman is not an option for csquotes; the right option is german (without the "n")
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Annika
Posts: 3
Joined: Sun Sep 12, 2010 6:26 pm

csquotes: Undefined control sequence.

Post by Annika »

Hey,

thanks for the quick answer. Unfortunately, it did not change anything.
It says now

- undefined option autostyle=true for package csquotes
- undefined option german=quotes for package csquotes
and in the text - undefined control sequence for \enquote{...}

When I open the style-file of csquotes, there is written, that there is a problem with the etoolbox. I already installed that with the package manager of Miktex 2.8

Code: Select all

%% Compatibility and requirements

\RequirePackage{etoolbox}
\RequirePackage{keyval}

\@ifpackagelater{etoolbox}{2008/06/28}
  {}
  {\PackageError{csquotes}
     {Outdated 'etoolbox' package}
     {Upgrade to etoolbox v1.7 (2008/06/28) or later.\MessageBreak
      I found: '\csuse{ver@etoolbox.sty}'.\MessageBreak
      This is a fatal error. I'm aborting now.}%
   \endinput}
My code looks like this now:

Code: Select all

\documentclass[pdftex,a4paper,12pt]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[round]{natbib}
\usepackage{textcomp}
\usepackage{array,tabularx}
\usepackage{pdflscape}

\begin{document}

This is a \enquote{test}.

\end{document}

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

csquotes: Undefined control sequence.

Post by gmedina »

Annika wrote:...
It says now

- undefined option autostyle=true for package csquotes
- undefined option german=quotes for package csquotes
and in the text - undefined control sequence for \enquote{...}
Those messages suggest old versions of some packages. Compile this code:

Code: Select all

\listfiles
\documentclass[pdftex,a4paper,12pt]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[round]{natbib}
\usepackage{textcomp}
\usepackage{array,tabularx}
\usepackage{pdflscape}

\begin{document}

This is a \enquote{test}.

\end{document}
The \listfiles command will only write a list of the files used and its versions to the .log file. Open the .log file and search for the *File List* section; here's mine:

Code: Select all

 *File List*
scrreprt.cls    2010/06/17 v3.06 KOMA-Script document class (report)
scrkbase.sty    2010/06/17 v3.06 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2010/06/17 v3.06 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty    2010/06/09 v3.06 KOMA-Script package (handling toc-files)
scrsize12pt.clo    2010/06/17 v3.06 KOMA-Script font size class option (12pt)
typearea.sty    2010/06/17 v3.06 KOMA-Script package (type area)
   babel.sty    2008/07/06 v3.8l The Babel package
ngermanb.ldf    2008/07/06 v2.6n new German support from the babel system
csquotes.sty    2010/06/09 v5.0a context-sensitive quotations
etoolbox.sty    2010/08/21 v2.0 e-TeX tools for LaTeX
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
csquotes.def    2010/06/02 v5.0 csquotes generic definitions
csquotes.cfg    
inputenc.sty    2008/03/30 v1.1d Input encoding file
 ansinew.def    2008/03/30 v1.1d Input encoding file
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
  natbib.sty    2009/11/07 8.31a (PWD, AO)
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
   array.sty    2008/09/09 v2.4c Tabular extension package (FMi)
tabularx.sty    1999/01/07 v2.07 `tabularx' package (DPC)
pdflscape.sty    2008/08/11 v0.10 Landscape pages in PDF (HO)
  lscape.sty    2000/10/22 v3.01 Landscape Pages (DPC)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2010/02/14 v0.04n Graphics/color for pdfTeX
   ifpdf.sty    2010/01/28 v2.1 Provides the ifpdf switch (HO)
 ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
supp-pdf.mkii
pdftexcmds.sty    2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ltxcmds.sty    2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf
  grfext.sty    2007/09/30 v1.0 Managing graphics extensions (HO)
kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
 ***********
Compare with yours; if you notice that you are using older versions, update the corresponding packages.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply