Can we use the bib file from web for pdf_book in Bookdown?

Viewed 27

In Rmarkdown, we can generate pdf file if we use the bib file from a url.

For example, we set bibliography: [https://raw.githubusercontent.com/ChoCho66/test/main/text.bib]


In bookdown, we can also generate html book (gitbook, bs4_book) if we use the bib file from a url.

But pdf_book doesn't work. It has the following message.

! Undefined control sequence.
\hyper@normalise ...M{ }\catcode `\%\active \let %
                                                  \@percentchar \let \%\@per...
l.430 ...content.com/ChoCho66/test/main/text.bib}}

The tex file has wrong since the following:

\bibliography{\url{https://raw.githubusercontent.com/ChoCho66/test/main/text.bib}}


Is there any way to solve this problem?

I want a common code that can compile both html book and pdf book if we use bib url file.

0 Answers
Related