General ⇒ Last char of caption of picture
Last char of caption of picture
Last char of caption of a picture (in {figure} enviroment) is located on place of previous - two char is mixed, but on right of picture enough space(almost half of list). Why this happens? And how prevent this?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Last char of caption of picture
Hi,
please show the code that's producing this behavior. I've never got captions with mixed chars.
Stefan
please show the code that's producing this behavior. I've never got captions with mixed chars.
Stefan
LaTeX.org admin
Last char of caption of picture
Stefan_K, Hi
In attachment photo.
Code: Select all
\begin{figure}
\includegraphics{images/circuit6.eps}
\caption{Эквивалентный генератор ЭДС}
\end{figure}
- Attachments
-
- circuit6.png (10.91 KiB) Viewed 4773 times
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Last char of caption of picture
I cannot reproduce the problem because you did not post a compilable example. Post a complete small example with preamble to get a solution - because this example works fine for me:
Output:
Stefan
Code: Select all
\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\begin{document}
\begin{figure}
\includegraphics{images/circuit6.eps}
\caption{Эквивалентный генератор ЭДС}
\end{figure}
\end{document}
LaTeX.org admin
Last char of caption of picture
SorryStefan_K

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Last char of caption of picture
Did you try my example or only yours?
My file works in all ways I've tried: dvi, ps, pdf (both with dvipdfm and ps2pdf).
Stefan
My file works in all ways I've tried: dvi, ps, pdf (both with dvipdfm and ps2pdf).
Stefan
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Last char of caption of picture
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[!ht]
\centering
\includegraphics{images/circuit6.eps}
\caption{Эквивалентный генератор ЭДС}
\end{figure}
\end{document}
- Attachments
-
- cyrillic-prblm.zip
- The above code compiled to DVI.
- (435 Bytes) Downloaded 156 times
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Last char of caption of picture
localghost, Your compiled example work. But if I create such tex file and compile it - it doesn't "work" in pdf file.
Maybe I use dvipdfm.exe incorrectly? dvipdfm.exe <name of *.dvi file>
Maybe I use dvipdfm.exe incorrectly? dvipdfm.exe <name of *.dvi file>
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Last char of caption of picture
I was able to reproduce the misbehaviour. As already shown, the code given above looks fine when compiled to DVI. Converting from DVI to PS or PDF results in an ugly output (on my system more extreme than shown by artemff). So I compiled the code example with the pdflatex compiler engine and during this run Metafont was called to generate the necessary font metrics. After this step the conversion from DVI to PS or PDF works fine.
If you are not stick to the use of the latex compiler engine, compile your documents directly with pdflatex to PDF. Moreover it is always good to use the right font and input encoding.
The fontenc manual can explain more.
If you are not stick to the use of the latex compiler engine, compile your documents directly with pdflatex to PDF. Moreover it is always good to use the right font and input encoding.
Code: Select all
\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Last char of caption of picture
localghost, Thank you... pdflatex produce correct text.