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.

Home Page:https://github.com/fmarotta/kaobook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Ericson2314 opened this issue · comments

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 of2a82b3a`:

kaobook/kaobiblio.sty

Lines 69 to 70 in 2a82b3a

\ifentrytype{online}{}{\ifentrytype{misc}{}{\clearfield{url}}}
\ifentrytype{book}{\clearfield{doi}}{}

kaobook/kaobiblio.sty

Lines 415 to 420 in 2a82b3a

{\clearfield{url}%
\clearfield{pages}%
\clearfield{pagetotal}%
\clearfield{edition}%
\clearfield{issn}%
\clearfield{doi}%

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?

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.