Tag Info

New answers tagged

1

You can download it on http://home.lu.lv/~drikis/TeX. Just tried the first example and it works, except the encoding should be L7x and not LV. The second (multilingual) example doesn't. I can try contacting the authors, but if I can't reach them, I could rework and extend it, and upload it to CTAN.


3

If using LuaLaTeX or XeLaTeX instead of pdfLaTeX is an option for you, do consider using the polyglossia package instead of babel. With polyglossia package loaded and the instruction \setmainlanguage{latvian} provided in the preamble, today's date (17 Apr 2014) will be rendered automatically as 2014. gada 17. aprīlī.


6

This is the list of currently babel supported languages: afrikaans.sty albanian.sty american.sty austrian.sty bahasam.sty bahasa.sty basque.sty breton.sty british.sty bulgarian.sty catalan.sty croatian.sty czech.sty danish.sty dutch.sty english.sty esperanto.sty estonian.sty finnish.sty francais.sty galician.sty germanb.sty greek.sty hebrew.sty ...


4

As @herbert already explained in his answer, ; and other characters are active in french. This is conflicting with TikZ, which is using ; to end a drawing command. To resolve the issue, one can use the tikzlibrary babel, which isnt doing more than \tikzset{ handle active characters in code, handle active characters in nodes } Now, you can still use ...


5

Use: [...] \usepackage{chronology} \let\CHRONOLOGY\chronology \let\endCHRONOLOGY\endchronology \def\chronology{\shorthandoff{;}\CHRONOLOGY} \def\endchronology{\endCHRONOLOGY\shorthandon{;}} [...] The ; is an active character in french, but used in TikZ. An environment like chronology is internally defined as \chronology and \endchronology. I save the old ...


1

There is a mailing list for TeX and hyphenation patterns. This is a good starting point for anything TeX-and-language-related. For babel you could file a bug report with the LaTeX project. For polyglossia you could also file an issue with the current maintainer.


6

Very likely you need option unicode for hyperref. It can be given the following way: \documentclass[hyperref={unicode}]{beamer} Alternatively (for other classes that load hyperref and do not have special options for specifying package options of loaded packages): \PassOptionsToPackage{unicode}{hyperref} \documentclass{beamer}


6

Fast solution for ShareLaTeX: upload the font file(s) into the project and use the fontspec package with ExternalLocation parameter in the xelatex engine. My best guess is that there is no solution for ShareLaTeX/WriteLaTeX at the moment. As far as I know, there is no font in TeX distribution supporting Tamil. There is/was support for Omega, see ...


3

You will I think find that it is much easier to use xelatex and fontspec rather than pdflatex and inputenc package. This is apparently supported on sharelatex. Running xelatex locally I get \documentclass{article} \usepackage{fontspec} \setmainfont{Vijaya}% or any system font that has this script \title{Tirukkural} \date{April 2014} ...


0

As far as I understand it, Babel will hyphenate every word using the rules for the current (declared) language. It doesn't look for the word in any dictionary, in the usual sense, but applies rules according to hyphenation patterns which are specific to each language. These are described in files such as frhyph.tex, dehyphn.tex or dehypht.tex.


10

this answer will not be as elaborate as the one by egreg, but i have some different information. essentially everything egreg says is correct, but the clue may lie in exactly which oxford dictionary was the basis for the list of hyphenated words that dominik used. i have just come into possession of a copy of the dictionary that was purportedly used: "the ...


12

According to the Oxford dictionary the correct hyphenation in British English is al-ter-nate The pattern for British English were prepared in 1996 by Dominik Wujastik using a list of hyphenated words made available by Oxford University Press and is present on CTAN as ukhyph.tex. In 2008, the team in charge of maintaining hyphenation patterns for TeX Live ...


5

Replicate what \tableofcontents does. For defining the English titles you have to type them just below the French one, with the macro \addtoetoc \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} \makeatletter \newcommand\englishtableofcontents{% \if@twocolumn ...


1

Yes, this seems possible, and there even is a detailed Howto, if you are using a KOMA-script class for you document. Please have a look at the KOMA-script manual, section »Management of Tables and Lists of Contents Using tocbasic«, a way which is a bit easier is described in section 15.5: »Everything with One Command Only«, but you may read the example under ...


2

No, but there are things you can do that makes it less of a burden. It's not that common that a document switches language just like that, since that can be confusing not only for LaTeX, but for readers as well. Often the foreign text is divided from the text around it in some way that you have markup for anyway. Then let that markup do the language switch ...


2

If code which uses \usepackage[english]{babel} is run on an older installation, you may get UK or you may get US hyphenation patterns depending on the local settings. This is because older versions of babel encouraged you to customise language.dat according to local need. Here's an excerpt from an older version of language.dat I found online: % The ...


4

This is a variant problem of Problem with babel and tikz using \draw \documentclass[11pt]{article} \usepackage[brazil]{babel} \usepackage{amssymb, tikz-cd} \tikzset{ every picture/.append style={ execute at begin picture={\shorthandoff{"}}, execute at end picture={\shorthandon{"}} } } \begin{document} \[ \begin{tikzcd} 0 \ar{r} & L' ...


2

The documentation to frenchb makes clear that it's intentional. Some settings change with the language, and some are consistent in the document depending on the document language (p. 2). Page 4 says it has been different, and that there is a setting that "should no longer be used" that emulates this. It does work though, if your main language is French: ...


3

Use \protect to prevent too early expansion in moving arguments such as in titles: \section{Παράδειγμα \protect\eng{Something}} Moving means here, that the titles will be copied to the table of contents as well. They should do that in their original version, not expanded, that's why the \protect. Furthermore, you could might distinguishing betweeen TOC ...


1

As a workaround I have defined new commands (instead of shorthands) like this: \newcommand{\HH}{\penalty1000-\hspace{0pt}} and say Wirsing\HH Kartoffel\HH Bett. Not beautiful or elegant, but it works. Edit: Now that I'm happily using TeXLive 2013 instead of 2011 (my Editor was still pointed to the old directory) I could also write ...


0

When you change what babel languages you use, it's good to remove the .aux file which contains things LaTeX saves from run to run, since it will contain lines that only work with the babel settings you had before. If you rerun after removing the .aux file and get errors anyway they will have linenumbers, maybe pointing to lines where you do something like ...


5

Oh that's a bit odd, you should maybe report it as a bug in babel, however an extra group fixes it: \documentclass[spanish,russian]{scrbook} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{misccorr} \usepackage{array} \begin{document} \selectlanguage{russian} \foreignlanguage{spanish}{This text is ok.} Здесь всё ...


6

Saying \shorthandon{?} makes ? an active character. So, when the argument to \title is absorbed, in the first example, it is active and, at \maketitle, LaTeX will use the current definition for it, which happens to be the one defined by babel-french. On the contrary, in the second case the \shorthandon command is executed when the argument to \title has ...



Top 50 recent answers are included