Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a strange problem with font encoding(?). pdflatex changes the Polish letters 'ą' and 'ę' to '1.39a' or '1.39e'.

I use the following packages:


I did not modify (no updates, no new installations) my LaTeX distribution (TeXlive), but a few days earlier everything was fine. What is going on?

share|improve this question
You need to have a font that supports them too. Try \usepackage{lmodern}. –  Alan Munn Oct 27 '11 at 0:19
It didn't work. I'm sure, I have everything what I need to write in polish, because I use this preamble since year and it's worked. Until now :/ –  Norv Oct 27 '11 at 0:30
If you compile a document with just those packages and the two characters 'ą' and 'ę', does it not work? Do you get any warnings in the log? If so, report them back here. –  Alan Munn Oct 27 '11 at 0:36
There is no warnings... Here's log file: dl.dropbox.com/u/3837977/document.log –  Norv Oct 27 '11 at 0:53
I would change the loading order: (1) fontenc; (2) inputenc; (3) polski –  egreg Oct 27 '11 at 6:35

1 Answer 1

Don't redefine the command \k (probably you are using it in some picture code).

^^c4^^85 %ascii-alias for a with ogonek

\def\k{1.39} ^^c4^^85


And next time: Don't post code snippets. Make a complete minimal example. It is simply inconsiderate to waste other peoples time and let them guess around when your code could show the source of the problem.

share|improve this answer
I definitely agree with you that the OP should post a complete minimal example, but the fact that polski relies on a working \k seems a bug of its own. The purpose of the \makeatletter trick is exactly to avoid this kind of problems, so packages should use it whenever possible. –  Federico Poloni Oct 27 '11 at 15:06
@FedericoPoloni: \k is a kernel command for the "accent" ogonek. It is similar to \c or \d or \". It is fontenc (the OT4 encoding) which relies on it and it is dangerous to redefine such commands. The OP is probably doing it by using \k in a \foreach loop. \makeatletter has nothing to do with it and polski is not at fault (at least as far as I can see from the few informations the OP provided). –  Ulrike Fischer Oct 27 '11 at 15:49
This has nothing to do with polski.sty, which uses \k normally. The problem is that the OP probably used \def instead of \newcommand and overwrote the definition of \k. (Or as Ulrike just said, somewhere within a \foreach loop.) –  Alan Munn Oct 27 '11 at 15:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.