# Tag Info

1

To get proper code markup: \begin{filecontents}{\jobname.bib} @book{bookentryA, editor={smith and Wesson}, langid={english} } @book{bookentryB, editor={smith and Wesson}, } @book{bookentry, editor={smith and Wesson}, langid={ngerman} } \end{filecontents} ...

4

The first three (or more characters) of a string can be extracted with \StrLeft{somestring}{3} from the xstring package. I wrapped a macro named \dateshortmonthname with one optional argument around \StrLeft{\datemonthname}{#1} where #1 defaults to 3 if not specified otherwise (or not at all). \documentclass[spanish]{article} \usepackage{datenumber} ...

5

If you move \usepackage[T1]{fontenc} to before \usepackage[spanish]{babel} you get something that looks sort of correct, is this what you want? MWE: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{gfsartemisia-euler} \usepackage{amsmath} \begin{document} $$\lim_{t\to a}{f(t)}$$ ...

2

Spanish babel offers a switch to have accented or unnacented operators (lim/lím, max/máx, min/mín, inf/ínf, mod/mód, etc.). It seems to work with the switch \unaccentedoperators In any case, I would wait for another answer because this just removes the addition made by babel leaving the original unaccented operators. There seems to be a problem with the ...

5

First make sure you installed Tex Live properly, the command is sudo apt-get install texlive-full Then you can try setting your document as utf-8 with inputenc (compiled with pdflatex). \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[main=english,czech]{babel} \begin{document} This is some text in english. ...

3

You can use just \unskip to remove that unwanted space before &nbsp;: \documentclass{article} \usepackage[frenchb]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} some text \og and more text \fg\ and again some text \end{document} you can redefine \og and \fg either in the custom config file or in frenchb.4ht: ...

4

This is described in the babel documentation as a typical error, see section 1.5 on Shorthands. The problem is caused by the combination "}; the solution given is to add an empty pair of braces so you write "{}} instead. \documentclass[norsk]{beamer} \usepackage[utf8]{inputenc} \usepackage{babel} \usetheme{Warsaw} \begin{document} \begin{frame} ...

2

I think it's a bad error of memoir to define \Aref that is not really meaningful for appendices; it's also wrong in defining \Cref for chapters, because this conflicts with cleveref. However, in the case of \Cref, the cleveref package will happily do the redefinition, while in case of \usepackage[hungarian]{babel}, \Aref is not redefined because the code is ...

3

babel-polish changes \selectfont due to the differences in the encoding needed for Polish. It is just telling you this has been done. This is part of what you pay babel to do. Here's the relevant bit from the language file babel loads: \ifx\selectfont\@undefined \ifx\prm\@undefined \addto\rm{\textpl}\else \addto\prm{\textpl}\fi \ifx\pit\@undefined ...

1

I guess the differences for canadian and british are small to non-existent. You could create an lbx file that inherits british and makes needed changes, or just map the canadian language to use the british biblatex-chicago localization file. \documentclass{article} \usepackage[canadian]{babel} \usepackage{biblatex-chicago} ...

2

Here is rather crude solution, which just inserts a \- between a vowel and some consonants: \documentclass{article} \usepackage{luacode} \begin{luacode*} function insdisc (s) -- add more letters if necessary s = s:gsub( [[([aeiou])([bcfgklmnpqtxz])]] , '%1\\-%2' ) -- but don't leave a single char alone: s = s:gsub( '^(.)\\%-', '%1') s = ...

2

Using files with spaces in their names is usually discouraged. Quotes around the name are a partial solution, but when babel is loaded along with language modules that define shorthands with " it won't work. The solution is not using files with spaces in their names or, if you can't avoid it, loading also \usepackage{grffile} (after babel is best).

Top 50 recent answers are included