# Tag Info

## New answers tagged babel

5

The magyar option seizes the initiative and changes the code for \@chapter to reflect the original code in the class and ignores the settings by sectsty. It does nothing to \@schapter, which is the reason you see sans serif in unnumbered chapters. Use titlesec, instead: \documentclass[a4paper]{report} \usepackage[sf,bf]{titlesec} \usepackage[T1]{fontenc} ...

3

Use \def\magyarOptions{chapterhead=unchanged} before \usepackage[magyar]{babel} Code: \documentclass[a4paper]{report} \def\magyarOptions{chapterhead=unchanged} \usepackage[magyar]{babel} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage{blindtext} \usepackage{sectsty} \chapterfont{\usefont{T1}{qhv}{b}{n}\selectfont\huge} ...

1

Here is a solution \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage[magyar]{babel} \usepackage{blindtext} \usepackage{sectsty} \chapterfont{\usefont{T1}{qhv}{b}{n}\selectfont\huge} \sectionfont{\usefont{T1}{qhv}{b}{n}\selectfont\LARGE} \subsectionfont{\usefont{T1}{qhv}{b}{n}\selectfont\Large} \makeatletter ...

2

You are right in loading babel after fontspec. However, the GSF Artemisia font has no glyph at U+03DB GREEK SMALL LETTER STIGMA, but only the uppercase variant at U+03DA GREEK LETTER STIGMA. Happily, the aspect of the glyph at U+03DA is lowercase, so you can use it. \documentclass{article} \usepackage{unicode-math} \usepackage{fontspec} ...

1

unicode-math should be loaded always loaded after other font-settings, this will cure the missing item number problem. In addition, I recommend to use polyglossia instead of babel: \documentclass{article} %\usepackage[english,greek]{babel} \usepackage{polyglossia} \setdefaultlanguage[variant=modern]{greek} \setotherlanguage{english} ...

3

The fact you're using babel-french has nothing to do with the problem. Straight quotes are very rarely used in typography, so when you type the ' character, you get a curly glyph that serves both as a closing quote and as apostrophe. If you want a straight quote, you can use the glyph provided by textcomp. \documentclass{report} \usepackage[T1]{fontenc} % ...

4

The default computer modern doesn't have these glyphs. Add \usepackage{lmodern} or cm-super to your preamble, or install cm-unicode.

1

On Fedora, I've managed to solve an almost identical error message by installing the texlive-hyphen-portuguese package. Hence, try running something like sudo dnf install texlive-hyphen-portuguese On Ubuntu, substitute dnf for apt; the package name may have a different name there too. On older Fedora versions, replace yum for dnf.

1

According to the documentation of csquotes, there is no quote style predefined for Russian, and Bulgarian isn't even mentioned among the supported languages there (see table 2). The documentation is not very clear about it: "Quote Styles and Style Variants Defined by Default" could mean that these are just the default values which one is free to change. ...

3

The code in csvsimple.sty uses \roman in five places; since \roman is redefined by babel-spanish, this usage breaks. You can file a bug report to the author and, in the meantime, fix yourself the issue. \begin{filecontents*}{\jobname.csv} n,pibreal,pibnom,deflactor,c,isr,trc,tdeflactado,trcdeflactado,I,x,m ...

0

I've found a post suggesting that the problem is related to how spanish treats roman numbers, and suggest to use es-lcroman and es-ucroman. Only es-lcroman doesn't present the issue, which according to the manual it just ignores roman conversion and allows latex to define them.

4

In LaTeX, Version dates can be declared by: \ProvidesClass{<class name>}[YYYY/MM/DD ...] \ProvidesPackage{<package name>}[YYYY/MM/DD ...] \ProvidesFile{<file name>}[YYYY/MM/DD ...] and LaTeX provides: \@ifclasslater \@ifpackagelater \@iffilelater is missing and both commands can only be used in the preamble. Package ltxcmds closes ...

5

