Re: separate child-documents?

2020-09-28 Thread M.B. Schiekel
Am 28.09.20 um 14:35 schrieb Guenter Milde:
> On 2020-09-25, M.B. Schiekel wrote:
> ...
>> Some time ago I've uploaded a 800 p. LyX-generated PDF-file as an
>> OpenAccess document to our uni-server. And now I'm writing
>> an new separate appendix to this document and in this appendix I want
>> references to many formula of my published 800 p. PDF-document.
>> So I tried the Master-Child feature but in the separate compiled child
>> the references are not available.
> ...
> It should work with "includeonly" if you have a Master document that includes
> the existing documents source(s) + the new appendix.
> After a first run which includes all sources (to get the references right),
> you may exclude the main document and re-compile.
> ...


Hallo Günter,

thank you for your kind and helpful advices.
1. your "includeonly" variant I've understood. I think it will work.
2. your second variant I don't understand:
> However, I would rather print the last 50 pages of the combined document to
> a file and upload this.
What do you mean by 'print to a file'?
In the moment I use LyX -> pdflatex for to produce the big PDF.
So what is your suggestion to produce a PDF of the last 50 p.?

3.
> In any case, you may have to add some advanced LaTeX code to restart
> the page numbers etc. or live with the appendix document starting at
> 801.
This should be no problem for me, because I love Latex code :-)
Thank you very much -
bernhard


-- 
Homepage: https://www.mb-schiekel.de/
GnuPG: http://p80.pool.sks-keyservers.net/
posteo.de: SSL-Verschluesselung + Oekostrom



signature.asc
Description: OpenPGP digital signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: A general layout/ layout-less lyx file

2020-09-28 Thread Jean-Marc Lasgouttes

Le 28/09/2020 à 14:25, Guenter Milde a écrit :

A "don't warn about different documentcalss" button in the
Isert>File>Child Document pop-up seems an easy thing to add.


Except that we do not know how to add widgets to file dialogs.

JMarc

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: separate child-documents?

2020-09-28 Thread Guenter Milde
On 2020-09-25, M.B. Schiekel wrote:

...

> thank you for your comments. What is my actual issue?
> Some time ago I've uploaded a 800 p. LyX-generated PDF-file as an
> OpenAccess document to our uni-server. And now I'm writing
> an new separate appendix to this document and in this appendix I want
> references to many formula of my published 800 p. PDF-document.
> So I tried the Master-Child feature but in the separate compiled child
> the references are not available.

Yes, this is not the use case for Master/Child.

> If LyX doesn't support such an application I see only the possibility of
> creating the 50 p. appendix in the 800 p. master document and then
> cropping the 800 p. with a PDF-editor, because I cannot upload for each
> new appendix a new edition of the big PDF.
> But maybe there is a better way to handle this :-)

It should work with "includeonly" if you have a Master document that includes
the existing documents source(s) + the new appendix.
After a first run which includes all sources (to get the references right),
you may exclude the main document and re-compile.

However, I would rather print the last 50 pages of the combined document to
a file and upload this.

In any case, you may have to add some advanced LaTeX code to restart the
page numbers etc. or live with the appendix document starting at 801.

Günter

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: A general layout/ layout-less lyx file

2020-09-28 Thread Guenter Milde
On 2020-09-27, Scott Kostyshak wrote:
> On Sun, Sep 27, 2020 at 01:38:18PM +0300, email.i...@gmail.com wrote:
>> Hello,

>> I maintain a file with many macros which I use in all of my projects.
>> My projects usually differ in their layout (e.g., due to submitting to
>> different journals) so I commonly get a warning of mismatch between the
>> layout of the macros file and the layout of the project file.

> Seems like a common workflow and I can see how that would be annoying.

...

>> Is there a way to define the macros file to be layout-less (since it is not
>> a stand-alone file so I never compile it) or maybe define it to be of a
>> user-defined layout that will be compatible with any article layout I will
>> be using (of course, I guess I'll need to manually define and extend this
>> list of compatible layouts).

> Not that I know of but I think it's a good idea. We do have the concept
> of "no color" and "no language". You make a good argument in my opinion
> for something like "no class". 

> A related idea we've discussed before in different contexts is the idea
> that child documents could share document settings of master documents.
> In this case, you want the child document to inherit the document class
> of the master document. This is not implemented yet, but there are a
> few different use cases we would want that general framework.

I think this is the better approach. Besides beeing more general, it
saves us from having to decide which "documentclass" the "no class"
should get or if we should raise an error with any attempt to compile
this "no class"-document.
A "don't warn about different documentcalss" button in the 
Isert>File>Child Document pop-up seems an easy thing to add.

Günter

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users