LyX ⇒ Language functions of error type theorem
Language functions of error type theorem
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.
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.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Language functions of error type theorem
Please, create an example .lyx file which shows the problem, put it in a ZIP archive and attach it to your next post.
Re: Language functions of error type theorem
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 148 times
Language functions of error type theorem
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.
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.
Re: Language functions of error type theorem
Thank you, worked perfectly
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Language functions of error type theorem
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
Best regards and welcome to the board
Thorsten
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: Language functions of error type theorem
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 (212.15 KiB) Viewed 4864 times
Language functions of error type theorem
Please, copy theorems-ams.inc and theorems-starred.inc you modified, put them in a ZIP archive and attach them to your next post.
Re: Language functions of error type theorem
As requested
- Attachments
-
- Teorema.rar
- (2.41 KiB) Downloaded 158 times
Language functions of error type theorem
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).