Re: Changing the lyxlist (labeling environment) formatting

2012-02-11 Thread Richard Heck

On 02/11/2012 02:02 AM, Jason Heeris wrote:
On 7 February 2012 22:11, Richard Heck rgh...@comcast.net 
mailto:rgh...@comcast.net wrote:



You just need to redefine the lyxlist environment, however you
wish. You can see how LyX defines it from the exported source, or
just by looking at stdlyxlist.inc, which says:

   \newenvironment{lyxlist}[1]
   {\begin{list}{}
   {\settowidth{\labelwidth}{#1}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
   
\renewcommand{\makelabel}[1]{##1\hfil}}}

   {\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the 
environments are generated with:


\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the 
definition above, so there's nothing to change for the default label 
width. How is that set?


It's set in the layout. See stdlyxlist.inc. Unfortunately, changing it 
in the layout will only change the default for /new/ lists, not for the 
old ones. Those have to be changed manually, within LyX, though if you 
want to change a lot it's probably easier to open the LyX file in a text 
editor and do a big search and replace on 00.00..



There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that. 
Where do I look for that?


The \item and optional argument are generated automatically by LyX, 
since this is a list. The appearance of the label in the output is 
controlled by \makelabel. So to change how the label is displayed, just 
redefined \makelabel. As it is, it prints the label, then an \hfil. You 
can do whatever you like.


Richard



Re: Changing the lyxlist (labeling environment) formatting

2012-02-11 Thread Richard Heck

On 02/11/2012 02:02 AM, Jason Heeris wrote:
On 7 February 2012 22:11, Richard Heck rgh...@comcast.net 
mailto:rgh...@comcast.net wrote:



You just need to redefine the lyxlist environment, however you
wish. You can see how LyX defines it from the exported source, or
just by looking at stdlyxlist.inc, which says:

   \newenvironment{lyxlist}[1]
   {\begin{list}{}
   {\settowidth{\labelwidth}{#1}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
   
\renewcommand{\makelabel}[1]{##1\hfil}}}

   {\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the 
environments are generated with:


\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the 
definition above, so there's nothing to change for the default label 
width. How is that set?


It's set in the layout. See stdlyxlist.inc. Unfortunately, changing it 
in the layout will only change the default for /new/ lists, not for the 
old ones. Those have to be changed manually, within LyX, though if you 
want to change a lot it's probably easier to open the LyX file in a text 
editor and do a big search and replace on 00.00..



There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that. 
Where do I look for that?


The \item and optional argument are generated automatically by LyX, 
since this is a list. The appearance of the label in the output is 
controlled by \makelabel. So to change how the label is displayed, just 
redefined \makelabel. As it is, it prints the label, then an \hfil. You 
can do whatever you like.


Richard



Re: Changing the lyxlist (labeling environment) formatting

2012-02-11 Thread Richard Heck

On 02/11/2012 02:02 AM, Jason Heeris wrote:
On 7 February 2012 22:11, Richard Heck > wrote:



You just need to redefine the lyxlist environment, however you
wish. You can see how LyX defines it from the exported source, or
just by looking at stdlyxlist.inc, which says:

   \newenvironment{lyxlist}[1]
   {\begin{list}{}
   {\settowidth{\labelwidth}{#1}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}
   
\renewcommand{\makelabel}[1]{##1\hfil}}}

   {\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the 
environments are generated with:


\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the 
definition above, so there's nothing to change for the default label 
width. How is that set?


It's set in the layout. See stdlyxlist.inc. Unfortunately, changing it 
in the layout will only change the default for /new/ lists, not for the 
old ones. Those have to be changed manually, within LyX, though if you 
want to change a lot it's probably easier to open the LyX file in a text 
editor and do a big search and replace on "00.00.".



There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that. 
Where do I look for that?


The \item and optional argument are generated automatically by LyX, 
since this is a list. The appearance of the label in the output is 
controlled by \makelabel. So to change how the label is displayed, just 
redefined \makelabel. As it is, it prints the label, then an \hfil. You 
can do whatever you like.


Richard



Re: Changing the lyxlist (labeling environment) formatting

2012-02-10 Thread Jason Heeris
On 7 February 2012 22:11, Richard Heck rgh...@comcast.net wrote:


 You just need to redefine the lyxlist environment, however you wish. You
 can see how LyX defines it from the exported source, or just by looking at
 stdlyxlist.inc, which says:

\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\**labelwidth}
 \addtolength{\leftmargin}{\**labelsep}
 \renewcommand{\makelabel}[1]{#**#1\hfil}}}
{\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the
environments are generated with:

\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the definition
above, so there's nothing to change for the default label width. How is
that set?

There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that.
Where do I look for that?

I'm not completely new to LaTeX and TeX, but it's been about 8 years since
I've had to delve into TeX internals to do this sort of stuff, so I would
appreciate some pointers on this.

Cheers,
Jason


Re: Changing the lyxlist (labeling environment) formatting

2012-02-10 Thread Jason Heeris
On 7 February 2012 22:11, Richard Heck rgh...@comcast.net wrote:


 You just need to redefine the lyxlist environment, however you wish. You
 can see how LyX defines it from the exported source, or just by looking at
 stdlyxlist.inc, which says:

\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\**labelwidth}
 \addtolength{\leftmargin}{\**labelsep}
 \renewcommand{\makelabel}[1]{#**#1\hfil}}}
{\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the
environments are generated with:

\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the definition
above, so there's nothing to change for the default label width. How is
that set?

There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that.
Where do I look for that?

I'm not completely new to LaTeX and TeX, but it's been about 8 years since
I've had to delve into TeX internals to do this sort of stuff, so I would
appreciate some pointers on this.

Cheers,
Jason


Re: Changing the lyxlist (labeling environment) formatting

2012-02-10 Thread Jason Heeris
On 7 February 2012 22:11, Richard Heck  wrote:

>
> You just need to redefine the lyxlist environment, however you wish. You
> can see how LyX defines it from the exported source, or just by looking at
> stdlyxlist.inc, which says:
>
>\newenvironment{lyxlist}[1]
>{\begin{list}{}
>{\settowidth{\labelwidth}{#1}
> \setlength{\leftmargin}{\**labelwidth}
> \addtolength{\leftmargin}{\**labelsep}
> \renewcommand{\makelabel}[1]{#**#1\hfil}}}
>{\end{list}}


I have to admit, I'm a bit lost here. In the exported source, all the
environments are generated with:

\begin{lyxlist}{00.00.}

There don't seem to be any width specifiers hard-coded into the definition
above, so there's nothing to change for the default label width. How is
that set?

There's also the item labels themselves, which are basically:

\item [{Label goes here}]

...but I don't see what part of the lyxlist definition generates that.
Where do I look for that?

I'm not completely new to LaTeX and TeX, but it's been about 8 years since
I've had to delve into TeX internals to do this sort of stuff, so I would
appreciate some pointers on this.

Cheers,
Jason


Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Guenter Milde
On 2012-02-07, Jason Heeris wrote:

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

 I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
 format of the header in the labeling environments (aka. lyxlist in the
 exported TeX source), bsaically bolding the text and increasing the
 allocated indent.

 I realise I can do this on a line-by-line basis, but this seems to defeat
 the purpose of using LyX in the first place. Is there something I can put
 in the preamble to make the change for the whole document?

You might try the customizable lists (enumitem) module.
There is an example providing basic documentation and documentation links.

(Menu FileOpen, click the [Examples] button in the top-right corner of
the dialogue, open enumitem.lyx).

If you select the enumitem module, changes via the LaTeX preamble are
possible, too. See the enumitem package documentation for details.

Günter



Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Richard Heck

On 02/07/2012 01:39 AM, Jason Heeris wrote:
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change 
the format of the header in the labeling environments (aka. lyxlist in 
the exported TeX source), bsaically bolding the text and increasing 
the allocated indent.


I realise I can do this on a line-by-line basis, but this seems to 
defeat the purpose of using LyX in the first place. Is there something 
I can put in the preamble to make the change for the whole document?


You just need to redefine the lyxlist environment, however you wish. You 
can see how LyX defines it from the exported source, or just by looking 
at stdlyxlist.inc, which says:


\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{##1\hfil}}}
{\end{list}}

Richard



Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Guenter Milde
On 2012-02-07, Jason Heeris wrote:

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

 I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
 format of the header in the labeling environments (aka. lyxlist in the
 exported TeX source), bsaically bolding the text and increasing the
 allocated indent.

 I realise I can do this on a line-by-line basis, but this seems to defeat
 the purpose of using LyX in the first place. Is there something I can put
 in the preamble to make the change for the whole document?

You might try the customizable lists (enumitem) module.
There is an example providing basic documentation and documentation links.

(Menu FileOpen, click the [Examples] button in the top-right corner of
the dialogue, open enumitem.lyx).

If you select the enumitem module, changes via the LaTeX preamble are
possible, too. See the enumitem package documentation for details.

Günter



Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Richard Heck

On 02/07/2012 01:39 AM, Jason Heeris wrote:
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change 
the format of the header in the labeling environments (aka. lyxlist in 
the exported TeX source), bsaically bolding the text and increasing 
the allocated indent.


I realise I can do this on a line-by-line basis, but this seems to 
defeat the purpose of using LyX in the first place. Is there something 
I can put in the preamble to make the change for the whole document?


You just need to redefine the lyxlist environment, however you wish. You 
can see how LyX defines it from the exported source, or just by looking 
at stdlyxlist.inc, which says:


\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{##1\hfil}}}
{\end{list}}

Richard



Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Guenter Milde
On 2012-02-07, Jason Heeris wrote:

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

> I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
> format of the header in the labeling environments (aka. lyxlist in the
> exported TeX source), bsaically bolding the text and increasing the
> allocated indent.

> I realise I can do this on a line-by-line basis, but this seems to defeat
> the purpose of using LyX in the first place. Is there something I can put
> in the preamble to make the change for the whole document?

You might try the "customizable lists (enumitem)" module.
There is an example providing basic documentation and documentation links.

(Menu File>Open, click the [Examples] button in the top-right corner of
the dialogue, open "enumitem.lyx").

If you select the enumitem module, changes via the LaTeX preamble are
possible, too. See the enumitem package documentation for details.

Günter



Re: Changing the lyxlist (labeling environment) formatting

2012-02-07 Thread Richard Heck

On 02/07/2012 01:39 AM, Jason Heeris wrote:
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change 
the format of the header in the labeling environments (aka. lyxlist in 
the exported TeX source), bsaically bolding the text and increasing 
the allocated indent.


I realise I can do this on a line-by-line basis, but this seems to 
defeat the purpose of using LyX in the first place. Is there something 
I can put in the preamble to make the change for the whole document?


You just need to redefine the lyxlist environment, however you wish. You 
can see how LyX defines it from the exported source, or just by looking 
at stdlyxlist.inc, which says:


\newenvironment{lyxlist}[1]
{\begin{list}{}
{\settowidth{\labelwidth}{#1}
 \setlength{\leftmargin}{\labelwidth}
 \addtolength{\leftmargin}{\labelsep}
 \renewcommand{\makelabel}[1]{##1\hfil}}}
{\end{list}}

Richard



Changing the lyxlist (labeling environment) formatting

2012-02-06 Thread Jason Heeris
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
format of the header in the labeling environments (aka. lyxlist in the
exported TeX source), bsaically bolding the text and increasing the
allocated indent.

I realise I can do this on a line-by-line basis, but this seems to defeat
the purpose of using LyX in the first place. Is there something I can put
in the preamble to make the change for the whole document?

Cheers,
Jason


Changing the lyxlist (labeling environment) formatting

2012-02-06 Thread Jason Heeris
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
format of the header in the labeling environments (aka. lyxlist in the
exported TeX source), bsaically bolding the text and increasing the
allocated indent.

I realise I can do this on a line-by-line basis, but this seems to defeat
the purpose of using LyX in the first place. Is there something I can put
in the preamble to make the change for the whole document?

Cheers,
Jason


Changing the lyxlist (labeling environment) formatting

2012-02-06 Thread Jason Heeris
I am using LyX 2.0.0 under Ubuntu 11.10. I'd like to globally change the
format of the header in the labeling environments (aka. lyxlist in the
exported TeX source), bsaically bolding the text and increasing the
allocated indent.

I realise I can do this on a line-by-line basis, but this seems to defeat
the purpose of using LyX in the first place. Is there something I can put
in the preamble to make the change for the whole document?

Cheers,
Jason