## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Pdftooltip adds undesired space Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am

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

Tags:

Stefan Kottwitz
Posts: 8596
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
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

Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am
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

\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}

You will see the spacing between This and is.

jos

Johannes_B
Site Moderator
Posts: 3598
Joined: Thu Nov 01, 2012 4:08 pm
Well, the package isn't used in the template, nor does the current version of the template contain a Thesis.cls.

Either way, the updated template has the same bug, a spurious space.

Find the line in Thesis.cls containing
\pdfstringdefDisableCommands{ % If there

and get rid of the space before the %.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am
It seems like I use an old version of the template. I will try to update and add your suggestions. Thanks for your support!

Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am
Thanks Johannes_B! I updated the template, then the line and it works!