Fonts & Character Setsregistered trademark symbol in section

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
_DoEasy
Posts: 3
Joined: Fri Nov 09, 2012 3:31 pm

registered trademark symbol in section

Post by _DoEasy »

Hi,

it's the first time for me having a trouble with latex for which i didn't find a solution.

I try to use the registered trademark symbol inside of a section, like following:

Code: Select all

\section{Test\textsuperscript{\textregistered}Test}
Which works, but my Latex environment (Kile) shows multiple warnings:

Code: Select all

LaTeX Font Warning: Font shape `OMS/phv/bx/n' undefined
(Font)              using `OMS/phv/m/n' instead on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\mathsurround' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\z@' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `math shift' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `superscript' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\afterassignment' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<def>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\f@size' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\afterassignment' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<def>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\f@baselineskip' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<def>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\f@linespread' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<let>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\baselinestretch' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<def>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\<def>-command' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\font@name' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\U/msb/m/n/10' on input line 96.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `math shift' on input line 96.
I already found out that the problem concerns the trademark symbol. Trying out some hints I found in the internet didn't remove the warning (for example using the math environment for the symbol).

Does anyone know a solution or could give me hint !?

Recommended reading 2024:

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

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

registered trademark symbol in section

Post by cgnieder »

Welcome to the LaTeX community!

As you can see most are hyperref warnings. They tell you that the registered trademark symbol and superscripted text can not be used in the PDF bookmark. For such cases hyperref offers \texorpdfstring{TeX code}{PDF code}

Code: Select all

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\begin{document}

\section{Test\texorpdfstring{\textsuperscript{\textregistered}}{ (R)} Test}

\end{document}
The remaining warning tells you that the symbol is not available in the current font and that TeX uses another one instead for the symbol.

Regards

PS: for future questions: please try to always include a Infominimal working example.
site moderator & package author
_DoEasy
Posts: 3
Joined: Fri Nov 09, 2012 3:31 pm

registered trademark symbol in section

Post by _DoEasy »

Thanks a lot.

Now the warnings are gone, but the hyperref in the pdf shows
text(R)text
, isn't there a trademark symbol which can be used within the hyperref?
Inside the text the section looks perfect, a real trademark symbol is shown.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

registered trademark symbol in section

Post by cgnieder »

Quite to my surprise there is:

Code: Select all

\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\begin{document}

\section{Test\texorpdfstring{\textsuperscript{\textregistered}}{\textregistered} Test}

\end{document}
I would have believed that the trademark symbol is not allowed in the PDF string but apparently it is.

Regards
site moderator & package author
_DoEasy
Posts: 3
Joined: Fri Nov 09, 2012 3:31 pm

Re: registered trademark symbol in section

Post by _DoEasy »

Again, thanks a lot.

That is exactly what I was looking for!

regards
Micha
Post Reply