Graphics, Figures & TablesProblem with special characters in the caption Tex field

Information and discussion about graphics, figures & tables in LaTeX documents.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Problem with special characters in the caption Tex field

Post by Stefan Kottwitz »

With all these packages and settings (no tcilatex, I don't have it here) the problem does not occur if I compile to pdf.
Have a look at this site: minimal working example, follow the suggestions there and post a complete (small) code example that's showing the error. Until know that error is not reproducable.

Stefan
LaTeX.org admin

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

viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Re: Problem with special characters in the caption Tex field

Post by viragiste »

Excuse me again :?

Unfortunately .. i'm afraid i haven't enough time to read all this ! i have to complete this paper in the next 12 hours !!
Could you please summerize all this in few steps ..
please .. i'm sure you'll understand the situation !
:cry:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with special characters in the caption Tex field

Post by Stefan Kottwitz »

What is needed to reproduce the error, is a complete small LaTeX document that's causing the error when we compile it.

There are two ways to get one:
- either create a small LaTeX file (with \documentclass and so on), copy your code into it, achieve that the error comes again, post it,
- or create a copy of your LaTeX document, throw away unnecessary text, reduce it, as long as it still brings the error, and post the reduced here.

If we were able to reproduce the error it's pretty sure that we are able to solve it quickly. A code example would make it easy. Otherwise we would need really detailed information like the problematic code, the error output, the log file. Perhaps post the log file first (as attachment), then think about the other tips. You could see that we're willing to help, but information is needed for it.

Stefan
LaTeX.org admin
viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Problem with special characters in the caption Tex field

Post by viragiste »

ok ok ... :roll:

the second tip looks easier
here is the document .. i only have left the caption of the figure .. the mainmatter and the packages .. an error is still occuring

Code: Select all

%%% [ This file is provided for the purpose of being an example of using
%%%   the "unswthesis" class.  As such, any information relating to the
%%%   thesis itself has been removed. ]


\documentclass[12pt,doublespacing]{unswthesis}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{amsfonts}
\usepackage{float}
\usepackage[french]{babel}
\usepackage{sidecap}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage[Lenny]{fncychap}
\usepackage[labelformat=simple,justification=centering,font={bf},labelfont={bf},textfont={bf}]{caption}
\usepackage{rotating}

\setcounter{MaxMatrixCols}{10}
%TCIDATA{OutputFilter=LATEX.DLL}
%TCIDATA{Version=5.50.0.2953}
%TCIDATA{<META NAME="SaveForMode" CONTENT="2">}
%TCIDATA{BibliographyScheme=Manual}
%TCIDATA{Created=Thursday, March 05, 2009 10:59:28}
%TCIDATA{LastRevised=Thursday, October 08, 2009 23:48:59}
%TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
%TCIDATA{<META NAME="DocumentShell" CONTENT="Theses\SW\University of New South Wales">}
%TCIDATA{CSTFile=unswthesis.cst}
%TCIDATA{PageSetup=80,63,57,57,0}
%TCIDATA{Counters=roman,1}
%TCIDATA{EvenPages=
%H=36
%F=36,\PARA{038<p type="texpara" tag="Body Text" >\thepage }
%}

%TCIDATA{OddPages=
%H=36
%F=36,\PARA{038<p type="texpara" tag="Body Text" >\thepage }
%}

%TCIDATA{FirstPage=
%H=36
%F=36
%}


\newtheorem{theorem}{Theorem}
\newtheorem{acknowledgement}[theorem]{Acknowledgement}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{axiom}[theorem]{Axiom}
\newtheorem{case}[theorem]{Case}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{conclusion}[theorem]{Conclusion}
\newtheorem{condition}[theorem]{Condition}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{criterion}[theorem]{Criterion}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{notation}[theorem]{Notation}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{solution}[theorem]{Solution}
\newtheorem{summary}[theorem]{Summary}
\newenvironment{proof}[1][Proof]{\textbf{#1.} }{\ \rule{0.5em}{0.5em}}
\input{tcilatex}
\pagenumbering{roman}
\setlength{\belowcaptionskip}{0pt}
\setlength{\abovecaptionskip}{0pt}

\begin{document}

\thesistitle{Etude d'une machine frigorifique \`{a} \'{e}jection de vapeur activ\'{e}e 
\`{a} l'\'{e}nergie solaire}
\thesisauthor{Mahmoud khalfallah}
\thesisdegree{M\'{e}moire de Mast\`{e}re}
\thesisdate{Aout 2009}
\thesissupervisor{Prof Ahmed BELLAGI}
\thesisassessor{Mhiri Hatem}
\title{Not used (see Thesis Title above), but SW always adds when using the
Make Title field.}
\author{Not used (see Thesis Author above), but SW always adds when using
the Make Title field.}
\maketitle
\tableofcontents
\listoffigures
\listoftables

%TCIMACRO{\TeXButton{TeX field}{\setcounter{page}{1}}}%
%BeginExpansion
\setcounter{page}{1}%
%EndExpansion
\mainmatter

%TCIMACRO{\TeXButton{B}{\begin{figure}[H] \centering}}%
%BeginExpansion
\begin{figure}[H] \centering%
%EndExpansion
\caption{Constante spécifique $^\gamma$ du R134a en fonction de la température ($^\circ$C)
et de la pression (bar)}\label{1}%
%TCIMACRO{\TeXButton{E}{\end{figure}}}%
%BeginExpansion
\end{figure}%
%EndExpansion

\end{document}
and this is the Error message when typesetting preview pdf !!

Code: Select all

cd C:/sw55/temp/
C:\sw55\TCITeX\web2c\pdfLaTeX.exe &pdflatex_ml C:/sw55/temp/swp0000.tex
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
 %&-line parsing enabled.
 (c:\sw55\TCITeX/web2c/cp8bit.tcx)
(c:/sw55/temp/swp0000.tex{c:\sw55\TCITeX/pdftex/config/pdftex.cfg}
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for american, english, french, german, n
german, loaded.
(c:\sw55\TCITeX/tex/latex/contrib/unswthesis/unswthesis.cls
Document Class: unswthesis 1995/10/23 v1.6a University of NSW Thesis Class
(c:\sw55\TCITeX/tex/latex209/contrib/fancyheadings/fancyheadings.sty)
(c:\sw55\TCITeX/tex/latex/base/book.cls
Document Class: book 2004/02/16 v1.4f Standard LaTeX document class
(c:\sw55\TCITeX/tex/latex/base/bk12.clo)))
(c:\sw55\TCITeX/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:\sw55\TCITeX/tex/latex/amsmath/amstext.sty
(c:\sw55\TCITeX/tex/latex/amsmath/amsgen.sty))
(c:\sw55\TCITeX/tex/latex/amsmath/amsbsy.sty)
(c:\sw55\TCITeX/tex/latex/amsmath/amsopn.sty))
(c:\sw55\TCITeX/tex/latex/required/graphics/graphicx.sty
(c:\sw55\TCITeX/tex/latex/required/graphics/keyval.sty)
(c:\sw55\TCITeX/tex/latex/required/graphics/graphics.sty
(c:\sw55\TCITeX/tex/latex/required/graphics/trig.sty)
(c:\sw55\TCITeX/tex/latex/required/graphics/graphics.cfg)
(c:\sw55\TCITeX/tex/latex/required/graphics/pdftex.def)))
(c:\sw55\TCITeX/tex/latex/amsfonts/amsfonts.sty)
(c:\sw55\TCITeX/tex/latex/contrib/float/float.sty)
(c:\sw55\TCITeX/tex/latex/required/babel/babel.sty
(c:\sw55\TCITeX/tex/latex/required/babel/frenchb.ldf
(c:\sw55\TCITeX/tex/latex/required/babel/babel.def)
*************************************
* Local config file frenchb.cfg used
*
(c:\sw55\TCITeX/tex/latex/required/babel/frenchb.cfg)))
(c:\sw55\TCITeX/tex/latex/contrib/sidecap/sidecap.sty
(c:\sw55\TCITeX/tex/latex/base/ifthen.sty))
(c:\sw55\TCITeX/tex/latex/contrib/tocbibind/tocbibind.sty

Package tocbibind Note: The document has chapter divisions.


Package tocbibind Note: Using chapter style headings, unless overridden.

) (c:\sw55\TCITeX/tex/latex/contrib/fncychap/fncychap.sty)
(c:\sw55\TCITeX/tex/latex/contrib/caption/caption.sty
(c:\sw55\TCITeX/tex/latex/contrib/caption/caption3.sty))
(c:\sw55\TCITeX/tex/latex/contrib/rotating/rotating.sty)
(c:\sw55\TCITeX/tex/latex/SWmacros/tcilatex.tex
TCILATEX Macros for Scientific Word and Scientific WorkPlace 5.5 <06 Oct 2005>.

NOTICE: This macro file is NOT proprietary and may be freely copied and distrib
uted.
)
No file swp0000.aux.

Package frenchb.ldf Warning: The definition of \@makecaption has been changed,
(frenchb.ldf)                frenchb will NOT customize it;
(frenchb.ldf)                reported on input line 74.

(c:\sw55\TCITeX/tex/latex/contrib/ms/ragged2e.sty
(c:\sw55\TCITeX/tex/latex/contrib/ms/everysel.sty))

LaTeX Warning: \title is not used with this class on input line 84.


LaTeX Warning: \author is not used with this class on input line 86.

[1] [2{c:\sw55\TCITeX/pdftex/config/TrueTeX.map}{c:\sw55\TCITeX/pdftex/config/W
inFonts.map}{c:\sw55\TCITeX/pdftex/config/msi.map}] [3] (./swp0000.toc)
[1] (./swp0000.lof (c:\sw55\TCITeX/tex/latex/amsfonts/umsa.fd)
(c:\sw55\TCITeX/tex/latex/amsfonts/umsb.fd)) [2] (./swp0000.lot) [1]
! Undefined control sequence.
\FindBoldGroup ...f {x\global \edef \theboldgroup 
                                                  {\the \mathgroup }}$}}
l.103 et de la pression (bar)}
                              \label{1}%
? 
but it's not the same error code .. 8-)
in my original files it says

Code: Select all

! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.36 ...($^\circ $C) et de la pression (bar)}}{48}
                                                  
? 
:?:
:?:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Problem with special characters in the caption Tex field

Post by Stefan Kottwitz »

The error tells that \theboldgroup is undefined, whatever that may be ... your code is still not enough for me to reproduce the error: after I changed something to make it compilable at all (I don' have unswthesis.cls and tcilatex.tex, removed just some \thesis... commands) that \caption is compilable.

Stefan
LaTeX.org admin
viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Problem with special characters in the caption Tex field

Post by viragiste »

i tried it for other characters like $\%$ ..

but does not work for others like \varotimes \nbacksimeq ...
but it's the same problem ..

:?

even i added
amstext
amssymb
amscd
latexsym

is there any package that i missed ???

:?:

i downloaded some packages like cbfonts and so on
http://www.tex.ac.uk/tex-archive/help/C ... plete.html
http://www.tex.ac.uk/tex-archive/help/C ... ekctr.html
http://www.tex.ac.uk/tex-archive/help/C ... -font.html
http://www.tex.ac.uk/tex-archive/help/C ... greek.html
http://www.tex.ac.uk/tex-archive/help/C ... ex-fd.html

but i don't know how to install them ? :cry: :cry:

could you please suggest some packages to add to my SW ? or anything that may help !!
otherwise i'm dead in a few hours !!

:|
viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Problem with special characters in the caption Tex field

Post by viragiste »

hehehehe :lol:

i've used instead

Code: Select all

$\curlyvee$
and they didn't realize it :P

but i couldn't find something like epsilon in the same category !!
Post Reply