Re: Breaking the same LaTeX command in several contiguous lines

2016-02-04 Thread Paul Smith
On Thu, Feb 4, 2016 at 12:12 AM, Richard Heck  wrote:
>
> Sure it is. Use the ERT's in the same paragraph.
>
> Thanks, Kornel, but, unfortunately, your example does not work,
> because it fails to convert to the current stable LyX version.
>
> Put your cursor just after the first ERT, and press ctrl + return (at
> least this is the shortcut on Linux).
>
> Thanks, Scott, but that does not work. (Please, see and compile the
> attached example; it outputs a two-lines integral...)
>
> Ah I see what you mean. In Kornel's attachment the second ERT only
> contained the dollarsign and not the x, so it worked.
>
> For your example, add a % at the end of the first ERT (so inside the ERT
> at the very end).
>
> Thanks, Scott. That works!
>
> Also: Add in Local Layout, under Document> Settings:
>
> Format 41
>
> InsetLayout ERT
>
> MultiPar true
>
> End
>
> Then you can hit "return" inside ERT to get multiple lines.

Thanks, Richard, for your solution.

Paul


Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
Dear All,

Is it possible to break into different continuous lines a same LaTeX
command in ERT? Please, see the attached example, with which I get
errors.

Thanks in advance,

Paul


break_command.lyx
Description: application/lyx


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Kornel Benko
Am Mittwoch, 3. Februar 2016 um 12:29:00, schrieb Paul Smith 
> Dear All,
> 
> Is it possible to break into different continuous lines a same LaTeX
> command in ERT? Please, see the attached example, with which I get
> errors.

Why don't you use _one_ ERT for it? Works here that way.

> Thanks in advance,
> 
> Paul

Kornel

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


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 3:29 PM, Paul Smith  wrote:
>>>
>>> Is it possible to break into different continuous lines a same LaTeX
>>> command in ERT? Please, see the attached example, with which I get
>>> errors.
>>
>> Why don't you use _one_ ERT for it? Works here that way.
>
> Thanks, Kornel, for your reply. The point is how to have two ERT boxes
> in different and consecutive lines and the corresponding LaTeX file
> with no blank line inserted between the code of the two ERT boxes. (My
> code is much more complicate than the simple example provided here by
> me.)

If the two ERT boxes break a LaTeX command in the middle (one ERT box
with the first part of the command and the second ERT box with the
second part), then you get an error. The point is: How to avoid such
an error, Kornel?

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 2:38 PM, Kornel Benko  wrote:
>>
>> Is it possible to break into different continuous lines a same LaTeX
>> command in ERT? Please, see the attached example, with which I get
>> errors.
>
> Why don't you use _one_ ERT for it? Works here that way.

Thanks, Kornel, for your reply. The point is how to have two ERT boxes
in different and consecutive lines and the corresponding LaTeX file
with no blank line inserted between the code of the two ERT boxes. (My
code is much more complicate than the simple example provided here by
me.)

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Richard Heck

On 02/03/2016 01:09 PM, Paul Smith wrote:

On Wed, Feb 3, 2016 at 5:41 PM, Scott Kostyshak  wrote:

Sure it is. Use the ERT's in the same paragraph.

Thanks, Kornel, but, unfortunately, your example does not work,
because it fails to convert to the current stable LyX version.

Put your cursor just after the first ERT, and press ctrl + return (at
least this is the shortcut on Linux).

Thanks, Scott, but that does not work. (Please, see and compile the
attached example; it outputs a two-lines integral...)

Ah I see what you mean. In Kornel's attachment the second ERT only
contained the dollarsign and not the x, so it worked.

For your example, add a % at the end of the first ERT (so inside the ERT
at the very end).

Thanks, Scott. That works!


Also: Add in Local Layout, under Document> Settings:

Format 41

InsetLayout ERT

MultiPar true

End

Then you can hit "return" inside ERT to get multiple lines.

Richard




