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

Information and discussion about graphics, figures & tables in LaTeX documents.
viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Problem with special characters in the caption Tex field

Post by viragiste »

Hi everybody :D
i'm from tunisia and of course my english is very bad ! :lol:

I'm using SW 5.5B2953 :shock: .
All my figures are inserted by the import fragment table float 3X4 ... then replacing table by figure .... blalbla :lol:

ok .. the problem is that some special characters in the caption do not appear correctly in the pdf typesetted document :cry: :cry:

this is an example, in the .tex file :

Code: Select all

%TCIMACRO{\TeXButton{B}{\begin{figure}[H] \centering}}%
%BeginExpansion
\begin{figure}[H] \centering%
%EndExpansion
%TCIMACRO{%
%\FRAME{dtbpF}{4.9666in}{3.5016in}{0pt}{}{}{Figure}{%
%\special{language "Scientific Word";type "GRAPHIC";maintain-aspect-ratio TRUE;display "USEDEF";valid_file "T";width 4.9666in;height 3.5016in;depth 0pt;original-width 4.5506in;original-height 3.1998in;cropleft "0.040779";croptop "0.925511";cropright "0.9252054";cropbottom "0.0409706";tempfilename 'KR4VP712.wmf';tempfile-properties "XPR";}}}%
%BeginExpansion
\begin{center}
\includegraphics[
natheight=3.1998in, natwidth=4.5506in, height=3.5016in, width=4.9666in]
{C:/Documents and Settings/Invité/Bureau/Nouveau dossier/graphics/KR4VP712__39.pdf}%
\end{center}
%EndExpansion
\caption{Pression statique de refoulement en fonction de la position du col
pour la vapeur d'eau 700mbar à T=100°C}\label{2-3 copy(6)}%
%TCIMACRO{\TeXButton{E}{\end{figure}}}%
%BeginExpansion
\end{figure}%
%EndExpansion
the highlighted character ° (Celsius degree) does not appear correctly in the pdf document .. i have this in stead !!! :x :x
see attachement

and the same thing in the list of figures

i tried everything i know, insert unit name, tagged to maths, copy as internal format then paste in the caption field ... but in vain !! :o

please help me :idea:
and many thanks in advance :mrgreen:
regards
Attachments
latex.JPG
latex.JPG (27.9 KiB) Viewed 7501 times
Last edited by viragiste on Thu Oct 08, 2009 3:06 pm, edited 2 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.

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

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 »

Hi viragiste,

welcome to the board!
You could use \circ like

Code: Select all

$100^\circ$
Btw. your text is harder to read with so many smilies included.

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 »

Wow man! what a quick reply .. :shock:

of course this is the 21st century :lol: :lol:

it's been too many weeks the prof was blaming me for not finding the solution :cry:
and by the way i'm a smilies amateur :D
smile for life

Thank you bro ..
and where can i find a list of such commands for the rest of special characters :?:

and many thanks once again :mrgreen:
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 »

Here is a big one: The Comprehensive LaTeX Symbol List.

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 »

Stefan_K wrote:Here is a big one: The Comprehensive LaTeX Symbol List.

Stefan
Many thanks !!
:roll:
viragiste
Posts: 12
Joined: Wed Oct 07, 2009 1:52 pm

Problem with special characters in the caption Tex field

Post by viragiste »

Excuse me for annoying ..
but that didn't work for gamma and epsilon :cry:

this is how i wrote gamma in the in the caption field (the ° is ok )

Code: Select all

$^\gamma$
and this is the error message

Code: Select all

! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.36 ...($^\circ $C) et de la pression (bar)}}{48}
                                                  
? 
i don't know why it didn't work ??? :?:
please help !!
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 »

gamma an epsilon work for me this way, so please give a more detailed description of what you're doing.

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 »

Stefan_K wrote:gamma an epsilon work for me this way, so please give a more detailed description of what you're doing.

Stefan
ok this is the situation .. its is similar to the one with the Celsius degree ° problem above

Image

and this is what is written in the caption tex field (ignore the french words) :lol: :

Code: Select all

\caption{Constante spécifique $^\gamma$ du R134a en fonction de la température ($^\circ$C)
et de la pression (bar)}
and this is the error message when typsetting the pdf preview :

Code: Select all

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
(c:\sw55\TCITeX/tex/latex/amsfonts/umsa.fd)
(c:\sw55\TCITeX/tex/latex/amsfonts/umsb.fd) [1]) [2] (./swp0000.lof [3]
! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.36 ...($^\circ $C) et de la pression (bar)}}{48}
                                                  
? 
note that if i delete the $^\gamma $C ..everything is ok !!
:?:
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 »

Which additional packages are you using? I'm asking because this document containing that line works for me:

Code: Select all

\documentclass[a4paper,10pt]{article}
\begin{document}
\listoffigures
\begin{figure}
test
\caption{Constante spécifique $^\gamma$ du R134a en fonction de la température ($^\circ$C)
et de la pression (bar)}
\end{figure}
\end{document}
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 »

Stefan_K wrote:Which additional packages are you using? I'm asking because this document containing that line works for me:

Code: Select all

\documentclass[a4paper,10pt]{article}
\begin{document}
\listoffigures
\begin{figure}
test
\caption{Constante spécifique $^\gamma$ du R134a en fonction de la température ($^\circ$C)
et de la pression (bar)}
\end{figure}
\end{document}
Stefan
ok .. packages are

amsmath
graphicx
amsfonts
float
babel (of course :lol: )
sidecap
trocibind
fncychap (cool :mrgreen: )
caption


the style is thesis New south wales university

the preambule

Code: Select all

\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}
output is set to Pdf !
Post Reply