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
# we don't g

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
    TopSep    0.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

# 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   Enumerate-

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-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
On 20 Jan 2016, at 11:17 AM, Paul Smith <phh...@gmail.com> 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



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 <phh...@gmail.com> wrote:
> 
> On Wed, Jan 20, 2016 at 6:00 PM, Christopher Menzel
> <chris.men...@gmail.com> 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
<chris.men...@gmail.com> 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


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-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-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





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





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


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


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=nr 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


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=nr 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


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


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


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 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



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-17 Thread Csikos Bela
Guenter Milde mi...@users.sf.net í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 Jürgen Spitzmüller
2013/9/17 Jean-Marc Lasgouttes lasgout...@lyx.org

 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 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



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-17 Thread Csikos Bela
Guenter Milde mi...@users.sf.net í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 Jürgen Spitzmüller
2013/9/17 Jean-Marc Lasgouttes lasgout...@lyx.org

 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 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



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-17 Thread Csikos Bela
Guenter Milde <mi...@users.sf.net> í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 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
>


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


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


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


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: 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


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

2013-06-13 Thread Csikos Bela
Jürgen Spitzmüller sp...@lyx.org í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, 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 sp...@lyx.org í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




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: 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


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

2013-06-13 Thread Csikos Bela
Jürgen Spitzmüller sp...@lyx.org í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, 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 sp...@lyx.org í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




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: 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


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

2013-06-13 Thread Csikos Bela
"Jürgen Spitzmüller" <sp...@lyx.org> í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, 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, 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: 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-06 Thread Piersante Sestini

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




On Wed, Jun 5, 2013 at 11:18 AM, Richard Heck rgh...@lyx.org
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 AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu mailto: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-06 Thread Piersante Sestini

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




On Wed, Jun 5, 2013 at 11:18 AM, Richard Heck rgh...@lyx.org
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 AM University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu mailto: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-06 Thread Piersante Sestini

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




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.



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 University  Fax:  +1 (979) 845-6421
College Station, Texas, USA

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




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: 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


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 rgh...@lyx.org 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 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 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 stefano franchi
On Wed, Jun 5, 2013 at 11:18 AM, Richard Heck 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.

Cheers,

Stefano

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

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


enumitem-test.lyx
Description: Binary data


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: 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


  1   2   3   4   5   6   7   8   9   10   >