LaTeX forum ⇒ Theses, Books, Title pagesPdftooltip 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

Pdftooltip adds undesired space

Postby Jos » Fri Oct 30, 2015 11:42 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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8460
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Oct 31, 2015 2:23 pm

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
Site admin

Jos
Posts: 4
Joined: Fri Oct 30, 2015 11:37 am

Postby Jos » Mon Nov 02, 2015 12:24 pm

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

  1. \documentclass[11pt,oneside]{Thesis}
  2. \usepackage{pdfcomment}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[ngerman,english]{babel}
  5.  
  6. \begin{document}
  7.  
  8. This \pdftooltip{is}{believe it or not} text.
  9.  
  10. \end{document}


You will see the spacing between This and is.

jos

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

Postby Johannes_B » Mon Nov 02, 2015 1:26 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
  1. \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

Postby Jos » Mon Nov 02, 2015 2:05 pm

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

Postby Jos » Tue Nov 03, 2015 5:08 pm

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


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 4 guests