Fonts & Character Setsverbatim Polish

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Junior
Posts: 1
Joined: Thu Sep 29, 2011 12:38 am

verbatim Polish

Post by Junior »

Dear all,

I try using Polish characters in \verbatim. S, ą, ę ,ń ,ó ,ś work fine, but Ł ,ł ,ż won't work. In my preamble, I have
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

I am running Latex on Debian stable.

I've spent quite some time searching the net - without any success. Any help would be highly appreciated!!!

Recommended reading 2024:

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

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

User avatar
justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

verbatim Polish

Post by justdeath »

You should definitely define polish for babel:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage[polish]{babel}

\begin{document}

Polish text: S, ą, ę ,ń ,ó ,ś; Ł ,ł ,ż.

Verbatim: \verb|S, ą, ę ,ń ,ó ,ś; Ł ,ł ,ż.|

\end{document}
Also you should use utf8x instead of utf8.

Nikolay
Post Reply