Re: resume enumerate for beamer

2023-03-29 Thread jspitzm
Am Mittwoch, dem 29.03.2023 um 08:44 -0400 schrieb Neal Becker:
> The usage of this environment is, it will continue numbering of
> whatever enumeration preceded it?  Presumably also works across
> slides?

Yes, that's the idea.

Jürgen

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: resume enumerate for beamer

2023-03-29 Thread Neal Becker
The usage of this environment is, it will continue numbering of whatever
enumeration preceded it?  Presumably also works across slides?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: resume enumerate for beamer

2023-03-29 Thread jspitzm
Am Mittwoch, dem 29.03.2023 um 13:52 +0200 schrieb jspi...@gmail.com:
> There needs to be at least one frame in the document (the enumeration
> itself doesn't need to be in a frame).

FWIW this is even the case with normal enumerate and without the
module. See attached MWE which produces the same error.

Jürgen



newfile2b.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: resume enumerate for beamer

2023-03-29 Thread jspitzm
Am Mittwoch, dem 29.03.2023 um 07:36 -0400 schrieb Neal Becker:
> Thanks for the suggestion!  Unfortunately tried on lyx-2.4-dev and
> got
> ! Undefined control sequence.
> \beamer@enum@ ...fix item}##1}\beamer@cramped 
>   \raggedright
> \beamer@first...
> l.47 \item
> 
> Attached is a minimal example using beamer, with only this beamer-
> resenumerate (not title page or frames).

There needs to be at least one frame in the document (the enumeration
itself doesn't need to be in a frame).

HTH,
Jürgen



newfile2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: resume enumerate for beamer

2023-03-29 Thread Neal Becker
On Wed, Mar 29, 2023 at 1:00 AM Jürgen Spitzmüller 
wrote:

> Am Dienstag, dem 28.03.2023 um 07:47 -0400 schrieb Neal Becker:
> > I'm trying to do resume enumeration in beamer.  I read instructions
> > to use doc settings, modules, list enhancements, customizable lists,
> > but the "add" button is grayed out.  I'm assuming this is because of
> > compatibility with beamer, as a test I see I can add it to an
> > amsarticle document.
>
> Sure you tried the beamer-resenumerate.module from here?
> https://wiki.lyx.org/Layouts/Modules#toc12
>
> --
> Jürgen
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
Thanks for the suggestion!  Unfortunately tried on lyx-2.4-dev and got

! Undefined control sequence.

\beamer@enum@ ...fix item}##1}\beamer@cramped

\raggedright \beamer@first...

l.47 \item


Attached is a minimal example using beamer, with only this
beamer-resenumerate (not title page or frames).

-- 
*Those who don't understand recursion are doomed to repeat it*


newfile2.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: resume enumerate for beamer

2023-03-28 Thread Jürgen Spitzmüller
Am Dienstag, dem 28.03.2023 um 07:47 -0400 schrieb Neal Becker:
> I'm trying to do resume enumeration in beamer.  I read instructions
> to use doc settings, modules, list enhancements, customizable lists,
> but the "add" button is grayed out.  I'm assuming this is because of
> compatibility with beamer, as a test I see I can add it to an
> amsarticle document.

Sure you tried the beamer-resenumerate.module from here?
https://wiki.lyx.org/Layouts/Modules#toc12

-- 
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


resume enumerate for beamer

2023-03-28 Thread Neal Becker
I'm trying to do resume enumeration in beamer.  I read instructions to use
doc settings, modules, list enhancements, customizable lists, but the "add"
button is grayed out.  I'm assuming this is because of compatibility with
beamer, as a test I see I can add it to an amsarticle document.

I also saw here:
https://tex.stackexchange.com/questions/365974/resuming-a-list-in-lyx
That I should be able to right click on an enum item and see enumerate
options, but I don't get this choice (this is 2.4-devel).

Any suggestions?

Thanks,
Neal
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 01/07/2022 12:11, Ricardo Berlasso via lyx-users wrote:

>Check this article:
>https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/
>
>It shows how to change numbered lists both globally (preamble code) and for
>particular lists (through local layout and the creation of a new
>environment).
>
>Regards,
>Ricardo

A great blog and a great book. Thanks a lot for sharing it. It has some 
beautiful nice lyx gems.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 02/07/2022 20:54, Daniel via lyx-users wrote:
>Unfortunately, this is not as straight forward in LyX as in many other
>word processors. The (minimal) LaTeX part is described in section
>3.3.7.1 of the "User's Guide" (from the Help menu).
>
>/Daniel

Thanks very much! This is exactly what I was looking for.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-02 Thread Daniel

On 30/06/2022 23:23, tush via lyx-users wrote:
The enumitem package allows the user to change the layout of the 
enumerate, itemize and description environments.


The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not 
the same thing.


As I see it, if I want to introduce such a change to my lists inside 
LyX, I have to make a change to the Styles defined in the file 
stdlists.inc in the layouts directory. Is that correct?


Unfortunately, this is not as straight forward in LyX as in many other 
word processors. The (minimal) LaTeX part is described in section 
3.3.7.1 of the "User's Guide" (from the Help menu).


/Daniel

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-01 Thread Ricardo Berlasso
El jue, 30 jun 2022 a las 23:23, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> The enumitem package allows the user to change the layout of the
> enumerate, itemize and description environments.
>
> The change takes effect in the following way:
>
> \begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
> \item text...
> \item etc.
> \end{enumerate}
>
> I want to insert such ERT code to my lists in LyX.
>
> LyX allows the user to add such argument to each item, but this is not the
> same thing.
>
> As I see it, if I want to introduce such a change to my lists inside LyX,
> I have to make a change to the Styles defined in the file stdlists.inc in
> the layouts directory. Is that correct?
>

Check this article:

https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/

It shows how to change numbered lists both globally (preamble code) and for
particular lists (through local layout and the creation of a new
environment).

Regards,
Ricardo



> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Add options to begin{enumerate}

2022-06-30 Thread tush via lyx-users
The enumitem package allows the user to change the layout of the enumerate, 
itemize and description environments.

The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not the same 
thing.

As I see it, if I want to introduce such a change to my lists inside LyX, I 
have to make a change to the Styles defined in the file stdlists.inc in the 
layouts directory. Is that correct?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Inline enumerate

2020-12-04 Thread Guenter Milde
On 2020-12-01, Richard Kimberly Heck wrote:

> [-- Type: text/plain, Encoding: 7bit --]

> On 12/1/20 7:39 AM, Hal Kierstead wrote:
>> All -

>> I know how to use inline enumerate (enumitem[enumerate*]) in LaTeX. Is there 
>> a good way to use it in LyX without ERT? Among other problems, it seems that 
>> in order to use the  enumitem[enumerate*] package option I need to turn off 
>> the enumitem module.

> The attached is a hacked version of the enumitem module with additional
> list types, including inline. You can either put it into your layouts/
> directory as is, in which case it will replace the official version, or
> rename it and put it there, in which case it will give you a different
> option.

Instead of modifying the existing layout, I recommend writing an additional
one that builds on it. This way, changes/fixes to the original will not be
masked by your local version.

I have e.g. in "~/.lyx/layouts/gm-lists.module" the code below.

Günter



#\DeclareLyXModule{gmlists}
#DescriptionBegin
# Adds quoted-list and condensed list environments.
#DescriptionEnd
#Requires: enumitem
#Author: Günter Milde 

# date: 2008-12-04
# last update: 2016-07-21

Format 49

# Style Variants
# ==


Style Enumerate-Alpha
  CopyStyleEnumerate
  LatexParam   "[label=\emph{\alph*}),ref=\emph{\alph*},fullwidth,itemsep=1ex]"
  Margin   First_Dynamic
  LeftMargin   
  LabelCounter enumi
  LabelString  "\alph{enumi})"
  LabelFont
Series  Medium
Shape   Italic
  EndFont
End


# Dense (condensed/compact) list environments
# ===

Style Itemize-Compact
    CopyStyle Itemize
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep    0
TopSep0.4
    BottomSep 0.4
End 

Style Enumerate-Compact
CopyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End 

Style Description-Compact
CopyStyle Description
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End

