# Tag Info

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 ...

4

I was looking for a solution because I knew one must exist. The original TikZ code was from some example for using ntheorem shady theorems environment, and I had a working example of that. So obviously something in the ntheorem preamble was making the TikZ code work. But after a couple hours of sleep, my brain cracked up the mystery. ...

3

Not remotely an expert on RTL languages and LaTeX, and also not remotely and expert on Hebrew, but my "experience" (based entirely on one answer to questions on this site), suggests that compiling with lualatex and using the fontspec package may be helpful. You will need to replace freesans with a different font name if you don't have it on your system. ...

3

There's a bug in the french module of babel. The \dots command is redefined to be \relax\csname\ifmmode M\else T\fi dots@\endcsname so in math mode \Mdots@ is executed, which expands to \@xp\mdots@, which is wrong: it should simply be \mdots@. Indeed, patching \dots gives the expected result: \documentclass{article} \usepackage{amsmath} ...

3

A solution without xparse: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{letltxmacro,amsmath} \LetLtxMacro\amsdots\dots \usepackage[french]{babel} \AtBeginDocument{% \LetLtxMacro\frenchdots\dots \everymath{\LetLtxMacro\dots\amsdots}% \everydisplay{\LetLtxMacro\dots\amsdots}% } \renewcommand*\to{\DOTSB\myto} ...

4

\dots of amsmath checks the next token and also checks the meaning of the next macro if necessary, if it starts with \DOTSB. The parsing for an optional argument prevents this detection, because it is implemented by more than one macro (mainly because of \futurelet). Therefore \dots does not see \DOTSB, the marker used by \dots. The example splits the macro ...

1

Thanks to moewe's answer here, I was able to figure out how to change all long dates in the entire document to Australian format. I then figured out how to display all short dates in d/m/y format (using code found in british.lbx, which is where australian.lbx inherits its short date format from). This answer changes the date formats (both short and long) and ...

3

If you don't need to use spanish quotes, just add es-noquoting to babel options and TiKZ arrows will appear again. \documentclass[pdftex,spanish]{article} \usepackage[es-noquoting]{babel} \usepackage{tikz} \begin{document} Simple arrow: \begin{tikzpicture} \draw[->] (-1.5,0) -- (1.5,0); \end{tikzpicture} \end{document} If you need spanish ...

Top 50 recent answers are included