General ⇒ Adobe Reader Bookmarks and TOC don't match
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Adobe Reader Bookmarks and TOC don't match
Since even the minimal working example is long (to preserve the number of sections and subsections), I'm also including it as an attachment, rather than posting it within the body of this post.
All three of my documents *should* be identical in terms of the preamble, but I may have "foobared" something up along the way. Ideas?
Thanks.
-Trip
- Attachments
-
- testing_guide.txt
- (11.44 KiB) Downloaded 1368 times
-
- contents.png (8.35 KiB) Viewed 16171 times
-
- bookmarks.png (7.35 KiB) Viewed 16173 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Adobe Reader Bookmarks and TOC don't match
insert \phantomsection before \subsection (\section) several times. The warnings in the logfile should tell you where to put them.
Alternatively you could just load the bookmark package after hyperref, that should fix it.
Stefan
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Re: Adobe Reader Bookmarks and TOC don't match
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Adobe Reader Bookmarks and TOC don't match
Code: Select all
\usepackage{bookmark}
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Adobe Reader Bookmarks and TOC don't match
Code: Select all
[PDFLaTeX] finished with exit status 1
test_guide_.tex:59:File `bookmark.sty' not found. ^^M
I did find out that the example and production documents aren't any different from each other functionally. However, the environment where they run is. One of the software developers created a special "makefile" for my projects, so they could extract my "help files" which are kept in a subdirectory of my latex working directory, and use them as html online help (don't ask me to explain in more detail; it's over my head).
I painstakingly substituted sections of the working document, replacing the analogous sections of the sample document until the sample became the working document. At no time, did the bookmark structure become inaccurate. When I renamed the sample document, giving it the working document's name, and copied it into the production environment, then compiled it, the bookmarks displayed their typical misbehavior.
Ah well...time for lunch. Maybe a recharge of my brain cells will help.
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Adobe Reader Bookmarks and TOC don't match
Code: Select all
sudo mpm --install=oberdiek
Stefan
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Adobe Reader Bookmarks and TOC don't match
Code: Select all
sudo: mpm: command not found

EDIT:
Code: Select all
sudo apt-get install texlive-latex-recommended
Reading package lists... Done
Building dependency tree
Reading state information... Done
texlive-latex-recommended is already the newest version.
texlive-latex-recommended set to manual installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Adobe Reader Bookmarks and TOC don't match
That's the MiKTeX package manager. I've described its installation on Ubuntu Linux here.tripwire45 wrote:Code: Select all
sudo: mpm: command not found
Perhaps it's an older version. That's one reason why I'm using the mpm, to be able to easily install newer versions of packages or packages that are not included in TeXlive.tripwire45 wrote:On the other hand, when I tried synaptic, it said that oberdiek was already installed as part of texlive-latex-recommended.
Stefan
- tripwire45
- Posts: 129
- Joined: Thu Apr 10, 2008 4:35 am
Re: Adobe Reader Bookmarks and TOC don't match
I first need to download the MiKTeX 2.7 Source Code from here:
http://miktex.org/unx/Default.aspx
Then I need to follow the instructions from here:
http://miktex.svn.sourceforge.net/viewv ... README.unx
Finally, I follow the instructions you posted here:
http://texblog.net/latex-archive/linux/ ... e-manager/
Is that right, or do I just follow the instructions you posted at the TEXblog using apt-get?
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Adobe Reader Bookmarks and TOC don't match
Stefan