# Indented compact LyX-List environment
Style Quoted-Labeling
CopyStyle   Labeling
LatexName   qlyxlist
ItemSep 0
ParSep  0
LabelIndent MMM
Preamble
% labeling-like list based on enumitem's description list with
% mandatory second argument (label-pattern) and indent of 2em:
\newenvironment{qlyxlist}[2][]%
  {\settowidth{\lyxlabelwidth}{#2}
   \addtolength{\lyxlabelwidth}{1.5em}
   \description[font=,style=sameline,
 leftmargin=\lyxlabelwidth,
 noitemsep, labelindent=1.5em,
 #1]}
  {\enddescription}
EndPreamble

End



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Inline enumerate

2020-12-01 Thread Hal Kierstead


> On Dec 1, 2020, at 8:48 AM, Richard Kimberly Heck  wrote:
> 
> On 12/1/20 7:39 AM, Hal Kierstead wrote:
>> All -
>> 
>> I know how to use inline enumerate (enumitem[enumerate*]) in LaTeX. Is there 
>> a good way to use it in LyX without ERT? Among other problems, it seems that 
>> in order to use the  enumitem[enumerate*] package option I need to turn off 
>> the enumitem module.
> 
> The attached is a hacked version of the enumitem module with additional
> list types, including inline. You can either put it into your layouts/
> directory as is, in which case it will replace the official version, or
> rename it and put it there, in which case it will give you a different
> option.
> 
> Riki
> 
> 
> 
Riki -

Thanks again. I have tried it and it works perfectly for me.

Hal

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Inline enumerate

2020-12-01 Thread Hal Kierstead
All -

I know how to use inline enumerate (enumitem[enumerate*]) in LaTeX. Is there a 
good way to use it in LyX without ERT? Among other problems, it seems that in 
order to use the  enumitem[enumerate*] package option I need to turn off the 
enumitem module.

Hal
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Inline enumerate

2020-12-01 Thread Richard Kimberly Heck
On 12/1/20 7:39 AM, Hal Kierstead wrote:
> All -
>
> I know how to use inline enumerate (enumitem[enumerate*]) in LaTeX. Is there 
> a good way to use it in LyX without ERT? Among other problems, it seems that 
> in order to use the  enumitem[enumerate*] package option I need to turn off 
> the enumitem module.

The attached is a hacked version of the enumitem module with additional
list types, including inline. You can either put it into your layouts/
directory as is, in which case it will replace the official version, or
rename it and put it there, in which case it will give you a different
option.

Riki


#\DeclareLyXModule{Customisable Lists (enumitem)}
#DescriptionBegin
# Control the layout of enumerate, itemize and description
# with an optional argument.
# See http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf
#DescriptionEnd
# Author: Günter Milde 

Format 35

# The package enumitem provides user control over the layout of the three
# basic list environments: enumerate, itemize and description. It supersedes
# both enumerate and mdwlist (providing well-structured replacements for all
# their funtionality), and in addition provides functions to compute the
# layout of labels, and to ‘clone’ the standard environments, to create new
# environments with counters of their own.
#
# - fancy labels and fancy refs,
# - leftmargin, labelsep and labelwidth automatically set,
# - changes applied globally or only in one of the three
#   types or even in a single list (including topsep) by
#   means of a sort of "inheritance",
# - several description styles (which fix some bad
#   spacing, too),
# - starting value and counter resuming,
# - trivlists properly formatted,
# - control on page breaking
#
# Styling the basic lists is possible 
#
# a) generally in the LaTeX preamble and 
# b) per environment with optional arguments
#
# See enumitem.pdf for details and examples.

AddToPreamble
\usepackage{enumitem}
EndPreamble

# ensure the stdlist layouts are present (unmodified) 
# (as e.g. the KOMA script classes obsolete lyx-list with labeling)
# TODO: is this secure?

Input stdlists.inc

# Customizable Basic Lists
# 

# With enumitem, the three standard list environments take an optional
# argument. See enumitem.pdf_ for possible values.

Style Itemize
OptionalArgs  1
End

Style Enumerate
OptionalArgs  1
End

Style Description
OptionalArgs  1
End

# List Variants
# -
#
# Styles with pre-defined optional arguments for ease of use

Style Enumerate-Resume
    CopyStyle Enumerate
LatexParam[resume]
OptionalArgs  0
# a blue label to indicate that this is not a WYSIWYG label
# (the numbering differs in the output)
LabelFont
Color  blue
EndFont
End

Style Enumerate-Roman
    CopyStyle Enumerate
OptionalArgs  0
LatexName romanlist
# a blue label to indicate that this is not a WYSIWYG label
# we don't get roman
LabelFont
Color blue
EndFont
Preamble
    \newlist{romanlist}{enumerate}{1}
\setlist[romanlist]{label=(\roman*),leftmargin=*,align=left}
EndPreamble
End
  
Style Roman-Resume
CopyStyle Enumerate-Roman
LatexParam "[resume]"
# a blue label to indicate that this is not a WYSIWYG label
# we don't get roman
LabelFont
Color blue
EndFont
Preamble
EndPreamble
End

Style Roman-Bare
CopyStyle Enumerate-Roman
LatexName romanbare
    Preamble
\newlist{romanbare}{enumerate}{1}

\setlist[romanbare]{label=(\roman*),ref=\roman*,leftmargin=*,align=left}
EndPreamble
End

Style Enumerate-RomanUpper
CopyStyle Enumerate
OptionalArgs  0
LatexName RomanList
# a blue label to indicate that this is not a WYSIWYG label
# we don't get roman
LabelFont
Color blue
EndFont
Preamble
\newlist{RomanList}{enumerate}{1}
\setlist[RomanList]{label=(\Roman*),leftmargin=*,align=left}
EndPreamble
End
  
Style Enumerate-Alpha
CopyStyle Enumerate
OptionalArgs  0
LatexName alphlist
# a blue label to indicate that this is not a WYSIWYG label
# we don't get roman
LabelFont
Color blue
EndFont
    Preamble
\newlist{alphlist}{enumerate}{1}
\setlist[alphlist]{label=(\alph*),leftmargin=*,align=left}
    EndPreamble
End
  
Style Alpha-Resume
CopyStyle Enumerate-Alpha
LatexParam "[resume]"
# a blue label to indicate that this is not a WYSIWYG label

Re: [ Lyx Module syntaxe ? ] Need help for a custom enumerate style module.

2020-11-19 Thread didiergabory
- Mail original -

| On 11/15/20 12:37 PM, didiergab...@free.fr wrote:

| | Hi,
| 

| | For the first time I try to write a LYX module corresponding to a
| | custom enumerate style (with two levels).
| 
| | I use the article Koma class with enumitem.sty package (I try…)
| 

| | I encounter a problem :
| 

| | * In the Lyx interface the 1rst level counter returns to the
| | initial
| | value on paragraph breaks. I am unable to mimic the correct
| | behavior
| | visible in the pdfLatex export produce by Lyx.
| 

| I believe this has been solved for 2.4.0. In 2.3.x, yes, there's no
| way to mimic the LaTeX output.

| Riki

Thanks for reading me. 

I will patiently wait for the new version… 

ps: 

Please disregard the first version of this email posted on November 14th. It 
was initially blocked due to attachments that are too large and I have not 
received a notification... In the meantime I have fixed one of the concerns and 
this first version should not have existed in the end. 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: [ Lyx Module syntaxe ? ] Need help for a custom enumerate style module.

2020-11-17 Thread Richard Kimberly Heck

On 11/15/20 12:37 PM, didiergab...@free.fr wrote:

Hi,

For the first time I try to write a LYX module corresponding to a 
custom enumerate style (with two levels).

I use the article Koma class with enumitem.sty package (I try…)


I encounter a problem :

  * In the Lyx interface the 1rst level counter returns to the initial
value on paragraph breaks. I am unable to mimic the correct
behavior visible in the pdfLatex export produce by Lyx.

I believe this has been solved for 2.4.0. In 2.3.x, yes, there's no way 
to mimic the LaTeX output.



Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fwd: [ Lyx Module syntaxe ? ] Need help for a custom enumerate style module.

2020-11-15 Thread didiergabory



Hi, 


For the first time I try to write a LYX module corresponding to a custom 
enumerate style (with two levels). 
I use the article Koma class with enumitem.sty package (I try…) 



I encounter a problem : 


* In the Lyx interface the 1rst level counter returns to the initial value 
on paragraph breaks. I am unable to mimic the correct behavior visible in the 
pdfLatex export produce by Lyx. 


I place: 



* the mwe on lyx; 
* my poor Mes_listes_CPGE.module file; 



I hope to find some help here to move forward. 


Didier 







Mes_listes_CPGE.module
Description: Binary data


test_mon_module.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Enumerate in Beamer

2019-05-24 Thread Dr Eberhard Lisse
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Jürgen,

doesn't show the right numbers on the LyX screen (restarting from 1 on
each Frame) but the PDF is right, which is all I need :-)-O

You're the Man!!


Thanks, el

On 2019-05-24 11:09 , Jürgen Spitzmüller wrote:
> Am Freitag, den 24.05.2019, 11:04 +0200 schrieb Dr Eberhard Lisse:
>> Yes I did.
>>
>> As I wrote, enumitem does not work in beamer (and the module is not
>> available in beamer).
>>
>> Convington does not do it either.
> 
> Did you see the Resumable Enumeration module, which is particularly
> suited to beamer?
> https://wiki.lyx.org/Layouts/Modules#toc12
> 
> Jürgen
> 
-BEGIN PGP SIGNATURE-
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEc5m+C677SuXtuUpUlwUdo3lFP6sFAlzn0o0ACgkQlwUdo3lF
P6udzw//QL18Kdeq7rKCM0UoUmCfQ1L4CpqehwmoEngQo+26L0bqgBnf9e8uZnaA
VY+Nu5KW4shhCUi4xEwfzt+2nZLxFsBLK4el1U3WVAssZqpppanB/UfMzSjv3pfB
mliDIHBAyAk7fm73wtM6vg+dwnUS7+quGv+t4PlLmyFQWWiLqamzst0RpoIjKa9J
Xlsm9GFljFbj7XSWysG2lBtFxCb6qaH1TJ0PU2wc9APWf9jqRYHz9pYvDEf7FkBl
XO60avnUA8T2FU3idf18B1bxdn/SjJSmunJGmdbIv7uqMdLwHbGrfCYQSMY0jCob
qdRfcqiSqjCztH1rMqXB3jsMMWFvpQq+4V8EmfEuw9IaEgKFqUwlTjRb0DypRfKz
ydsYbZ0vVs2O2whLHiwBJdLZr1QolodDIIajDc3tjcwjha9/jUvGMeQn5TkDRS4V
evQ6J8q+DzxzEAQBcfQeRkOqfiUOJPzGTC3hz+L3P3xgdjaaNyA/VrEyrHin7bs3
Nhujs9o+paK+fjkoqy8GPZDRW2PFxlWu7zPP3JRFA5RGUjcw1hJLMqkqVWskZie0
LjMdxEHiNWtvw4SWtDRRwzoLp0urwcQ6iXYJ5mucrkcMbNzK2BnsrAGxFDKwNcJx
PNHKp+5uxaqfS84V7TGUqcL1O1e2hQRt5ygOQJ4613HiieAs+B8=
=GCvm
-END PGP SIGNATURE-



Re: Enumerate in Beamer

2019-05-24 Thread Jürgen Spitzmüller
Am Freitag, den 24.05.2019, 11:04 +0200 schrieb Dr Eberhard Lisse:
> Yes I did.
> 
> As I wrote, enumitem does not work in beamer (and the module is not
> available in beamer).
> 
> Convington does not do it either.

Did you see the Resumable Enumeration module, which is particularly
suited to beamer?
https://wiki.lyx.org/Layouts/Modules#toc12

Jürgen



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


Re: Enumerate in Beamer

2019-05-24 Thread Dr Eberhard Lisse
Yes I did.

As I wrote, enumitem does not work in beamer (and the module is not
available in beamer).

Convington does not do it either.

greetings, el

On 23/05/2019 15:35, José Abílio Matos wrote:
> On Thursday, 23 May 2019 12.20.41 WEST Dr Eberhard Lisse wrote:
>> Is there a way of doing this in Beamer?  With as little ERT as possible
>> of course
>>
>> el
> 
> Have you seen
> https://wiki.lyx.org/LyX/Numbering or https://wiki.lyx.org/Tips/Enumitem
> 
> They show how to do what you intend.
> 
> Regards,
> 




Re: Enumerate in Beamer

2019-05-23 Thread José Abílio Matos
On Thursday, 23 May 2019 12.20.41 WEST Dr Eberhard Lisse wrote:
> Is there a way of doing this in Beamer?  With as little ERT as possible
> of course
> 
> el

Have you seen
https://wiki.lyx.org/LyX/Numbering or https://wiki.lyx.org/Tips/Enumitem

They show how to do what you intend.

Regards,
-- 
José Abílio




Enumerate in Beamer

2019-05-23 Thread Dr Eberhard Lisse


Hi,

I would like to continue the numbering of an enumerated list onto a
subsequent slide.

Usually I would do that with the enumitem package and module, but since
this interferes with something on Beamer it's disabled.

In LaTeX I would do something like this, which works.

\begin{enumerate}
\item First item
\item Second item
\newcounter{saveenum}
\setcounter{saveenum}{\value{enumi}}
\end{enumerate}
\end{frame}

\begin{frame}{next frame}

\begin{enumerate}
\setcounter{enumi}{\value{saveenum}}
\item Third item
\item Fourth item

I can add 

\setcounter{saveenum}{\value{enumi}}

as ERT, no drama, but if I put 

\setcounter{enumi}{\value{saveenum}}

as ERT into the first item on the LyX document, the 'Third item' comes
up as 1 and the 'Fourth item' as 4.

If I put 

\setcounter{enumi}{\value{saveenum}}

as ERT before the list, it has no effect, ie the 'Third item' comes up
as 1 and the 'Fourth item' as 2.

Is there a way of doing this in Beamer?  With as little ERT as possible
of course

el



Re: tex2lyx 2.3.2 and enumerate-resume

2019-05-14 Thread Dr Eberhard Lisse
In case someone is interested, I got to this issue, while playing with
Dragon Dictate for the Mac (discontinued by the developer 6 weeks after
I purchased the license :-(-O)

It reliably crashes when trying to "activate" LyX, never mind that a few
years ago when I tried this with previous versions I could not dictate
into LyX.

So I went the markdown road and developed this workflow over a Sunday
afternoon

Dictate Markdown into TextMate
Issue regularly "Press Key Command S" and "Cache Document" :-)-O
Bash Function
call pandoc with specific template
do some editing of the LaTeX file with Perl
run tex2lyx
remove ERT with Perl
version the Markdown and LyX file(s)
Review in LyX
Save PDF or print

Now I still need to Train my Dragon to understand my Namlish and the
medical and/or IT terms I use, but it seems with a bit of self
discipline and a cheat sheet I might be onto something.

I will also experiment with Dragon on Windows in Virtual Box, which I
have for my practice software anyway, and from which I can save the
markdown file out onto the mac, so I can continue with the above
workflow.

This might actually be a solution for other people needing to generate
large amounts of text in LyX.

greetings, el

On 2019-05-13 23:46 , Dr Eberhard W Lisse wrote:
> Perfect, I am an early adopter of new versions so I'll go for 2.4
> rather than for 2.3.[34] anyway.
> 
> thanks,
> 
> el
[...]
>> It's basically https://www.lyx.org/trac/ticket/11259
>>
>> It's fixed in 2.4.x. It might get backported to 2.3.4 (but not
>> 2.3.3).
>>
>> Jürgen


Re: tex2lyx 2.3.2 and enumerate-resume

2019-05-13 Thread Dr Eberhard W Lisse
Perfect, I am an early adopter of new versions so I'll go for 2.4 rather
than for 2.3.[34] anyway.

thanks,

el

