Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Udi Eilon
Hello everyone.

This solution (stdlist.inc) did not work for me.. I just tried it. The PDF file
still have no indentation after enumerated lists. 
Has anyone found another way to solve this bug?

Udi






Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Liviu Andronic
On Tue, Jun 5, 2012 at 9:53 AM, Udi Eilon ehudei...@gmail.com wrote:
 This solution (stdlist.inc) did not work for me.. I just tried it. The PDF 
 file
 still have no indentation after enumerated lists.
 Has anyone found another way to solve this bug?

In the subject header you indicate: 1.3.4. By any chance, is this your
LyX version? If so, you really should upgrade to something more
recent, say 1.6.10 or 2.0.3. Versions that old are museum memorabilia
and are not supported.

Liviu


Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Udi Eilon
Hello everyone.

This solution (stdlist.inc) did not work for me.. I just tried it. The PDF file
still have no indentation after enumerated lists. 
Has anyone found another way to solve this bug?

Udi






Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Liviu Andronic
On Tue, Jun 5, 2012 at 9:53 AM, Udi Eilon ehudei...@gmail.com wrote:
 This solution (stdlist.inc) did not work for me.. I just tried it. The PDF 
 file
 still have no indentation after enumerated lists.
 Has anyone found another way to solve this bug?

In the subject header you indicate: 1.3.4. By any chance, is this your
LyX version? If so, you really should upgrade to something more
recent, say 1.6.10 or 2.0.3. Versions that old are museum memorabilia
and are not supported.

Liviu


Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Udi Eilon
Hello everyone.

This solution (stdlist.inc) did not work for me.. I just tried it. The PDF file
still have no indentation after enumerated lists. 
Has anyone found another way to solve this bug?

Udi






Re: Why no new para after enumeration? (1.3.4)

2012-06-05 Thread Liviu Andronic
On Tue, Jun 5, 2012 at 9:53 AM, Udi Eilon  wrote:
> This solution (stdlist.inc) did not work for me.. I just tried it. The PDF 
> file
> still have no indentation after enumerated lists.
> Has anyone found another way to solve this bug?
>
In the subject header you indicate: 1.3.4. By any chance, is this your
LyX version? If so, you really should upgrade to something more
recent, say 1.6.10 or 2.0.3. Versions that old are museum memorabilia
and are not supported.

Liviu


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Angus Leeming
Nawfal bin Mohmad Rouyan wrote:

 On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
 Reuben Thomas wrote:
 
 snip
 
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing
 NextNoIndent to 0. (Your lyx executable is to be found at
 ${PREFIX}/bin/lyx.)
 
 I've set NextNoIndent to 0 and it works in the editor but when I
 view it in dvi/pdf format, it is still not indented.
 
 Is there anything else that I need to do?

H. Confirmed.

Nawfal, you could cheat by outputting a protected space and then
starting a new paragraph. Ugly.

Jean-Marc, I believe that this is the code that generates the latex
(paragraph.C, line 1605):

if (style-isEnvironment()) {
os  \\end{  style-latexname()  }\n;
texrow.newline();
}

Does it not need an extra '\n'?

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Reuben Thomas
 Nawfal, you could cheat by outputting a protected space and then
 starting a new paragraph. Ugly.

This explains why I thought I couldn't override the system stdlists.inc.

-- 
http://rrt.sc3d.org/ | impeccable, a.  not liable to detection (Bierce)


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Jean-Marc Lasgouttes
 Angus == Angus Leeming [EMAIL PROTECTED] writes:

Angus Jean-Marc, I believe that this is the code that generates the
Angus latex (paragraph.C, line 1605):

Angus if (style-isEnvironment()) { os  \\end{ 
Angus style-latexname()  }\n; texrow.newline();
Angus }

Angus Does it not need an extra '\n'?

It is a matter of choice. When one writes

  text text text text

  \begin{itemize}
  \item item
  \item item
  \item item
  \end{itemize}

  text text text text

