Setting up LaTeX for preparing documents in Polish


Each country has different standards for documents’ typesetting. These include the way we format table of contents, captions for figures and tables, etc. In this post I present my favourite settings for LaTeX documents in Polish.

Most often I attach the following packages while I am preparing articles in Polish (put the code right after \documentclass[...]{...}).

\usepackage[utf8]{inputenc} % or cp1250/latin2
\usepackage[T1]{fontenc}
\usepackage[T1,plmath]{polski}
\usepackage[polish]{babel}
\selectlanguage{polish}
\let\lll\undefined % to avoid babel-amssymb conflict, see below
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

By default, tables of contents are not formatted according to Polish typesetting standards. Here is a method to change it.

\usepackage[nottoc]{tocbibind}
\usepackage[subfigure,titles]{tocloft}
\tocloftpagestyle{fancy}
\renewcommand{\cfttoctitlefont}{}
% \renewcommand{\cftbeforetoctitle}{}
\renewcommand{\cftaftertoctitle}{}
\setlength{\cftaftertoctitleskip}{0pt}
\setlength{\cftbeforetoctitleskip}{0pt}
\setlength{\bibsep}{1pt}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\renewcommand{\cftsecaftersnum}{.\ }
\renewcommand{\cftsubsecaftersnum}{.\ }

Additionally, you may wish to change the way figure captions (always below the figures, no dot after the caption!) and table captions (always above) are typeset:

\usepackage{caption}
% \captionsetup{labelsep=period}
\captionsetup{font=small,labelfont=bf,labelsep=period,justification=centering}
\addto\captionspolish{\renewcommand{\figurename}{Rys.}}
\addto\captionspolish{\renewcommand{\tablename}{Tab.}}
\addto\captionspolish{\renewcommand{\seename}{zob.}}


Marek Gągolewski

Tagged with: ,
Posted in Blog/LaTeX