Theses, Books, Title pagesPdftooltip adds undesired space

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

Pdftooltip adds undesired space

Post by Jos »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Pdftooltip adds undesired space

Post by Stefan Kottwitz »

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 Infominimal working example. That would make it easier to help.

Stefan
LaTeX.org admin
Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am

Pdftooltip adds undesired space

Post by Jos »

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 ;)

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}
You will see the spacing between This and is.

jos
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Pdftooltip adds undesired space

Post by Johannes_B »

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

Code: Select all

\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

Re: Pdftooltip adds undesired space

Post by Jos »

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

Re: Pdftooltip adds undesired space

Post by Jos »

Thanks Johannes_B! I updated the template, then the line and it works!
Post Reply