Re: LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-07 Thread Jürgen Spitzmüller
Am Montag 06 Juli 2015, 20:43:05 schrieb Steve Litt:
 I looked at a .tex file created by LyX in November 2013, and that LaTeX
 file used \begin and \end to express homegrown environments. When did
 this change?
 
 So what are all of you doing about this kind of error? I can't be the
 only one.

If you need an environment in the LaTeX output, you need to define the lyx 
layout as an environment (LatexType Environment, not LatexType Command).

See attached (fixed) layout.

Jürgen
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{bug_example}



Input stdclass.inc
#Format 11
Input book.layout

Preamble
\newenvironment{proverbL}{\par~\\[0.2ex]\begin{itshape}\begin{Large}}{\end{Large}\end{itshape}~\\[0.3ex]}

EndPreamble

Style Proverb
LatexName   proverbL
LatexType   Environment
Font 
Series   Medium
Size Larger
Shape   Italic
EndFont
End



Re: LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-07 Thread Jürgen Spitzmüller
Am Montag 06 Juli 2015, 20:43:05 schrieb Steve Litt:
 I looked at a .tex file created by LyX in November 2013, and that LaTeX
 file used \begin and \end to express homegrown environments. When did
 this change?
 
 So what are all of you doing about this kind of error? I can't be the
 only one.

If you need an environment in the LaTeX output, you need to define the lyx 
layout as an environment (LatexType Environment, not LatexType Command).

See attached (fixed) layout.

Jürgen
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{bug_example}



Input stdclass.inc
#Format 11
Input book.layout

Preamble
\newenvironment{proverbL}{\par~\\[0.2ex]\begin{itshape}\begin{Large}}{\end{Large}\end{itshape}~\\[0.3ex]}

EndPreamble

Style Proverb
LatexName   proverbL
LatexType   Environment
Font 
Series   Medium
Size Larger
Shape   Italic
EndFont
End



Re: LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-07 Thread Jürgen Spitzmüller
Am Montag 06 Juli 2015, 20:43:05 schrieb Steve Litt:
> I looked at a .tex file created by LyX in November 2013, and that LaTeX
> file used \begin and \end to express homegrown environments. When did
> this change?
> 
> So what are all of you doing about this kind of error? I can't be the
> only one.

If you need an environment in the LaTeX output, you need to define the lyx 
layout as an environment (LatexType Environment, not LatexType Command).

See attached (fixed) layout.

Jürgen
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{bug_example}



Input stdclass.inc
#Format 11
Input book.layout

Preamble
\newenvironment{proverbL}{\par~\\[0.2ex]\begin{itshape}\begin{Large}}{\end{Large}\end{itshape}~\\[0.3ex]}

EndPreamble

Style Proverb
LatexName   proverbL
LatexType   Environment
Font 
Series   Medium
Size Larger
Shape   Italic
EndFont
End



LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-06 Thread Steve Litt
Hi all,

I'm getting this error message with LyX 2.0.3:

LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

when I use my Proverb environment. The minimal bug example lyx file
and the layout file (it can be local or not, doesn't matter, are
attached to this email.

I tried the usual Format 2 and Format 11 etc, but that caused the
layout not to get loaded.

I've tried everything I can possibly think of.

By the way, I can fix the problem by editing the created .tex file,
which LyX exports as :

==
\begin{document}
Steve was here


\proverbL{and now is gone}
\end{document}
==

If I the TeX file to:

==
\begin{document}
Steve was here


\begin{proverbL}
and now is gone
\end{proverbL}
\end{document}
==

And then

pdflatex bug_examp.tex

Then it works perfectly and produces the expected PDF output.

I looked at a .tex file created by LyX in November 2013, and that LaTeX
file used \begin and \end to express homegrown environments. When did
this change?

So what are all of you doing about this kind of error? I can't be the
only one.

SteveT

Steve Litt 
July 2015 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


bug_examp.lyx
Description: application/lyx


bug_examp.layout
Description: Binary data


LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-06 Thread Steve Litt
Hi all,

I'm getting this error message with LyX 2.0.3:

LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

when I use my Proverb environment. The minimal bug example lyx file
and the layout file (it can be local or not, doesn't matter, are
attached to this email.

I tried the usual Format 2 and Format 11 etc, but that caused the
layout not to get loaded.

I've tried everything I can possibly think of.

By the way, I can fix the problem by editing the created .tex file,
which LyX exports as :

==
\begin{document}
Steve was here


\proverbL{and now is gone}
\end{document}
==

If I the TeX file to:

==
\begin{document}
Steve was here


\begin{proverbL}
and now is gone
\end{proverbL}
\end{document}
==

And then

pdflatex bug_examp.tex

Then it works perfectly and produces the expected PDF output.

I looked at a .tex file created by LyX in November 2013, and that LaTeX
file used \begin and \end to express homegrown environments. When did
this change?

So what are all of you doing about this kind of error? I can't be the
only one.

SteveT

Steve Litt 
July 2015 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


bug_examp.lyx
Description: application/lyx


bug_examp.layout
Description: Binary data


LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-06 Thread Steve Litt
Hi all,

I'm getting this error message with LyX 2.0.3:

LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

when I use my Proverb environment. The minimal bug example lyx file
and the layout file (it can be local or not, doesn't matter, are
attached to this email.

I tried the usual Format 2 and Format 11 etc, but that caused the
layout not to get loaded.

I've tried everything I can possibly think of.

By the way, I can fix the problem by editing the created .tex file,
which LyX exports as :

==
\begin{document}
Steve was here


\proverbL{and now is gone}
\end{document}
==

If I the TeX file to:

==
\begin{document}
Steve was here


\begin{proverbL}
and now is gone
\end{proverbL}
\end{document}
==

And then

pdflatex bug_examp.tex

Then it works perfectly and produces the expected PDF output.

I looked at a .tex file created by LyX in November 2013, and that LaTeX
file used \begin and \end to express homegrown environments. When did
this change?

So what are all of you doing about this kind of error? I can't be the
only one.

SteveT

Steve Litt 
July 2015 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21


bug_examp.lyx
Description: application/lyx


bug_examp.layout
Description: Binary data