Text FormattingLetter Spacing in Document Language other than English

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
bistro
Posts: 3
Joined: Mon Mar 18, 2013 7:18 pm

Letter Spacing in Document Language other than English

Post by bistro »

Hi,

I have a problem with using the soul package in document which has another document language than English. This may be a know problem, but the solutions I found on the Internet do not work for me (see here).

I want to use increased letter spacing in order to cite certain texts correctly. I write in LyX, use the document class book and chose naustrian as the standard language.

In my document preamble I have this.

Code: Select all

\usepackage{soul}
\usepackage[naustrian]{babel}
When I write \so{letterspacing} this is inserted in this way

Code: Select all

\so{\foreignlanguage{naustrian}{verantwortliche}}
I then try to render the document and receive the following message:

Code: Select all

Package babel Error: You haven't defined the language {naustrian} yet.
Does anyone have an idea how to handle this issue?
Thank you!
Last edited by bistro on Mon Mar 18, 2013 8:54 pm, edited 2 times 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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Letter Spacing in Document Language other than English

Post by cgnieder »

Hi
bistro wrote:I [...] chose naustrian as the standard language.
In this case using \foreignlanguage{naustrian}{<text>} doesn't seem to make much sense...

Anyways:
bistro wrote:When I write [...]

Code: Select all

\so{\foreignlanguage{naustrian}{verantwortliche}}
and try to render the document I receive the following message:

Package babel Error: You haven't defined the language {naustrian} yet.
change the order of the commands: \foreignlanguage{naustrian}{\so{verantwortliche}}

Regards
site moderator & package author
bistro
Posts: 3
Joined: Mon Mar 18, 2013 7:18 pm

Re: Letter Spacing in Document Language other than English

Post by bistro »

Thanks! - That solved the problem!
Post Reply