On 2019-05-13 18:41 , Jürgen Spitzmüller wrote:
> Am Montag, den 13.05.2019, 14:09 +0200 schrieb Dr Eberhard Lisse:
>> Hi,
>>
>> I have run
>>
>>  tex2lyx -c scrartcl -m enumitem -f mwe.tex
>>
>> and get the enclosed
>>
>>  mwe.lyx
>>
>> where I have manually removed the ERT (see below) from the line with
>> "item 1" and right clicked that and the line with "item 2" to be
>> proper
>> Enumerate-Resume which produces the enclosed
>>
>>  mwe.pdf
>>
>>
>> While the PDF is correctly numbered I would rather prefer not to have
>> the ERT in the LyX file, as left in the one with "item 3".
>>
>>
>> Is this known? 
> 
> Yes.
> 
>>
>> Would that be a bug? 
> 
> It's basically https://www.lyx.org/trac/ticket/11259
> 
> It's fixed in 2.4.x. It might get backported to 2.3.4 (but not 2.3.3).
> 
> Jürgen
> 
>>
>> Can something be done about it? Other than regex'ing it in Perl.
>>
>> greetings, el

-- 
Dr. Eberhard W. Lisse  / Obstetrician & Gynaecologist (Saar)
e...@lisse.na/ * |   Telephone: +264 81 124 6733 (cell)
PO Box 8421  /
Bachbrecht, Namibia ;/


Re: tex2lyx 2.3.2 and enumerate-resume

2019-05-13 Thread Jürgen Spitzmüller
Am Montag, den 13.05.2019, 14:09 +0200 schrieb Dr Eberhard Lisse:
> Hi,
> 
> I have run
> 
>   tex2lyx -c scrartcl -m enumitem -f mwe.tex
> 
> and get the enclosed
> 
>   mwe.lyx
> 
> where I have manually removed the ERT (see below) from the line with
> "item 1" and right clicked that and the line with "item 2" to be
> proper
> Enumerate-Resume which produces the enclosed
> 
>   mwe.pdf
> 
> 
> While the PDF is correctly numbered I would rather prefer not to have
> the ERT in the LyX file, as left in the one with "item 3".
> 
> 
> Is this known? 

Yes.

> 
> Would that be a bug? 

It's basically https://www.lyx.org/trac/ticket/11259

It's fixed in 2.4.x. It might get backported to 2.3.4 (but not 2.3.3).

Jürgen

> 
> Can something be done about it? Other than regex'ing it in Perl.
> 
> greetings, el


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


tex2lyx 2.3.2 and enumerate-resume

2019-05-13 Thread Dr Eberhard Lisse
Hi,

I have run

tex2lyx -c scrartcl -m enumitem -f mwe.tex

and get the enclosed

mwe.lyx

where I have manually removed the ERT (see below) from the line with
"item 1" and right clicked that and the line with "item 2" to be proper
Enumerate-Resume which produces the enclosed

mwe.pdf


While the PDF is correctly numbered I would rather prefer not to have
the ERT in the LyX file, as left in the one with "item 3".


Is this known? 

Would that be a bug? 

Can something be done about it? Other than regex'ing it in Perl.

greetings, el
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\begin_preamble


\usepackage{enumitem}
\end_preamble
\use_default_options false
\begin_modules
enumitem
\end_modules
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 0
\use_package cancel 0
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 0
\use_package mhchem 0
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
Some text
\end_layout

\begin_layout Enumerate-Resume
item 1 
\end_layout

\begin_layout Enumerate-Resume
item 2 
\end_layout

\begin_layout Standard
more text
\end_layout

\begin_layout Enumerate
\begin_inset Argument 1
status collapsed

\begin_layout Plain Layout
resume
\end_layout

\end_inset

item 3 
\end_layout

\begin_layout Enumerate
item 4 
\end_layout

\begin_layout Standard
and even more.
\end_layout

\end_body
\end_document


mwe.pdf
Description: Adobe PDF document


mwe.tex
Description: TeX document


Re: Using new enumerate environment without ERT

2019-04-30 Thread Paul Smith
On Sat, Apr 27, 2019 at 2:42 PM Guenter Milde  wrote:
>
> >> Dear All,
>
> >> Suppose that I have created a new enumerate-like enumerate, say
> >> xenumerate. How can I use it from inside LyX without recourse to ERT?
>
> > A couple of possibilities come to mind. If you want to use the new
> > version exclusively (and not use good old "enumerate"), you could
> > redefine the enumerate environment itself. Assuming you want xenumerate
> > to coexist with enumerate, you can define a layout for it, either in the
> > Local Layout portion of the document settings (if you only want it for
> > one document) or in a module file installed in your local layouts directory.
>
> > Guessing that you want the last one (i.e., add this along side regular
> > enumerations and make it available to any document that wants it), I
> > would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> > inspiration. (That's the Linux path; on other OSes, your path may
> > differ.) Look for the section that begins "Style Enumerate" and copy it
> > to your local module file (which will also need the proper header
> > stuff). Change the first line of the style to "Style Xenumerate" (or
> > whatever), change the LatexName entry to "xenumerate", and see if
> > anything else needs tweaking (quite possibly not).
>
> It may help to have a look a the "enumitem" module that enhances enumeration
> environments.
>
> The appended gm-lists.module requires and uses enumitem to define
> additional list types. It is a bit dated, though.
>
>
> > Help > Customization has lots of details about creating your own modules
> > and paragraph styles. Note that you will have to expressly include the
> > module in any document where you want to use the style. (You could hack
> > stdlists.inc itself, but then you would need to repeat the hack any time
> > an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Günter, I will have a look at that.

Paul


Re: Using new enumerate environment without ERT

2019-04-27 Thread Guenter Milde
On 2019-04-26, Paul A. Rubin wrote:
> On 4/26/19 4:16 PM, Paul Smith wrote:
>> Dear All,

>> Suppose that I have created a new enumerate-like enumerate, say
>> xenumerate. How can I use it from inside LyX without recourse to ERT?

>> Thanks in advance,

>> Paul
> A couple of possibilities come to mind. If you want to use the new 
> version exclusively (and not use good old "enumerate"), you could 
> redefine the enumerate environment itself. Assuming you want xenumerate 
> to coexist with enumerate, you can define a layout for it, either in the 
> Local Layout portion of the document settings (if you only want it for 
> one document) or in a module file installed in your local layouts directory.

> Guessing that you want the last one (i.e., add this along side regular 
> enumerations and make it available to any document that wants it), I 
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for 
> inspiration. (That's the Linux path; on other OSes, your path may 
> differ.) Look for the section that begins "Style Enumerate" and copy it 
> to your local module file (which will also need the proper header 
> stuff). Change the first line of the style to "Style Xenumerate" (or 
> whatever), change the LatexName entry to "xenumerate", and see if 
> anything else needs tweaking (quite possibly not).

It may help to have a look a the "enumitem" module that enhances enumeration
environments. 

The appended gm-lists.module requires and uses enumitem to define
additional list types. It is a bit dated, though.


> Help > Customization has lots of details about creating your own modules 
> and paragraph styles. Note that you will have to expressly include the 
> module in any document where you want to use the style. (You could hack 
> stdlists.inc itself, but then you would need to repeat the hack any time 
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)


Günter


#\DeclareLyXModule{gmlists}
#DescriptionBegin
# Adds quoted-list and condensed list environments.
#DescriptionEnd
#Requires: enumitem
#Author: Günter Milde 

# date: 2008-12-04
# last update: 2016-07-21

Format 49

# Style Variants
# ==


Style Enumerate-Alpha
  CopyStyleEnumerate
  LatexParam   "[label=\emph{\alph*}),ref=\emph{\alph*},fullwidth,itemsep=1ex]"
  Margin   First_Dynamic
  LeftMargin   
  LabelCounter enumi
  LabelString  "\alph{enumi})"
  LabelFont
Series  Medium
Shape   Italic
  EndFont
End


# Dense (condensed/compact) list environments
# ===

Style Itemize-Compact
CopyStyle Itemize
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
    EndArgument
ParSep0
    TopSep0.4
BottomSep 0.4
End 

Style Enumerate-Compact
CopyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep    0
TopSep0.4
BottomSep 0.4
End 

Style Description-Compact
CopyStyle Description
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End

# Indented compact LyX-List environment
Style Quoted-Labeling
CopyStyle   Labeling
LatexName   qlyxlist
ItemSep 0
ParSep  0
LabelIndent MMM
Preamble
% labeling-like list based on enumitem's description list with
% mandatory second argument (label-pattern) and indent of 2em:
\newenvironment{qlyxlist}[2][]%
  {\settowidth{\lyxlabelwidth}{#2}
   \addtolength{\lyxlabelwidth}{1.5em}
   \description[font=,style=sameline,
 leftmargin=\lyxlabelwidth,
 noitemsep, labelindent=1.5em,
 #1]}
  {\enddescription}
    EndPreamble
    
End

# Backwards compatibility aliases:

Style Compact-Itemize
  ObsoletedByItemize-Compact
End  

Style Itemize-Dense
  ObsoletedByItemize-Compact
End

Style Compact-Enumerate
  ObsoletedBy   Enumerate-Compact
End

Style Enumerate-Dense
  ObsoletedBy   

Re: Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
On Fri, Apr 26, 2019 at 9:39 PM Paul A. Rubin  wrote:
>
> > Suppose that I have created a new enumerate-like enumerate, say
> > xenumerate. How can I use it from inside LyX without recourse to ERT?
> >
> A couple of possibilities come to mind. If you want to use the new
> version exclusively (and not use good old "enumerate"), you could
> redefine the enumerate environment itself. Assuming you want xenumerate
> to coexist with enumerate, you can define a layout for it, either in the
> Local Layout portion of the document settings (if you only want it for
> one document) or in a module file installed in your local layouts directory.
>
> Guessing that you want the last one (i.e., add this along side regular
> enumerations and make it available to any document that wants it), I
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> inspiration. (That's the Linux path; on other OSes, your path may
> differ.) Look for the section that begins "Style Enumerate" and copy it
> to your local module file (which will also need the proper header
> stuff). Change the first line of the style to "Style Xenumerate" (or
> whatever), change the LatexName entry to "xenumerate", and see if
> anything else needs tweaking (quite possibly not).
>
> Help > Customization has lots of details about creating your own modules
> and paragraph styles. Note that you will have to expressly include the
> module in any document where you want to use the style. (You could hack
> stdlists.inc itself, but then you would need to repeat the hack any time
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Paul, for your very valuable help! I am going now to ponder
about your suggestions and choose the one that fits best my needs.

Paul


Re: Using new enumerate environment without ERT

2019-04-26 Thread Paul A. Rubin

On 4/26/19 4:16 PM, Paul Smith wrote:

Dear All,

Suppose that I have created a new enumerate-like enumerate, say
xenumerate. How can I use it from inside LyX without recourse to ERT?

Thanks in advance,

Paul
A couple of possibilities come to mind. If you want to use the new 
version exclusively (and not use good old "enumerate"), you could 
redefine the enumerate environment itself. Assuming you want xenumerate 
to coexist with enumerate, you can define a layout for it, either in the 
Local Layout portion of the document settings (if you only want it for 
one document) or in a module file installed in your local layouts directory.


Guessing that you want the last one (i.e., add this along side regular 
enumerations and make it available to any document that wants it), I 
would suggest looking at /usr/share/lyx/layouts/stdlists.inc for 
inspiration. (That's the Linux path; on other OSes, your path may 
differ.) Look for the section that begins "Style Enumerate" and copy it 
to your local module file (which will also need the proper header 
stuff). Change the first line of the style to "Style Xenumerate" (or 
whatever), change the LatexName entry to "xenumerate", and see if 
anything else needs tweaking (quite possibly not).


Help > Customization has lots of details about creating your own modules 
and paragraph styles. Note that you will have to expressly include the 
module in any document where you want to use the style. (You could hack 
stdlists.inc itself, but then you would need to repeat the hack any time 
an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)


Paul (the original one)



Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
Dear All,

Suppose that I have created a new enumerate-like enumerate, say
xenumerate. How can I use it from inside LyX without recourse to ERT?

Thanks in advance,

Paul


Re: How to avoid breaking an item of enumerate?

2017-06-27 Thread Guenter Milde
On 2017-06-25, Paul Smith wrote:
...

> How to automatically avoid breaking the page in the middle of the
> inner items? For instance:

> Page 1

> 1. blablabla
>a) blablabla

> Page 2

>b) blablabla
> 2. blablabla
>a) blablabla
>b) blablabla

> In this example, the page break should be like the following:

> Page 1

> 1. blablabla
>a) blablabla
>b) blablabla

