RE: temporarily disable 3-pass processing of citations/bibliography
[ Small correction to recipe below ] From: Bravington, Mark (Data61, Hobart) Sent: 16 September 2018 11:40 To: Richard Kimberly Heck; lyx-users@lists.lyx.org Subject: RE: temporarily disable 3-pass processing of citations/bibliography > From: Richard Kimberly Heck [rikih...@lyx.org] Sent: 15 September 2018 12:12 To: Bravington, Mark (Data61, Hobart); lyx-users@lists.lyx.org Subject: Re: temporarily disable 3-pass processing of citations/bibliography On 8/13/18 8:21 PM, mark.braving...@data61.csiro.au wrote: > > Including citations/references, or even telling Lyx that they *might* be > > used (see below), slows down PDF preview quite a bit, ie > > Document->View(PDF). Is there a way to temporarily turn off the 3-pass > > system (~3 calls to pdflatex interspersed by calls to biber or bibtex)? Of > > course, it's then fine for all citations to appear as "labels" or [?] . <>> > Not sure how helpful this is now: But you could export to LaTeX and run > everything else manually. > Riki [ Minor corrections with **...** below ] Aha! Armed with that hint, I was able to define a Format and Converter that give "one-pass-only" PDFs; pig-ugly refs, no biblio, but very quick! The Format I called "PDF (nobib)" and it mimicks Lyx's existing "PDF (pdflatex)" Format ** except that the Viewer needs to be set to Custom, with a value "auto" **. The Converter looks exactly like Lyx's "Latex (pdf) -> PDF (latex)" but obviously ends " ... -> PDF (nobib)" instead. The only change needed to the Converter was to clear the "Extra flags" field. This seems to do what I want (I think--- I am no expert on La/tex, and have not tested beyond a basic case). It might be worth adding this as a built-in format and converter (or I may be the only person who sees the speed as a problem...). ** Some experimentation was required to get this to work--- the documentation doesn't describe what to do with the Viewer field, nor mention Custom/auto. ** ** DELETED --- FIX GIVEN ABOVE The only and very minor issue is that, when defining the new Format, I cannot select "pdfview" as the Viewer--- which is what Lyx uses for all other PDF outputs. instead, I had to choose "custom" and then type the name of my viewer (Sumatra) into a box. No big deal, obvs. ** Thanks Mark
RE: temporarily disable 3-pass processing of citations/bibliography
> From: Richard Kimberly Heck [rikih...@lyx.org] Sent: 15 September 2018 12:12 To: Bravington, Mark (Data61, Hobart); lyx-users@lists.lyx.org Subject: Re: temporarily disable 3-pass processing of citations/bibliography On 8/13/18 8:21 PM, mark.braving...@data61.csiro.au wrote: > > Including citations/references, or even telling Lyx that they *might* be > > used (see below), slows down PDF preview quite a bit, ie > > Document->View(PDF). Is there a way to temporarily turn off the 3-pass > > system (~3 calls to pdflatex interspersed by calls to biber or bibtex)? Of > > course, it's then fine for all citations to appear as "labels" or [?] . <>> > Not sure how helpful this is now: But you could export to LaTeX and run > everything else manually. > Riki Aha! Armed with that hint, I was able to define a Format and Converter that give "one-pass-only" PDFs; pig-ugly refs, no biblio, but very quick! The Format I called "PDF (nobib)" and it mimicks Lyx's existing "PDF (pdflatex)" Format. The Converter looks exactly like Lyx's "Latex (pdf) -> PDF (latex)" but obviously ends " ... -> PDF (nobib)" instead. The only change needed to the Converter was to clear the "Extra flags" field. This seems to do what I want (I think--- I am no expert on La/tex, and have not tested beyond a basic case). It might be worth adding this as a built-in format and converter (or I may be the only person who sees the speed as a problem...). The only and very minor issue is that, when defining the new Format, I cannot select "pdfview" as the Viewer--- which is what Lyx uses for all other PDF outputs. instead, I had to choose "custom" and then type the name of my viewer (Sumatra) into a box. No big deal, obvs. Thanks Mark
Re: temporarily disable 3-pass processing of citations/bibliography
On 8/13/18 8:21 PM, mark.braving...@data61.csiro.au wrote: > Including citations/references, or even telling Lyx that they *might* be used > (see below), slows down PDF preview quite a bit, ie Document->View(PDF). Is > there a way to temporarily turn off the 3-pass system (~3 calls to pdflatex > interspersed by calls to biber or bibtex)? Of course, it's then fine for all > citations to appear as "labels" or [?] . > > This is particularly noticeable when Lyx 2.3.0 bibliography "style" is set to > biblatex/biber, in which case Lyx *always* seems to use 3 passes whether > there are citations or bibliography or not. The speed is no problem for final > production, but a bit annoying when trying to get a quick preview. > > To be clear: my preferred default for all documents, whether they include > references or not, would be to set > Document->Settings->Bibliography->Citation_style->Style_format to "biblatex". > But this is annoyingly slow on some documents. Setting the same thing to > "bibtex" still leads to 3 passes if any citations/bibliography are present--- > as it should--- but with bibtex at least Lyx is then smart enough to just do > 1 pass if there are no citations/bibliography. However, biblatex is better, > so I'd prefer it to be the default... > > So 2 questions here: > > - (less important) with biblatex/biber, can the 3 passes automatically be > reduced to 1 when there are no "live" citations or bibliographies, eg not in > any active branches? This already happens with bibtex. > > - (more useful) can the 3 passes be reduced to 1 regardless of biblatex vs > bibtex, by just changing one thing somewhere? And yes, this will lead to [?] > and/or printing-the-label type citations. A > "Document->settings->bibliography->turn_off_citations_and_biblio" box would > be perfect longer-term. But a hack would be fine for now ;) > > FWIW I am using Lyx 2.3.0 under Windows 10--- "official" biblatex/biber > support only appeared in Lyx 2.3. Not sure how helpful this is now: But you could export to LaTeX and run everything else manually. Riki