fmarotta / kaobook

A LaTeX class for books, reports or theses based on https://github.com/kenohori/thesis and https://github.com/Tufte-LaTeX/tufte-latex.
https://github.com/fmarotta/kaobook
LaTeX Project Public License v1.3c
828 stars 173 forks source link

Some way to keep URL and DOI bibliography fields after all? #228

Open Ericson2314 opened 2 years ago

Ericson2314 commented 2 years ago

Summary

I am using this to make a PDF I don't intend to print, so it would be nice to render these fields after all.

(Even if I was printing an actual book, I suppose I would rather include QR codes than drop URLs entirely.)

Details

I see the unconditional \clearfield calls in kaobiblio.styas of2a82b3a8a3556d646d47bd719829d6d65e34895b`:

https://github.com/fmarotta/kaobook/blob/2a82b3a8a3556d646d47bd719829d6d65e34895b/kaobiblio.sty#L69-L70

https://github.com/fmarotta/kaobook/blob/2a82b3a8a3556d646d47bd719829d6d65e34895b/kaobiblio.sty#L415-L420

Additional context

In my current build, it always puts the margin on the right side, which is good for a PDF --- no complaints about that. Maybe that same way of detecting "oh, not actually making a real book" can be used for this?

fmarotta commented 2 years ago

We can add an option for this. The way to detect that we are making a real book, I guess, is the twoside class option, but I'd keep it separate from the option to show urls and dois. Somebody might want a twoside pdf with urls, for instance.