Re: Export child document to pdf2 from command line
OK, registered the issue in the Bug Tracker. > And of course one also gets notifications when there are questions about > the bug, or when progress has been made on it, etc. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
On 8/26/19 4:43 PM, Scott Kostyshak wrote: > On Mon, Aug 26, 2019 at 10:55:42AM -0300, Rudi Gaelzer wrote: >> On Sun, Aug 25, 2019 at 9:11 PM Richard Kimberly Heck >> wrote: >> Another detail came up. I did a simple test with a document containing >>> 3 short chapters. From the GUI, in Settings -> Child Documents -> Master Document Output >>> -> Include only selected children I can select only some child documents >>> and then create the PDF in File -> Export -> PDF (pdflatex). The exported >>> PDF will contain only the selected child(ren), with all the cross-references. However, if I export from command line with lyx --export pdf2 master.lyx the PDF will invariably contain the whole document. I can sen the test files if you wish. >>> Can you file a bug report about this? >>> >>> Riki >>> >>> >>> >> I can, but I'll need to initiate myself to the process... >> If I go to the main page (www.lyx.org) and click Bug Tracker, it opens the >> LyX Bug Tracker >> page in https://www.lyx.org/trac/wiki/BugTrackerHome >> I believe that's the correct place to report bugs, right? >> I will have to register first, in this case. > That's the place. Sorry for the extra trouble to register, but this way > the next time you come across a bug it will be easier to report it. > Thanks for taking the time to do it. And of course one also gets notifications when there are questions about the bug, or when progress has been made on it, etc. Riki
Re: Export child document to pdf2 from command line
On Mon, Aug 26, 2019 at 10:55:42AM -0300, Rudi Gaelzer wrote: > On Sun, Aug 25, 2019 at 9:11 PM Richard Kimberly Heck > wrote: > > > > Another detail came up. I did a simple test with a document containing > > 3 > > > short chapters. > > > > > > From the GUI, in Settings -> Child Documents -> Master Document Output > > -> > > > Include only selected children I can select only some child documents > > and > > > then create the PDF in File -> Export -> PDF (pdflatex). The exported > > PDF > > > will contain only the selected child(ren), with all the cross-references. > > > > > > However, if I export from command line with > > > lyx --export pdf2 master.lyx > > > the PDF will invariably contain the whole document. > > > I can sen the test files if you wish. > > > > Can you file a bug report about this? > > > > Riki > > > > > > > I can, but I'll need to initiate myself to the process... > If I go to the main page (www.lyx.org) and click Bug Tracker, it opens the > LyX Bug Tracker > page in https://www.lyx.org/trac/wiki/BugTrackerHome > I believe that's the correct place to report bugs, right? > I will have to register first, in this case. That's the place. Sorry for the extra trouble to register, but this way the next time you come across a bug it will be easier to report it. Thanks for taking the time to do it. Scott signature.asc Description: PGP signature
Re: Export child document to pdf2 from command line
On Sun, Aug 25, 2019 at 9:11 PM Richard Kimberly Heck wrote: > > Another detail came up. I did a simple test with a document containing > 3 > > short chapters. > > > > From the GUI, in Settings -> Child Documents -> Master Document Output > -> > > Include only selected children I can select only some child documents > and > > then create the PDF in File -> Export -> PDF (pdflatex). The exported > PDF > > will contain only the selected child(ren), with all the cross-references. > > > > However, if I export from command line with > > lyx --export pdf2 master.lyx > > the PDF will invariably contain the whole document. > > I can sen the test files if you wish. > > Can you file a bug report about this? > > Riki > > > I can, but I'll need to initiate myself to the process... If I go to the main page (www.lyx.org) and click Bug Tracker, it opens the LyX Bug Tracker page in https://www.lyx.org/trac/wiki/BugTrackerHome I believe that's the correct place to report bugs, right? I will have to register first, in this case. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
On 8/24/19 5:06 PM, Rudi Gaelzer wrote: >>> Is putting each of your child documents in a separate branch a >>> possibility? That way you could use the solution you found. I'm not >>> aware of a different approach (maybe someone else knows though). >>> >>> Yes, I thought of trying that, although some people reported >>> difficulties exporting branches. >>> I've found another solution where the guy edited the .lyx file with >>> sed first and then exported to PDF. >>> >>> I just wanted to know if there is a simpler way... >> Not at the moment, but it's a reasonable request. We'd need something >> like "child-in(ex)clude FILE.lyx" as an LFUN. > Another detail came up. I did a simple test with a document containing 3 > short chapters. > > From the GUI, in Settings -> Child Documents -> Master Document Output -> > Include only selected children I can select only some child documents and > then create the PDF in File -> Export -> PDF (pdflatex). The exported PDF > will contain only the selected child(ren), with all the cross-references. > > However, if I export from command line with > lyx --export pdf2 master.lyx > the PDF will invariably contain the whole document. > I can sen the test files if you wish. Can you file a bug report about this? Riki
Re: Export child document to pdf2 from command line
> > Is putting each of your child documents in a separate branch a > > possibility? That way you could use the solution you found. I'm not > > aware of a different approach (maybe someone else knows though). > > > > Yes, I thought of trying that, although some people reported > > difficulties exporting branches. > > I've found another solution where the guy edited the .lyx file with > > sed first and then exported to PDF. > > > > I just wanted to know if there is a simpler way... > > Not at the moment, but it's a reasonable request. We'd need something > like "child-in(ex)clude FILE.lyx" as an LFUN. Another detail came up. I did a simple test with a document containing 3 short chapters. >From the GUI, in Settings -> Child Documents -> Master Document Output -> Include only selected children I can select only some child documents and then create the PDF in File -> Export -> PDF (pdflatex). The exported PDF will contain only the selected child(ren), with all the cross-references. However, if I export from command line with lyx --export pdf2 master.lyx the PDF will invariably contain the whole document. I can sen the test files if you wish. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
On 8/23/19 4:32 PM, Rudi Gaelzer wrote: > > Is putting each of your child documents in a separate branch a > possibility? That way you could use the solution you found. I'm not > aware of a different approach (maybe someone else knows though). > > Yes, I thought of trying that, although some people reported > difficulties exporting branches. > I've found another solution where the guy edited the .lyx file with > sed first and then exported to PDF. > > I just wanted to know if there is a simpler way... Not at the moment, but it's a reasonable request. We'd need something like "child-in(ex)clude FILE.lyx" as an LFUN. Riki
Re: Export child document to pdf2 from command line
> > Is putting each of your child documents in a separate branch a > possibility? That way you could use the solution you found. I'm not > aware of a different approach (maybe someone else knows though). > > Yes, I thought of trying that, although some people reported difficulties exporting branches. I've found another solution where the guy edited the .lyx file with sed first and then exported to PDF. I just wanted to know if there is a simpler way... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
On Fri, Aug 23, 2019 at 05:10:44PM -0300, Rudi Gaelzer wrote: > I have a multi-part document with chapters that are included as child > documents. I can successfully export the whole document to PDF in a > terminal using the standard way given in the ImportExport FAQ in WikiLyX: > > lyx --export pdf2 master.lyx > > Now, if I want to export only some of the childs to PDF, is there a > standard way to accomplish this? > The only other relevant instruction in the FAQ is related to branches: > > lyx -x "command-sequence branch-activate b1; branch-deactivate b2" -E pdf2 > outfile.pdf infile.lyx > > but I don't think it applies to my case. Is putting each of your child documents in a separate branch a possibility? That way you could use the solution you found. I'm not aware of a different approach (maybe someone else knows though). Best, Scott signature.asc Description: PGP signature