Hello
My problem is with the hyperref and t1enc package.
I use MikTex and recently updated it's packages.
Since then when I use the hyperref and t1enc packages,
I can't write the \H{o} accented char to the pdftitle
for example. It prints a circled R instead.
See the mwe.tex for details.
The title in the document prints an ő correctly
The input file's encoding is UTF-8 without BOM.
What can be done to solve this? If i don't use t1enc
it prints o125 o in the pdftitle.
Major
Text Formatting ⇒ hyperref, t1enc and \H{o}
hyperref, t1enc and \H{o}
- Attachments
-
- mwe.tex
- The minimal working example
- (191 Bytes) Downloaded 364 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
hyperref, t1enc and \H{o}
The t1enc package is obsolete [1]. A modified version of your example works partway if you swap the option to \hypersetup.
But you will get a warning.
Perhaps the fontenc manual has an answer since it seems to be a problem of font encoding (although the warning comes from hyperref).
[1] View topic: Obsolete packages and document classes — Avoid usage!
Thorsten
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{%
pdftitle={The title with \H{o}}
}
\title{The title with \H{o}}
\begin{document}
\maketitle
\end{document}
Code: Select all
Package hyperref Warning: Glyph not defined in PD1 encoding,
(hyperref) removing `\H' on input line 6.
[1] View topic: Obsolete packages and document classes — Avoid usage!
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: hyperref, t1enc and \H{o}
Hello
Thanks, then I will not use t1enc package.
I compiled your code, saw the warning but in
the pdf title there is only an o not ő.
So it's better but still not good enough.
What can I do?
Thanks, then I will not use t1enc package.
I compiled your code, saw the warning but in
the pdf title there is only an o not ő.
So it's better but still not good enough.
What can I do?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
hyperref, t1enc and \H{o}
I get the correct character in the title. But if you are able to insert the „ő“ here, then you can also insert it directly in the source.
That's what the inputenc package is for. And I also remembered and additional option for the hyperref package (see code above). This works fine for me. And the warning also vanished.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[unicode]{hyperref}
\hypersetup{%
pdftitle={The title with ő}
}
\title{The title with ő}
\begin{document}
\maketitle
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: hyperref, t1enc and \H{o}
Thanks, now it's perfect!
Extra thanks for the quick solution!
Major
Extra thanks for the quick solution!
Major