Paul




Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 3:48 PM, Kornel Benko  wrote:
>> >>>
>> >>> Is it possible to break into different continuous lines a same LaTeX
>> >>> command in ERT? Please, see the attached example, with which I get
>> >>> errors.
>> >>
>> >> Why don't you use _one_ ERT for it? Works here that way.
>> >
>> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
>> > in different and consecutive lines and the corresponding LaTeX file
>> > with no blank line inserted between the code of the two ERT boxes. (My
>> > code is much more complicate than the simple example provided here by
>> > me.)
>>
>> If the two ERT boxes break a LaTeX command in the middle (one ERT box
>> with the first part of the command and the second ERT box with the
>> second part), then you get an error. The point is: How to avoid such
>> an error, Kornel?
>
> The problem here is that the first '$' is in one paragraph, the other '$ is 
> in the next paragraph.
> The effect in created tex is:
> ...
> $\int x
>
> $
> ...

Correct, Kornel. But is it possible to have both in the same
paragraph, without having to use a single ERT box (instead of two
separate ERT boxes)? The reason why I am asking this question is to
have the possibility of arranging my several ERT boxes more clearly in
the LyX document, without having all of them in the same line.

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Scott Kostyshak
On Wed, Feb 03, 2016 at 04:23:48PM +, Paul Smith wrote:
> On Wed, Feb 3, 2016 at 4:18 PM, Kornel Benko  wrote:

> > Sure it is. Use the ERT's in the same paragraph.
> 
> Thanks, Kornel, but, unfortunately, your example does not work,
> because it fails to convert to the current stable LyX version.

Put your cursor just after the first ERT, and press ctrl + return (at
least this is the shortcut on Linux).

Scott


signature.asc
Description: PGP signature


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 4:18 PM, Kornel Benko  wrote:
>> >> >>>
>> >> >>> Is it possible to break into different continuous lines a same LaTeX
>> >> >>> command in ERT? Please, see the attached example, with which I get
>> >> >>> errors.
>> >> >>
>> >> >> Why don't you use _one_ ERT for it? Works here that way.
>> >> >
>> >> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
>> >> > in different and consecutive lines and the corresponding LaTeX file
>> >> > with no blank line inserted between the code of the two ERT boxes. (My
>> >> > code is much more complicate than the simple example provided here by
>> >> > me.)
>> >>
>> >> If the two ERT boxes break a LaTeX command in the middle (one ERT box
>> >> with the first part of the command and the second ERT box with the
>> >> second part), then you get an error. The point is: How to avoid such
>> >> an error, Kornel?
>> >
>> > The problem here is that the first '$' is in one paragraph, the other '$ 
>> > is in the next paragraph.
>> > The effect in created tex is:
>> > ...
>> > $\int x
>> >
>> > $
>> > ...
>>
>> Correct, Kornel. But is it possible to have both in the same
>> paragraph, without having to use a single ERT box (instead of two
>> separate ERT boxes)? The reason why I am asking this question is to
>> have the possibility of arranging my several ERT boxes more clearly in
>> the LyX document, without having all of them in the same line.
>
> Sure it is. Use the ERT's in the same paragraph.

Thanks, Kornel, but, unfortunately, your example does not work,
because it fails to convert to the current stable LyX version.

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 5:41 PM, Scott Kostyshak  wrote:
>> >
>> >> > Sure it is. Use the ERT's in the same paragraph.
>> >>
>> >> Thanks, Kornel, but, unfortunately, your example does not work,
>> >> because it fails to convert to the current stable LyX version.
>> >
>> > Put your cursor just after the first ERT, and press ctrl + return (at
>> > least this is the shortcut on Linux).
>>
>> Thanks, Scott, but that does not work. (Please, see and compile the
>> attached example; it outputs a two-lines integral...)
>
> Ah I see what you mean. In Kornel's attachment the second ERT only
> contained the dollarsign and not the x, so it worked.
>
> For your example, add a % at the end of the first ERT (so inside the ERT
> at the very end).

Thanks, Scott. That works!

