Re: Failing exports

2018-07-29 Thread Jürgen Spitzmüller
Am Sonntag, den 29.07.2018, 19:52 +0200 schrieb Kornel Benko:
> Reasonable.  But not pragmatic in my eyes. The only bug I see in this
> case, is a missing error/warning
> message which would identify the failing reason.

No, it's a real error. Something is fishy with their counter
calculation.

> > I expect the RiverValley people to resolve this issue in the next
> > version. If not, more people should complain to them (and they
> > won't if
> > we hide the error from them).
> 
> That is, what I doubt. Once you have compiled your source, you get a
> .aux file. From then on, no errors occur.
> So I would not be surprised at missing complains.

This error will hassle you in any decent LaTeX editor, not only in LyX.
And this is how it should be.

Jürgen

> 
> > Jürgen
> 
>   Kornel
> 


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


Re: Failing exports

2018-07-29 Thread Kornel Benko
Am Sonntag, 29. Juli 2018 18:36:12 CEST schrieb Jürgen Spitzmüller 
:
> Am Sonntag, den 29.07.2018, 18:28 +0200 schrieb Kornel Benko:
> > And I like it. I would even remove our log-checking with hardcoded
> > messages (in LaTeX.cpp) and instead
> > replace them with specific strings from the layout/module files. But
> > that will be rejected too I suppose.
> 
> Note that I am not the one to "reject" things. My point is, though,
> that if we start things like this to work around bugs in current
> versions of packages/classes, this will become unmaintainable at some
> point.

Reasonable.  But not pragmatic in my eyes. The only bug I see in this case, is 
a missing error/warning
message which would identify the failing reason.

> I expect the RiverValley people to resolve this issue in the next
> version. If not, more people should complain to them (and they won't if
> we hide the error from them).

That is, what I doubt. Once you have compiled your source, you get a .aux file. 
From then on, no errors occur.
So I would not be surprised at missing complains.

> Jürgen

Kornel



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


Re: Failing exports

2018-07-29 Thread Jürgen Spitzmüller
Am Sonntag, den 29.07.2018, 18:28 +0200 schrieb Kornel Benko:
> And I like it. I would even remove our log-checking with hardcoded
> messages (in LaTeX.cpp) and instead
> replace them with specific strings from the layout/module files. But
> that will be rejected too I suppose.

Note that I am not the one to "reject" things. My point is, though,
that if we start things like this to work around bugs in current
versions of packages/classes, this will become unmaintainable at some
point.

I expect the RiverValley people to resolve this issue in the next
version. If not, more people should complain to them (and they won't if
we hide the error from them).

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-29 Thread Kornel Benko
Am Sonntag, 29. Juli 2018 18:14:04 CEST schrieb Jürgen Spitzmüller 
:
> Am Sonntag, den 29.07.2018, 17:16 +0200 schrieb Kornel Benko:
> > Still no answer. 
> 
> They might have holidays, as well.
> 
> > Can we have a new entry in a layout file like
> > 
> > RerunLatexIfError   3
> > 
> > which would rerun latex in case of errors, but at most 3 times?
> 
> I don't like this idea. This is clearly something to be sorted out
> upstream (in the class).
> 
> Jürgen
> 
> > 

And I like it. I would even remove our log-checking with hardcoded messages (in 
LaTeX.cpp) and instead
replace them with specific strings from the layout/module files. But that will 
be rejected too I suppose.

Kornel


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


Re: Failing exports

2018-07-29 Thread Jürgen Spitzmüller
Am Sonntag, den 29.07.2018, 17:16 +0200 schrieb Kornel Benko:
> Still no answer. 

They might have holidays, as well.

> Can we have a new entry in a layout file like
> 
>   RerunLatexIfError   3
> 
> which would rerun latex in case of errors, but at most 3 times?

