Text FormattingFilling Text not generated with Language Specifications

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
xjrecina00
Posts: 2
Joined: Wed Nov 27, 2013 1:57 pm

Filling Text not generated with Language Specifications

Post by xjrecina00 »

This works (generate lorem ipsum paragraphs):

Code: Select all

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}

\usepackage{lipsum} % just to generate filler text

\begin{document}

\chapter{Some Chapter}
\lipsum[1-4]

\chapter{Neeext}
\lipsum[1-4]

\end{document}
This does not work. Why? I only add (specify) czech for babel.

Code: Select all

\documentclass[12pt]{report}
\usepackage[czech]{babel}
\usepackage[utf8]{inputenc}

\usepackage{lipsum} % just to generate filler text

\begin{document}

\chapter{Some Chapter}
\lipsum[1-4]

\chapter{Neeext}
\lipsum[1-4]

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Filling Text not generated with Language Specifications

Post by nlct »

For some language settings, babel makes the hyphen character active. You need to switch that off via \shorthandoff{-} in this type of situation:

Code: Select all

\documentclass[12pt]{report}
\usepackage[czech]{babel}
\usepackage[utf8]{inputenc}

\usepackage{lipsum} % just to generate filler text

\begin{document}
\shorthandoff{-}

\chapter{Some Chapter}
\lipsum[1-4]

\chapter{Neeext}
\lipsum[1-4]

\end{document}
Regards
Nicola Talbot
xjrecina00
Posts: 2
Joined: Wed Nov 27, 2013 1:57 pm

Re: Filling Text not generated with Language Specifiications

Post by xjrecina00 »

Thanks. It helps a lot.
Post Reply