there are three paragraphs (which is well suited if the first line is
a complete sentence. But in some cases, one might want to get only one
paragraph, if the enumeration is somehow inlined. If we did use an
insetlist, then it would be possible to decide where the paragraph
breaks are, like we can do with displayed maths.

But if the one paragraph use is much less common that the three
paragraph version, then we could add the additional \n (which will
change the vertical spacing, BTW).

Ideally, we should allow both.

JMarc


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Angus Leeming
Nawfal bin Mohmad Rouyan wrote:

 On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
 Reuben Thomas wrote:
 
 snip
 
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing
 NextNoIndent to 0. (Your lyx executable is to be found at
 ${PREFIX}/bin/lyx.)
 
 I've set NextNoIndent to 0 and it works in the editor but when I
 view it in dvi/pdf format, it is still not indented.
 
 Is there anything else that I need to do?

H. Confirmed.

Nawfal, you could cheat by outputting a protected space and then
starting a new paragraph. Ugly.

Jean-Marc, I believe that this is the code that generates the latex
(paragraph.C, line 1605):

if (style-isEnvironment()) {
os  \\end{  style-latexname()  }\n;
texrow.newline();
}

Does it not need an extra '\n'?

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Reuben Thomas
 Nawfal, you could cheat by outputting a protected space and then
 starting a new paragraph. Ugly.

This explains why I thought I couldn't override the system stdlists.inc.

-- 
http://rrt.sc3d.org/ | impeccable, a.  not liable to detection (Bierce)


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Jean-Marc Lasgouttes
 Angus == Angus Leeming [EMAIL PROTECTED] writes:

Angus Jean-Marc, I believe that this is the code that generates the
Angus latex (paragraph.C, line 1605):

Angus if (style-isEnvironment()) { os  \\end{ 
Angus style-latexname()  }\n; texrow.newline();
Angus }

Angus Does it not need an extra '\n'?

It is a matter of choice. When one writes

  text text text text

  \begin{itemize}
  \item item
  \item item
  \item item
  \end{itemize}

  text text text text

there are three paragraphs (which is well suited if the first line is
a complete sentence. But in some cases, one might want to get only one
paragraph, if the enumeration is somehow inlined. If we did use an
insetlist, then it would be possible to decide where the paragraph
breaks are, like we can do with displayed maths.

But if the one paragraph use is much less common that the three
paragraph version, then we could add the additional \n (which will
change the vertical spacing, BTW).

Ideally, we should allow both.

JMarc


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Angus Leeming
Nawfal bin Mohmad Rouyan wrote:

> On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
>> Reuben Thomas wrote:
> 
> 
> 
>> Reuben, I believe that this is configurable behaviour. Hack your
>> ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing
>> NextNoIndent to 0. (Your lyx executable is to be found at
>> ${PREFIX}/bin/lyx.)
> 
> I've set NextNoIndent to 0 and it works in the editor but when I
> view it in dvi/pdf format, it is still not indented.
> 
> Is there anything else that I need to do?

H. Confirmed.

Nawfal, you could cheat by outputting a protected space and then
starting a new paragraph. Ugly.

Jean-Marc, I believe that this is the code that generates the latex
(paragraph.C, line 1605):

if (style->isEnvironment()) {
os << "\\end{" << style->latexname() << "}\n";
texrow.newline();
}

Does it not need an extra '\n'?

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Reuben Thomas
> Nawfal, you could cheat by outputting a protected space and then
> starting a new paragraph. Ugly.

This explains why I thought I couldn't override the system stdlists.inc.

-- 
http://rrt.sc3d.org/ | impeccable, a.  not liable to detection (Bierce)


Re: Why no new para after enumeration? (1.3.4)

2004-04-06 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Jean-Marc, I believe that this is the code that generates the
Angus> latex (paragraph.C, line 1605):

Angus> if (style->isEnvironment()) { os << "\\end{" <<
Angus> style->latexname() << "}\n"; texrow.newline();
Angus> }

Angus> Does it not need an extra '\n'?

It is a matter of choice. When one writes

  text text text text

  \begin{itemize}
  \item item
  \item item
  \item item
  \end{itemize}

  text text text text

there are three paragraphs (which is well suited if the first line is
a complete sentence. But in some cases, one might want to get only one
paragraph, if the enumeration is somehow inlined. If we did use an
insetlist, then it would be possible to decide where the paragraph
breaks are, like we can do with displayed maths.

But if the one paragraph use is much less common that the three
paragraph version, then we could add the additional \n (which will
change the vertical spacing, BTW).

Ideally, we should allow both.

JMarc


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread
   5  2004 14:12 Reuben Thomas (a):
 Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
 standard paragraph? This means it's impossible to control indentation at
 the beginning of the paragraph following the indent without resorting to
 ERT.

The standard is not to make indentation at the first para, but only starting 
from the second one; e.g.:

XXX
XXX
X
   XX
XXX



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
  Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
  standard paragraph? This means it's impossible to control indentation at
  the beginning of the paragraph following the indent without resorting to
  ERT.

 The standard is not to make indentation at the first para, but only starting
 from the second one; e.g.:

I understand how indentation normally works; perhaps I was being unclear.
If I look at the LaTeX generated by Export, I get:

\begin{enumeration}
...
\end{enumeration}
The next paragraph...

There is no gap after \end{enumeration}, so no new paragraph is started,
so it's not indented.

If I manually add a line after \end{enumeration}, then there is a new
paragraph, and it's indented.

-- 
http://rrt.sc3d.org/ | The shorter the better


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:

 ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
  Why doesn't LyX leave a paragraph gap between an enumeration
  (say) and a standard paragraph? This means it's impossible to
  control indentation at the beginning of the paragraph following
  the indent without resorting to ERT.

 The standard is not to make indentation at the first para, but only
 starting from the second one; e.g.:
 
 I understand how indentation normally works; perhaps I was being
 unclear. If I look at the LaTeX generated by Export, I get:
 
 \begin{enumeration}
 ...
 \end{enumeration}
 The next paragraph...
 
 There is no gap after \end{enumeration}, so no new paragraph is
 started, so it's not indented.
 
 If I manually add a line after \end{enumeration}, then there is a
 new paragraph, and it's indented.

Reuben, I believe that this is configurable behaviour. Hack your
${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Style Enumerate
MarginStatic
LatexType Item_Environment
LatexName enumerate
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
 to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Thanks. Hacking stdlists.inc is acceptable for me, but not really for the
user on whose behalf I'm asking. Without changing the style file at all
(which is fine) it would be good if this were implemented by setting the
next paragraph's do not indent flag rather than by omitting the blank
line from the LaTeX (which is not really the same thing). Then a user who
wanted to indent a paragraph after an enumeration could do so by unticking
the flag.

Even simpler (from the user's point of view) would be to change the flag
so that it is just an indent paragraph flag, and to set it automatically
according to the usual rules in all places.

-- 
http://rrt.sc3d.org/ | plagiarism, n.  the mind burgles


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Another problem: am I right in thinking that I can't override
/usr/share/lyx/layouts/stdlists.inc with ~/.lyx/layouts/stdlists.inc?
Testing suggests that I can't, which sucks.

-- 
http://rrt.sc3d.org/ | wet nurse, n.  lactating lackey


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,
 
 Another problem: am I right in thinking that I can't override
 /usr/share/lyx/layouts/stdlists.inc with
 ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't, which
 sucks.

Easy! This particular developer might start sulking and ignore you if
you start using pejorative language.

I'm surprised. Here is the code that is used to find 'stdlists.inc' on
reading the line 'Input stdlists.inc' in the layout file:

case TC_INPUT: // Include file
if (lexrc.next()) {
string tmp = LibFileSearch(layouts,
lexrc.getString(),
layout);

if (Read(tmp, true)) {
lexrc.printError(Error reading input
 file: +tmp);
error = true;
}
}
break;

and this is the all-important 'LibFileSearch':

// Search the file name.ext in the subdirectory dir of
//   1) user_lyxdir
//   2) build_lyxdir (if not empty)
//   3) system_lyxdir
string const LibFileSearch(string const  dir, string const  name,
   string const  ext)
{
string fullname = FileSearch(AddPath(user_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

if (!build_lyxdir.empty())
fullname = FileSearch(AddPath(build_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

return FileSearch(AddPath(system_lyxdir, dir), name, ext);
}

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Easy! This particular developer might start sulking and ignore you if
 you start using pejorative language.

I must have been reading too much slashdot or something recently. I'll
stop with the pejoratives, already. Sorry.

I'll double check my changes (I changed the NextNoIndents in stdlists.inc
from 1 to 0 and then saved stdlists.inc into ~/.lyx/layouts and restarted
LyX), and then get back to you if I still can't make it work.

-- 
http://rrt.sc3d.org/ | Eschatology Generally Breeds Dire Fanaticism


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Jean-Marc Lasgouttes
 Reuben == Reuben Thomas [EMAIL PROTECTED] writes:

 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Reuben Another problem: am I right in thinking that I can't override
Reuben /usr/share/lyx/layouts/stdlists.inc with
Reuben ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't,
Reuben which sucks.

I think you are wrong, but there may be a bug :)

JMarc

PS: hello Reuben, I am glad to see that you found some time to come
back to LyX and send your usual stream of well-thought bug reports...


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Nawfal bin Mohmad Rouyan
On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
 Reuben Thomas wrote:

snip

 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
 to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

I've set NextNoIndent to 0 and it works in the editor but when I view it
in dvi/pdf format, it is still not indented.

Is there anything else that I need to do?

Thank you.

-- 
Nawfal bin Mohmad Rouyan [EMAIL PROTECTED]
Multimedia University




Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread
   5  2004 14:12 Reuben Thomas (a):
 Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
 standard paragraph? This means it's impossible to control indentation at
 the beginning of the paragraph following the indent without resorting to
 ERT.

The standard is not to make indentation at the first para, but only starting 
from the second one; e.g.:

XXX
XXX
X
   XX
XXX



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
  Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
  standard paragraph? This means it's impossible to control indentation at
  the beginning of the paragraph following the indent without resorting to
  ERT.

 The standard is not to make indentation at the first para, but only starting
 from the second one; e.g.:

I understand how indentation normally works; perhaps I was being unclear.
If I look at the LaTeX generated by Export, I get:

\begin{enumeration}
...
\end{enumeration}
The next paragraph...

There is no gap after \end{enumeration}, so no new paragraph is started,
so it's not indented.

If I manually add a line after \end{enumeration}, then there is a new
paragraph, and it's indented.

-- 
http://rrt.sc3d.org/ | The shorter the better


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:

 ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
  Why doesn't LyX leave a paragraph gap between an enumeration
  (say) and a standard paragraph? This means it's impossible to
  control indentation at the beginning of the paragraph following
  the indent without resorting to ERT.

 The standard is not to make indentation at the first para, but only
 starting from the second one; e.g.:
 
 I understand how indentation normally works; perhaps I was being
 unclear. If I look at the LaTeX generated by Export, I get:
 
 \begin{enumeration}
 ...
 \end{enumeration}
 The next paragraph...
 
 There is no gap after \end{enumeration}, so no new paragraph is
 started, so it's not indented.
 
 If I manually add a line after \end{enumeration}, then there is a
 new paragraph, and it's indented.

Reuben, I believe that this is configurable behaviour. Hack your
${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Style Enumerate
MarginStatic
LatexType Item_Environment
LatexName enumerate
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
 to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Thanks. Hacking stdlists.inc is acceptable for me, but not really for the
user on whose behalf I'm asking. Without changing the style file at all
(which is fine) it would be good if this were implemented by setting the
next paragraph's do not indent flag rather than by omitting the blank
line from the LaTeX (which is not really the same thing). Then a user who
wanted to indent a paragraph after an enumeration could do so by unticking
the flag.

Even simpler (from the user's point of view) would be to change the flag
so that it is just an indent paragraph flag, and to set it automatically
according to the usual rules in all places.

-- 
http://rrt.sc3d.org/ | plagiarism, n.  the mind burgles


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Another problem: am I right in thinking that I can't override
/usr/share/lyx/layouts/stdlists.inc with ~/.lyx/layouts/stdlists.inc?
Testing suggests that I can't, which sucks.

-- 
http://rrt.sc3d.org/ | wet nurse, n.  lactating lackey


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:
 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,
 
 Another problem: am I right in thinking that I can't override
 /usr/share/lyx/layouts/stdlists.inc with
 ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't, which
 sucks.

Easy! This particular developer might start sulking and ignore you if
you start using pejorative language.

I'm surprised. Here is the code that is used to find 'stdlists.inc' on
reading the line 'Input stdlists.inc' in the layout file:

case TC_INPUT: // Include file
if (lexrc.next()) {
string tmp = LibFileSearch(layouts,
lexrc.getString(),
layout);

if (Read(tmp, true)) {
lexrc.printError(Error reading input
 file: +tmp);
error = true;
}
}
break;

and this is the all-important 'LibFileSearch':

// Search the file name.ext in the subdirectory dir of
//   1) user_lyxdir
//   2) build_lyxdir (if not empty)
//   3) system_lyxdir
string const LibFileSearch(string const  dir, string const  name,
   string const  ext)
{
string fullname = FileSearch(AddPath(user_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

if (!build_lyxdir.empty())
fullname = FileSearch(AddPath(build_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

return FileSearch(AddPath(system_lyxdir, dir), name, ext);
}

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
 Easy! This particular developer might start sulking and ignore you if
 you start using pejorative language.

I must have been reading too much slashdot or something recently. I'll
stop with the pejoratives, already. Sorry.

I'll double check my changes (I changed the NextNoIndents in stdlists.inc
from 1 to 0 and then saved stdlists.inc into ~/.lyx/layouts and restarted
LyX), and then get back to you if I still can't make it work.

-- 
http://rrt.sc3d.org/ | Eschatology Generally Breeds Dire Fanaticism


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Jean-Marc Lasgouttes
 Reuben == Reuben Thomas [EMAIL PROTECTED] writes:

 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Reuben Another problem: am I right in thinking that I can't override
Reuben /usr/share/lyx/layouts/stdlists.inc with
Reuben ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't,
Reuben which sucks.

I think you are wrong, but there may be a bug :)

JMarc

PS: hello Reuben, I am glad to see that you found some time to come
back to LyX and send your usual stream of well-thought bug reports...


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Nawfal bin Mohmad Rouyan
On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
 Reuben Thomas wrote:

snip

 Reuben, I believe that this is configurable behaviour. Hack your
 ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
 to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

I've set NextNoIndent to 0 and it works in the editor but when I view it
in dvi/pdf format, it is still not indented.

Is there anything else that I need to do?

Thank you.

-- 
Nawfal bin Mohmad Rouyan [EMAIL PROTECTED]
Multimedia University




Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Пашев Игорь Николаевич
В сообщении от 5 Апрель 2004 14:12 Reuben Thomas написал(a):
> Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
> standard paragraph? This means it's impossible to control indentation at
> the beginning of the paragraph following the indent without resorting to
> ERT.

The standard is not to make indentation at the first para, but only starting 
from the second one; e.g.:

XXX
XXX
X
   XX
XXX



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
> ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
> > Why doesn't LyX leave a paragraph gap between an enumeration (say) and a
> > standard paragraph? This means it's impossible to control indentation at
> > the beginning of the paragraph following the indent without resorting to
> > ERT.
>
> The standard is not to make indentation at the first para, but only starting
> from the second one; e.g.:

I understand how indentation normally works; perhaps I was being unclear.
If I look at the LaTeX generated by Export, I get:

\begin{enumeration}
...
\end{enumeration}
The next paragraph...

There is no gap after \end{enumeration}, so no new paragraph is started,
so it's not indented.

If I manually add a line after \end{enumeration}, then there is a new
paragraph, and it's indented.

-- 
http://rrt.sc3d.org/ | The shorter the better


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:

>> ? ? ?? 5 ?? 2004 14:12 Reuben Thomas ???(a):
>> > Why doesn't LyX leave a paragraph gap between an enumeration
>> > (say) and a standard paragraph? This means it's impossible to
>> > control indentation at the beginning of the paragraph following
>> > the indent without resorting to ERT.
>>
>> The standard is not to make indentation at the first para, but only
>> starting from the second one; e.g.:
> 
> I understand how indentation normally works; perhaps I was being
> unclear. If I look at the LaTeX generated by Export, I get:
> 
> \begin{enumeration}
> ...
> \end{enumeration}
> The next paragraph...
> 
> There is no gap after \end{enumeration}, so no new paragraph is
> started, so it's not indented.
> 
> If I manually add a line after \end{enumeration}, then there is a
> new paragraph, and it's indented.

Reuben, I believe that this is configurable behaviour. Hack your
${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Style Enumerate
MarginStatic
LatexType Item_Environment
LatexName enumerate
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
> Reuben, I believe that this is configurable behaviour. Hack your
> ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
> to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

Thanks. Hacking stdlists.inc is acceptable for me, but not really for the
user on whose behalf I'm asking. Without changing the style file at all
(which is fine) it would be good if this were implemented by setting the
next paragraph's "do not indent" flag rather than by omitting the blank
line from the LaTeX (which is not really the same thing). Then a user who
wanted to indent a paragraph after an enumeration could do so by unticking
the flag.

Even simpler (from the user's point of view) would be to change the flag
so that it is just an "indent paragraph" flag, and to set it automatically
according to the usual rules in all places.

-- 
http://rrt.sc3d.org/ | plagiarism, n.  the mind burgles


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
> Reuben, I believe that this is configurable behaviour. Hack your
> ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Another problem: am I right in thinking that I can't override
/usr/share/lyx/layouts/stdlists.inc with ~/.lyx/layouts/stdlists.inc?
Testing suggests that I can't, which sucks.

-- 
http://rrt.sc3d.org/ | wet nurse, n.  lactating lackey


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Angus Leeming
Reuben Thomas wrote:
>> Reuben, I believe that this is configurable behaviour. Hack your
>> ${PREFIX}/share/lyx/layouts/stdlists.inc file,
> 
> Another problem: am I right in thinking that I can't override
> /usr/share/lyx/layouts/stdlists.inc with
> ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't, which
> sucks.

Easy! This particular developer might start sulking and ignore you if
you start using pejorative language.

I'm surprised. Here is the code that is used to find 'stdlists.inc' on
reading the line 'Input stdlists.inc' in the layout file:

case TC_INPUT: // Include file
if (lexrc.next()) {
string tmp = LibFileSearch("layouts",
lexrc.getString(),
"layout");

if (Read(tmp, true)) {
lexrc.printError("Error reading input"
 "file: "+tmp);
error = true;
}
}
break;

and this is the all-important 'LibFileSearch':

// Search the file name.ext in the subdirectory dir of
//   1) user_lyxdir
//   2) build_lyxdir (if not empty)
//   3) system_lyxdir
string const LibFileSearch(string const & dir, string const & name,
   string const & ext)
{
string fullname = FileSearch(AddPath(user_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

if (!build_lyxdir.empty())
fullname = FileSearch(AddPath(build_lyxdir, dir), name, ext);
if (!fullname.empty())
return fullname;

return FileSearch(AddPath(system_lyxdir, dir), name, ext);
}

-- 
Angus



Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Reuben Thomas
> Easy! This particular developer might start sulking and ignore you if
> you start using pejorative language.

I must have been reading too much slashdot or something recently. I'll
stop with the pejoratives, already. Sorry.

I'll double check my changes (I changed the NextNoIndents in stdlists.inc
from 1 to 0 and then saved stdlists.inc into ~/.lyx/layouts and restarted
LyX), and then get back to you if I still can't make it work.

-- 
http://rrt.sc3d.org/ | Eschatology Generally Breeds Dire Fanaticism


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Jean-Marc Lasgouttes
> "Reuben" == Reuben Thomas <[EMAIL PROTECTED]> writes:

>> Reuben, I believe that this is configurable behaviour. Hack your
>> ${PREFIX}/share/lyx/layouts/stdlists.inc file,

Reuben> Another problem: am I right in thinking that I can't override
Reuben> /usr/share/lyx/layouts/stdlists.inc with
Reuben> ~/.lyx/layouts/stdlists.inc? Testing suggests that I can't,
Reuben> which sucks.

I think you are wrong, but there may be a bug :)

JMarc

PS: hello Reuben, I am glad to see that you found some time to come
back to LyX and send your usual stream of well-thought bug reports...


Re: Why no new para after enumeration? (1.3.4)

2004-04-05 Thread Nawfal bin Mohmad Rouyan
On Mon, 2004-04-05 at 19:05, Angus Leeming wrote:
> Reuben Thomas wrote:



> Reuben, I believe that this is configurable behaviour. Hack your
> ${PREFIX}/share/lyx/layouts/stdlists.inc file, changing NextNoIndent
> to 0. (Your lyx executable is to be found at ${PREFIX}/bin/lyx.)

I've set NextNoIndent to 0 and it works in the editor but when I view it
in dvi/pdf format, it is still not indented.

Is there anything else that I need to do?

Thank you.

-- 
Nawfal bin Mohmad Rouyan <[EMAIL PROTECTED]>
Multimedia University