I don't like this idea. This is clearly something to be sorted out
upstream (in the class).

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-29 Thread Scott Kostyshak
On Sun, Jul 29, 2018 at 03:44:09PM +, Kornel Benko wrote:
> Am Sonntag, 29. Juli 2018 11:31:49 CEST schrieb Scott Kostyshak 
> :
> > On Sun, Jul 29, 2018 at 03:16:13PM +, Kornel Benko wrote:
> > > Am Donnerstag, 26. Juli 2018 22:47:04 CEST schrieb Kornel Benko 
> > > :
> > > > Am Mittwoch, 25. Juli 2018 17:07:31 CEST schrieb Jürgen Spitzmüller 
> > > > :
> > > > > Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> > > > > > I'd like to, but there is no specific author mentioned, (only
> > > > > > 'Elsevier Ltd'). I probably would have to subscribe some TeX list.
> > > > > 
> > > > > The manual says:
> > > > > 
> > > > > "Bugs, feature requests, suggestions
> > > > > and comments shall be mailed to ."
> > > > > 
> > > > > Jürgen
> > > > > 
> > > > 
> > > > I mailed, but no answer so far :(
> > > > 
> > > 
> > > Still no answer. Can we have a new entry in a layout file like
> > > 
> > >   RerunLatexIfError   3
> > > 
> > > which would rerun latex in case of errors, but at most 3 times?
> > 
> > You know the string in the log that needs to be grepped right?
> 
> This may change with the latex engine ...
> 
> > What
> > about the following instead?
> > 
> > RerunIfLogContains  
> > 
> > Scott
> 
> OK, but we have to make sure, that the rerun count be finite.
> So a max. count should be given too. And only in error-case.
>   RerunIfLogContains ,

Note that there is already a re-run maximum of 6 I think. Note that this
thread is related:

  https://tex.stackexchange.com/a/438735/12212

In any case, I expect both of our proposals to be rejected.

Scott


signature.asc
Description: PGP signature


Re: Failing exports

2018-07-29 Thread Kornel Benko
Am Sonntag, 29. Juli 2018 11:31:49 CEST schrieb Scott Kostyshak 
:
> On Sun, Jul 29, 2018 at 03:16:13PM +, Kornel Benko wrote:
> > Am Donnerstag, 26. Juli 2018 22:47:04 CEST schrieb Kornel Benko 
> > :
> > > Am Mittwoch, 25. Juli 2018 17:07:31 CEST schrieb Jürgen Spitzmüller 
> > > :
> > > > Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> > > > > I'd like to, but there is no specific author mentioned, (only
> > > > > 'Elsevier Ltd'). I probably would have to subscribe some TeX list.
> > > > 
> > > > The manual says:
> > > > 
> > > > "Bugs, feature requests, suggestions
> > > > and comments shall be mailed to ."
> > > > 
> > > > Jürgen
> > > > 
> > > 
> > > I mailed, but no answer so far :(
> > > 
> > 
> > Still no answer. Can we have a new entry in a layout file like
> > 
> > RerunLatexIfError   3
> > 
> > which would rerun latex in case of errors, but at most 3 times?
> 
> You know the string in the log that needs to be grepped right?

This may change with the latex engine ...

> What
> about the following instead?
> 
>   RerunIfLogContains  
> 
> Scott

OK, but we have to make sure, that the rerun count be finite.
So a max. count should be given too. And only in error-case.
RerunIfLogContains ,

Kornel

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


Re: Failing exports

2018-07-29 Thread Scott Kostyshak
On Sun, Jul 29, 2018 at 03:16:13PM +, Kornel Benko wrote:
> Am Donnerstag, 26. Juli 2018 22:47:04 CEST schrieb Kornel Benko 
> :
> > Am Mittwoch, 25. Juli 2018 17:07:31 CEST schrieb Jürgen Spitzmüller 
> > :
> > > Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> > > > I'd like to, but there is no specific author mentioned, (only
> > > > 'Elsevier Ltd'). I probably would have to subscribe some TeX list.
> > > 
> > > The manual says:
> > > 
> > > "Bugs, feature requests, suggestions
> > > and comments shall be mailed to ."
> > > 
> > > Jürgen
> > > 
> > 
> > I mailed, but no answer so far :(
> > 
> 
> Still no answer. Can we have a new entry in a layout file like
> 
>   RerunLatexIfError   3
> 
> which would rerun latex in case of errors, but at most 3 times?

You know the string in the log that needs to be grepped right? What
about the following instead?

RerunIfLogContains  

Scott


signature.asc
Description: PGP signature


Re: Failing exports

2018-07-29 Thread Kornel Benko
Am Donnerstag, 26. Juli 2018 22:47:04 CEST schrieb Kornel Benko 
:
> Am Mittwoch, 25. Juli 2018 17:07:31 CEST schrieb Jürgen Spitzmüller 
> :
> > Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> > > I'd like to, but there is no specific author mentioned, (only
> > > 'Elsevier Ltd'). I probably would have to subscribe some TeX list.
> > 
> > The manual says:
> > 
> > "Bugs, feature requests, suggestions
> > and comments shall be mailed to ."
> > 
> > Jürgen
> > 
> 
> I mailed, but no answer so far :(
> 

Still no answer. Can we have a new entry in a layout file like

RerunLatexIfError   3

which would rerun latex in case of errors, but at most 3 times?

Kornel


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


Re: Failing exports

2018-07-26 Thread Kornel Benko
Am Mittwoch, 25. Juli 2018 17:07:31 CEST schrieb Jürgen Spitzmüller 
:
> Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> > I'd like to, but there is no specific author mentioned, (only
> > 'Elsevier Ltd'). I probably would have to subscribe some TeX list.
> 
> The manual says:
> 
> "Bugs, feature requests, suggestions
> and comments shall be mailed to ."
> 
> Jürgen
> 

