Hi,
when I use \pdftooltip and the Masters/Doctoral Thesis Template from http://www.latextemplates.com/template/ ... ral-thesis , Latex adds undesired space in front of the "tooltipped" word. This happens only with the Thesis document class. How can I use the tooltips and avoid the additional whitespaces?
Thanks for any help,
Jos
Theses, Books, Title pages ⇒ Pdftooltip adds undesired space
- Stefan Kottwitz
- Site Admin
- Posts: 10308
- Joined: Mon Mar 10, 2008 9:44 pm
Pdftooltip adds undesired space
Hi Jos,
welcome to the forum!
Do you have a specific code sample to test and to see that behavior? In the meaning of a
minimal working example. That would make it easier to help.
Stefan
welcome to the forum!
Do you have a specific code sample to test and to see that behavior? In the meaning of a

Stefan
LaTeX.org admin
Pdftooltip adds undesired space
Thanks for the welcome!
Actually I didn't add an example because it seems to be a general behavior. Here is one though, which could not be more minimal
You will see the spacing between This and is.
jos
Actually I didn't add an example because it seems to be a general behavior. Here is one though, which could not be more minimal

Code: Select all
\documentclass[11pt,oneside]{Thesis}
\usepackage{pdfcomment}
\usepackage[utf8]{inputenc}
\usepackage[ngerman,english]{babel}
\begin{document}
This \pdftooltip{is}{believe it or not} text.
\end{document}
jos
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Pdftooltip adds undesired space
Well, the package isn't used in the template, nor does the current version of the template contain a
Either way, the updated template has the same bug, a spurious space.
Find the line in Thesis.cls containing
and get rid of the space before the
Thesis.cls
.Either way, the updated template has the same bug, a spurious space.
Find the line in Thesis.cls containing
Code: Select all
\pdfstringdefDisableCommands{ % If there
%
.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Pdftooltip adds undesired space
It seems like I use an old version of the template. I will try to update and add your suggestions. Thanks for your support!
Re: Pdftooltip adds undesired space
Thanks Johannes_B! I updated the template, then the line and it works!