{languages} is about the specifics of using languages in (La)TeX documents, e.g. about switching {naming} and {hyphenation} patterns when typesetting multilingual documents. Popular packages are {babel} and {polyglossia}.

learn more… | top users | synonyms (1)

41
votes
5answers
28k views

How does one type Chinese in LaTeX?

Can anyone describe how one can type Chinese in LaTeX? When I compile this: \documentclass{article} \begin{document} 你好吗? \end{document} the resulting document shows nothing. For reference my IME ...
47
votes
6answers
25k views

Cyrillic in (La)TeX

What are different ways to use Cyrillic in (La)TeX? What are their pros and cons?
69
votes
6answers
7k views

What are good ways to make pdflatex output copy-and-pasteable?

One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the ...
33
votes
3answers
21k views

How to write Japanese with LaTeX?

I've recently started to use LaTeX but I've just encountered a problem, I tried searching it, although apparently no-one asked it before. I'd like to write using Japanese input, but when I typeset, ...
55
votes
1answer
4k views

LaTeX Introductions in languages other than English

Inspired by What is the best book to start learning LaTeX?, I thought that it might be useful to collect a list of the many brilliant introductory LaTeX books and tutorials written in languages other ...
53
votes
4answers
94k views

How to type special/accented letters in LaTeX?

How to type these special letters from European languages in latex? ä, é, and L'?
60
votes
4answers
5k views

Is there a BNF grammar of the TeX language?

I'm looking for a BNF grammar of the TeX language, does it exist? EDIT For those of us who are not computer scientists, a BNF grammar is one kind of formal description of a CFG: Backus Naur Form. ...
20
votes
2answers
2k views

babel: Adding ngerman' s language shorthands to english as the main document language

The (n)german language option of the babel package provides various shorthands related to hyphenation, e.g. "-: "an explicit hyphen sign, allowing hyphenation in the rest of the word" (manual, section ...
17
votes
4answers
7k views

Typesetting a document using Arabic script

I'm using TeXlive (2009-7) on Ubuntu 10.04. I've installed texlive-lang-arabic and I can't find out how should I compose the preamble to be able to use it. The babel's documentation I've found in the ...
35
votes
6answers
6k views

Is it possible to keep my translation together with original text?

I have an English article in LaTeX, which I'm going to translate to Russian. I want to keep my translation in sync with the original text. It means that I want every paragraph to stay as close to its ...
7
votes
2answers
3k views

\usepackage[turkish]{babel} and \includegraphics inconcistency

Here is my document : \documentclass[12pt]{book} % must-have packages \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} % This package will support Turkish chars % must-have packages ...
62
votes
4answers
11k views

What package allows Elvish in TeX?

Anyone who has read The Lord of the Rings will recognise the Elvish script at the top of this page (in the Tengwar alphabet). If this is meant to be an example of what is typesettable in TeX/related ...
31
votes
2answers
15k views

Extend a language with additional keywords?

I'm using listings and I want to extend a language with additional keywords for highlightning. I know there is an option morekeywords available, but that only works for a particular lstset declaration ...
19
votes
2answers
4k views

Getting Started to Xetex for Devangari?

I have learn LaTeX for a while. Now, I want to type Indic scripts using Tex and I found that XeTeX is the best because it supports unicode and opentype fonts. But the problem is there are not any ...
18
votes
1answer
19k views

Change Language in \usepackage[<language>]{babel}?

I've been trying to change the language of my LaTeX document by replacing \usepackage[swedish]{babel} with \usepackage[english]{babel} but I only get this message: ! Package babel Error: You haven't ...
50
votes
6answers
74k views

inputenc Error: Unicode char \u8: not set up for use with LaTeX

This is with ref to my previous question Package clash in multilingual report. \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
10
votes
1answer
2k views

How to write Bengali in LaTeX?

\documentclass{barticle} \title{EkiT pRbn/dh} \author{Ajana elkhk} \date{pNNicesh {oi}bshakh, 1413} \begin{document} \bng \maketitle \section{pRthm pirec/chd} rbiin/dRnaethr EkiT kibtar shuru inec ...
15
votes
3answers
5k views

