LyX ⇒ Language issues during preview in DVI and PDF
Language issues during preview in DVI and PDF
I am quite new to LyX and I apologize in advance if this is a very basic question.
I have been using LyX 1.6.8 to write in Brazilian Portuguese. I changed the language to Portuguese on "settings".
I have divided my text into Parts, Sections, etc. And I also have added tables and figures.
When I'm looking at the LyX document, everything looks fine and all these names ("Part I", "Table 3", "Figure 2", etc) appear in Portuguese. But when I view in DVI or PDF, some of the "Parts" appear in Portuguese, some in English. And all tables' and figures' headings appear in English.
I think it must be a bug, since it happens to some names, but not all, and the document is set to be in Portuguese.
Any clues?
Thank you.
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
Re: Language issues during preview in DVI and PDF
Re: Language issues during preview in DVI and PDF
"Table" and "Figure" appear in the DVI preview in English, when it should be in Portuguese.
Thanx.
- Attachments
-
- example.lyx.zip
- (3.27 KiB) Downloaded 172 times
Language issues during preview in DVI and PDF
Re: Language issues during preview in DVI and PDF
As long as we're here, I have another question regarding tables.
In the same example I attached previously, when I view the text the table captions and the actual tables are not aligned. The caption in centralized, but the table is not. Do you know how to fix this?
Re: Language issues during preview in DVI and PDF
Note: You'll probably want to move the note which is located below the table in your example too. Consider creating another row and putting the note into it. You may select all cells of the newly created row and use "Set multi-column" option on "Table toolbar" (take a look at the bottom of the screen, the last icon on the right, the one with a green-colored cell).
Re: Language issues during preview in DVI and PDF
I tried to find info on changing the color of the caption of a table/figure (such as "Table 1", "Figure 2", etc), but had no success. Also I would like to change the colors of top and bottom lines on a table. Is there a straightforward way to do this?
Language issues during preview in DVI and PDF
Code: Select all
\usepackage{caption}
\usepackage{color}
\DeclareCaptionFont{red}{\color{red}}
\DeclareCaptionFont{green}{\color{green}}
\DeclareCaptionFont{blue}{\color{blue}}
\captionsetup{labelfont={blue,bf},textfont=green}
Re: Language issues during preview in DVI and PDF
Also, in case someone reads this discussion looking for the same answers, I found, in the documentation of the package you recommended above, info on another package (floatrow) which allows you to align pictures to the notes that come underneath them.
Thanx again.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Language issues during preview in DVI and PDF
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10