The babel language files use \ProvidesFile with some version information argument -- this setup is necessary to use the LaTeX core macro \@ifl@ter to check the file date, if it is applied with the correct extension. It checks the file date, see the definition and the usage in latex.ltx: \def\@ifl@ter#1#2{% \expandafter\@ifl@t@r \csname ...

2

Just uninstall the whole MiKTeX package itself (don't touch LyX), download from MiKTeX then do a whole reconfigure from within LyX. It worked. Things are back to normal now.

0

What worked for me is unchecking the option "Automatically fill header" under Document-> Settings-> PDF properties. I guess that just helps never loading babel and running into the problems caused by it.

2

The tkz-fct package uses \alph for making internal labels, but this fails when babel-greek is loaded, because \alph (actually the internal version \@alph) is redefined to produce Greek letters. This should be considered a bug in tkz-fct, but there is a workaround, albeit a bit ugly. \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} ...

4

I assume the OP has finished his book by now, but I found a solution and thought I'd share it anyway. With the csquotes package, a custom quote style can be declared with \DeclareQuoteStyle. The undesired "In: " can be removed from all citations using \renewbibmacro{in:}{}, and the page numbers can be omitted only for Japanese entries using the following: ...

2

The problem is in making babel-spanish and breqn into cooperating with each other. With \usepackage[spanish]{babel}, the < character is made active, to mean \es@use@shorthand < This command transforms < into an other character via \string when LaTeX is in certain states or else executes the associated shorthand. When in math, we of course want ...

2

If you reduce your example further, you end up with the following: \documentclass{article} \usepackage[spanish]{babel} \usepackage{breqn} \begin{document} $<$ \end{document} So there is some interaction with breqn and babel which causes the problem. If no features of the breqn package are used, you can just remove \usepackage{breqn}. However, it ...

1

Workaround: Search for the file where_ever_your_tex_dristibution_is/texmf-dist/bibtex/bst/harvard/dcu.bst copy it to your working directory, rename the copy to, e.g., dcu_NCH32.bst, and replace the two occurrences of " (eds)" with whatever you want. Than invoke the modified style with \bibliographystyle{dcu_NCH32}

1

If you want to use csquotes you should make the quotes active, and input them (also the colon) without spaces as spaces can insert unwanted break points: \documentclass[12pt]{article} \usepackage[paperwidth=14cm,paperheight=20.5cm]{geometry} \usepackage{libertine}% use this font and geometry width to reproduce bad break \usepackage{ifxetex} \ifxetex ...

4

For babel, you have to use \frenchbsetup{og=«, fg=»}. For polyglossia, you have nothing to do, except the package inserts a breakable space (bug?), so in case the space does break, you have to insert an unbreakable thin space by hand (\,`). % !TeX TXS-program:compile = txs:///xelatex/[--shell-escape] \documentclass[12pt]{article} ...

1

There's no way xesearch can work with babel-french. Both want to put - in a particular character class for exploiting the \XeTeXinterchartoks feature. However, you can directly input the en-dash and em-dash and the result is as expected, at least in your example. But malfunctions of xesearch might arise, because the character class of - will be 0 with ...

1

It is better to ask template question by using the ask a question button, where you can be sure that someone familiar with the templates handles your question. The language definition file for hungarian does not define a hungarian string for abstract. You gotta define one yourself. \def\magyarOptions{defaults=safest} ...

1

Apparently the issue has nothing to do with magyar. Neither \checktoopen nor \tttypeout{} seem to be defined in any of the packages included or in the article class. Environment (re)definitions take the form \renewenvironment{name}{before}{after}, where the after part specifies the code to be included whenever \end{name} is called. Your definition is ...

3

It seems that \makeatletter \def\@@magyar@setup@psheadings{} \makeatother after loading babel solves the problem. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[markcase=noupper,automark]{scrlayer-scrpage} \usepackage[magyar]{babel} \makeatletter \def\@@magyar@setup@psheadings{} \makeatother \begin{document} ...

Top 50 recent answers are included