Fonts & Character SetsAccented letters such as 'ą' and 'ę' are converted

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Vedyimyn
Posts: 4
Joined: Thu May 15, 2014 9:18 pm

Accented letters such as 'ą' and 'ę' are converted

Post by Vedyimyn »

Hello!

I have a problem with 'ą' and 'ę' letters. I have to write a document that can be easily copied to Notepad without losing any character. Unfortunately, 'ą' and 'ę' are converted to something like 'a˛' and '˛e'.

MWE:

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc} 
\usepackage[utf8x]{inputenc}
\usepackage{polski}
\usepackage{mathptmx}

\begin{document}
 Zażółć gęślą jaźń.
\end{document}
As you can see I use mathptmx package. I do so since I have to use a Times-like font.

Is there any way to include the proper 'ą' and 'ę' characters here (not the ones combined of two characters, ogonek+letter)? Or maybe there is a Times-like font that contains them?

I use Tex Live on Linux. I prefer not to use XeTex, because I'm unfamiliar with it (and I use a lot of mathematical symbols - I'm unsure if XeTex copes with them sufficiently well).

I'll appreciate any help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Accented letters such as 'ą' and 'ę' are converted

Post by kaiserkarl13 »

Is there any reason you don't want to use the standard commands that produce accents? For example,

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{txfonts} % or any font you wish
\begin{document}
  Za\.z\'o\l \'c g\c e\'sl\c a ja\'z\'n.
\end{document}
Those use 100% ASCII text, pretty much guaranteed to be compatible with even the meekest text editor.
Vedyimyn
Posts: 4
Joined: Thu May 15, 2014 9:18 pm

Re: A problem with 'ą' and 'ę' letters

Post by Vedyimyn »

I think that the source would be a bit cluttered if I included commands in place of some letters (a lot of letters in fact), so I'll do it only if nothing else works. At least I would if it actually worked. Unfortunately your MWE doesn't produce the correct output. Cedille differs from Polish ogonek. Just compare: ą - a̧, ę - ȩ.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Accented letters such as 'ą' and 'ę' are converted

Post by kaiserkarl13 »

Sorry to reply to a very old post, but I failed to catch this post when it was new, and if someone else finds it....

The command for the diacritical mark you wanted above is \k{e} and similar; you'll need T1 encoding using the fontenc package.
Post Reply