Paul


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Kornel Benko
Am Mittwoch, 3. Februar 2016 um 15:35:20, schrieb Paul Smith 
> On Wed, Feb 3, 2016 at 3:29 PM, Paul Smith  wrote:
> >>>
> >>> Is it possible to break into different continuous lines a same LaTeX
> >>> command in ERT? Please, see the attached example, with which I get
> >>> errors.
> >>
> >> Why don't you use _one_ ERT for it? Works here that way.
> >
> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
> > in different and consecutive lines and the corresponding LaTeX file
> > with no blank line inserted between the code of the two ERT boxes. (My
> > code is much more complicate than the simple example provided here by
> > me.)
> 
> If the two ERT boxes break a LaTeX command in the middle (one ERT box
> with the first part of the command and the second ERT box with the
> second part), then you get an error. The point is: How to avoid such
> an error, Kornel?

The problem here is that the first '$' is in one paragraph, the other '$ is in 
the next paragraph.
The effect in created tex is: 
...
$\int x

$
...

> Paul

Kornel

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


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Kornel Benko
Am Mittwoch, 3. Februar 2016 um 16:06:44, schrieb Paul Smith 
> On Wed, Feb 3, 2016 at 3:48 PM, Kornel Benko  wrote:
> >> >>>
> >> >>> Is it possible to break into different continuous lines a same LaTeX
> >> >>> command in ERT? Please, see the attached example, with which I get
> >> >>> errors.
> >> >>
> >> >> Why don't you use _one_ ERT for it? Works here that way.
> >> >
> >> > Thanks, Kornel, for your reply. The point is how to have two ERT boxes
> >> > in different and consecutive lines and the corresponding LaTeX file
> >> > with no blank line inserted between the code of the two ERT boxes. (My
> >> > code is much more complicate than the simple example provided here by
> >> > me.)
> >>
> >> If the two ERT boxes break a LaTeX command in the middle (one ERT box
> >> with the first part of the command and the second ERT box with the
> >> second part), then you get an error. The point is: How to avoid such
> >> an error, Kornel?
> >
> > The problem here is that the first '$' is in one paragraph, the other '$ is 
> > in the next paragraph.
> > The effect in created tex is:
> > ...
> > $\int x
> >
> > $
> > ...
>
> Correct, Kornel. But is it possible to have both in the same
> paragraph, without having to use a single ERT box (instead of two
> separate ERT boxes)? The reason why I am asking this question is to
> have the possibility of arranging my several ERT boxes more clearly in
> the LyX document, without having all of them in the same line.

Sure it is. Use the ERT's in the same paragraph.

> Paul

Kornel

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


break_command.lyx
Description: application/lyx


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Scott Kostyshak
On Wed, Feb 03, 2016 at 05:25:55PM +, Paul Smith wrote:
> On Wed, Feb 3, 2016 at 4:44 PM, Scott Kostyshak  wrote:
> >
> >> > Sure it is. Use the ERT's in the same paragraph.
> >>
> >> Thanks, Kornel, but, unfortunately, your example does not work,
> >> because it fails to convert to the current stable LyX version.
> >
> > Put your cursor just after the first ERT, and press ctrl + return (at
> > least this is the shortcut on Linux).
> 
> Thanks, Scott, but that does not work. (Please, see and compile the
> attached example; it outputs a two-lines integral...)

Ah I see what you mean. In Kornel's attachment the second ERT only
contained the dollarsign and not the x, so it worked.

For your example, add a % at the end of the first ERT (so inside the ERT
at the very end).

Scott


signature.asc
Description: PGP signature


Re: Breaking the same LaTeX command in several contiguous lines

2016-02-03 Thread Paul Smith
On Wed, Feb 3, 2016 at 4:44 PM, Scott Kostyshak  wrote:
>
>> > Sure it is. Use the ERT's in the same paragraph.
>>
>> Thanks, Kornel, but, unfortunately, your example does not work,
>> because it fails to convert to the current stable LyX version.
>
> Put your cursor just after the first ERT, and press ctrl + return (at
> least this is the shortcut on Linux).

Thanks, Scott, but that does not work. (Please, see and compile the
attached example; it outputs a two-lines integral...)

Paul


broken_ert_boxes_example2.lyx
Description: application/lyx