> Page 2

> 2. blablabla
>a) blablabla
>b) blablabla

> Thanks in advance,

It works here when I include the second sub-list in a minipage
(Insert>Box>Minipage).

Günter



#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass scrartcl
\use_default_options false
\maintain_unincluded_children false
\language ngerman
\language_package default
\inputencoding utf8
\fontencoding global
\font_roman "lmodern" "default"
\font_sans "lmss" "default"
\font_typewriter "txtt" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\papersize a4paper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\index Stichwortverzeichnis
\shortcut idx
\color #008000
\end_index
\topmargin 11.5cm
\bottommargin 15cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language german
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Enumerate
foo
\end_layout

\begin_deeper
\begin_layout Enumerate
bar
\end_layout

\begin_layout Enumerate
baf
\end_layout

\end_deeper
\begin_layout Enumerate
blallas
\begin_inset Box Frameless
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open

\begin_layout Enumerate
bar
\end_layout

\begin_layout Enumerate
baf
\end_layout

\end_inset


\end_layout

\begin_layout Enumerate
blallas
\end_layout

\begin_deeper
\begin_layout Enumerate
bar
\end_layout

\begin_layout Enumerate
baf
\end_layout

\end_deeper
\end_body
\end_document




Re: How to avoid breaking an item of enumerate?

2017-06-26 Thread Paul Smith
On Sun, Jun 25, 2017 at 8:43 PM, Paul A. Rubin  wrote:
> On 06/25/2017 03:25 PM, Paul Smith wrote:
>>
>> On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin 
>> wrote:
>>>
>>> You can manually force page breaks (after the document is "finalized") by
>>> inserting formatting instructions. See section 3.5.5 of the LyX User
>>> Guide.
>>> You might also try the enumitem module (see section 3.6 of the PDF
>>> documentation for the enumitem package), but I've struggled to get that
>>> to
>>> work.
>>
>> I am looking for a simple and automatic way. But thanks, Paul!
>>
>> Paul
>
> Fully automatic (not to mention simple) may not be feasible. What if you
> have a zillion subitems under one main item (or a few really long subitems)?
> Theoretically, you could put LaTeX in a position where your subitem list
> exceeds a page length but it's not allowed to break up the list. So, while
> I'm not a LaTeX guru, my guess is that the best you'll be able to do with an
> "automatic" approach is to encourage, rather than force, LaTeX to break
> after a sublist rather than during (or at the start) of one.
>
> I believe that's what the penalty options in the enumitem package are
> intended to do, and I believe that you can set global values for those
> penalties. So, if I'm right, you should just need to make two tweaks to the
> document. Add the enumitem module in the document modules list, and add a
> line of LaTeX code in the preamble setting your penalties. IF I'm right (and
> IF you can get it to work).

Thanks again, Paul. I have tried playing with

midpenalty

but with no success. Other people have reported the same on several
forums on the Internet.

Anyway, I can resort to the manual way! :-)

Paul


Re: How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul A. Rubin

On 06/25/2017 03:25 PM, Paul Smith wrote:

On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin  wrote:

You can manually force page breaks (after the document is "finalized") by
inserting formatting instructions. See section 3.5.5 of the LyX User Guide.
You might also try the enumitem module (see section 3.6 of the PDF
documentation for the enumitem package), but I've struggled to get that to
work.

I am looking for a simple and automatic way. But thanks, Paul!

Paul
Fully automatic (not to mention simple) may not be feasible. What if you 
have a zillion subitems under one main item (or a few really long 
subitems)? Theoretically, you could put LaTeX in a position where your 
subitem list exceeds a page length but it's not allowed to break up the 
list. So, while I'm not a LaTeX guru, my guess is that the best you'll 
be able to do with an "automatic" approach is to encourage, rather than 
force, LaTeX to break after a sublist rather than during (or at the 
start) of one.


I believe that's what the penalty options in the enumitem package are 
intended to do, and I believe that you can set global values for those 
penalties. So, if I'm right, you should just need to make two tweaks to 
the document. Add the enumitem module in the document modules list, and 
add a line of LaTeX code in the preamble setting your penalties. IF I'm 
right (and IF you can get it to work).


Good luck with it,
Paul



Re: How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul Smith
On Sun, Jun 25, 2017 at 7:09 PM, Paul A. Rubin  wrote:
>>
>> Dear All,
>>
>> Suppose one has the following:
>>
>> 1. blablabla
>> a) blablabla
>> b) blablabla
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> How to automatically avoid breaking the page in the middle of the
>> inner items? For instance:
>>
>> Page 1
>>
>> 1. blablabla
>> a) blablabla
>>
>> Page 2
>>
>> b) blablabla
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> In this example, the page break should be like the following:
>>
>> Page 1
>>
>> 1. blablabla
>> a) blablabla
>> b) blablabla
>>
>> Page 2
>>
>> 2. blablabla
>> a) blablabla
>> b) blablabla
>>
>> Thanks in advance,
>>
>> Paul
>
> You can manually force page breaks (after the document is "finalized") by
> inserting formatting instructions. See section 3.5.5 of the LyX User Guide.
> You might also try the enumitem module (see section 3.6 of the PDF
> documentation for the enumitem package), but I've struggled to get that to
> work.

I am looking for a simple and automatic way. But thanks, Paul!

Paul


Re: How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul A. Rubin

On 06/25/2017 06:36 AM, Paul Smith wrote:

Dear All,

Suppose one has the following:

1. blablabla
a) blablabla
b) blablabla
2. blablabla
a) blablabla
b) blablabla

How to automatically avoid breaking the page in the middle of the
inner items? For instance:

Page 1

1. blablabla
a) blablabla

Page 2

b) blablabla
2. blablabla
a) blablabla
b) blablabla

In this example, the page break should be like the following:

Page 1

1. blablabla
a) blablabla
b) blablabla

Page 2

2. blablabla
a) blablabla
b) blablabla

Thanks in advance,

Paul
You can manually force page breaks (after the document is "finalized") 
by inserting formatting instructions. See section 3.5.5 of the LyX User 
Guide. You might also try the enumitem module (see section 3.6 of the 
PDF documentation for the enumitem package), but I've struggled to get 
that to work.


Paul (the original one)



How to avoid breaking an item of enumerate?

2017-06-25 Thread Paul Smith
Dear All,

Suppose one has the following:

1. blablabla
   a) blablabla
   b) blablabla
2. blablabla
   a) blablabla
   b) blablabla

How to automatically avoid breaking the page in the middle of the
inner items? For instance:

Page 1

1. blablabla
   a) blablabla

Page 2

   b) blablabla
2. blablabla
   a) blablabla
   b) blablabla

In this example, the page break should be like the following:

Page 1

1. blablabla
   a) blablabla
   b) blablabla

Page 2

2. blablabla
   a) blablabla
   b) blablabla

Thanks in advance,

Paul


Re: Enumerate inside other environment

2016-10-05 Thread Mario D
>
> Empty TeX code works, too. Either is a hack to make LyX think the first
> line is not empty, since otherwise it will delete it.
>
> If you do this a lot, you can do something like:
>
> Format 60
>
> Style Theorem*
> KeepEmpty 1
> End
>
> in Local Layout. This tells LyX to allow empty lines in unnumbered
> theorems. Then you do not have to do anything special.
>
>
I was asking because I thought I could be missing something but I see that
out of the box I can obtain these only with workarounds or new environment,
as you suggest.
Knowing that, it is fine for me to just insert something to fool lyx when I
need it, every now and then.


> Moreover, how can I produce the following?
>
> -
> Theorem.
>1. First statement.
>2. Second statement.
> -
>
> For this I couldn't find a workaround.
>
>
> Put a "protected space" on the first line. (Insert> Formatting> Protected
> Space) This makes there by something on that line, but it's invisible.
>
> Richard
>
>
Many thanks to both of you (you and Paul)


Re: Enumerate inside other environment

2016-10-04 Thread Richard Heck
On 10/04/2016 03:18 PM, Mario D wrote:
> I know how to nest environments so that I can use enumerate inside
> another environment in order to produce something looking like:
>
> -
> Theorem. The following are equivalent:
>1. First statement.
>2. Second statement.
> -
>
> My question is: how can I produce
>  
> -
> Theorem.   1. First statement.
>2. Second statement.
> -
>
> The only way//I could get it was to insert an empty note after the
> "Theorem", then newline, start the enumerate and finally nest it.
> Is there a "cleaner" way?

Empty TeX code works, too. Either is a hack to make LyX think the first
line is not empty, since otherwise it will delete it.

If you do this a lot, you can do something like:

Format 60

Style Theorem*
KeepEmpty 1
End

in Local Layout. This tells LyX to allow empty lines in unnumbered
theorems. Then you do not have to do anything special.

> Moreover, how can I produce the following?
>
> -
> Theorem.
>1. First statement.
>2. Second statement.
> -
>
> For this I couldn't find a workaround.

Put a "protected space" on the first line. (Insert> Formatting>
Protected Space) This makes there by something on that line, but it's
invisible.

Richard



Re: Enumerate inside other environment

2016-10-04 Thread Paul A. Rubin

On 10/04/2016 03:18 PM, Mario D wrote:
I know how to nest environments so that I can use enumerate inside 
another environment in order to produce something looking like:


-
Theorem. The following are equivalent:
   1. First statement.
   2. Second statement.
-

My question is: how can I produce

-
Theorem.   1. First statement.
   2. Second statement.
-

The only way//I could get it was to insert an empty note after the 
"Theorem", then newline, start the enumerate and finally nest it.

Is there a "cleaner" way?

I couldn't find anything relevant on lyx manuals.
Moreover, how can I produce the following?

-
Theorem.
   1. First statement.
   2. Second statement.
-

For this I couldn't find a workaround.

Thank you

Not that I'm endorsing either layout, but you can do the first by 
putting a frameless box in the Theorem environment and the second by 
putting a nonbreakable space in the theorem environment, hitting return, 
switching to enumeration and nesting.


I've attached a sample file.

Paul



theorems.lyx
Description: application/lyx


Enumerate inside other environment

2016-10-04 Thread Mario D
I know how to nest environments so that I can use enumerate inside another
environment in order to produce something looking like:

-
Theorem. The following are equivalent:
   1. First statement.
   2. Second statement.
-

My question is: how can I produce

-
Theorem.   1. First statement.
   2. Second statement.
-

The only way I could get it was to insert an empty note after the
"Theorem", then newline, start the enumerate and finally nest it.
Is there a "cleaner" way?

I couldn't find anything relevant on lyx manuals.
Moreover, how can I produce the following?

-
Theorem.
   1. First statement.
   2. Second statement.
-

For this I couldn't find a workaround.

Thank you


Re: ERT before first \item inside enumerate environment

2016-05-10 Thread Jürgen Spitzmüller
Am Sonntag, den 08.05.2016, 23:56 -0400 schrieb S Shieh:
> I would like to achieve in LyX the equivalent of
> 
> \begin{frame}{WTF?}
> \begin{enumerate}
> \conti
> \item yada
> \end{enumerate}
> \end{frame}

If you want this in every enumerate environment:

\usepackage{etoolbox}
\AtBeginEnvironment{enumerate}{\conti}

If not, I would create a custom environment via Document > Settings >
Local layout:

Style ContiEnumerate
CopyStyle Enumerate
LatexName contienumerate
Preamble
\newenvironment{contienumerate}{\begin{enumerate}\conti}{\end{enumerate
}}
EndPreamble
End

HTH
Jürgen



Re: ERT before first \item inside enumerate environment

