Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Richard Heck

On 05/21/2014 05:46 PM, Enrico Forestieri wrote:

 (For display maths, the presence of white space
 around it is almost invisible in the LyX window while it has a profound
 effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.


Would it be worth our outputting a pilcrow in such cases? or some other
visual indication? Maybe more vertical space, as one will get in the PDF?

Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Enrico Forestieri
On Thu, May 22, 2014 at 01:44:44PM -0400, Richard Heck wrote:
 On 05/21/2014 05:46 PM, Enrico Forestieri wrote:
  (For display maths, the presence of white space
  around it is almost invisible in the LyX window while it has a profound
  effect in the output.)
 
 Yes, this is really a bugger and the only way to recognize it is activating
 the end of paragraph marker in the preferences. If you see a pilcrow mark
 before the math inset it means that a blank line will be output. Placing the
 cursor just before the math inset and hitting the backspace key gets rid of 
 it.
 It's easier to get aware of a blank line after the math inset by the fact the
 following text is indented.
 
 Would it be worth our outputting a pilcrow in such cases? or some other
 visual indication? Maybe more vertical space, as one will get in the PDF?

I don't think that increasing the vertical space is a clear indicator
and that would also be a waste of screen space. On the other hand, it
seems odd outputting a pilcrow only in this case. Maybe a *small* vertical
double arrow like those used for inserting a vertical space is more
eye catching, or, perhaps, an arrow like the parbreak separator.

-- 
Enrico


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Richard Heck

On 05/21/2014 05:46 PM, Enrico Forestieri wrote:

 (For display maths, the presence of white space
 around it is almost invisible in the LyX window while it has a profound
 effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.


Would it be worth our outputting a pilcrow in such cases? or some other
visual indication? Maybe more vertical space, as one will get in the PDF?

Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Enrico Forestieri
On Thu, May 22, 2014 at 01:44:44PM -0400, Richard Heck wrote:
 On 05/21/2014 05:46 PM, Enrico Forestieri wrote:
  (For display maths, the presence of white space
  around it is almost invisible in the LyX window while it has a profound
  effect in the output.)
 
 Yes, this is really a bugger and the only way to recognize it is activating
 the end of paragraph marker in the preferences. If you see a pilcrow mark
 before the math inset it means that a blank line will be output. Placing the
 cursor just before the math inset and hitting the backspace key gets rid of 
 it.
 It's easier to get aware of a blank line after the math inset by the fact the
 following text is indented.
 
 Would it be worth our outputting a pilcrow in such cases? or some other
 visual indication? Maybe more vertical space, as one will get in the PDF?

I don't think that increasing the vertical space is a clear indicator
and that would also be a waste of screen space. On the other hand, it
seems odd outputting a pilcrow only in this case. Maybe a *small* vertical
double arrow like those used for inserting a vertical space is more
eye catching, or, perhaps, an arrow like the parbreak separator.

-- 
Enrico


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Richard Heck

On 05/21/2014 05:46 PM, Enrico Forestieri wrote:

> (For display maths, the presence of white space
> around it is almost invisible in the LyX window while it has a profound
> effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.


Would it be worth our outputting a pilcrow in such cases? or some other
visual indication? Maybe more vertical space, as one will get in the PDF?

Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-22 Thread Enrico Forestieri
On Thu, May 22, 2014 at 01:44:44PM -0400, Richard Heck wrote:
> On 05/21/2014 05:46 PM, Enrico Forestieri wrote:
> >> (For display maths, the presence of white space
> >> around it is almost invisible in the LyX window while it has a profound
> >> effect in the output.)
> >
> >Yes, this is really a bugger and the only way to recognize it is activating
> >the end of paragraph marker in the preferences. If you see a pilcrow mark
> >before the math inset it means that a blank line will be output. Placing the
> >cursor just before the math inset and hitting the backspace key gets rid of 
> >it.
> >It's easier to get aware of a blank line after the math inset by the fact the
> >following text is indented.
> 
> Would it be worth our outputting a pilcrow in such cases? or some other
> visual indication? Maybe more vertical space, as one will get in the PDF?

I don't think that increasing the vertical space is a clear indicator
and that would also be a waste of screen space. On the other hand, it
seems odd outputting a pilcrow only in this case. Maybe a *small* vertical
double arrow like those used for inserting a vertical space is more
eye catching, or, perhaps, an arrow like the parbreak separator.

-- 
Enrico


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-21 Thread Enrico Forestieri
 
http://www.mail-archive.com/search?l=lyx-users@lists.lyx.orgq=from:%22Guenter+Milde%22Guenter
 Milde writes:
 On 2014-05-17, Enrico Forestieri wrote:
  Roman Inflianskas writes:
 
  Thank you, it works and looks better, than -separator-.
 
  Just for information. This issue is solved for the next major release (2.2).
  To achieve your goal you can either simply hit return after an environment
  or use a local layout with NextNoIndent set to false, as you already did
  (but now it will work).
 
 Thanks a lot. This solves a long standing problem.
 
 How is the visual feedback?

You get a small arrow, similar to the one obtained with Ctrl+Enter but
blue instead of red, standing on its own line. This will also be one way
to separate environments: a double return gets you out of an environment
and a third one introduces this new separator, after which you can repeat
the same environment as the previous one. You will have a blank line in the
output but, if this is not wanted, with a right click you can change this to
a plain separator. Visually, the blue arrow will change to a small red
line segment which produces nothing in the output (you will actually have
the blank line commented out by '%' sign, so this is really equivalent
to a space).

This cannot be backported because it is a file format change, but the
NextNoIndent glitch has been fixed also for LyX 2.1.1, so the example
of the OP will also work.

 (For display maths, the presence of white space
 around it is almost invisible in the LyX window while it has a profound
 effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-21 Thread Enrico Forestieri
 
http://www.mail-archive.com/search?l=lyx-users@lists.lyx.orgq=from:%22Guenter+Milde%22Guenter
 Milde writes:
 On 2014-05-17, Enrico Forestieri wrote:
  Roman Inflianskas writes:
 
  Thank you, it works and looks better, than -separator-.
 
  Just for information. This issue is solved for the next major release (2.2).
  To achieve your goal you can either simply hit return after an environment
  or use a local layout with NextNoIndent set to false, as you already did
  (but now it will work).
 
 Thanks a lot. This solves a long standing problem.
 
 How is the visual feedback?

You get a small arrow, similar to the one obtained with Ctrl+Enter but
blue instead of red, standing on its own line. This will also be one way
to separate environments: a double return gets you out of an environment
and a third one introduces this new separator, after which you can repeat
the same environment as the previous one. You will have a blank line in the
output but, if this is not wanted, with a right click you can change this to
a plain separator. Visually, the blue arrow will change to a small red
line segment which produces nothing in the output (you will actually have
the blank line commented out by '%' sign, so this is really equivalent
to a space).

This cannot be backported because it is a file format change, but the
NextNoIndent glitch has been fixed also for LyX 2.1.1, so the example
of the OP will also work.

 (For display maths, the presence of white space
 around it is almost invisible in the LyX window while it has a profound
 effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-21 Thread Enrico Forestieri
 
Guenter
 Milde writes:
> On 2014-05-17, Enrico Forestieri wrote:
> > Roman Inflianskas writes:
> 
> >> Thank you, it works and looks better, than -separator-.
> 
> > Just for information. This issue is solved for the next major release (2.2).
> > To achieve your goal you can either simply hit  after an environment
> > or use a local layout with NextNoIndent set to false, as you already did
> > (but now it will work).
> 
> Thanks a lot. This solves a long standing problem.
> 
> How is the visual feedback?

You get a small arrow, similar to the one obtained with Ctrl+Enter but
blue instead of red, standing on its own line. This will also be one way
to separate environments: a double  gets you out of an environment
and a third one introduces this new "separator", after which you can repeat
the same environment as the previous one. You will have a blank line in the
output but, if this is not wanted, with a right click you can change this to
a "plain" separator. Visually, the blue arrow will change to a small red
line segment which produces nothing in the output (you will actually have
the blank line commented out by '%' sign, so this is really equivalent
to a space).

This cannot be backported because it is a file format change, but the
NextNoIndent glitch has been fixed also for LyX 2.1.1, so the example
of the OP will also work.

> (For display maths, the presence of white space
> around it is almost invisible in the LyX window while it has a profound
> effect in the output.)

Yes, this is really a bugger and the only way to recognize it is activating
the end of paragraph marker in the preferences. If you see a pilcrow mark
before the math inset it means that a blank line will be output. Placing the
cursor just before the math inset and hitting the backspace key gets rid of it.
It's easier to get aware of a blank line after the math inset by the fact the
following text is indented.

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-20 Thread Guenter Milde
On 2014-05-17, Enrico Forestieri wrote:
 Roman Inflianskas writes:

 Thank you, it works and looks better, than -separator-.

 Just for information. This issue is solved for the next major release (2.2).
 To achieve your goal you can either simply hit return after an environment
 or use a local layout with NextNoIndent set to false, as you already did
 (but now it will work).

Thanks a lot. This solves a long standing problem.

How is the visual feedback? (For display maths, the presence of white space
around it is almost invisible in the LyX window while it has a profound
effect in the output.)

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-20 Thread Guenter Milde
On 2014-05-17, Enrico Forestieri wrote:
 Roman Inflianskas writes:

 Thank you, it works and looks better, than -separator-.

 Just for information. This issue is solved for the next major release (2.2).
 To achieve your goal you can either simply hit return after an environment
 or use a local layout with NextNoIndent set to false, as you already did
 (but now it will work).

Thanks a lot. This solves a long standing problem.

How is the visual feedback? (For display maths, the presence of white space
around it is almost invisible in the LyX window while it has a profound
effect in the output.)

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-20 Thread Guenter Milde
On 2014-05-17, Enrico Forestieri wrote:
> Roman Inflianskas writes:

>> Thank you, it works and looks better, than -separator-.

> Just for information. This issue is solved for the next major release (2.2).
> To achieve your goal you can either simply hit  after an environment
> or use a local layout with NextNoIndent set to false, as you already did
> (but now it will work).

Thanks a lot. This solves a long standing problem.

How is the visual feedback? (For display maths, the presence of white space
around it is almost invisible in the LyX window while it has a profound
effect in the output.)

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-17 Thread Enrico Forestieri
Roman Inflianskas writes:
 
 Thank you, it works and looks better, than -separator-.

Just for information. This issue is solved for the next major release (2.2).
To achieve your goal you can either simply hit return after an environment
or use a local layout with NextNoIndent set to false, as you already did
(but now it will work).

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-17 Thread Enrico Forestieri
Roman Inflianskas writes:
 
 Thank you, it works and looks better, than -separator-.

Just for information. This issue is solved for the next major release (2.2).
To achieve your goal you can either simply hit return after an environment
or use a local layout with NextNoIndent set to false, as you already did
(but now it will work).

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-17 Thread Enrico Forestieri
Roman Inflianskas writes:
> 
> Thank you, it works and looks better, than -separator-.

Just for information. This issue is solved for the next major release (2.2).
To achieve your goal you can either simply hit  after an environment
or use a local layout with NextNoIndent set to false, as you already did
(but now it will work).

-- 
Enrico



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
 On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

 It works well except one thing: paragraphs after lists (itemize) are 
 not indented (layout uses indention instead of skip between 
 paragraphs). 

...

 The problem is that there is no empty line after list, so LaTeX 
 doesn't indent phrase Text continues I've tried different 
 options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
 gives me correctly indented text in the LyX but not in the generated 
 PDF (or tex).

 The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via nesting, however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
 An environment, in principle, is part of the paragraph in which it
 appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if glued to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

 And, typographically, you should not want to indent the 
 following material by default. You should do so only if it begins a new 
 paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

 Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

 If you DO want to indent the next paragraph, then put a --Separator-- 
 enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is correct, it may be the most pragmatic way to
keep the behaviour.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
 On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

 It works well except one thing: paragraphs after lists (itemize) are 
 not indented (layout uses indention instead of skip between 
 paragraphs). 

...

 The problem is that there is no empty line after list, so LaTeX 
 doesn't indent phrase Text continues I've tried different 
 options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
 gives me correctly indented text in the LyX but not in the generated 
 PDF (or tex).

 The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via nesting, however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
 An environment, in principle, is part of the paragraph in which it
 appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if glued to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

 And, typographically, you should not want to indent the 
 following material by default. You should do so only if it begins a new 
 paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

 Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

 If you DO want to indent the next paragraph, then put a --Separator-- 
 enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is correct, it may be the most pragmatic way to
keep the behaviour.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-09 Thread Guenter Milde
On 2014-04-28, Richard Heck wrote:
> On 04/27/2014 04:05 PM, Roman Inflianskas wrote:

>> It works well except one thing: paragraphs after lists (itemize) are 
>> not indented (layout uses indention instead of skip between 
>> paragraphs). 

...

>> The problem is that there is no empty line after list, so LaTeX 
>> doesn't indent phrase "Text continues...". I've tried different 
>> options: NextNoIndent, ParbreakIsNewline, RightDelim. "NextNoIndent 0" 
>> gives me correctly indented text in the LyX but not in the generated 
>> PDF (or tex).

> The way LyX is doing this is correct. 

I don't think so:

* There are two use cases: 

  a) list embedded in a paragraph,
  b) list as a separate paragraph.
  
* In LaTeX, these are input as

First use case 
\begin{enumerate}
  \item list embedded in a paragraph, 
\end{enumerate}
Continue

Second use case:
   
\begin{enumerate}
\item list as a separate paragraph.
\end{enumerate}

Continue.


  i.e. with/without empty lines separating the list from the rest.

* In LyX, embedding would usually be done via "nesting", however:

  * you cannot nest something into a paragraph,
  
  * despite the list beeing input as separate paragraph, LyX exports it to
LaTeX as embedded into the enclosing text:
  
> An environment, in principle, is part of the paragraph in which it
> appears, unless you explicitly say otherwise. 

This specific LyX behaviour is at least questionable.

The clean/consistent way would be only to embedd nested environments.

(BTW: Mathematical equations (displaymath) are 

 * a separate paragraph if surrounded by whitespace
 * embedded if "glued" to the surrounding text without whitespace.
 
 The problem ist, that as whitespce is not visible in the LyX window, you
 get a surprise result...)

> And, typographically, you should not want to indent the 
> following material by default. You should do so only if it begins a new 
> paragraph, i.e., a new set of ideas.

Yes, but in LyX, when I press the Return button, I do so to start a new
paragraph. When in spite of this I want to embedd something, I nest it.

> Word(TM) has done this wrong for so long that it has confused people.

LyX has had a bug with space-separated pragraphs for so long (simply
increasing parskip so that the space around lists was too large) that this
also confused both users and developers.

The typography is finally up to the document class (I would not indent
a new paragraph after a list). However we need a way to distinguish embedded
lists from lists as separate paragraphs.

Currently, LyX embeds by default and provides a hack for separating:

> If you DO want to indent the next paragraph, then put a "--Separator--" 
> enviroment after your list.

Alternatively, you can use ERT (which is, of course, also a hack).

While I don't think this is "correct", it may be the most pragmatic way to
keep the behaviour.

Günter



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-08 Thread Roman Inflianskas
 Hit the TeX button, press return and then close the inset.

I'm sorry for late response. I didn't get your response into the mailbox
(may be I configured my email incorrectly).

Thank you, it works and looks better, than -separator-.



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-08 Thread Roman Inflianskas
 Hit the TeX button, press return and then close the inset.

I'm sorry for late response. I didn't get your response into the mailbox
(may be I configured my email incorrectly).

Thank you, it works and looks better, than -separator-.



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-05-08 Thread Roman Inflianskas
> Hit the "TeX" button, press return and then close the inset.

I'm sorry for late response. I didn't get your response into the mailbox
(may be I configured my email incorrectly).

Thank you, it works and looks better, than -separator-.



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Richard Heck

On 04/27/2014 04:05 PM, Roman Inflianskas wrote:


I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are 
not indented (layout uses indention instead of skip between 
paragraphs). Trying to solve it I converted document to XeLaTeX tex 
file and saw:


Text, text, text.

\begin{itemize}

\item First item.

\item Second item.

\end{itemize}

Text continues...

The problem is that there is no empty line after list, so LaTeX 
doesn't indent phrase Text continues I've tried different 
options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
gives me correctly indented text in the LyX but not in the generated 
PDF (or tex).




The way LyX is doing this is correct. An environment, in principle, is 
part of the paragraph in which it appears, unless you explicitly say 
otherwise. And, typographically, you should not want to indent the 
following material by default. You should do so only if it begins a new 
paragraph, i.e., a new set of ideas.


Word(TM) has done this wrong for so long that it has confused people.

If you DO want to indent the next paragraph, then put a --Separator-- 
enviroment after your list.


Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Jean-Marc Lasgouttes

28/04/2014 15:53, Richard Heck:

The problem is that there is no empty line after list, so LaTeX
doesn't indent phrase Text continues I've tried different
options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0
gives me correctly indented text in the LyX but not in the generated
PDF (or tex).



The way LyX is doing this is correct. An environment, in principle, is
part of the paragraph in which it appears, unless you explicitly say
otherwise. And, typographically, you should not want to indent the
following material by default. You should do so only if it begins a new
paragraph, i.e., a new set of ideas.


Note that a similar topic is currently discussed here:
http://www.lyx.org/trac/ticket/9055

JMarc


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Enrico Forestieri
Richard Heck rgheck at lyx.org writes:
 If you DO want to indent the next paragraph, then put a
 --Separator-- enviroment after your list.

I advice against doing that. The --Separator-- environment should only
be used to separate *same* environments and not different ones. The fact
that this layout generates a blank line in the output is a by-product
that was not thoughtfully considered at the time, IMHO.
It is better to explicitly introduce a blank line in ERT.
Hit the TeX button, press return and then close the inset.
Now you have a blank line without relying on the ugly --Separator--.
Hopefully, this will be possible without using ERT for the next major
release.

-- 
Enrico




Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Richard Heck

On 04/27/2014 04:05 PM, Roman Inflianskas wrote:


I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are 
not indented (layout uses indention instead of skip between 
paragraphs). Trying to solve it I converted document to XeLaTeX tex 
file and saw:


Text, text, text.

\begin{itemize}

\item First item.

\item Second item.

\end{itemize}

Text continues...

The problem is that there is no empty line after list, so LaTeX 
doesn't indent phrase Text continues I've tried different 
options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0 
gives me correctly indented text in the LyX but not in the generated 
PDF (or tex).




The way LyX is doing this is correct. An environment, in principle, is 
part of the paragraph in which it appears, unless you explicitly say 
otherwise. And, typographically, you should not want to indent the 
following material by default. You should do so only if it begins a new 
paragraph, i.e., a new set of ideas.


Word(TM) has done this wrong for so long that it has confused people.

If you DO want to indent the next paragraph, then put a --Separator-- 
enviroment after your list.


Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Jean-Marc Lasgouttes

28/04/2014 15:53, Richard Heck:

The problem is that there is no empty line after list, so LaTeX
doesn't indent phrase Text continues I've tried different
options: NextNoIndent, ParbreakIsNewline, RightDelim. NextNoIndent 0
gives me correctly indented text in the LyX but not in the generated
PDF (or tex).



The way LyX is doing this is correct. An environment, in principle, is
part of the paragraph in which it appears, unless you explicitly say
otherwise. And, typographically, you should not want to indent the
following material by default. You should do so only if it begins a new
paragraph, i.e., a new set of ideas.


Note that a similar topic is currently discussed here:
http://www.lyx.org/trac/ticket/9055

JMarc


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Enrico Forestieri
Richard Heck rgheck at lyx.org writes:
 If you DO want to indent the next paragraph, then put a
 --Separator-- enviroment after your list.

I advice against doing that. The --Separator-- environment should only
be used to separate *same* environments and not different ones. The fact
that this layout generates a blank line in the output is a by-product
that was not thoughtfully considered at the time, IMHO.
It is better to explicitly introduce a blank line in ERT.
Hit the TeX button, press return and then close the inset.
Now you have a blank line without relying on the ugly --Separator--.
Hopefully, this will be possible without using ERT for the next major
release.

-- 
Enrico




Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Richard Heck

On 04/27/2014 04:05 PM, Roman Inflianskas wrote:


I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are 
not indented (layout uses indention instead of skip between 
paragraphs). Trying to solve it I converted document to XeLaTeX tex 
file and saw:


Text, text, text.

\begin{itemize}

\item First item.

\item Second item.

\end{itemize}

Text continues...

The problem is that there is no empty line after list, so LaTeX 
doesn't indent phrase "Text continues...". I've tried different 
options: NextNoIndent, ParbreakIsNewline, RightDelim. "NextNoIndent 0" 
gives me correctly indented text in the LyX but not in the generated 
PDF (or tex).




The way LyX is doing this is correct. An environment, in principle, is 
part of the paragraph in which it appears, unless you explicitly say 
otherwise. And, typographically, you should not want to indent the 
following material by default. You should do so only if it begins a new 
paragraph, i.e., a new set of ideas.


Word(TM) has done this wrong for so long that it has confused people.

If you DO want to indent the next paragraph, then put a "--Separator--" 
enviroment after your list.


Richard



Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Jean-Marc Lasgouttes

28/04/2014 15:53, Richard Heck:

The problem is that there is no empty line after list, so LaTeX
doesn't indent phrase "Text continues...". I've tried different
options: NextNoIndent, ParbreakIsNewline, RightDelim. "NextNoIndent 0"
gives me correctly indented text in the LyX but not in the generated
PDF (or tex).



The way LyX is doing this is correct. An environment, in principle, is
part of the paragraph in which it appears, unless you explicitly say
otherwise. And, typographically, you should not want to indent the
following material by default. You should do so only if it begins a new
paragraph, i.e., a new set of ideas.


Note that a similar topic is currently discussed here:
http://www.lyx.org/trac/ticket/9055

JMarc


Re: How to tell LyX to add empty line after paragraphs of my style?

2014-04-28 Thread Enrico Forestieri
Richard Heck  lyx.org> writes:
> If you DO want to indent the next paragraph, then put a
> "--Separator--" enviroment after your list.

I advice against doing that. The "--Separator--" environment should only
be used to separate *same* environments and not different ones. The fact
that this layout generates a blank line in the output is a by-product
that was not thoughtfully considered at the time, IMHO.
It is better to explicitly introduce a blank line in ERT.
Hit the "TeX" button, press return and then close the inset.
Now you have a blank line without relying on the ugly "--Separator--".
Hopefully, this will be possible without using ERT for the next major
release.

-- 
Enrico




How to tell LyX to add empty line after paragraphs of my style?

2014-04-27 Thread Roman Inflianskas
I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are not 
indented (layout uses indention instead of skip between paragraphs). Trying to 
solve it I converted document to XeLaTeX tex file and saw:

Text, text, text.
\begin{itemize}
\item First item.
\item Second item.
\end{itemize}
Text continues...

The problem is that there is no empty line after list, so LaTeX doesn't indent 
phrase Text continues I've tried different options: NextNoIndent, 
ParbreakIsNewline, RightDelim. NextNoIndent 0 gives me correctly indented 
text in the LyX but not in the generated PDF (or tex).

Have I missed some option? Or is this a bug? Should I report bug or send letter 
for devs?

I've attached minimal working example with included local layout.

-- 
Regards, Roman Inflianskas


indent.lyx
Description: application/lyx


How to tell LyX to add empty line after paragraphs of my style?

2014-04-27 Thread Roman Inflianskas
I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are not 
indented (layout uses indention instead of skip between paragraphs). Trying to 
solve it I converted document to XeLaTeX tex file and saw:

Text, text, text.
\begin{itemize}
\item First item.
\item Second item.
\end{itemize}
Text continues...

The problem is that there is no empty line after list, so LaTeX doesn't indent 
phrase Text continues I've tried different options: NextNoIndent, 
ParbreakIsNewline, RightDelim. NextNoIndent 0 gives me correctly indented 
text in the LyX but not in the generated PDF (or tex).

Have I missed some option? Or is this a bug? Should I report bug or send letter 
for devs?

I've attached minimal working example with included local layout.

-- 
Regards, Roman Inflianskas


indent.lyx
Description: application/lyx


How to tell LyX to add empty line after paragraphs of my style?

2014-04-27 Thread Roman Inflianskas
I try to create layout.

It works well except one thing: paragraphs after lists (itemize) are not 
indented (layout uses indention instead of skip between paragraphs). Trying to 
solve it I converted document to XeLaTeX tex file and saw:

Text, text, text.
\begin{itemize}
\item First item.
\item Second item.
\end{itemize}
Text continues...

The problem is that there is no empty line after list, so LaTeX doesn't indent 
phrase "Text continues...". I've tried different options: NextNoIndent, 
ParbreakIsNewline, RightDelim. "NextNoIndent 0" gives me correctly indented 
text in the LyX but not in the generated PDF (or tex).

Have I missed some option? Or is this a bug? Should I report bug or send letter 
for devs?

I've attached minimal working example with included local layout.

-- 
Regards, Roman Inflianskas


indent.lyx
Description: application/lyx