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)
<sanford.sh...@wesleyan.edu>
Follow me on 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)
>> <sanford.sh...@wesleyan.edu>
>> Follow me on 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)
> <sanford.sh...@wesleyan.edu>
> Follow me on 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)
<sanford.sh...@wesleyan.edu>
Follow me on Academia.edu