Re: A general layout/ layout-less lyx file

2020-09-29 Thread Richard Kimberly Heck
On 9/29/20 5:01 AM, Jean-Marc Lasgouttes wrote:
> Le 29/09/2020 à 10:45, Guenter Milde a écrit :
>> On 2020-09-28, Jean-Marc Lasgouttes wrote:
>>> 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.
>>
>> However, the "Child Document" dialogue seems to be LyX-native
>> it allows to select the Include Type, has "Browse" and Edit buttons
>> and a formular to configure the Listing Parameters.
>
> You are right, I should check my facts before commenting :)

We have infrastructure already for disabling this. I believe you can do
it when you are warned the first time. (The frontend::warning method
takes an optional boolean for this purpose.)

Riki


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


Re: separate child-documents?

2020-09-29 Thread Richard Kimberly Heck
On 9/29/20 4:39 AM, Guenter Milde wrote:
> On 2020-09-28, M.B. Schiekel wrote:
>> Am 28.09.20 um 14:35 schrieb Guenter Milde:
>>> On 2020-09-25, M.B. Schiekel wrote:
>> 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.?
> I am working on Linux and use the "evince" document viewer to view the
> PDF on-screen. The viewer supports printing and the print dialogue offers
> the choice of several printers which includes the virtual printer "print
> to file". It also provides for the selection of the pages to print, so it is
> all just point and click for me.

There are lots of pdf editors you can use to extract pages from a
PDF---even web-based programs. On Linux you can just do:

qpdf --pages INFILE firstpage-lastpage -- OUTFILE

in the terminal.

Riki


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


Re: separate child-documents? [solved]

2020-09-29 Thread M.B. Schiekel
Am 29.09.20 um 10:39 schrieb Guenter Milde:
> ...
> I am working on Linux and use the "evince" document viewer to view the
> PDF on-screen. The viewer supports printing and the print dialogue offers
> the choice of several printers which includes the virtual printer "print
> to file". It also provides for the selection of the pages to print, so it is
> all just point and click for me.
> ...


Hallo Günter and Riki,

thank you for your helpful explanations.
I summarize the different solutions:

Problem:
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.

Solutions:
1. writing the new appendix in the original LyX-file with all the
correct references, compiling with pdflatex and copying the appendix in
a new PDF by the 'print on file feature' (means cropping the PDF) - on
Linux with "evince" or "okular". (Günter)
2. LyX-variant:
"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." (Günter)
3. LaTeX-variant:
"The LaTeX solution would be to use the xr package. See e.g. here
https://tex.stackexchange.com/questions/14364/cross-referencing-between-different-files
for some info on how to do that. LyX does not have any mechanism for
this, though, so you'd be using ERT." (Riki)

Such a wonderful community :-)
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-29 Thread Jean-Marc Lasgouttes

Le 29/09/2020 à 10:45, Guenter Milde a écrit :

On 2020-09-28, Jean-Marc Lasgouttes wrote:

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.


However, the "Child Document" dialogue seems to be LyX-native
it allows to select the Include Type, has "Browse" and Edit buttons
and a formular to configure the Listing Parameters.


You are right, I should check my facts before commenting :)

JMarc
--
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-29 Thread Guenter Milde
On 2020-09-28, Jean-Marc Lasgouttes wrote:
> 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.

However, the "Child Document" dialogue seems to be LyX-native
it allows to select the Include Type, has "Browse" and Edit buttons
and a formular to configure the Listing Parameters.

Günter

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


Re: separate child-documents?

2020-09-29 Thread Guenter Milde
On 2020-09-28, M.B. Schiekel wrote:
> Am 28.09.20 um 14:35 schrieb Guenter Milde:
>> On 2020-09-25, M.B. Schiekel wrote:

> 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.?

I am working on Linux and use the "evince" document viewer to view the
PDF on-screen. The viewer supports printing and the print dialogue offers
the choice of several printers which includes the virtual printer "print
to file". It also provides for the selection of the pages to print, so it is
all just point and click for me.

Alternatively, LyX supports Insert>File>External Material>PDF pages.

Günter

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