Re: preview of linguistic trees in LyX

2018-12-26 Thread Jürgen Spitzmüller
Am Mittwoch, den 26.12.2018, 18:00 +0100 schrieb Michael Berger:
> Yes Jürgen, the linguistics module is activated. 

In the CHILD document?

> If it wasn't the 
> document would not convert to PDF;

Now you're talking about the master document, right?

Jürgen


signature.asc
Description: This is a digitally signed message part


Re: preview of linguistic trees in LyX

2018-12-26 Thread Michael Berger


On 12/26/18 5:14 PM, Jürgen Spitzmüller wrote:

Am Mittwoch, den 26.12.2018, 15:57 +0100 schrieb Michael Berger:

Dear Jürgen, dear list,

I am using Miede's classicthesis in Lyx 2.3.0.

Thanks for implementing this fantastic feature to expand linguistic
trees directly in LyX without the need to change to PDF first. This
is
extremely useful when working in large documents.

Miede's classicthesis is using the master and children structure.
I found this feature working well in the master only but not at all
in
any of the child documents.

I experimented around but always ended up with the same result.

Does it work if you activate the linguistics module in the child
documents?


Thanks and a Happy and Prosperous New Year to all of you!

Likewise, Michael.

Jürgen


Yes Jürgen, the linguistics module is activated. If it wasn't the 
document would not convert to PDF; the tree inset is shown red in LyX, 
the tree inset is shown in red and UNDEFINED. See screenshot.


Michael




Michael Berger




Re: Luatex not previewing A4-landscape

2018-12-26 Thread Baris Erkus
On 12/26/2018 5:30 PM, Daniel CLEMENT wrote:

Le mercredi 26 décembre 2018 à 12:53 +, Baris Erkus a écrit :


On 26-Dec-18 3:33 PM, Daniel CLEMENT wrote:



Le mercredi 26 décembre 2018 à 13:21 +0200, Dr Eberhard Lisse a écrit :


Would you perhaps have a Minimal Working Example so others can test
this?

Ie remove EVERYTHING not related/producing the error and post the
resulting files.

el

On 2018-12-24 12:42 , Daniel CLEMENT wrote:


Dear list members,

While updating a PC under Debian, Lyx went from version 2.1.2 to 2.2.2
(and even 2.3.1 from Backports).

I'm having an issue with some documents which need to be compiled
under Luatex.

They use landscape, A4, 2-column page setup and the issue is: whenever
I try to specify custom margins, my preview reverts to portrait, US
letter format.  I checked that in the previewer, under document
properties.  This happens regardless of the document contents.

TIA for any insight about that - best regards,



I'd rather not clutter the list with unnecessary files: my "minimal
example" would be an empty file!

Here are the steps to reproduce:
[LyX 2.2.2 or 2.3.1 - TeXlive 2016]
- (new) empty document
- document > parameters: A4 - landscape
- margins: just uncheck "implicit margin" (no need to fill the rest)
- preview other formats - LuaTeX

The PDF output comes out with US letter - portrait format.

BR - Daniel




Did it for LyX 2.3.2 + MikTeX + Win10.

Attached are

  * a MWE
  * PDF generated by LuaTeX with A4 setting
  * PDF generated by LuaTeX with Letter setting

Seems like it LyX 2.3.2 setting is working fine in Windows and MikTeX
for both A4 and letter.

p.s. I used "showframe" package to show the boundaries.



Now here is something funny: your example did work here indeed.

After some hair scratching, I decided that the only difference with mine
was the showframe package.

So I suppressed it, and I was instantly back to US letter, portrait
format! Have you tested your example without the showframe package?



I suppressed the showframe package. Set the page size to A4. Export to PDF 
through LuaTeX. Paper size of the resulting PDF is still A4.

See also attached image of MikTeX setting  for default page size. There may be 
a similar setting of your TeX system or as you have mentioned, there may be 
Lua-specific setting that should be passed from LyX to to the Lua compiler. 
Only after you identify such setting, it may be specified in the "File 
Handling" section of LyX preferences.. Again, this is only a "guess".

[cid:part1.702D9324.E9F9A4E6@hotmail.com]

--
↓↓
Please bottom-post. Start your reply here:


NoShowFrame-A4.pdf
Description: NoShowFrame-A4.pdf


Re: preview of linguistic trees in LyX

2018-12-26 Thread Jürgen Spitzmüller
Am Mittwoch, den 26.12.2018, 15:57 +0100 schrieb Michael Berger:
> Dear Jürgen, dear list,
> 
> I am using Miede's classicthesis in Lyx 2.3.0.
> 
> Thanks for implementing this fantastic feature to expand linguistic 
> trees directly in LyX without the need to change to PDF first. This
> is 
> extremely useful when working in large documents.
> 
> Miede's classicthesis is using the master and children structure.
> I found this feature working well in the master only but not at all
> in 
> any of the child documents.
> 
> I experimented around but always ended up with the same result.

Does it work if you activate the linguistics module in the child
documents?

> Thanks and a Happy and Prosperous New Year to all of you!

