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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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