Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp469082ybz; Tue, 21 Apr 2020 12:36:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0i+IWlLpf/LwfjDOa+xkZxRYKI0Vb8ZwrE77fsoLRgRnSndF9r2M69Ti3jY7trjL3TblJ X-Received: by 2002:a50:e3cb:: with SMTP id c11mr12481825edm.105.1587497761655; Tue, 21 Apr 2020 12:36:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587497761; cv=none; d=google.com; s=arc-20160816; b=PQuwKXzrmGpDdEF6bA5lSDYanKa3Wi5yTLREAZJ5GX9Ykuo2pKudZCNhWXf365BlFl G1gJRpb6RAJ16NbGuQhtVYLLIWa9V9lXiCmQcrvmSmiu2mrSE/DS5u74PYHXpQHefONt c3bHI0qc6qiSFsaR7xd8T5H6jcKFSRQYYqfBER41Dn9SPVb4q+sp6q7nFEdrhDTUwdma xeEV1a4YeGSUnQ0BqDhzfFNJmhDEk1nB4sPOqyOq/bq5I0X9GvXHYx7I3nrN+3LWqKpf SiSlAzRuyV+LcfY70TknJWOspJUir/g+S6hsxa/DpN0HmERYc/gcfuwCvxiDWBHrJ1OJ klfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9KuVOIR6H/u+FiymU+kM3SIAULwrtoZgyv/DE5oqC7Q=; b=NtT/rO4rAtf1xzTKbba1t0rk3sNnP/EEKqNArcL99NfJLhv3eGb1Kd3t74XM+hSw7j 9Zpzx2BjJu0lqlSCYg1Oa5jsC4baywsSmGFAnBMMcGsOzQEoz6oXe8ENv3AxPVJpsnkR UG0ZAgms8DVDwR84qQSQxHknlxcWLjM7CCBpjpKeON9OIA+ZFtyKIt58VrwJXsyacgoL qiytPO4YpN6i6QG4SFPg6GkAqaJVdkUQKfEM3TYi/DpNxTpsqwBMi5xBpYb86JOQYu0I DdLAMi+OLufhg43Xj4yhuNFUbDUFUExuMI6SrydJaGcrNfOLDXFKScMb6Hda/iv239To +0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tSARBWUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si2381507edd.536.2020.04.21.12.35.37; Tue, 21 Apr 2020 12:36:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tSARBWUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbgDUTbs (ORCPT + 99 others); Tue, 21 Apr 2020 15:31:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgDUTbs (ORCPT ); Tue, 21 Apr 2020 15:31:48 -0400 Received: from coco.lan (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8555F206D5; Tue, 21 Apr 2020 19:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587497351; bh=BE4IFnhZXL+QecB5RHlSvGSBQfuvKjcw+a+56tvjuPI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tSARBWUP64gzQ5NLyeeC4TZ3buBZeIwn+Y3/W/QIGKUcqRbg74UFh/abweOaGS7S8 GFaDTsqncX4r1WL5lWFb6SHDZIRr4dlvswFtzmck/3ho/rWCKv5rLGegjNGrHBv+tb /+uf2y3ydxg5X7aUSSvAuI8sOW6M8cgoH0wKnsm4= Date: Tue, 21 Apr 2020 21:29:06 +0200 From: Mauro Carvalho Chehab To: "Paul E. McKenney" Cc: Linux Doc Mailing List , linux-kernel@vger.kernel.org, Jonathan Corbet , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , rcu@vger.kernel.org Subject: Re: [PATCH 07/10] docs: RCU: RTFP: fix bibtex entries Message-ID: <20200421212850.616db8b0@coco.lan> In-Reply-To: <20200421175225.GA32083@paulmck-ThinkPad-P72> References: <3cc10823634f12c3d3c44ee03f73b7aaa347df63.1587488137.git.mchehab+huawei@kernel.org> <20200421174329.GR17661@paulmck-ThinkPad-P72> <20200421175225.GA32083@paulmck-ThinkPad-P72> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 21 Apr 2020 10:52:25 -0700 "Paul E. McKenney" 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 > > > > 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'. > 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. Thanks, Mauro