Likewise, Michael.

Jürgen

> 
> Michael Berger
> 
> 


signature.asc
Description: This is a digitally signed message part


preview of linguistic trees in LyX

2018-12-26 Thread Michael Berger

Dear Jürgen, dear list,

I am using Miede's classicthesis in Lyx 2.3.0.

Thanks for implementing this fantastic feature to expand linguistic 
trees directly in LyX without the need to change to PDF first. This is 
extremely useful when working in large documents.


Miede's classicthesis is using the master and children structure.
I found this feature working well in the master only but not at all in 
any of the child documents.


I experimented around but always ended up with the same result.

Is somebody out there sharing/confirming my findings? Or perhaps found a 
workaround!?


Thanks and a Happy and Prosperous New Year to all of you!

Michael Berger




Re: Luatex not previewing A4-landscape

2018-12-26 Thread Daniel CLEMENT
Le mercredi 26 décembre 2018 à 12:53 +, Baris Erkus a écrit :
> On 26-Dec-18 3:33 PM, Daniel CLEMENT wrote:
> 
> > Le mercredi 26 décembre 2018 à 13:21 +0200, Dr Eberhard Lisse a écrit :
> > > Would you perhaps have a Minimal Working Example so others can test
> > > this?
> > > 
> > > Ie remove EVERYTHING not related/producing the error and post the
> > > resulting files.
> > > 
> > > el
> > > 
> > > On 2018-12-24 12:42 , Daniel CLEMENT wrote:
> > > > Dear list members,
> > > > 
> > > > While updating a PC under Debian, Lyx went from version 2.1.2 to 2.2.2
> > > > (and even 2.3.1 from Backports).
> > > > 
> > > > I'm having an issue with some documents which need to be compiled
> > > > under Luatex.
> > > > 
> > > > They use landscape, A4, 2-column page setup and the issue is: whenever
> > > > I try to specify custom margins, my preview reverts to portrait, US
> > > > letter format.  I checked that in the previewer, under document
> > > > properties.  This happens regardless of the document contents.
> > > > 
> > > > TIA for any insight about that - best regards,
> > > > 
> > I'd rather not clutter the list with unnecessary files: my "minimal
> > example" would be an empty file! 
> > 
> > Here are the steps to reproduce:
> > [LyX 2.2.2 or 2.3.1 - TeXlive 2016]
> > - (new) empty document
> > - document > parameters: A4 - landscape
> > - margins: just uncheck "implicit margin" (no need to fill the rest)
> > - preview other formats - LuaTeX
> > 
> > The PDF output comes out with US letter - portrait format.
> > 
> > BR - Daniel
> > 
> 
> Did it for LyX 2.3.2 + MikTeX + Win10.
> 
> Attached are
> 
>   * a MWE 
>   * PDF generated by LuaTeX with A4 setting 
>   * PDF generated by LuaTeX with Letter setting 
> 
> Seems like it LyX 2.3.2 setting is working fine in Windows and MikTeX
> for both A4 and letter.  
> 
> p.s. I used "showframe" package to show the boundaries.
> 
Now here is something funny: your example did work here indeed.

After some hair scratching, I decided that the only difference with mine
was the showframe package. 

So I suppressed it, and I was instantly back to US letter, portrait
format! Have you tested your example without the showframe package?

-- 
Daniel CLEMENT



Re: Luatex not previewing A4-landscape

2018-12-26 Thread Baris Erkus
On 26-Dec-18 3:33 PM, Daniel CLEMENT wrote:

Le mercredi 26 décembre 2018 à 13:21 +0200, Dr Eberhard Lisse a écrit :


Would you perhaps have a Minimal Working Example so others can test
this?

Ie remove EVERYTHING not related/producing the error and post the
resulting files.

el

On 2018-12-24 12:42 , Daniel CLEMENT wrote:


Dear list members,

While updating a PC under Debian, Lyx went from version 2.1.2 to 2.2.2
(and even 2.3.1 from Backports).

I'm having an issue with some documents which need to be compiled
under Luatex.

They use landscape, A4, 2-column page setup and the issue is: whenever
I try to specify custom margins, my preview reverts to portrait, US
letter format.  I checked that in the previewer, under document
properties.  This happens regardless of the document contents.

TIA for any insight about that - best regards,






I'd rather not clutter the list with unnecessary files: my "minimal
example" would be an empty file!

Here are the steps to reproduce:
[LyX 2.2.2 or 2.3.1 - TeXlive 2016]
- (new) empty document
- document > parameters: A4 - landscape
- margins: just uncheck "implicit margin" (no need to fill the rest)
- preview other formats - LuaTeX

The PDF output comes out with US letter - portrait format.

BR - Daniel



Did it for LyX 2.3.2 + MikTeX + Win10.

Attached are

  *   a MWE
  *   PDF generated by LuaTeX with A4 setting
  *   PDF generated by LuaTeX with Letter setting

Seems like it LyX 2.3.2 setting is working fine in Windows and MikTeX for both 
A4 and letter.

