Theses, Books, Title pagesCan I use this template with the Spanish language?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Can I use this template with the Spanish language?

Post by templateuser »

Sorry, I'm just learning how to use Latex and I came across this wonderful template. Is there a way to use this template with the Spanish language? That is, is there a way to change the template in such a way that the document labels (chapters, sections, theorems, definitions, examples, ect) all come out in Spanish? If so, how can I go about making such change? Thank you in advance for taking the time to answer my question. :)

Mario

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Can I use this template with the Spanish language?

Post by Vel »

Hi Mario,

You can definitely use it with Spanish! There's two things you will need to do, first, go to structure.tex and change \usepackage[english]{babel} to \usepackage[spanish]{babel}. This will change the figures, tables, table of contents, dates, etc text to Spanish. You'll have to skip the \lipsum{} errors as it seems to have issues with other languages.

Next, you need to change the text for the theorems, exercises, definitions, vocabularies, etc manually in structure.tex. Just search for "% Defines the theorem text style for each type of theorem to one of the three styles above" and change the names in that block.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Can I use this template with the Spanish language?

Post by templateuser »

Hi, sorry if I am out of place but I tried to follow the same advice for option [brazil] and got the message below. Can you help please?

Code: Select all

 ("C:\Program Files\MiKTeX 2.9\tex\latex\biblatex\lbx\brazil.lbx"
("C:\Program Files\MiKTeX 2.9\tex\latex\biblatex\lbx\brazilian.lbx"))

Package biblatex Warning: 'babel' detected but 'csquotes' missing.
(biblatex) Loading 'csquotes' recommended.
(C:\Users\hqsaearp.IME.000\Desktop\LinhaEnsino\main.aux
("C:\Program Files\MiKTeX 2.9\tex\latex\biblatex\lbx\english.lbx")
! Package babel Error: You haven't loaded the option english yet.

See the babel package documentation for explanation.

Type H <return> for immediate help.
...
l.24 \select@language{english}
? 
hqsaearp
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: Can I use this template with the Spanish language?

Post by Vel »

Hey,

According to http://en.wikibooks.org/wiki/LaTeX/Internationalization you need to use "brazilian" for the babel package, or alternatively "portuguese".

Often times when you change languages you need to trash your auxiliary files to get rid of those errors. You can also just skip them and it should work after 2 compilations.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Spiros
Posts: 1
Joined: Fri Oct 20, 2017 11:38 am

Can I use this template with the Spanish language?

Post by Spiros »

Hi,
a long time since the last reply to this post, i got a question on it though.
I find the \usepackage[english]{babel} and for changing it to Greek, i guess i have to replace the word "english" in the bracket with the word "greek".

Afterwards, the direction is to
change the text for the theorems, exercises, definitions, vocabularies, etc manually in structure.tex. Just search for "% Defines the theorem text style for each type of theorem to one of the three styles above" and change the names in that block.
I spotted where this is located in the structure.tex file, but what exactly am i supposed to change with what?

I am new to latex so may question may seem obvious..

I am using texmaker 4.4.1 as an editor under ubutnu 16.04.2

thanks for any reply

Spiros
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Can I use this template with the Spanish language?

Post by Johannes_B »

Have a look at line 231 (or somewhere near) and you will find the following line:

Code: Select all

% Defines the theorem text style for each type of theorem to one of the three styles above
You have to define the names of Corollaries, Theorems etc. for you native language. But you only have to do that, if you are using them. If there are none of those defined, no need to do anything. Check the output for english words where you would have suspected greek words.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jakubjasan
Posts: 1
Joined: Thu Jan 04, 2018 10:57 pm

Can I use this template with the Spanish language?

Post by jakubjasan »

Hi,
I want to use the tempate for a czech book, so I changed the structure.tex on line 31 to:

Code: Select all

\usepackage[czech]{babel}
Unfortunately when I do this, the boxes for Definitions, Examples etc. stop working (No box or any background color appears). When i change it back to English it works perfectly. Other settings connected with language seem to be OK.

Do you have any clue how to fix this?

Thanks!
Jakub
Post Reply