I mailed, but no answer so far :(

Kornel



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


Re: Failing exports

2018-07-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.07.2018, 16:07 +0200 schrieb Kornel Benko:
> I'd like to, but there is no specific author mentioned, (only
> 'Elsevier Ltd'). I probably would have to subscribe some TeX list.

The manual says:

"Bugs, feature requests, suggestions
and comments shall be mailed to ."

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-25 Thread Kornel Benko
Am Mittwoch, 25. Juli 2018 15:38:37 CEST schrieb Jürgen Spitzmüller 
:
> Am Mittwoch, den 25.07.2018, 15:30 +0200 schrieb Kornel Benko:
> > BTW, this patch cures it for me.
> 
> Yes, but we cannot ignore this rather genuine error message. IMHO this
> error should not occur in the first place. Thus: most likely bug in the
> class, please report to the authors.
> 
> Jürgen
> 

I'd like to, but there is no specific author mentioned, (only 'Elsevier Ltd'). 
I probably would have to subscribe some TeX list.

Kornel

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


Re: Failing exports

2018-07-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.07.2018, 15:30 +0200 schrieb Kornel Benko:
> BTW, this patch cures it for me.

Yes, but we cannot ignore this rather genuine error message. IMHO this
error should not occur in the first place. Thus: most likely bug in the
class, please report to the authors.

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-25 Thread Kornel Benko
Am Mittwoch, 25. Juli 2018 15:15:34 CEST schrieb Jürgen Spitzmüller 
:
> Am Mittwoch, den 25.07.2018, 15:09 +0200 schrieb Kornel Benko:
> > Manually using pdflatex on exported .tex file has warnings and the
> > tiltle in pdf is without the mark.
> > But the second call to pdflatex creates the correct output and no
> > warnings.
> 
> But where does the error message come from?
> 
> > So, from my POV, elsevier class needs a second latex run. How can we
> > achieve this automatically?
> 
> Can you post the logs of both manual runs, please?
> 
> Jürgen
> 

BTW, this patch cures it for me.

Korneldiff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 0144e1c..afcfbbf 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -895,11 +895,13 @@ int LaTeX::scanLogFile(TeXErrors & terr)
 if (contains(desc,
 	"Package babel Error: You haven't defined the language")
 || contains(desc,
 	"Package babel Error: You haven't loaded the option")
 || contains(desc,
-	"Package babel Error: Unknown language"))
+	"Package babel Error: Unknown language")
+|| contains(desc,
+	"Missing number, treated as zero"))
 	retval |= ERROR_RERUN;
 // get the line number:
 int line = 0;
 sscanf(tmp.c_str(), "l.%d", );
 // get the rest of the message:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded 