p.s. I used "showframe" package to show the boundaries.

--
↓↓
Please bottom-post. Start your reply here:


test-LuaTeX.lyx
Description: test-LuaTeX.lyx


A4.pdf
Description: A4.pdf


Letter.pdf
Description: Letter.pdf


Re: Luatex not previewing A4-landscape

2018-12-26 Thread Daniel CLEMENT
Le mercredi 26 décembre 2018 à 13:21 +0200, Dr Eberhard Lisse a écrit :
> Would you perhaps have a Minimal Working Example so others can test
> this?
> 
> Ie remove EVERYTHING not related/producing the error and post the
> resulting files.
> 
> el
> 
> On 2018-12-24 12:42 , Daniel CLEMENT wrote:
> > Dear list members,
> > 
> > While updating a PC under Debian, Lyx went from version 2.1.2 to 2.2.2
> > (and even 2.3.1 from Backports).
> > 
> > I'm having an issue with some documents which need to be compiled
> > under Luatex.
> > 
> > They use landscape, A4, 2-column page setup and the issue is: whenever
> > I try to specify custom margins, my preview reverts to portrait, US
> > letter format.  I checked that in the previewer, under document
> > properties.  This happens regardless of the document contents.
> > 
> > TIA for any insight about that - best regards,
> > 
> 
I'd rather not clutter the list with unnecessary files: my "minimal
example" would be an empty file! 

Here are the steps to reproduce:
[LyX 2.2.2 or 2.3.1 - TeXlive 2016]
- (new) empty document
- document > parameters: A4 - landscape
- margins: just uncheck "implicit margin" (no need to fill the rest)
- preview other formats - LuaTeX

The PDF output comes out with US letter - portrait format.

BR - Daniel



Re: Luatex not previewing A4-landscape

2018-12-26 Thread Dr Eberhard Lisse
Would you perhaps have a Minimal Working Example so others can test
this?

Ie remove EVERYTHING not related/producing the error and post the
resulting files.

el

On 2018-12-24 12:42 , Daniel CLEMENT wrote:
> Dear list members,
> 
> While updating a PC under Debian, Lyx went from version 2.1.2 to 2.2.2
> (and even 2.3.1 from Backports).
> 
> I'm having an issue with some documents which need to be compiled
> under Luatex.
> 
> They use landscape, A4, 2-column page setup and the issue is: whenever
> I try to specify custom margins, my preview reverts to portrait, US
> letter format.  I checked that in the previewer, under document
> properties.  This happens regardless of the document contents.
> 
> TIA for any insight about that - best regards,
> 



Re: [workaround] Luatex not previewing A4-landscape

2018-12-26 Thread Daniel CLEMENT
Le mardi 25 décembre 2018 à 15:16 +0100, Daniel CLEMENT a écrit :
> Le lundi 24 décembre 2018 à 11:41 +, Baris Erkus a écrit :
> > On 24-Dec-18 1:42 PM, Daniel CLEMENT wrote:
> > > Dear list members,
> > >
> > > While updating a PC under Debian, Lyx went from version 2.1.2 to
> > 2.2.2
> > > (and even 2.3.1 from Backports).
> > >
> > > I'm having an issue with some documents which need to be compiled
> > under
> > > Luatex.
> > >
> > > They use landscape, A4, 2-column page setup and the issue is:
> > whenever I
> > > try to specify custom margins, my preview reverts to portrait, US
> > letter
> > > format. I checked that in the previewer, under document properties.
> > This
> > > happens regardless of the document contents.
> > >
> > > TIA for any insight about that - best regards,
> > 
> > Which TeX system are you using? 
> 
> It's TeXlive: was 2014 on the old system (along with lyx 2.1.2), now
> 2016 with LyX 2.3.1 on the new install.
> 
> > Is there a ways to set the paper size 
> > from the TeX system for LuaTeX?
> 
> I don't know how to do that outside LyX... At present I'm also searching
> help about LuaTex
> > 
> > I remember the times that the TeX system dictates the paper sizes.
> > Your 
> > problem might be related to that? But not sure...
> 
> Well it's certainly related to LuaTex (a test document without LuaTex
> previews just fine in A4, landscape). Or perhaps LyX fails to transmit
> its paper size/orientation options to LuaTex?
> 
> Thx for your reply anyway - BR, DC
> > 
> > BE
> > 
> > -- 
> > ↓↓
> > Please bottom-post. Start your reply here:
> > 
> 
Well at least I have come up with a workaround.

Long story short, from Luatex reference...

http://www.luatex.org/svn/trunk/manual/luatex.pdf

(p. 29 - modifications) " The primitives \pdfpagewidth and
\pdfpageheight have been removed because \pagewidth and \pageheight have
that purpose. "

(I was trying the former). 

With \pagewidth 297mm and \pageheight 210mm in my document preamble I
got back my A4-landscape output.

Now, I trust LyX can take care of this. Maybe LyX is trying to pass the
outdated \pdfpagewidth and \pdfpageheight options?

BR - Daniel