rycolab / aclpub2

MIT License
28 stars 39 forks source link

Faulty PDF outline #138

Closed texttheater closed 1 year ago

texttheater commented 1 year ago

In the SIGDIAL example, the generated proceedings.pdf has an outline (can be displayed in a side pane in a suitable PDF viewer such as Evince) which consists of entries that all read TEMPLATETITLE and link to page i. They should link to the papers and be titled accordingly.

nilinykh commented 1 year ago

This is still an issue. Currently compiling proceedings for the workshop and a side pane with the content of the generated proceedings pdf still has TEMPLATETITLE in it, nothing else.

nilinykh commented 1 year ago

@texttheater Did you manage to solve the problem?

crux82 commented 1 year ago

I think that it is due to this line:

https://github.com/rycolab/aclpub2/blob/6151c78cd65b8df14953dcc18c9d6cb44a2b3db3/aclpub2/templates/proceedings.tex#L413

I suppose that, if you comment/remove this line, the bookmarks should disappear. But I am not sure if this introduces other issues...

@zhzhang do you remember why we added the above line?

nilinykh commented 1 year ago

I suppose that, if you comment/remove this line, the bookmarks should disappear.

Yes, this line was the source of the problem. So my solution is as follows (working solution):

\phantomsection
\addcontentsline{toc}{section}{\emph{\VAR{paper.title}}}

I believe adding the phantom section is something that the hyperref package cannot work without: https://tex.stackexchange.com/questions/44088/when-do-i-need-to-invoke-phantomsection

texttheater commented 1 year ago

@nilinykh Thanks! I already fixed the issue via another route, but learning about \phantomsection enabled me to tackle #152.