format=pdflatex 2018.7.5)  25 JUL 2018 15:28
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**elsarticle.tex
(./elsarticle.tex
LaTeX2e <2018-04-01> patch level 5
(/usr9/local/texlive/2018/texmf-dist/tex/latex/elsarticle/elsarticle.cls
Document Class: elsarticle 2018/06/08, 3.0: Elsevier Ltd
\@bls=\dimen102
(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen103
)
(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)

(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)

(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.

(/usr9/local/texlive/2018/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
))
\Gin@req@height=\dimen104
\Gin@req@width=\dimen105
)
\c@tnote=\count88
\c@fnote=\count89
\c@cnote=\count90
\c@ead=\count91
\c@author=\count92
\@eadauthor=\toks15
\c@affn=\count93
\absbox=\box26
\keybox=\box27
\Columnwidth=\dimen106
\space@left=\dimen107
\els@boxa=\box28
\els@boxb=\box29
\leftMargin=\dimen108
\@enLab=\toks16
\@sep=\skip43
\@@sep=\skip44

(/usr9/local/texlive/2018/texmf-dist/tex/latex/natbib/natbib.sty
Package: natbib 2010/09/13 8.31b (PWD, AO)
\bibhang=\skip45
\bibsep=\skip46
LaTeX Info: Redefining \cite on input line 694.
\c@NAT@ctr=\count94
)
\splwrite=\write3
\openout3 = `elsarticle.spl'.

\appnamewidth=\dimen109
)
(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2017/04/05 v2.0i Standard LaTeX package

(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file
LaTeX Font Info:Redeclaring font encoding T1 on input line 48.
))
(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/04/06 v1.3b Input encoding file
\inpenc@prehook=\toks17
\inpenc@posthook=\toks18

(/usr9/local/texlive/2018/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2018/04/06 v1.3b Input encoding file
))
(/usr9/local/texlive/2018/texmf-dist/tex/latex/amscls/amsthm.sty
Package: amsthm 2017/10/31 v2.20.4
\thm@style=\toks19
\thm@bodyfont=\toks20
\thm@headfont=\toks21
\thm@notefont=\toks22
\thm@headpunct=\toks23
\thm@preskip=\skip47
\thm@postskip=\skip48
\thm@headsep=\skip49
\dth@everypar=\toks24
LaTeX Info: Redefining \qed on input line 274.
)
\c@thm=\count95

(/usr9/local/texlive/2018/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2018/06/05 3.22 The Babel package

(/usr9/local/texlive/2018/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2018/06/05 3.22 Babel switching mechanism
)

Re: Failing exports

2018-07-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.07.2018, 15:09 +0200 schrieb Kornel Benko:
> Manually using pdflatex on exported .tex file has warnings and the
> tiltle in pdf is without the mark.
> But the second call to pdflatex creates the correct output and no
> warnings.

But where does the error message come from?

> So, from my POV, elsevier class needs a second latex run. How can we
> achieve this automatically?

Can you post the logs of both manual runs, please?

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-25 Thread Kornel Benko
Am Mittwoch, 25. Juli 2018 13:06:29 CEST schrieb Jürgen Spitzmüller 
:
> Am Mittwoch, den 25.07.2018, 12:08 +0200 schrieb Kornel Benko:
> > Am Samstag, 21. Juli 2018 19:34:20 CEST schrieb Kornel Benko <
> > kor...@lyx.org>:
> > > templates/elsarticle fails because of some problem with
> > > \end{frontmatter}
> > > \end{frontmatter}
> > >   {}
> > > A number should have been here; I inserted `0'.
> > > (If you can't figure out why I needed to see a number,
> > > look up `weird error' in the index to The TeXbook.)
> > > 
> > > 
> > 
> > What about this one? I seem unable to find the reason.
> 
> Seems related to the affiliation foot note. Maybe a bug in the class.
> Write a bug report to the author.
> 
> Jürgen
> 

Manually using pdflatex on exported .tex file has warnings and the tiltle in 
pdf is without the mark.
But the second call to pdflatex creates the correct output and no warnings.

So, from my POV, elsevier class needs a second latex run. How can we achieve 
this automatically?

Kornel

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


Re: Failing exports

2018-07-25 Thread Jürgen Spitzmüller
Am Mittwoch, den 25.07.2018, 12:08 +0200 schrieb Kornel Benko:
> Am Samstag, 21. Juli 2018 19:34:20 CEST schrieb Kornel Benko <
> kor...@lyx.org>:
> > templates/elsarticle fails because of some problem with
> > \end{frontmatter}
> > \end{frontmatter}
> >   {}
> > A number should have been here; I inserted `0'.
> > (If you can't figure out why I needed to see a number,
> > look up `weird error' in the index to The TeXbook.)
> > 
> > 
> 
> What about this one? I seem unable to find the reason.

Seems related to the affiliation foot note. Maybe a bug in the class.
Write a bug report to the author.

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-25 Thread Kornel Benko
Am Samstag, 21. Juli 2018 19:34:20 CEST schrieb Kornel Benko :
> templates/elsarticle fails because of some problem with \end{frontmatter}
> \end{frontmatter}
>   {}
> A number should have been here; I inserted `0'.
> (If you can't figure out why I needed to see a number,
> look up `weird error' in the index to The TeXbook.)
> 
> 

What about this one? I seem unable to find the reason.

Kornel


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


Re: Failing exports

2018-07-24 Thread Kornel Benko
Am Montag, 23. Juli 2018 15:41:31 CEST schrieb Jürgen Spitzmüller 
:
> 2018-07-22 7:44 GMT+02:00 Kornel Benko :
> 
> > Am Samstag, 21. Juli 2018 20:03:14 CEST schrieb Jürgen Spitzmüller <
> > sp...@lyx.org>:
> > > Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> > > > examples/europeCV, examples/es/europeCV
> > > > Runaway argument?
> > > > ! Paragraph ended before \\ecvtelephone was complete.
> > > > 
> > > >\par
> > > > l.39
> > > >
> > > > I suspect you've forgotten a `}', causing me to apply this
> > > > control sequence to too much text. How can we recover?
> > > > My plan is to forget the whole thing and hope for the best.
> > >
> > > \ecvtelephone got a second mandatory argument in the recent release:
> > >
> > > \ecvtelephone[mobile]{home}{office}
> > >
> > > We need to support this in the layout. But it's not really backwards
> > > compatible.
> >
> 
> The europecv issues have been fixed upstream and will be part of the next
> release of the class (which should be due soon).

With toady's TL18-update the europecv tests pass.

> We still should add support for the new features eventually, but at least
> our documents will compile again after the update.
> 
> Jürgen

Kornel



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


Re: Failing exports

2018-07-23 Thread Jürgen Spitzmüller
2018-07-22 7:44 GMT+02:00 Kornel Benko :

> Am Samstag, 21. Juli 2018 20:03:14 CEST schrieb Jürgen Spitzmüller <
> sp...@lyx.org>:
> > Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> > > examples/europeCV, examples/es/europeCV
> > > Runaway argument?
> > > ! Paragraph ended before \\ecvtelephone was complete.
> > > 
> > >\par
> > > l.39
> > >
> > > I suspect you've forgotten a `}', causing me to apply this
> > > control sequence to too much text. How can we recover?
> > > My plan is to forget the whole thing and hope for the best.
> >
> > \ecvtelephone got a second mandatory argument in the recent release:
> >
> > \ecvtelephone[mobile]{home}{office}
> >
> > We need to support this in the layout. But it's not really backwards
> > compatible.
>

The europecv issues have been fixed upstream and will be part of the next
release of the class (which should be due soon).

We still should add support for the new features eventually, but at least
our documents will compile again after the update.

Jürgen


Re: Failing exports

2018-07-22 Thread Kornel Benko
Am Sonntag, 22. Juli 2018 20:05:10 CEST schrieb Jürgen Spitzmüller 
:
> Am Sonntag, den 22.07.2018, 19:13 +0200 schrieb Jürgen Spitzmüller:
> > > Disallow any inset inside ERT
> > 
> > Yes, I was sure this is the issue.
> 
> fixed.
> 
> Jürgen
> 

Confirmed, ja/Math.lyx tests succeeded now.
Thanks
Kornel 


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


Re: Failing exports

2018-07-22 Thread Jürgen Spitzmüller
Am Sonntag, den 22.07.2018, 19:13 +0200 schrieb Jürgen Spitzmüller:
> > Disallow any inset inside ERT
> 
> Yes, I was sure this is the issue.

fixed.

Jürgen


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


Re: Failing exports

2018-07-22 Thread Jürgen Spitzmüller
Am Sonntag, den 22.07.2018, 14:06 +0200 schrieb Kornel Benko:
> bisect led to
> d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91 is the first bad commit
> commit d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91
> Author: Juergen Spitzmueller 
> Date:   Tue Jul 10 07:11:59 2018 +0200
> 
> Disallow any inset inside ERT

Yes, I was sure this is the issue. Thanks for checking.

Jürgen


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


Re: Failing exports

2018-07-22 Thread Kornel Benko
Am Sonntag, 22. Juli 2018 15:01:06 CEST schrieb Jean-Marc Lasgouttes 
:
> Le 22/07/2018 à 14:57, Jean-Marc Lasgouttes a écrit :
> > Le 22/07/2018 à 14:06, Kornel Benko a écrit :
> >> bisect led to
> >> d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91 is the first bad commit
> >> commit d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91
> >> Author: Juergen Spitzmueller 
> >> Date:   Tue Jul 10 07:11:59 2018 +0200
> >>
> >>  Disallow any inset inside ERT
> > 
> > Not a lyx2lyx issue, then. Good.
> 
> Thanks for the bisect BTW.

:)

> I find them so long and inconvenient to do 
> that I try to avoid them (in this case, I asked you because I thought it 
> was one of the two recent lyx2lyx changes :).
> 
> JMarc

Yes, it looked like lyx2lyx error. But sometimes a bisect is a must :(

Kornel



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


Re: Failing exports

2018-07-22 Thread Jean-Marc Lasgouttes

Le 22/07/2018 à 14:57, Jean-Marc Lasgouttes a écrit :

Le 22/07/2018 à 14:06, Kornel Benko a écrit :

bisect led to
d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91 is the first bad commit
commit d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91
Author: Juergen Spitzmueller 
Date:   Tue Jul 10 07:11:59 2018 +0200

 Disallow any inset inside ERT


Not a lyx2lyx issue, then. Good.


Thanks for the bisect BTW. I find them so long and inconvenient to do 
that I try to avoid them (in this case, I asked you because I thought it 
was one of the two recent lyx2lyx changes :).


JMarc


Re: Failing exports

2018-07-22 Thread Jean-Marc Lasgouttes

Le 22/07/2018 à 14:06, Kornel Benko a écrit :

bisect led to
d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91 is the first bad commit
commit d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91
Author: Juergen Spitzmueller 
Date:   Tue Jul 10 07:11:59 2018 +0200

 Disallow any inset inside ERT


Not a lyx2lyx issue, then. Good.

JMarc


 Attempting to do this crashes in master, and is not supported anyway.

:04 04 9a0e94fc78f55cf266b3de53907516b776d51bf7 
e7e6f5812075fbb01963a024f4130050d04a15eb M  src

Kornel





Re: Failing exports

2018-07-22 Thread Kornel Benko
Am Sonntag, 22. Juli 2018 13:35:23 CEST schrieb Jean-Marc Lasgouttes 
:
> Le 22/07/2018 à 11:08, Kornel Benko a écrit :
> > Am Sonntag, 22. Juli 2018 10:32:59 CEST schrieb Jürgen Spitzmüller 
> > :
> >> Am Sonntag, den 22.07.2018, 09:59 +0200 schrieb Kornel Benko:
> >>> It is \ only. Search for instance for ' sungsmittel', then open the
> >>> ERT to the left.
> >>
> >> Not here. See screenshot. Are you sure yours is a clean checkout?
> > 
> > Yes, checked multiple times.
> > BUT
> > there is something fishy with lyx2lyx probably.
> > Compare orig snippet with converted to 2.4.
> > And, in fact, using lyx2.3 I _can_ compile.
> 
> Can you tell which of the recent lyx2lyx changes is faulty? The relevant 
> ticket is
> https://www.lyx.org/trac/ticket/11200
> 
> JMarc

bisect led to
d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91 is the first bad commit
commit d41c3f27d9192bd3b0de89a04ccf2fcf16bb4c91
Author: Juergen Spitzmueller 
Date:   Tue Jul 10 07:11:59 2018 +0200

Disallow any inset inside ERT

Attempting to do this crashes in master, and is not supported anyway.

:04 04 9a0e94fc78f55cf266b3de53907516b776d51bf7 
e7e6f5812075fbb01963a024f4130050d04a15eb M  src

Kornel

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


Re: Failing exports

2018-07-22 Thread Jean-Marc Lasgouttes

Le 22/07/2018 à 11:08, Kornel Benko a écrit :

Am Sonntag, 22. Juli 2018 10:32:59 CEST schrieb Jürgen Spitzmüller 
:

Am Sonntag, den 22.07.2018, 09:59 +0200 schrieb Kornel Benko:

It is \ only. Search for instance for ' sungsmittel', then open the
ERT to the left.


Not here. See screenshot. Are you sure yours is a clean checkout?


Yes, checked multiple times.
BUT
there is something fishy with lyx2lyx probably.
Compare orig snippet with converted to 2.4.
And, in fact, using lyx2.3 I _can_ compile.


Can you tell which of the recent lyx2lyx changes is faulty? The relevant 
ticket is

https://www.lyx.org/trac/ticket/11200

JMarc



Re: Failing exports

2018-07-22 Thread Kornel Benko
Am Sonntag, 22. Juli 2018 10:32:59 CEST schrieb Jürgen Spitzmüller 
:
> Am Sonntag, den 22.07.2018, 09:59 +0200 schrieb Kornel Benko:
> > It is \ only. Search for instance for ' sungsmittel', then open the
> > ERT to the left.
> 
> Not here. See screenshot. Are you sure yours is a clean checkout?

Yes, checked multiple times.
BUT
there is something fishy with lyx2lyx probably.
Compare orig snippet with converted to 2.4.
And, in fact, using lyx2.3 I _can_ compile.

Kornelberlagerten Signale (Netzwerk, L
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash

\begin_inset Quotes erd
\end_inset

o
\end_layout

\end_inset

sungsmittel) zu trennen.

berlagerten Signale (Netzwerk, L
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
o
\end_layout

\end_inset

sungsmittel) zu trennen.



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


Re: Failing exports

2018-07-22 Thread Jürgen Spitzmüller
Am Sonntag, den 22.07.2018, 09:34 +0200 schrieb Jürgen Spitzmüller:
> Am Sonntag, den 22.07.2018, 07:44 +0200 schrieb Kornel Benko:
> > IMHO, the master has some time before release. Pleading for the
> > change.
> 
> We certainly need to do that change, but still there will be this
> backwards compatibility problem we cannot sort out (except if we
> introduce our own definition).
> 
> This is really a flaw in the class itself.

And it's not the only one. Clearly the new maintainer of the class does
not care a bit about (or was not aware of) forward compatibility:
https://github.com/gsilano/EuropeCV/issues/2

This really makes maintenance of this class very hard, if not
impossible.

Jürgen

> 
> Jürgen
> 
> > 
> > Kornel


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


Re: Failing exports

2018-07-22 Thread Kornel Benko
Am Sonntag, 22. Juli 2018 09:37:45 CEST schrieb Jürgen Spitzmüller 
:
> Am Sonntag, den 22.07.2018, 07:38 +0200 schrieb Kornel Benko:
> > I am using the latest master too.
> > Changing the language of both German paragraphs in multicol env to
> > Japanese and substituting
> > \U\a\ss etc to Üäß 
> > then the compilation succeeds.
> 
> Strange. We did the opposite change just recently to fix a problem we
> had (and you reported) with non-Ascii glyphs.
> https://marc.info/?l=lyx-devel=153056731819336=2
> 
> BTW is it really \U\a rather than \"U\"a?
> 

It is \ only. Search for instance for ' sungsmittel', then open the ERT to the 
left.

Kornel


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


Re: Failing exports

2018-07-22 Thread Jürgen Spitzmüller
Am Sonntag, den 22.07.2018, 07:38 +0200 schrieb Kornel Benko:
> I am using the latest master too.
> Changing the language of both German paragraphs in multicol env to
> Japanese and substituting
> \U\a\ss etc to Üäß 
> then the compilation succeeds.

Strange. We did the opposite change just recently to fix a problem we
had (and you reported) with non-Ascii glyphs.
https://marc.info/?l=lyx-devel=153056731819336=2

BTW is it really \U\a rather than \"U\"a?

> 
>   Kornel


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


Re: Failing exports

2018-07-22 Thread Jürgen Spitzmüller
Am Sonntag, den 22.07.2018, 07:44 +0200 schrieb Kornel Benko:
> IMHO, the master has some time before release. Pleading for the
> change.

We certainly need to do that change, but still there will be this
backwards compatibility problem we cannot sort out (except if we
introduce our own definition).

This is really a flaw in the class itself.

Jürgen

> 
>   Kornel


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


Re: Failing exports

2018-07-21 Thread Kornel Benko
Am Samstag, 21. Juli 2018 20:03:14 CEST schrieb Jürgen Spitzmüller 
:
> Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> > examples/europeCV, examples/es/europeCV
> > Runaway argument?
> > ! Paragraph ended before \\ecvtelephone was complete.
> >  
> >\par 
> > l.39 
> >  
> > I suspect you've forgotten a `}', causing me to apply this
> > control sequence to too much text. How can we recover?
> > My plan is to forget the whole thing and hope for the best.
> 
> \ecvtelephone got a second mandatory argument in the recent release:
> 
> \ecvtelephone[mobile]{home}{office}
> 
> We need to support this in the layout. But it's not really backwards
> compatible.
> 
> Jürgen

IMHO, the master has some time before release. Pleading for the change.

Kornel


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


Re: Failing exports

2018-07-21 Thread Kornel Benko
Am Samstag, 21. Juli 2018 19:54:12 CEST schrieb Jürgen Spitzmüller 
:
> Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> > doc/ja/Math because of language encoding problems
> > multicols}\vspace{-6mm}
> > The control sequence at the end of the top line
> > of your error message was never \def'ed. If you have
> > misspelled it (e.g., `\hobx'), type `I' and the correct
> > spelling (e.g., `I\hbox'). Otherwise just continue,
> > and I'll forget about whatever was undefined.
> > 
> > ! Undefined control sequence.
> >  ...n Signale (Netzwerk, L\osungsmittel 
> 
> Cannot reproduce this one with master (haven't tried the others).
> 
> Jürgen
> 
> > 
> > 
> > 
> > Kornel
> 

I am using the latest master too.
Changing the language of both German paragraphs in multicol env to Japanese and 
substituting
\U\a\ss etc to Üäß 
then the compilation succeeds.

Kornel

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


Re: Failing exports

2018-07-21 Thread Jürgen Spitzmüller
Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> examples/europeCV, examples/es/europeCV
> Runaway argument?
> ! Paragraph ended before \\ecvtelephone was complete.
>  
>\par 
> l.39 
>  
> I suspect you've forgotten a `}', causing me to apply this
> control sequence to too much text. How can we recover?
> My plan is to forget the whole thing and hope for the best.

\ecvtelephone got a second mandatory argument in the recent release:

\ecvtelephone[mobile]{home}{office}

We need to support this in the layout. But it's not really backwards
compatible.

Jürgen


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


Re: Failing exports

2018-07-21 Thread Jürgen Spitzmüller
Am Samstag, den 21.07.2018, 19:34 +0200 schrieb Kornel Benko:
> doc/ja/Math because of language encoding problems
>   multicols}\vspace{-6mm}
>   The control sequence at the end of the top line
>   of your error message was never \def'ed. If you have
>   misspelled it (e.g., `\hobx'), type `I' and the correct
>   spelling (e.g., `I\hbox'). Otherwise just continue,
>   and I'll forget about whatever was undefined.
> 
>   ! Undefined control sequence.
>...n Signale (Netzwerk, L\osungsmittel 

Cannot reproduce this one with master (haven't tried the others).

Jürgen

> 
> 
> 
>   Kornel


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