How do I get Korean (Hangul) characters to typeset in LaTeX ?

I've been unable to find a concise answer anywhere else on the web. Since its only a few words, albeit crucial ones, that are in Korean I don't want to have to muck around with HLaTex or deviate from ...
25
votes
2answers
2k views

How to create multilingual (English, Japanese) bibliographies with biblatex, biber and polyglossia

I would like to update my bibtex file in a way that allows me to create multilingual bibliographies. Since I publish in English and Japanese, I will need this to work in a way that: In an English ...
4
votes
1answer
410 views

Translate paragraph environment

I need to translate some reserved word of paragraph environment to my own language; like Chapter, Table of Content, Example, Bibliography, and some more. How do I achieve that? I'm using LyX in Linux. ...
28
votes
3answers
27k views

Date format in LaTeX

I use UKenglish package. And the \date command produces the date like so: 10th October 2011. But I want just 10 October 2011; th should be omitted. How can this be done? I tried using datetime ...
12
votes
2answers
2k views

biblatex: per-entry language switching

According to biblatex manual (p.24), the hyphenation field in a bib-entry switches language on per-entry basis: hyphenation field The language of the bibliography entry. The identifier must be ...
31
votes
4answers
44k views

babel: english, american, USenglish

Does it make any difference (and if so, which) whether I use english, american, or USenglish as the option for the babel package? I've already looked into the package description, and it seems to be ...
9
votes
1answer
2k views

Tengwar script in TeX Live

I tried to compile this example but the LaTeX compiler gives the following errors. What can I do? name = tngani, rootname = tngani, pointsize = mktexmf: empty or non-existent rootfile! Cannot find ...
23
votes
3answers
1k views

Specifying multiple hyphenation exception lists for multi-lingual documents

This question led to a new feature in a package: babel By default, (La)TeX fails at hyphenating some words, e.g., the English word potable (should be pot-able) or the German word Mor-dop-fer ...
17
votes
4answers
3k views

biblatex: Switching languages for *citations* according to the bibentry's “hyphenation” field

Quoting from section 3.1.2.1 of the biblatex manual: [The babel] option controls which language environment is used if the babel package is loaded and a bibliography entry includes a ...
12
votes
2answers
5k views

babel with russian and english language

I need to use Russian in my article, but the default language has to be English. How do I do this? I use: \usepackage[russian]{babel} Result: all chapter names and date are in Russian. Change ...
8
votes
3answers
708 views

Korean characters scrambled [XeLaTeX; Noto Sans Korean]?

I was trying to find a font which has obsolete jamo and the right combining behaviour. Yesterday I found out about Noto Sans, which seems to have both of these. However, when I use it in XeTeX, I get ...
23
votes
3answers
17k views

No hyphenation patterns were loaded for the language

I'm using babel package for spanish language. However, each time I compile my document, the package babel throws me a warning: Package babel Warning: No hyphenation patterns were loaded for (babel) ...
16
votes
3answers
3k views

What is the deal about these semantic vs syntactic commands?

I keep hearing people on this site talking about "semantic" vs "syntactic" commands and that the "semantic" ones are somehow better. I don't really get what they are talking about, could you explain ...
13
votes
1answer
4k views

Typesetting any language, Vietnamese for example

I have this document which contains Vietnamese characters, and it doesn't compile correctly: \documentclass[letterpaper]{article} \usepackage[vietnam]{babel} \begin{document} Ðàn con chung ...
12
votes
3answers
647 views

putting a box around each line of text in a paragraph

In my environment I would like to automatically make a box around each individual line of text in a paragraph so that I can operate on each line. I think this should really be done in LaTeX rather ...
11
votes
2answers
3k views

How to automatically include command line session output in documents?

When I write documents that contain source code examples and snippets the listings package is a great solution to include such things. Especially with the \lstinputlisting command and ...
17
votes
3answers
348 views

