Re: LinguistLyx: label on group of subexamples
2010/2/24 Maria Gouskova : > I haven't found a way to do it using Covington numbering, which is > what I usually use. You can either have all examples numbered as > sub-examples and not have a group heading for them, or just use crude > manual numbering for your (a) and (b) sub-examples and use automatic > labeling and cross-referencing for the main example. > > Maria > > 2010/2/23 Petr Šimon : >> 2010/2/23 Jürgen Spitzmüller : >>> Petr Šimon wrote: I have in mind something like this: \begin{example} \label{1} \begin{enumerate} \item a \label{1a} \item b label{1b} So that I can refer to all the subexamples by 1 and to each individually, 1a and 1b. I would hope that when I add a subexample a group label would be inserted. Is this possible from the layout definitions? I tried to look at it briefly, but it wasn't clear to me how that would be possible. >>> >>> No. You will need to use ERT. >>> >>> Jürgen >>> >> >> Ok, thanks. >> Perhaps it could be added later? Right now the subexamples make little >> sense when they can't be referred to as a group. >> Petr >> > Thanks Maria. Yes, I know. I was wandering if it would be possible to do it the way subequations are done (only without the "super" equation). I came up with the following, only if it was possible to do it without ERT \renewcommand{\labelenumi}{(\arabic{enumi})} \begin{enumerate} \item \label{1} \begin{enumerate} \item \label{1a} example a \item \label{1b} example b \end{enumerate} \end{enumerate} (\ref{1}) and (\ref{1a}) and (\ref{1b}) Petr
Re: LinguistLyx: label on group of subexamples
I haven't found a way to do it using Covington numbering, which is what I usually use. You can either have all examples numbered as sub-examples and not have a group heading for them, or just use crude manual numbering for your (a) and (b) sub-examples and use automatic labeling and cross-referencing for the main example. Maria 2010/2/23 Petr Šimon : > 2010/2/23 Jürgen Spitzmüller : >> Petr Šimon wrote: >>> I have in mind something like this: >>> \begin{example} \label{1} >>> \begin{enumerate} >>> \item a \label{1a} >>> \item b label{1b} >>> >>> So that I can refer to all the subexamples by 1 and to each >>> individually, 1a and 1b. >>> I would hope that when I add a subexample a group label would be inserted. >>> Is this possible from the layout definitions? I tried to look at it >>> briefly, but it wasn't clear to me how that would be possible. >> >> No. You will need to use ERT. >> >> Jürgen >> > > Ok, thanks. > Perhaps it could be added later? Right now the subexamples make little > sense when they can't be referred to as a group. > Petr >
Re: LinguistLyx: label on group of subexamples
2010/2/23 Jürgen Spitzmüller : > Petr Šimon wrote: >> I have in mind something like this: >> \begin{example} \label{1} >> \begin{enumerate} >> \item a \label{1a} >> \item b label{1b} >> >> So that I can refer to all the subexamples by 1 and to each >> individually, 1a and 1b. >> I would hope that when I add a subexample a group label would be inserted. >> Is this possible from the layout definitions? I tried to look at it >> briefly, but it wasn't clear to me how that would be possible. > > No. You will need to use ERT. > > Jürgen > Ok, thanks. Perhaps it could be added later? Right now the subexamples make little sense when they can't be referred to as a group. Petr
Re: LinguistLyx: label on group of subexamples
Petr Šimon wrote: > I have in mind something like this: > \begin{example} \label{1} > \begin{enumerate} > \item a \label{1a} > \item b label{1b} > > So that I can refer to all the subexamples by 1 and to each > individually, 1a and 1b. > I would hope that when I add a subexample a group label would be inserted. > Is this possible from the layout definitions? I tried to look at it > briefly, but it wasn't clear to me how that would be possible. No. You will need to use ERT. Jürgen
Re: LinguistLyx: label on group of subexamples
2010/2/23 Jürgen Spitzmüller : > Petr Šimon wrote: >> (I am not on the list, please CC) >> Hello, >> would it be possible to change the subexamples so that a group label >> is provided. In fact would it be possible to automatically add a label >> for each subexample (just empty label with prefix such as "ex:" ) and >> one for the group? > > I do not quite understand what you want, but you can redefine the subexamples > environment. The original definiton is: > > \newenvironment{subexample}{% > \begin{example}\begin{enumerate}[leftmargin=1.7em] > \renewcommand\theenumi{\alph{enumi}} > \renewcommand\labelenumi{(\theenumi)} > \renewcomman...@enumi{\theequation\,}}% > {\end{enumerate}\end{example}} > > >> Many thanks >> Petr > > > Jürgen > I have in mind something like this: \begin{example} \label{1} \begin{enumerate} \item a \label{1a} \item b label{1b} So that I can refer to all the subexamples by 1 and to each individually, 1a and 1b. I would hope that when I add a subexample a group label would be inserted. Is this possible from the layout definitions? I tried to look at it briefly, but it wasn't clear to me how that would be possible. Many thanks Petr
Re: LinguistLyx: label on group of subexamples
Petr Šimon wrote: > (I am not on the list, please CC) > Hello, > would it be possible to change the subexamples so that a group label > is provided. In fact would it be possible to automatically add a label > for each subexample (just empty label with prefix such as "ex:" ) and > one for the group? I do not quite understand what you want, but you can redefine the subexamples environment. The original definiton is: \newenvironment{subexample}{% \begin{example}\begin{enumerate}[leftmargin=1.7em] \renewcommand\theenumi{\alph{enumi}} \renewcommand\labelenumi{(\theenumi)} \renewcomman...@enumi{\theequation\,}}% {\end{enumerate}\end{example}} > Many thanks > Petr Jürgen
LinguistLyx: label on group of subexamples
(I am not on the list, please CC) Hello, would it be possible to change the subexamples so that a group label is provided. In fact would it be possible to automatically add a label for each subexample (just empty label with prefix such as "ex:" ) and one for the group? Many thanks Petr