1
Vote

PDF table of contents

description

Using a font to typeset sections
h1,h2,h3,h4,h5 {
  font-family: Helvetica;
  font-weight: bold;
}
causes the generated file to have the name of the font in the PDF's table of contents. Note this is not in the document itself -- just the metadata that hyperref puts with the file.

See attached screenshot.

file attachments

comments

daan wrote May 15 at 7:47 PM

Hi Nate,

Thanks for the bug report! I tried to reproduce it but couldn't :-( Are you using a special latex style like "book" or something? Did you try updateing Madoko to the latest version (npm install -g madoko)?
You may try to use:
h1,h2,h3,h4,h5 {
  .sans-serif;
  font-weight: bold;
}
Hope this helps,
Best,
-- Daan

ps. I am moving Madoko to github currently so in the future try to report it there.

daan wrote May 15 at 7:56 PM

Just to confirm, you are seeing this in the 'bookmarks' tab of the PDF viewer right?

jnfoster wrote May 16 at 1:26 AM

That's correct.

I did update Madoko to newest version on NPM.

If you were willing to try to reproduce the error against our code, the branch is here: https://github.com/jnfoster/p4-spec/tree/fancyfonts

It should work with TexLive. Right now I have some fancy fonts (which you may or may not have) but I'm seeing the error with most custom fonts.

Thanks!

ps. Should I move this issue to GitHub or continue here?