LyXLanguage functions of error type theorem

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
csfab
Posts: 6
Joined: Sun Oct 31, 2010 11:07 pm

Language functions of error type theorem

Post by csfab »

Hello, I am a user's recent lyx, and I'm loving it, and do not understand much English as I am Brazilian and Portuguese-BR use, I have the following problem.

I am doing a mathematics text and when you put a function for example - theorem, theorem appears in lyx, but when I generate the pdf file is in English, has put all languages into Portuguese, but not working.

Note: use fedora 13
No more waiting.
Last edited by csfab on Tue Nov 02, 2010 7:21 pm, edited 1 time 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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Language functions of error type theorem

Post by meho_r »

Please, create an example .lyx file which shows the problem, put it in a ZIP archive and attach it to your next post.
csfab
Posts: 6
Joined: Sun Oct 31, 2010 11:07 pm

Re: Language functions of error type theorem

Post by csfab »

Where it should be "Exemplo" which is the translation for the Portuguese sample is in English,ie example, so does Theorem, summary, definition
Attachments
Exemploslyx.zip
(72.23 KiB) Downloaded 146 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Language functions of error type theorem

Post by meho_r »

I'm afraid manual work from your side is required. You have to do the following:

1. Find files theorems-ams.inc and theorems-starred.inc which are located in folder layouts inside SystemDir.

2. Copy these two files into layouts folder inside your UserDir.

3. Edit those copied files and replace English strings with corresponding Portuguese (e.g. replace
\newtheorem{defn}[thm]{Definition} with \newtheorem{defn}[thm]{Definição}).

4. After you finished editing, restart LyX and see if changes are applied.

NOTE 1: In case you need English terms later, just remove those two files from your UserDir.

NOTE 2: Naturally, to change names/titles for Table of Contents and other parts of a document it's enough to set language in Document > Settings > Language.
csfab
Posts: 6
Joined: Sun Oct 31, 2010 11:07 pm

Re: Language functions of error type theorem

Post by csfab »

Thank you, worked perfectly
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Language functions of error type theorem

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
csfab
Posts: 6
Joined: Sun Oct 31, 2010 11:07 pm

Re: Language functions of error type theorem

Post by csfab »

Sorry I said it worked, but had not tested the function definition, theorem, corollary and other works fine but setting gives an error like the image
Attachments
screen.jpg
screen.jpg (212.15 KiB) Viewed 4789 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Language functions of error type theorem

Post by meho_r »

Please, copy theorems-ams.inc and theorems-starred.inc you modified, put them in a ZIP archive and attach them to your next post.
csfab
Posts: 6
Joined: Sun Oct 31, 2010 11:07 pm

Re: Language functions of error type theorem

Post by csfab »

As requested
Attachments
Teorema.rar
(2.41 KiB) Downloaded 155 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Language functions of error type theorem

Post by meho_r »

Ah, accents issue. Just replace ç with \c{c} and ã with \~{a}. Same goes for other non-English characters (consult, e.g., this table for infos about accents).
Post Reply