Changing the suffix according to the figure number

In Turkish (and possibly in other similar languages), there are suffixes that change corresponding to the word they are applied. This also holds for the numbers. For example, in Figure \ref{fig1} ...
14
votes
3answers
669 views

How to sort alphabet index in Vietnamese correctly?

I want to use index in Vietnamese Alphabetically. The order must be a, b, c, d, đ, e, ê. But in following code. That order is wrong. The first is "Ê", not "A", the second is "Đ", not "B". How to ...
11
votes
3answers
958 views

Punctuation in bibliography with multiple languages

In a document written in a given language (in my case French but it may not matter so much) I have a bibliography mixing entries in different languages (in this case French, English and German). I ...
16
votes
4answers
1k views

Calculate prices

I want to calculate prices in a LaTex file. This means I want to add two numbers with exactly 2 decimal places and I want to multiply these values by an integer. An other thing is the output format. ...
10
votes
1answer
3k views

Switching languages in bibliography with biblatex

I would like to have a bibliography with both Cyrillic and Latin and the main document language being English. How can I make biblatex to automatically switch between languages? (without using XeTeX ...
15
votes
2answers
635 views

New language - hyphenation

I'm working in a project (Ubuntu Manual, if you're curious) which requires TeX to create a PDF document. But when we have almost all translated, I've found that there wasn't an hyphenation pattern for ...
14
votes
2answers
469 views

Japanese and Russian Characters in the same Document

I'm writing a document in English. However, I need to use a few words of both Japanese and Russian. In principle, it seems to work, but as soon as I used Japanese characters, I cannot use Russian ...
10
votes
1answer
746 views

What is a good strategy to internationalize a document class?

I am busy with a new document class and I have been trying my hand in internationalizing some of the contents. I have tried using translator from Beamer. Is this a good strategy? Can the code shown ...
9
votes
1answer
1k views

Replacing “and” by “og” and “In”by “I” in references and bibliograpy using natbib

Since I am writing in norwegian, I would like to chang the two words "and" and "in" into norwegian. "And" appears both in references in the text and in the bibliography, while "in" appears in the ...
8
votes
1answer
977 views

How to localize label using algorithm and algorithmic packages

I am writing a paper in Italian and I need to include pseudo code in my latex document so I am currently using the algorithm and algorithmic packages. At the top of every algorithm the label Algorithm ...
7
votes
2answers
629 views

Using the glossaries package in other languages.

I have just started using the glossaries package, and as I'm writing my documents in icelandic I run into a certain problem. The glossaries package assumes the words are in two forms, singular or ...
3
votes
1answer
956 views

Multilingual beamer presentations from a single souce?

I have a beamer presentation of which I have two language versions (german and english), more languages are upcoming. I keep both versions in one source and select the one to typeset with the comment ...
6
votes
1answer
863 views

Redefining “cited on” string (and others) in biblatex

I'm trying to modify the strings biblatex uses to set the "cited on" string used in the bibliography to identify the pages where a given references has been cited. What I gather from the biblatex ...
5
votes
1answer
839 views

How to change name separator in bibtex-generated bibliography to a different language

When I run BibTeX, it generates in entries with several authors something like this: Winfried Just and Martin Weese. If you write a text in a different language, I suppose it is more customary to ...
4
votes
2answers
519 views

Using Tikz Calendar in Portuguese as a Syllabus

I have been trying to use this question answer calendar among pages and in portuguese without much luck. For instance, when I attempt to display a larger than one page calendar, instead of having it ...
4
votes
3answers
1k views

Inserting some Arabic script in an English article

Until now I was using XePersian package to typeset Persian articles, now I want insert some Persian word in an English document, what is minimum code to do that without using XePersian package? ...
45
votes
8answers
2k views

Comparing typographic traditions for different languages

Sometimes students using LaTeX ask me how to do the typesetting of documents in French or Spanish. I'm not able to help them because I never learned to speak or write French or Spanish. Different ...