Re: [PATCH 07/10] docs: RCU: RTFP: fix bibtex entries

From: Paul E. McKenney
Date: Tue Apr 21 2020 - 20:42:10 EST


On Tue, Apr 21, 2020 at 09:29:06PM +0200, Mauro Carvalho Chehab wrote:
> Em Tue, 21 Apr 2020 10:52:25 -0700
> "Paul E. McKenney" <paulmck@xxxxxxxxxx> escreveu:
>
> > On Tue, Apr 21, 2020 at 10:43:29AM -0700, Paul E. McKenney wrote:
> > > On Tue, Apr 21, 2020 at 07:04:08PM +0200, Mauro Carvalho Chehab wrote:
> > > > There are several troubles at the bibtex entries with
> > > > prevent them to be processed by LaTeX:
> > > >
> > > > - On LaTeX, comment lines start with '%', but here, comments
> > > > are starting with "#";
> > > > - Underlines should be escaped.
> > > > - While the best would be to use \url{} for all URL entries,
> > > > let's do it at least for a couple that would otherwise
> > > > produce errors on LaTeX.
> > > >
> > > > Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> > >
> > > Another approach might be just to link to a public repo containing
> > > cleaned-up versions of these bibliography entries:
> > >
> > > https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/perfbook.git/tree/bib/RCU.bib
> > >
> > > That would have the advantage of keeping this information in only one
> > > place, and reducing the number of updates required.
>
> Yeah. I didn't know you had it somewhere else.
>
> > >
> > > Thoughts?
> >
> > OK, I should have read the next patch in the series, where you convert
> > into a Sphinx-compatible bibliography. Except that you had to convert
> > the bibtex entries by hand to produce the Sphinx-compatible entries?
>
> No, but it still required a lot of manual work.
>
> I manually converted the file to ReST. That was the easiest part.
>
> Then, I used sphinx-build to convert it into a LaTeX file and changed
> the produced .tex for it to use the .bib file.
>
> The last step was the hardest one. I'm not familiar with LaTeX. I did
> several attempts to produce an output with the same kind of captions
> as the original file, but I was unable to generate it.
>
> So, I ended doing the final step the hard way: I used XeLaTeX to produce
> a PDF file. Then, I manually copied the entries from the output back into
> the ReST file, carefully adjusting the captions, in order for them to
> point to the right places.
>
> Before that, I tried to use a few Sphinx BibTeX extensions, but they
> are not complete: they were unable to parse some types of entries.
> If I'm not mistaken (I did it some time ago, on another computer),
> the ones I tested crashed when trying to parse some entries, like
> '@Conference'.

OK, that sounds decidedly non-trivial. :-(

> > That will get a bit ugly when it comes time to add more entries.
> >
> > Or was the conversion of bibliography entries automated?
>
> I suspect it should be possible to automate it, but, as I said,
> I'm not too familiar with LaTeX.

In the meantime, would it work to just reference the RCU.bib URL above?

Thanx, Paul