Texmaker and TeXstudio!Undefined control sequence for setup/format.tex

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

!Undefined control sequence for setup/format.tex

Post by annier »

Hi all,
I am trying to compile a complete thesis written in Latex with Texmaker.
Steps:
1. File -->> Open -->> Given mainfile.tex
2. Press PDFLaTeX

The mainfile.tex accesses the format.tex file via
\usepackage{setup/format.tex}.

The \CJKindent command used in the format.tex has the output message as produced by the following working example.


Code Snippet at which issue arises:

Code: Select all

\documentclass[12pt,a4paper,openany,twoside]{book}
\CJKindent
\begin{document}
abcd
\end{document}
Message:

Code: Select all

! Undefined control sequence.
<recently read> \CJKindent
l.2 \CJKindent
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
(./cjk_indent.aux)
\openout1 = `cjk_indent.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
]
(./cjk_indent.aux) )
Here is how much of TeX's memory you used:
227 strings out of 493304
2443 string characters out of 6139871
51946 words of memory out of 5000000
3770 multiletter control sequences out of 15000+600000
4290 words of font info for 16 fonts, out of 8000000 for 9000
957 hyphenation exceptions out of 8191
22i,4n,19p,149b,141s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/
cm/cmr12.pfb>
Output written on cjk_indent.pdf (1 page, 8963 bytes).
PDF statistics:
12 PDF objects out of 1000 (max. 8388607)
7 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
Note:
OS ==>> Ubuntu 14.04
Latex Distribution ==>> TexLive has been installed via

Code: Select all

sudo apt-get install texlive-full
Yours Sincerely
Anil Kunwar
Last edited by annier on Sun Sep 20, 2015 2:28 pm, edited 5 times in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

!Undefined control sequence for setup/format.tex

Post by Johannes_B »

Hi and welcome, the posted code doesn't match the log-file. A minimal working example would be much better for us to help you.

Are you trying to typeset chinese/japanese/korean characters?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

Re: !Undefined control sequence for if-else-fi statement

Post by annier »

Hi Johannes,
I will try to present a minimal working example for that(will take a day or more). Thank you for instructions.
Anil
Last edited by annier on Thu Sep 17, 2015 5:33 am, edited 2 times in total.
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

Re: !Undefined control sequence for if-else-fi statement

Post by annier »

Hi,
I have updated the query (presented at the first post) with the style of minimal working example.
Yes, the thesis which i am referring to has Chinese language along with the English language.


Yours Sincerely
Anil Kunwar
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

!Undefined control sequence for setup/format.tex

Post by Stefan Kottwitz »

Hi Anil,

the command \CJKindent is not defined by default. You need a package for this, possibly also an environment. A working sample would be:

Code: Select all

\documentclass{book}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{song}
\CJKindent
abcd
\end{CJK*}
\end{document}
Stefan
LaTeX.org admin
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

Re: !Undefined control sequence for setup/format.tex

Post by annier »

Hi Stefan,
With the newer code format also, the !undefined control sequence message appeared at line 5 as given in the following log file.
Does the texlive installed in the Ubuntu distribution require extra package?


Yours Sincerely
Anil Kunwar
Attachments
cjk_indent.log
log file for compilation via texmaker
(49.33 KiB) Downloaded 641 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: !Undefined control sequence for setup/format.tex

Post by Stefan Kottwitz »

Hi Anil,

the online LaTeX editor Overleaf shows the same problem. It doesn't use the latest TeX version.

However, on my system my example runs fine. The difference is: you have TeX Live 2013, which is a bit older. I use TeX Live 2015. I guess 2015 is also available from Debian. You may consider to update.

The CJK package version on my system is the same as on yours, as I see in the log file. So it's something else in the base TeX installation and its packages, which should be fixes by a general update.

Stefan
LaTeX.org admin
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

Re: !Undefined control sequence for setup/format.tex

Post by annier »

Hi Stefan,
I tried installing updated version of texlive and still the message has appeared for \CJKindent.
Does the additional packages of texlive while installing tex editors such as Texmaker and Texstudio through Ubuntu software center affect the result as these packages may be related to version 2013-2014?

Yours Sincerely
Anil Kunwar
annier
Posts: 16
Joined: Mon Sep 14, 2015 4:24 pm

Re: !Undefined control sequence for setup/format.tex

Post by annier »

Hi all,
The above issue was solved by installing TexLive 2015 in the Ubuntu 14.04 OS according to the procedures described in
http://tex.stackexchange.com/questions/ ... 5373#95373
Answer numbered as 178 in the above link was followed and 2014 was replaced with 2015 in the places wherever required.

Additional References:
http://www.tug.org/texlive/debian.html
http://askubuntu.com/questions/568230/a ... l-it-every
http://www.tug.org/texlive/files/debian ... 015-ex.txt
http://www.tug.org/texlive/quickinstall.html
http://tex.stackexchange.com/questions/ ... -on-ubuntu


Yours Sincerely
Anil Kunwar
Post Reply