2016-05-10 Thread S Shieh

Thanks Paul.  Sorry I didn't press reply to all.

Sanford

At 10:21 AM 5/10/2016, Paul A. Rubin wrote:

Sanford,

Please keep the conversation on the list, in case others have the 
same question.


I have the Beamer resume enumerate module installed with LyX 2.1.4. IIRC,
the module did not ship with this version of LyX, so I had to download it
from the Wiki modules page (http://wiki.lyx.org/Layouts/Modules#toc10).

Paul


Sanford Shieh
Associate Professor
Department of Philosophy
Wesleyan University
350 High Street
Middletown, CT 06459
USA
(860) 685-3646 (office)
(860) 685-3861 (fax)
<<mailto:sanford.sh...@wesleyan.edu>sanford.sh...@wesleyan.edu>
Follow me on <https://wesleyan.academia.edu/SanfordShieh>Academia.edu  

Re: ERT before first \item inside enumerate environment

2016-05-10 Thread Paul A . Rubin
Sanford,

Please keep the conversation on the list, in case others have the same question.

I have the Beamer resume enumerate module installed with LyX 2.1.4. IIRC,
the module did not ship with this version of LyX, so I had to download it
from the Wiki modules page (http://wiki.lyx.org/Layouts/Modules#toc10).

Paul



Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Richard Heck
On 05/09/2016 09:54 PM, Scott Kostyshak wrote:
> On Sun, May 08, 2016 at 11:56:19PM -0400, S Shieh wrote:
>> I would like to achieve in LyX the equivalent of
>>
>> \begin{frame}{WTF?}
>> \begin{enumerate}
>> \conti
>> \item yada
>> \end{enumerate}
>> \end{frame}
>>
>> But if I put the cursor after 1. and use ctrl-L, \seti appears after \item.
>> If I put the cursor after the frametitle and use ctrl-L, \seti appears
>> before \begin{enumerate}
>>
>> Thanks!
>>
>> Sanford Shieh
>> Associate Professor
>> Department of Philosophy
>> Wesleyan University
>> 350 High Street
>> Middletown, CT 06459
>> USA
>> (860) 685-3646 (office)
>> (860) 685-3861 (fax)
>> <<mailto:sanford.sh...@wesleyan.edu>sanford.sh...@wesleyan.edu>
>> Follow me on <https://wesleyan.academia.edu/SanfordShieh>Academia.edu
> Hi Sanford,
>
> Similar to Paul, it would be interesting to know exactly what you want
> to achieve.
>
> Note that one option is to put the entire enumerate in ERT. Another
> option would be to copy the enumerate style and add your own ERT using
> our layout methods. This second option is more advanced. You could start
> reading Help > Customization if you were prepared to spend time to
> invest and learn some advanced features of LyX.

My overall sense is that this would best be done using the features of
the enumitem package, as partially implemented in the enumitem module.
But I'm not positive.

rh

PS Hi Sanford.



Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Scott Kostyshak
On Sun, May 08, 2016 at 11:56:19PM -0400, S Shieh wrote:
> I would like to achieve in LyX the equivalent of
> 
> \begin{frame}{WTF?}
> \begin{enumerate}
> \conti
> \item yada
> \end{enumerate}
> \end{frame}
> 
> But if I put the cursor after 1. and use ctrl-L, \seti appears after \item.
> If I put the cursor after the frametitle and use ctrl-L, \seti appears
> before \begin{enumerate}
> 
> Thanks!
> 
> Sanford Shieh
> Associate Professor
> Department of Philosophy
> Wesleyan University
> 350 High Street
> Middletown, CT 06459
> USA
> (860) 685-3646 (office)
> (860) 685-3861 (fax)
> <<mailto:sanford.sh...@wesleyan.edu>sanford.sh...@wesleyan.edu>
> Follow me on <https://wesleyan.academia.edu/SanfordShieh>Academia.edu

Hi Sanford,

Similar to Paul, it would be interesting to know exactly what you want
to achieve.

Note that one option is to put the entire enumerate in ERT. Another
option would be to copy the enumerate style and add your own ERT using
our layout methods. This second option is more advanced. You could start
reading Help > Customization if you were prepared to spend time to
invest and learn some advanced features of LyX.

Scott


signature.asc
Description: PGP signature


Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Paul A . Rubin
Is the purpose here to number enumerated items consecutively across a frame
boundary? If so, and if you have a recent version of LyX, you just need to
go to Document > Settings > Modules and add the module "Beamer Resumable
Enumerate". Then use the usual enumerate environment on the first slide and
the new Enumerate-Resume environment (from the environment drop-down list)
on subsequent slides.





ERT before first \item inside enumerate environment

2016-05-08 Thread S Shieh

I would like to achieve in LyX the equivalent of

\begin{frame}{WTF?}
\begin{enumerate}
\conti
\item yada
\end{enumerate}
\end{frame}

But if I put the cursor after 1. and use ctrl-L, \seti appears after 
\item.  If I put the cursor after the frametitle and use ctrl-L, 
\seti appears before \begin{enumerate}


Thanks!

Sanford Shieh
Associate Professor
Department of Philosophy
Wesleyan University
350 High Street
Middletown, CT 06459
USA
(860) 685-3646 (office)
(860) 685-3861 (fax)
<<mailto:sanford.sh...@wesleyan.edu>sanford.sh...@wesleyan.edu>
Follow me on <https://wesleyan.academia.edu/SanfordShieh>Academia.edu  

Re: Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Christopher Menzel
Ah, gotcha. I'm sure this could be done with ERT but doubt it is a feature 
baked into LyX.

-chris

> On 20 Jan 2016, at 12:04 PM, Paul Smith  wrote:
> 
> On Wed, Jan 20, 2016 at 6:00 PM, Christopher Menzel
>  wrote:
>>> 
>>> Is there some automatic or semi-automatic way of shuffling the items
>>> of an enumerate environment?
>> 
>> If I'm understanding you, under OS X, Cmd- and Cmd- allow you move 
>> enumerated items up or down in an enumerated list. I reckon Ctrl- and 
>> Ctrl- do the same thing under Windows and Linux.
> 
> 
> Thanks, Chris, but that is not exactly what I am looking for.
> 
> I am lookign for something like this:
> 
> ---
> \starttext
> \startitemize[n,random]
>  \startitem One \stopitem
>  \startitem Two \stopitem
>  \startitem Three \stopitem
>  \startitem Four \stopitem
>  \startitem Five \stopitem
>  \startitem Six \stopitem
> \stopitemize
> \stoptext
> ---
> 
> Please, see:
> 
> http://tex.stackexchange.com/questions/96645/random-shuffle-itemize
> 
> Paul



Re: Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Paul Smith
On Wed, Jan 20, 2016 at 6:00 PM, Christopher Menzel
 wrote:
>>
>> Is there some automatic or semi-automatic way of shuffling the items
>> of an enumerate environment?
>
> If I'm understanding you, under OS X, Cmd- and Cmd- allow you move 
> enumerated items up or down in an enumerated list. I reckon Ctrl- and 
> Ctrl- do the same thing under Windows and Linux.


Thanks, Chris, but that is not exactly what I am looking for.

I am lookign for something like this:

---
\starttext
\startitemize[n,random]
  \startitem One \stopitem
  \startitem Two \stopitem
  \startitem Three \stopitem
  \startitem Four \stopitem
  \startitem Five \stopitem
  \startitem Six \stopitem
\stopitemize
\stoptext
---

Please, see:

http://tex.stackexchange.com/questions/96645/random-shuffle-itemize

Paul


Re: Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Christopher Menzel
On 20 Jan 2016, at 11:17 AM, Paul Smith  wrote:
> Dear All,
> 
> Is there some automatic or semi-automatic way of shuffling the items
> of an enumerate environment?

If I'm understanding you, under OS X, Cmd- and Cmd- allow you move 
enumerated items up or down in an enumerated list. I reckon Ctrl- and 
Ctrl- do the same thing under Windows and Linux.

Chris Menzel



Looking for an automatic way of shuffling the items of enumerate

2016-01-20 Thread Paul Smith
Dear All,

Is there some automatic or semi-automatic way of shuffling the items
of an enumerate environment?

Thanks in advance,

Paul


Re: Enumerate changes spacing over 2 pages

2015-06-30 Thread Guenter Milde
On 2015-06-25, Mark Garrow wrote:

> [-- Type: text/plain, Encoding:  --]

> I have an enumerated list under a section with a number of items that are
> indented one level.  The list begins towards the bottom of the page and
> continues on the next page.  The spacing on the list items on the second
> page changes drastically from what appear to be 1 line to several lines.
> I've attached a pdf of the 2 pages in question so it's easier to see what
> I'm talking about.  Any suggestions on how to remedy this would be greatly
> appreciated.

Typically this is caused by "stretching" space: TeX tries to get the same
size for the text block both horizontally and vertically by a certain amount
of variable inter-word space (horizontally) and inter-paragraph space
(vertically). 

You could try to redefine \parset and \itemsep without variable space in the
LaTeX preamble.

Alternatively, you may try to "shrink" the text block on the second page
via the "\raggedbottom" command (as ERT (i.e. LaTeX-box)) after the end of
the list.

Günter



Re: Enumerate changes spacing over 2 pages

2015-06-26 Thread Paul A . Rubin
Can you post a minimal (two PDF pages), self-contained LyX file where this
happens? If you need images to reproduce the problem, please include those
as well.

Paul





Enumerate changes spacing over 2 pages

2015-06-25 Thread Mark Garrow
I have an enumerated list under a section with a number of items that are
indented one level.  The list begins towards the bottom of the page and
continues on the next page.  The spacing on the list items on the second
page changes drastically from what appear to be 1 line to several lines.
I've attached a pdf of the 2 pages in question so it's easier to see what
I'm talking about.  Any suggestions on how to remedy this would be greatly
appreciated.

Best regards,

Mark Garrow


Appendix9-10.pdf
Description: Adobe PDF document


Re: enumitem's enumerate-resume does not work in powerdot

2013-10-19 Thread Jürgen Spitzmüller
Am Samstag 19 Oktober 2013, 00:51:01 schrieb Csikos Bela:
> Unfortunately resuming works only within the same slide. In a new slide the
> numbers start
> 
> again from 1 even if the resume option is used.
> 
> (Enumerate resume works correctly in the article class even through
> sections.)
> 
> Is this normal or a bug? How could I fix it?

Looks like a powerdot bug.

In LaTeX, you can work around that by using the option "start=" instead of 
resume. Alas, the second optional argument of powerdot enumeration is not 
supported in LyX 2.0 (it will be in LyX 2.1). With yet another local style 
definition, you can fix it. See attachment.

HTH
Jürgen

powerdot-enumerate-resume.lyx
Description: application/lyx


enumitem's enumerate-resume does not work in powerdot

2013-10-18 Thread Csikos Bela
Hello:

I would like to make a presentation with enumerated lists through the 
presentation.

Powerdot manual states that powerdot works with enumitem package, even refers to

its manual. According to this the resume option for enumerate should work in 
powerdot.

Unfortunately resuming works only within the same slide. In a new slide the 
numbers start

again from 1 even if the resume option is used.

(Enumerate resume works correctly in the article class even through sections.)

Is this normal or a bug? How could I fix it?

I attach an example powerdot and article file.

Thanks,

bcsikos


powerdot-enumerate-resume.lyx
Description: Binary data


article-enumerate-resume.lyx
Description: Binary data


Re: enumitem module, enumerate start= lyx bug?

2013-09-17 Thread Jürgen Spitzmüller
2013/9/17 Jean-Marc Lasgouttes 

> Juergen,
>
> Is there something like PassThru for insets arguments?
>

Not yet (I was running out of time). We "inherit" the PassThru status of
the parent layout (which is a tricky task). For the argument itself, the
use of ERT is currently needed.

Jürgen


> JMarc
>


Re: enumitem module, enumerate start= lyx bug?

2013-09-17 Thread Csikos Bela
Guenter Milde  írta:
>On 2013-09-14, Csikos Bela wrote:
>>
>> Hello:
>>
>>I am trying to make enumerated lists with optional argument start=x, 
>>
>>where x is the item number.
>>
>>Using normal fonts it works, but if I use eg. smal font for the list, I 
>>
>>get error messages, since the optional "start=x" argument is put inside 
>>
>>\small{}, like:
>>
>>\begin{enumerate}[{\small{start=3}}]
>>
>>and latex chokes on this.
>>
>>I think this is an enumitem module bug.
>>

>I suppose it is a limitation that cannot be fixed in enumitem module. 
>
>Maybe the code for "short title" (i.e. optional arguments) insets could 
>
>be modified.

Hello:

I solved this by setting the font size in the short title to normal.

Previously I tried to set the font size of the whole short title (option)

by selecting the whole option including the word "opt" and the red rectangle, 

and it did not work. I found  I must set the font size to normal only within 

the short title box, not including the gray "opt" and the red rectangle of the

short title. 

Thank for your input.

bcsikos



Re: enumitem module, enumerate start= lyx bug?

2013-09-17 Thread Jean-Marc Lasgouttes

Le 17/09/13 08:33, Guenter Milde a écrit :

Using normal fonts it works, but if I use eg. small font for the list, I
get error messages, since the optional "start=x" argument is put inside 
\small{},
like:



\begin{enumerate}[{\small{start=3}}]



and latex chokes on this.



I think this is an enumitem module bug.


I suppose it is a limitation that cannot be fixed in enumitem module.
Maybe the code for "short title" (i.e. optional arguments) insets could
be modified.


Juergen,

Is there something like PassThru for insets arguments?

JMarc


Re: enumitem module, enumerate start= lyx bug?

2013-09-16 Thread Guenter Milde
On 2013-09-14, Csikos Bela wrote:

> [-- Type: text/plain, Encoding:  --]

> Hello:

> I am trying to make enumerated lists with optional argument start=x, where

> x is the item number.

> Using normal fonts it works, but if I use eg. smal font for the list, I
> get error

> messages, since the optional "start=x" argument is put inside \small{},
> like:

> \begin{enumerate}[{\small{start=3}}]

> and latex chokes on this.

> I think this is an enumitem module bug.

I suppose it is a limitation that cannot be fixed in enumitem module.
Maybe the code for "short title" (i.e. optional arguments) insets could
be modified.

> How could I fix this?

Does it work if you use an ERT box in the optional argument inset?

Günter



enumitem module, enumerate start= lyx bug?

2013-09-14 Thread Csikos Bela
Hello:

I am trying to make enumerated lists with optional argument start=x, where

x is the item number.

Using normal fonts it works, but if I use eg. smal font for the list, I get 
error

messages, since the optional "start=x" argument is put inside \small{}, like:

\begin{enumerate}[{\small{start=3}}]

and latex chokes on this.

I think this is an enumitem module bug.

How could I fix this?

Thanks,

bcsikos

ps: I am attaching an example lyx file, enumerate-example.lyx.

enumerate-example.lyx
Description: Binary data


Re: How to change enumerate label font size in beamer?

2013-06-13 Thread Csikos Bela
"Jürgen Spitzmüller"  írta:
>Am Donnerstag 13 Juni 2013, 14:37:51 schrieb Csikos Bela:>
> No. I use the default beamer theme/template loaded with lyx.>
> It has a white background, and the label number has no any background.>
> An it is not scaled.>
>
It scales if you put \Large in ERT before the list (instead of selecting the >
fontsize via the dialog).>
>

I did not know that. Thanks.

bcsikos




Re: How to change enumerate label font size in beamer?

2013-06-13 Thread Jürgen Spitzmüller
Am Donnerstag 13 Juni 2013, 14:37:51 schrieb Csikos Bela:
> No. I use the default beamer theme/template loaded with lyx.
> It has a white background, and the label number has no any background.
> An it is not scaled.

It scales if you put \Large in ERT before the list (instead of selecting the 
fontsize via the dialog).

Jürgen


Re: How to change enumerate label font size in beamer?

2013-06-13 Thread Csikos Bela
"Jürgen Spitzmüller"  írta:
>Am Donnerstag 13 Juni 2013, 13:27:13 schrieb Csikos Bela:
>> I have a frame in beamer with an enumerated list where I increased the font
>> size of the text. How can I adjust the font size of the label accordingly?
>> The font size was changed to Larger (\Large in the latex source).
>> I don't want to change the font for all lists, only for this specific one.

Thanks for the super fast answer!

>I suppose you use the "ball" enumerate item theme, since "plain" scales by 
>default.

No. I use the default beamer theme/template loaded with lyx.
It has a white background, and the label number has no any background.
An it is not scaled.

>The "ball" items are hardcoded in size, so you have to set up a new template 
>for "large" balls. In preamble, something like
>
>\defbeamertemplate{enumerate item}{largeball}
>{
>  \begin{pgfpicture}{-1ex}{-0.65ex}{1.5ex}{1.5ex}
>\usebeamercolor[fg]{item projected}>
{\pgftransformscale{3.25}\pgftext{\Large\pgfuseshading{bigsphere}}}>
{\pgftransformshift{\pgfpoint{0pt}{0.5pt}}>
  \pgftext{\usebeamerfont*{item projected}\Large\insertenumlabel}}>
  \end{pgfpicture}%
>}
>
>Then in the document, right before the list:
>
>\setbeamertemplate{enumerate item}[largeball]
>

This works. As I don't need the ball background I modified the code to:

\defbeamertemplate{enumerate item}{large}{\Large\insertenumlabel.}

This works too. 

Thanks again,

bcsikos



Re: How to change enumerate label font size in beamer?

2013-06-13 Thread Jürgen Spitzmüller
Am Donnerstag 13 Juni 2013, 13:27:13 schrieb Csikos Bela:
> I have a frame in beamer with an enumerated list where I increased the font
> size of the text. How can I adjust the font size of the label accordingly?
> The font size was changed to Larger (\Large in the latex source).
> I don't want to change the font for all lists, only for this specific one.

I suppose you use the "ball" enumerate item theme, since "plain" scales by 
default.

The "ball" items are hardcoded in size, so you have to set up a new template 
for "large" balls. In preamble, something like

\defbeamertemplate{enumerate item}{largeball}
{
  \begin{pgfpicture}{-1ex}{-0.65ex}{1.5ex}{1.5ex}
\usebeamercolor[fg]{item projected}
{\pgftransformscale{3.25}\pgftext{\Large\pgfuseshading{bigsphere}}}
{\pgftransformshift{\pgfpoint{0pt}{0.5pt}}
  \pgftext{\usebeamerfont*{item projected}\Large\insertenumlabel}}
  \end{pgfpicture}%
}

Then in the document, right before the list:

\setbeamertemplate{enumerate item}[largeball]

HTH
Jürgen


How to change enumerate label font size in beamer?

2013-06-13 Thread Csikos Bela
Hello:

I have a frame in beamer with an enumerated list where I increased the font 
size of the text.
How can I adjust the font size of the label accordingly?
The font size was changed to Larger (\Large in the latex source).
I don't want to change the font for all lists, only for this specific one.

Thanks,

bcsikos



Re: problem nesting enumerate lists

2013-06-06 Thread Piersante Sestini

On 13/06/05 21:46, stefano franchi wrote:




On Wed, Jun 5, 2013 at 11:18 AM, Richard Heck mailto:rgh...@lyx.org>> wrote:

On 06/05/2013 12:12 PM, Piersante Sestini wrote:

On 05/06/2013 17:46, Richard Heck wrote:

On 06/05/2013 11:32 AM, Piersante Sestini wrote:

I have a problem formatting enumerated lists in a document.

What I need is
==
1 item bla bla bla bla
 (a) sub-item
 (b)another sub-item
   continue item 1 again bla bla bla

2 another item bla bla bla

However, what I get is:

1 item bla bla bla bla
 (a) sub-item
 (b)another sub-item
2  continue item 1 again bla bla bla <---!!!

3 another item bla bla bla

==
How do I prevent lyx from inserting a new item number
after the last sub-item of a list?


I don't think you can do this in LyX without ERT. LyX thinks
that new paragraphs are new items, and I don't see any way
to override this behavior.

For now, then, you have to use ERT for your subitems, as in
the attached.

Richard

Thanks! I actually solved it (just by luck) changing the text
after the last sub-item to "standard", and keeping it nested at
the same level of the sub-items.


Indeed, that does work. And what's really funny is that I've used
this trick myself in the past. Totally forgot about it.


Bennet's solution works perfectly and it is aesthetically pleasing to
the eye. Sometimes, though, you need to interrupt the list altogether,
go back to regular, non-indented body text, and then resume the list
from the next number.Something like this:

1 item bla bla bla bla
 (a) sub-item
 (b)another sub-item
continue item 1 again bla bla bla

2 another item bla bla bla


In these cases you can use the enumitem module, which imports the
enumitem latex package. Unfortunately the numbering pattern looks wrong
on screen, but it turns out fine in the pdf. See attached example.



thanks. indeed it works (although for some reason I had also to force 
the first item number to be changed with with a TEX tag ([2] in this 
case). Anyway, I find the other solution to be somewhat cleaner.


It is nice to have more than a solution to a problem.

thanks to everybody for your quick support!

Piersante Sestini

Cheers,

Stefano

--
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu 
http://stefano.cleinias.org




Re: problem nesting enumerate lists

2013-06-06 Thread Guenter Milde
On 2013-06-05, BH wrote:

> [-- Type: text/plain, Encoding:  --]

> Actually, it's quite easy. The key is to make the continuation of (1) be a
> standard paragraph, but indent it so that it does not alter the numbering
> of (2). I hope this is clear:

> 1. [enumerated paragraph] item 1
> (a) [indented enumerated paragraph] sub-item
> (b) [indented enumerated paragraph] another sub-item
> [indented standard paragraph] continue item 1
> 2. [non-indented enumerated paragraph] item 2.

Actually, this is easy to remember if you think about the more basic case
of a list item containing two paragraphs:

 1. [enumerated paragraph] item 1

[indented standard paragraph] second paragraph of item 1

 2. [non-indented enumerated paragraph] item 2.


Dosn't this look "natural"?

Günter



Re: problem nesting enumerate lists

2013-06-05 Thread stefano franchi
On Wed, Jun 5, 2013 at 11:18 AM, Richard Heck  wrote:

> On 06/05/2013 12:12 PM, Piersante Sestini wrote:
>
>> On 05/06/2013 17:46, Richard Heck wrote:
>>
>>> On 06/05/2013 11:32 AM, Piersante Sestini wrote:
>>>
 I have a problem formatting enumerated lists in a document.

 What I need is
 ==
 1 item bla bla bla bla
 (a) sub-item
 (b)another sub-item
   continue item 1 again bla bla bla

 2 another item bla bla bla

 However, what I get is:

 1 item bla bla bla bla
 (a) sub-item
 (b)another sub-item
 2  continue item 1 again bla bla bla <---!!!

 3 another item bla bla bla

 ==
 How do I prevent lyx from inserting a new item number after the last
 sub-item of a list?

>>>
>>> I don't think you can do this in LyX without ERT. LyX thinks that new
>>> paragraphs are new items, and I don't see any way to override this behavior.
>>>
>>> For now, then, you have to use ERT for your subitems, as in the attached.
>>>
>>> Richard
>>>
>>>  Thanks! I actually solved it (just by luck) changing the text after the
>> last sub-item to "standard", and keeping it nested at the same level of the
>> sub-items.
>>
>
> Indeed, that does work. And what's really funny is that I've used this
> trick myself in the past. Totally forgot about it.
>
>
Bennet's solution works perfectly and it is aesthetically pleasing to the
eye. Sometimes, though, you need to interrupt the list altogether, go back
to regular, non-indented body text, and then resume the list from the next
number.Something like this:

1 item bla bla bla bla
(a) sub-item
(b)another sub-item
continue item 1 again bla bla bla

2 another item bla bla bla


In these cases you can use the enumitem module, which imports the enumitem
latex package. Unfortunately the numbering pattern looks wrong on screen,
but it turns out fine in the pdf. See attached example.

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


enumitem-test.lyx
Description: Binary data


Re: problem nesting enumerate lists

2013-06-05 Thread Richard Heck

On 06/05/2013 12:18 PM, Richard Heck wrote:

On 06/05/2013 12:12 PM, Piersante Sestini wrote:

On 05/06/2013 17:46, Richard Heck wrote:

On 06/05/2013 11:32 AM, Piersante Sestini wrote:

I have a problem formatting enumerated lists in a document.

What I need is
==
1 item bla bla bla bla
(a) sub-item
(b)another sub-item
  continue item 1 again bla bla bla

2 another item bla bla bla

However, what I get is:

1 item bla bla bla bla
(a) sub-item
(b)another sub-item
2  continue item 1 again bla bla bla <---!!!

3 another item bla bla bla

==
How do I prevent lyx from inserting a new item number after the 
last sub-item of a list?


I don't think you can do this in LyX without ERT. LyX thinks that 
new paragraphs are new items, and I don't see any way to override 
this behavior.


For now, then, you have to use ERT for your subitems, as in the 
attached.


Richard

Thanks! I actually solved it (just by luck) changing the text after 
the last sub-item to "standard", and keeping it nested at the same 
level of the sub-items.


Indeed, that does work. And what's really funny is that I've used this 
trick myself in the past. Totally forgot about it.


I'll attach a document like that in case anyone else has this problem.


Wrong file attached last time.

rh



item.lyx
Description: application/lyx


Re: problem nesting enumerate lists

2013-06-05 Thread Richard Heck

On 06/05/2013 12:12 PM, Piersante Sestini wrote:

On 05/06/2013 17:46, Richard Heck wrote:

On 06/05/2013 11:32 AM, Piersante Sestini wrote:

I have a problem formatting enumerated lists in a document.

What I need is
==
1 item bla bla bla bla
(a) sub-item
(b)another sub-item
  continue item 1 again bla bla bla

2 another item bla bla bla

However, what I get is:

1 item bla bla bla bla
(a) sub-item
(b)another sub-item
2  continue item 1 again bla bla bla <---!!!

3 another item bla bla bla

==
How do I prevent lyx from inserting a new item number after the last 
sub-item of a list?


I don't think you can do this in LyX without ERT. LyX thinks that new 
paragraphs are new items, and I don't see any way to override this 
behavior.


For now, then, you have to use ERT for your subitems, as in the 
attached.


Richard

Thanks! I actually solved it (just by luck) changing the text after 
the last sub-item to "standard", and keeping it nested at the same 
level of the sub-items.


Indeed, that does work. And what's really funny is that I've used this 
trick myself in the past. Totally forgot about it.


I'll attach a document like that in case anyone else has this problem.

Richard



item.lyx
Description: application/lyx


Re: problem nesting enumerate lists

2013-06-05 Thread BH
Actually, it's quite easy. The key is to make the continuation of (1) be a
standard paragraph, but indent it so that it does not alter the numbering
of (2). I hope this is clear:

1. [enumerated paragraph] item 1
(a) [indented enumerated paragraph] sub-item
(b) [indented enumerated paragraph] another sub-item
[indented standard paragraph] continue item 1
2. [non-indented enumerated paragraph] item 2.

BH



On Wed, Jun 5, 2013 at 11:46 AM, Richard Heck  wrote:

> On 06/05/2013 11:32 AM, Piersante Sestini wrote:
>
>> I have a problem formatting enumerated lists in a document.
>>
>> What I need is
>> ==
>> 1 item bla bla bla bla
>> (a) sub-item
>> (b)another sub-item
>>   continue item 1 again bla bla bla
>>
>> 2 another item bla bla bla
>>
>> However, what I get is:
>>
>> 1 item bla bla bla bla
>> (a) sub-item
>> (b)another sub-item
>> 2  continue item 1 again bla bla bla <---!!!
>>
>> 3 another item bla bla bla
>>
>> ==
>> How do I prevent lyx from inserting a new item number after the last
>> sub-item of a list?
>>
>
> I don't think you can do this in LyX without ERT. LyX thinks that new
> paragraphs are new items, and I don't see any way to override this behavior.
>
> For now, then, you have to use ERT for your subitems, as in the attached.
>
> Richard
>
>


Re: problem nesting enumerate lists

2013-06-05 Thread Richard Heck

On 06/05/2013 11:32 AM, Piersante Sestini wrote:

I have a problem formatting enumerated lists in a document.

What I need is
==
1 item bla bla bla bla
(a) sub-item
(b)another sub-item
  continue item 1 again bla bla bla

2 another item bla bla bla

However, what I get is:

1 item bla bla bla bla
(a) sub-item
(b)another sub-item
2  continue item 1 again bla bla bla <---!!!

3 another item bla bla bla

==
How do I prevent lyx from inserting a new item number after the last 
sub-item of a list?


I don't think you can do this in LyX without ERT. LyX thinks that new 
paragraphs are new items, and I don't see any way to override this behavior.


For now, then, you have to use ERT for your subitems, as in the attached.

Richard



item.lyx
Description: application/lyx


problem nesting enumerate lists

2013-06-05 Thread Piersante Sestini

I have a problem formatting enumerated lists in a document.

What I need is
==
1 item bla bla bla bla
(a) sub-item
(b)another sub-item
  continue item 1 again bla bla bla

2 another item bla bla bla

However, what I get is:

1 item bla bla bla bla
(a) sub-item
(b)another sub-item
2  continue item 1 again bla bla bla <---!!!

3 another item bla bla bla

==
How do I prevent lyx from inserting a new item number after the last 
sub-item of a list?


thanks,
Piersante


Re: How to starting an Enumerate list at 5 instead of 1?

2012-10-16 Thread Guenter Milde
On 2012-10-15, Steve Litt wrote:
> On Mon, 15 Oct 2012 07:39:35 -0400, Scott Kostyshak said:

>> >> > In LyX, how do I start an Enumerate list at 5 instead of 1? I
>> >> > know I could use a LaTeX tag to make the numbers right on the
>> >> > generated PDF, but I'd like the LyX environment to show the
>> >> > proper numbers too.
>> >>
>> >> See User Guide 3.3.7.2 Resumed Enumeration
>> >>
>> >> I don't think you can get the numbers right in LyX.

>> Sure, just download the manual here:
>> http://wiki.lyx.org/uploads/LyX/LyXDevelDocumentation/2.0/UserGuide.pdf

...

> Everything I read on the page you referenced tells me that Resumed
> Enumeration will have the wrong numbers in LyX, which is contrary to
> what I need. Thanks for referencing that page so I could find out for
> sure there's no easy way to do it in LyX, making my workaround a whole
> lot more acceptable.

The "enumitem" module makes it easy to configure lists:

Enumeration starting at a given value:

 1. [start=4] This enumeration

 2. starts at 4.
 
There used to be an example file (examples/enumitem.lyx) in my SVN
version of LyX but I realize it is missing in my LyX 2.0.3.

Also, the user guide seems to miss the point that for resumed enumeration the
enumitem module must be loaded...

Günter



Re: How to starting an Enumerate list at 5 instead of 1?

2012-10-15 Thread Steve Litt
On Mon, 15 Oct 2012 07:39:35 -0400, Scott Kostyshak said:
> On Mon, Oct 15, 2012 at 1:09 AM, Steve Litt
>  wrote:
> > On Sun, 14 Oct 2012 23:54:21 -0400, Scott Kostyshak said:
> >> On Sun, Oct 14, 2012 at 11:44 PM, Steve Litt
> >>  wrote:
> >> > Hi all,
> >> >
> >> > In LyX, how do I start an Enumerate list at 5 instead of 1? I
> >> > know I could use a LaTeX tag to make the numbers right on the
> >> > generated PDF, but I'd like the LyX environment to show the
> >> > proper numbers too.
> >>
> >> See User Guide 3.3.7.2 Resumed Enumeration
> >>
> >> I don't think you can get the numbers right in LyX.
> >>
> >> Scott
> >
> >
> > Hi Scott,
> >
> > Thanks.
> >
> > 3.3.7.2 of my LyX user guide involved usage of the Address
> > environment. My 3.3.6.3 describes the Enumerate environment, but
> > nothing in the document says anything about "Resumed Enumeration".
> > Could you please tell me what your copy says about "Resumed
> > Enumeration?"
> 
> Sure, just download the manual here:
> http://wiki.lyx.org/uploads/LyX/LyXDevelDocumentation/2.0/UserGuide.pdf
> What version of LyX are you using? If you remember, try to put it in
> your emails.

Thanks Scott,

I ran out of time and had to get back to the task of actually writing
my book, so as a kludge I just used the Description environment and put
the numbers as the first word, and therefore the bold label. It looked
the way I wanted in both LyX and PDF, and as a style decision it's
probably as representative of the content as a list would have been,
especially since this particular list is not expected to change (it's
the last 6 of the 10 commandments).

Everything I read on the page you referenced tells me that Resumed
Enumeration will have the wrong numbers in LyX, which is contrary to
what I need. Thanks for referencing that page so I could find out for
sure there's no easy way to do it in LyX, making my workaround a whole
lot more acceptable.

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: How to starting an Enumerate list at 5 instead of 1?

2012-10-15 Thread Scott Kostyshak
On Mon, Oct 15, 2012 at 1:09 AM, Steve Litt  wrote:
> On Sun, 14 Oct 2012 23:54:21 -0400, Scott Kostyshak said:
>> On Sun, Oct 14, 2012 at 11:44 PM, Steve Litt
>>  wrote:
>> > Hi all,
>> >
>> > In LyX, how do I start an Enumerate list at 5 instead of 1? I know I
>> > could use a LaTeX tag to make the numbers right on the generated
>> > PDF, but I'd like the LyX environment to show the proper numbers
>> > too.
>>
>> See User Guide 3.3.7.2 Resumed Enumeration
>>
>> I don't think you can get the numbers right in LyX.
>>
>> Scott
>
>
> Hi Scott,
>
> Thanks.
>
> 3.3.7.2 of my LyX user guide involved usage of the Address environment.
> My 3.3.6.3 describes the Enumerate environment, but nothing in the
> document says anything about "Resumed Enumeration". Could you please
> tell me what your copy says about "Resumed Enumeration?"

Sure, just download the manual here:
http://wiki.lyx.org/uploads/LyX/LyXDevelDocumentation/2.0/UserGuide.pdf
What version of LyX are you using? If you remember, try to put it in
your emails.

Best,

Scott

>
> Thanks
>
> SteveT
>
> Steve Litt*  http://www.troubleshooters.com/
>   *  http://twitter.com/stevelitt
> Troubleshooting Training  *  Human Performance
>


Re: How to starting an Enumerate list at 5 instead of 1?

2012-10-14 Thread Steve Litt
On Sun, 14 Oct 2012 23:54:21 -0400, Scott Kostyshak said:
> On Sun, Oct 14, 2012 at 11:44 PM, Steve Litt
>  wrote:
> > Hi all,
> >
> > In LyX, how do I start an Enumerate list at 5 instead of 1? I know I
> > could use a LaTeX tag to make the numbers right on the generated
> > PDF, but I'd like the LyX environment to show the proper numbers
> > too.
> 
> See User Guide 3.3.7.2 Resumed Enumeration
> 
> I don't think you can get the numbers right in LyX.
> 
> Scott


Hi Scott,

Thanks.

3.3.7.2 of my LyX user guide involved usage of the Address environment.
My 3.3.6.3 describes the Enumerate environment, but nothing in the
document says anything about "Resumed Enumeration". Could you please
tell me what your copy says about "Resumed Enumeration?"

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
  *  http://twitter.com/stevelitt
Troubleshooting Training  *  Human Performance



Re: How to starting an Enumerate list at 5 instead of 1?

2012-10-14 Thread Scott Kostyshak
On Sun, Oct 14, 2012 at 11:44 PM, Steve Litt  wrote:
> Hi all,
>
> In LyX, how do I start an Enumerate list at 5 instead of 1? I know I
> could use a LaTeX tag to make the numbers right on the generated PDF,
> but I'd like the LyX environment to show the proper numbers too.

See User Guide 3.3.7.2 Resumed Enumeration

I don't think you can get the numbers right in LyX.

Scott


Re: Proof with enumerate

2012-05-28 Thread David L. Johnson

On 05/27/2012 11:06 PM, Diego Villamil wrote:

Hello Lyx Users,
I am writing a math document, and I have a proposition with a number 
of properties.  I would like to start an enumeration of those 
properties within the proof, but haven't found a clean way of doing 
that as LyX ignores the proof environment once I added the enumeration.

I want to it to look something like this:

Proposition: The following properties hold:
1. This is property 1.
2. This is property 2.

Proof.
1. This is the proof of the first property.
2. This is the proof of the second property.

Thank you,
Diego
Simply increase the environment depth for the enumerated list, so that 
is "inside" the proof environment.  There is a button on the top, and a 
menu item, for this.  You do have to be more creative (deeper depth) if 
your proof is more than one line, so either strive for elegance or work 
with the environment depth some more.


--

David L. Johnson

"A foolish consistency is the hobgoblin of little minds, adored by
little statesmen and philosophers and divines."
--Ralph Waldo Emerson



Re: Proof with enumerate

2012-05-28 Thread Richard Heck

On 05/27/2012 11:06 PM, Diego Villamil wrote:

Hello Lyx Users,
I am writing a math document, and I have a proposition with a number 
of properties.  I would like to start an enumeration of those 
properties within the proof, but haven't found a clean way of doing 
that as LyX ignores the proof environment once I added the enumeration.

I want to it to look something like this:

Proposition: The following properties hold:
1. This is property 1.
2. This is property 2.

Proof.
1. This is the proof of the first property.
2. This is the proof of the second property.


Increase the depth within the proof environment.

That said, I'm not sure enumeration is the right way to go here, if the 
proofs are at all long. Another option would to be put labels in the 
statement of the proposition, and then reference them.


Richard



Proof with enumerate

2012-05-27 Thread Diego Villamil
Hello Lyx Users,
I am writing a math document, and I have a proposition with a number of
properties.  I would like to start an enumeration of those properties
within the proof, but haven't found a clean way of doing that as LyX
ignores the proof environment once I added the enumeration.
I want to it to look something like this:

Proposition: The following properties hold:
1. This is property 1.
2. This is property 2.

Proof.
1. This is the proof of the first property.
2. This is the proof of the second property.

Thank you,
Diego


Re: Enumerate in table with no additional packages?

2011-12-11 Thread stefano franchi
On Sat, Dec 10, 2011 at 2:54 PM, Paul A. Rubin  wrote:
> stefano franchi  gmail.com> writes:
>
>
>>
>> Is it possible to enumerate the rows of a table, without using external
> packages? I vaguely remember seeing a solution to this problem, perhaps in a
> Latex list or perhaps here, but I cannot find it anymore.
>
> It can be done with ERT, if that's what you want. Add the following to the
> document preamble:
>
> \newcounter{trow}
> \newcommand{\firstrow}{\setcounter{trow}{1}\arabic{trow}.}
> \newcommand{\nextrow}{\addtocounter{trow}{1}\arabic{trow}.}

Thanks Paul,

that's neat. Exactly what i had in mind (except I didn't know how to do it).

Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Enumerate in table with no additional packages?

2011-12-10 Thread Paul A . Rubin
stefano franchi  gmail.com> writes:


> 
> Is it possible to enumerate the rows of a table, without using external
packages? I vaguely remember seeing a solution to this problem, perhaps in a
Latex list or perhaps here, but I cannot find it anymore. 

It can be done with ERT, if that's what you want. Add the following to the
document preamble:

\newcounter{trow}
\newcommand{\firstrow}{\setcounter{trow}{1}\arabic{trow}.}
\newcommand{\nextrow}{\addtocounter{trow}{1}\arabic{trow}.}

Then add \firstrow in ERT where you want the number of the first row and
\nextrow in ERT where you want the number of each subsequent row. The
punctuation (I adopted a period after the row number can be changed, as can the
counter name (trow) and command names if they conflict with something.

Paul




Enumerate in table with no additional packages?

2011-12-01 Thread stefano franchi
Dear All:

Is it possible to enumerate the rows of a table, without using external
packages? I vaguely remember seeing a solution to this problem, perhaps in
a Latex list or perhaps here, but I cannot find it anymore.

Thanks in advance,

S.



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic StudiesPh:   +1 (979) 845-2125
Texas A&M University  Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Enumerate, line space

2011-06-23 Thread Guenter Milde
On 2011-06-23, Unknown wrote:
> Is there some way I could set all "enumerate" line-spacing to 1-space
> instead of 1.5 space between lines? Thanks in advance. FN

There are many ways. The right one depends on the details:

* Is the rest of the document 1.5 spaced?

* Do you mean space between *lines* or space between *items*
  (look at the spacing between 2 lines belonging to the same item)?
  
* Are paragraphs separated by space or by indentation?
  (There is a bug with LyX "separate by space" feature.)
  
Günter  



Re: Enumerate, line space

2011-06-22 Thread Richard Heck
On 06/22/2011 08:05 PM,  Frederick FN Noronha फ्रेडरिक नोरोन्या *فريدريك
نورونيا  wrote:
> Is there some way I could set all "enumerate" line-spacing to 1-space
> instead of 1.5 space between lines? Thanks in advance. FN
>
I would suppose you could use some combination of the setspace package,
which is already loaded to do the 1.5 spacing, and the enumitem package.

Richard



Enumerate, line space

2011-06-22 Thread Frederick FN Noronha फ्रेडरिक नोरोन्या *فريدريك نورونيا
Is there some way I could set all "enumerate" line-spacing to 1-space
instead of 1.5 space between lines? Thanks in advance. FN

FN +91-832-2409490 or +91-9822122436 (after 2pm)
#784 Nr Lourdes Convent, Saligao 403511 Goa India
http://fn.goa-india.org http://goa1556.goa-india.org


Re: SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Yihui Xie
The choice of the noweb or LaTeX syntax is irrelevant here; even if
you use SweaveSyntaxLatex, you have to either (1) put the Chunk
environment in the *second* paragraph and indent it, or (2) write the
R code in a TeX code environment and leave one blank line before <<>>=
(or \begin{Scode}{})

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, May 22, 2011 at 6:57 PM, Lucas  wrote:
> Yihui Xie  yihui.name> writes:
>
>>
>> Hi,
>>
>> I think you can indent the chunk (Alt+Shift+Right) to keep it inside
>> the enumerate environment, however, I don't think it is possible to
>> put the chunk directly after \item if you use the Chunk environment,
>> i.e. you need to write something after \item, and the chunk can be put
>> in the next paragraph but still belongs to this \item.
> Thanks for the quick reply.
>
> Would it be possible to tell LyX to output the LaTeX (as opposed to noweb)
> Sweave syntax, or would this not solve my issue?
>
> --Lucas
>
>
>
>
>
>
>
>


Re: SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Lucas
Yihui Xie  yihui.name> writes:

> 
> Hi,
> 
> I think you can indent the chunk (Alt+Shift+Right) to keep it inside
> the enumerate environment, however, I don't think it is possible to
> put the chunk directly after \item if you use the Chunk environment,
> i.e. you need to write something after \item, and the chunk can be put
> in the next paragraph but still belongs to this \item.
Thanks for the quick reply.

Would it be possible to tell LyX to output the LaTeX (as opposed to noweb) 
Sweave syntax, or would this not solve my issue?

--Lucas









Re: SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Yihui Xie
Hi,

I think you can indent the chunk (Alt+Shift+Right) to keep it inside
the enumerate environment, however, I don't think it is possible to
put the chunk directly after \item if you use the Chunk environment,
i.e. you need to write something after \item, and the chunk can be put
in the next paragraph but still belongs to this \item.

Or you can directly insert a TeX code environment (Ctrl+L) and type
your R code chunk there. Again, however, you should remember to insert
a blank line before you write <<>>=, because Sweave can only recognize
the code chunks with no other characters before <<.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Sun, May 22, 2011 at 9:55 AM, Lucas  wrote:
> Is it possible to have a SWeave chunk inside an enumerate \item?  When I try 
> to
> add one, LyX kicks me back out of the enumerate environment.  (This is with 
> LyX
> 2.0.0 on Debian testing.)
>
>


SWeave chunk in enumerate \item? + pgfSweave?

2011-05-22 Thread Lucas
Is it possible to have a SWeave chunk inside an enumerate \item?  When I try to 
add one, LyX kicks me back out of the enumerate environment.  (This is with LyX 
2.0.0 on Debian testing.)



SV: is there a way to get Enumerate to continue numbering between separate Enumerations?

2011-03-02 Thread Ingar Pareliussen
Hi

have a look at:
http://wiki.lyx.org/FAQ/Numbering#toc14

hth
Ingar

is there a way to get Enumerate to continue numbering between separate Enumerations?

2011-03-02 Thread Joel Schwartz
Let's say I create a list in Enumerate mode. Then I write some text in
Standard mode. Now I want to Enumerate a few more items. I select Enumerate
again, and it starts this new list at #1. However, I want the numbering to
continue where the previous Enumerate left off. For example, if my previous
list ended with item #2, I want the next enumeration to start with #3. Below
is an example of what Lyx actually does, followed by what I want Lyx to do.
Is there a way to make Lyx do what I want it to do? I checked the User Guide
and the Additional Lyx Features, but didn't see a way to do it.
 
Thanks for your help.
Joel
 
WHAT Lyx DOES
 
Here's some text in standard mode.
1. Item one
2. Item two
Here's some more text in standard mode.
1. Item three
2. Item four
 
 
WHAT I WANT Lyx TO DO
 
Here's some text in standard mode.
1. Item one
2. Item two
Here's some more text in standard mode.
3. Item three
4. Item four
 
 


Re: Enumerate is the same

2011-01-24 Thread BH
On Mon, Jan 24, 2011 at 11:24 AM, Charles  wrote:
> Hello,
>
> I have three enumerations: 1,2,3.  The problem is when I try and type the
> word “OR” between the enumerations, they begin renumbering at 1, instead of
> 2 and 3.  Basically, I have three #1’s.  How can I keep enumerate in
> descending order, while having a standard word in between?

Two ways, depending on what you want:

1. Look at the User's Guide, §3.4.5, especially the example in
§3.4.5.4. In short, you can nest a standard paragraph in between the
enumerations.

2. Use the "Customizable Lists (enumitem)" module, and then select the
"Enumerate-Resume" environment instead of "Enumerate". In this case,
no nesting of intervening paragraphs is needed. Information on this
module (and enumitem) can be found here:

http://wiki.lyx.org/Tips/Enumitem

BH


Enumerate is the same

2011-01-24 Thread Charles
Hello, 

I have three enumerations: 1,2,3.  The problem is when I try and type the
word "OR" between the enumerations, they begin renumbering at 1, instead of
2 and 3.  Basically, I have three #1's.  How can I keep enumerate in
descending order, while having a standard word in between?

Thanks

Charles



Re: editing source code / resume enumerate

2010-10-10 Thread Guenter Milde
On 2010-10-08, Beth Skwarecki wrote:
> --001636d34de3ac763304921fa183
> Content-Type: text/plain; charset=ISO-8859-1

> Hi, I'm new to LyX. I installed enumitem.module so that I can resume
> enumerations, but I can't figure out how to insert the resume command.

> I know I can view the source, but how can I edit it within LyX? 

You can't.

> (I need to change \begin{enumerate} to \begin{enumerate}[resume] ) Or
> is there a smarter way to do this?

As already said, selecting the Enumerate-Resume Style (instead of
Enumerate) from the drop-down list.

But there is also an alternative for increased flexibility: what you
need is not the resume *command* but the resume *option*.
Some LyX styles (including the enumitem.module versions of the list
styles) can be given options via the strangely named menu item
Insert>Short Title. See also the example in
http://www.lyx.org/trac/attachment/ticket/5593/enumitem-example.lyx

Günter



  1   2   3   4   5   >