schoeberl / chisel-book

Digital Design with Chisel
727 stars 135 forks source link

Add document outline to PDF #20

Closed nullobject closed 4 years ago

nullobject commented 4 years ago

Having a document outline makes for a much better reading experience, as the reader can easily jump between sections.

outline

schoeberl commented 4 years ago

I had tried this before. However, it does not show up in my PDF viewer on the Mac. And your proposal does also not help on the Mac. However, some other PDFs do provide a document outline on my viewer. Strange!

nullobject commented 4 years ago

@schoeberl That is odd. I didn't try it on MacOS, but it works on my iPad and Linux.

Thanks for merging :+1:

itviewer commented 4 years ago

why not just replace \usepackage[colorlinks=true,bookmarks=false]{hyperref} with \usepackage[colorlinks=true,bookmarksnumbered]{hyperref}

so the outline is numbered: 深度截图_选择区域_20200603102412

nullobject commented 4 years ago

@itviewer I quite like that format, we'll have to see what @schoeberl thinks.

schoeberl commented 4 years ago

Does not work either on macOS :-( So you two can decide which one you like better ;-)

schoeberl commented 4 years ago

Strange, as it does not show on my iPad or on the standard viewer in Ubuntu. Then this is probably an issue with my Latex installation not generating the PDF outline.

Cheers, Martin

On 3 Jun, 2020, at 0:50, Josh Bassett notifications@github.com wrote:

@schoeberl https://github.com/schoeberl That is odd. I didn't try it on MacOS, but it works on my iPad and Linux.

Thanks for merging 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/schoeberl/chisel-book/pull/20#issuecomment-637848205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE63GCYAELGWTJLCXQY4ALRUV65FANCNFSM4NQF5WKA.