Solution: Section numbers don't reset

2021-07-04 Thread Steve Litt
Hi all,

I'll describe a set of symptoms, and then I'll tell how I fixed it...

SYMPTOM: Section numbers did not reset after each chapter. Each section
had just the section number not preceded by the chapter number and a
dot.

SITUATION: I was using a local layout, derived from standard "Book"
layout.

SOLUTION: I added a line containing "Input book.layout".

HOW I FOUND IT: After a half hour of futzing around, in preparation to
ask you guys, I made a Minimum Working Example by copying my layout
file to test.layout, and starting with a new document using
test.layout, I was able to toggle the symptom by switching between Book
and my layout. I started removing stuff from my layout file until there
was nothing there, and the symptom persisted. So I looked at my other
layout files and saw that they contained "Input book.layout", so I
inserted that and fixed the symptom. So then I went to the original
layout file and document, inserted "Input book.layout" into the layout
file, re-compiled the document, and bang, the symptom was gone.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Hide section numbers in outline?

2018-05-15 Thread Scott Kostyshak
On Wed, Jan 24, 2018 at 03:46:25PM +, Klaus-Dieter Bauer wrote:
> Hello!
> 
> Is it possible to hide the section numbers in the outline pane?
> 
> Most of the time I am using two documents side-by-side (*View → Split View
> into Left and Right Half*), which means that I need to keep sidepanes
> narrow. For the outline pane however, the combination of strong indentation
> and section numbers result in barely readable section titles.
>  ___
> |Outline   [] X |
> |  ___  |
> | |Table of Contents v| |
> |  ‾‾‾  |
> |  ___  |
> | | > Chapter 5 TODO Unders...| |
> | | v Chapter 6 Definition ...| |
> | |   v 6.1 Maxwell Equatio...| |
> | |X 0.0.1 Electrom...| |
> | |6.1.1 Maxwell eq...| |
> | |6.1.2 Gauge free...| |
> | |6.1.3 Complicati...| |
> | |6.1.4 Solutions ...| | _  _
> | |  6.1.4.1 Scalar...| || || |
> | |  6.1.4.2 Electr...| | -+ | || |
> | |  6.1.4.3 Electr...| |  | |_||_|
> | |  6.1.4.4 Electr...| | -+  _  _
> | |  6.1.4.5 Multip...| ||_||_|
> | |6.1.5 Near-field...| |
> | |6.1.6 TODO Macro...| |
> | |   | |
> | |___| |
> |  .   .   .   .   .   [ ]Sort  |
> | [#]--+---+---+---+   [ ]Keep  |
> |  '   '   '   '   '|
> |___|
> (or see https://postimg.org/image/i1yngguv7/ )
> 
> I therefore need some way to make the outline pane compact, without
> truncating titles that much, e.g.
> 
>1. hiding the numbers (which I really don't need here)
>2. change the font-size in the outline pane
> 
> Is theresomething I can do to achieve this?

Klaus,

I think this is a good idea. I suggest you make a ticket on trac (and
select component "outliner"), otherwise it will be forgotten.

Scott


signature.asc
Description: PGP signature


Re: Hide section numbers in outline?

2018-01-24 Thread Paul A. Rubin

On 01/24/2018 10:46 AM, Klaus-Dieter Bauer wrote:

Hello!

Is it possible to hide the section numbers in the outline pane?

Most of the time I am using two documents side-by-side (/View → Split 
View into Left and Right Half/), which means that I need to keep 
sidepanes narrow. For the outline pane however, the combination of 
strong indentation and section numbers result in barely readable 
section titles.

 ___
    |Outline            [] X |
    | ___  |
    | |Table of Contents         v| |
    | ‾‾‾  |
    | ___  |
    | | > Chapter 5 TODO Unders...| |
    | | v Chapter 6 Definition ...| |
    | |   v 6.1 Maxwell Equatio...| |
    | |        X 0.0.1 Electrom...| |
    | | 6.1.1 Maxwell eq...| |
    | | 6.1.2 Gauge free...| |
    | | 6.1.3 Complicati...| |
    | | 6.1.4 Solutions ...| |     _  _
    | | 6.1.4.1 Scalar...| |    | || |
    | | 6.1.4.2 Electr...| | -+ | || |
    | | 6.1.4.3 Electr...| |  | |_||_|
    | | 6.1.4.4 Electr...| | -+  _  _
    | | 6.1.4.5 Multip...| |    |_||_|
    | | 6.1.5 Near-field...| |
    | | 6.1.6 TODO Macro...| |
    | |                | |
    | |___| |
    |  .   .   .  .   .   [ ]Sort  |
    | [#]--+---+---+---+   [ ]Keep  |
    |  '   '   '  '   '            |
|___|
(or see https://postimg.org/image/i1yngguv7/ 
<https://postimg.org/image/i1yngguv7/> )


I therefore need some way to make the outline pane compact, without 
truncating titles that much, e.g.


 1. hiding the numbers (which I really don't need here)
 2. change the font-size in the outline pane

Is theresomething I can do to achieve this?

- Klaus


What about undocking the outline pane and moving it up above the buffer 
windows? It would reduce the height of the buffers a bit, and you 
probably would want to limit the height of the outline to a few lines, 
but at least you would have the full width of the outline visible.


Paul



Hide section numbers in outline?

2018-01-24 Thread Klaus-Dieter Bauer
Hello!

Is it possible to hide the section numbers in the outline pane?

Most of the time I am using two documents side-by-side (*View → Split View
into Left and Right Half*), which means that I need to keep sidepanes
narrow. For the outline pane however, the combination of strong indentation
and section numbers result in barely readable section titles.
 ___
|Outline   [] X |
|  ___  |
| |Table of Contents v| |
|  ‾‾‾  |
|  ___  |
| | > Chapter 5 TODO Unders...| |
| | v Chapter 6 Definition ...| |
| |   v 6.1 Maxwell Equatio...| |
| |X 0.0.1 Electrom...| |
| |6.1.1 Maxwell eq...| |
| |6.1.2 Gauge free...| |
| |6.1.3 Complicati...| |
| |6.1.4 Solutions ...| | _  _
| |  6.1.4.1 Scalar...| || || |
| |  6.1.4.2 Electr...| | -+ | || |
| |  6.1.4.3 Electr...| |  | |_||_|
| |  6.1.4.4 Electr...| | -+  _  _
| |  6.1.4.5 Multip...| ||_||_|
| |6.1.5 Near-field...| |
| |6.1.6 TODO Macro...| |
| |   | |
| |___| |
|  .   .   .   .   .   [ ]Sort  |
| [#]--+---+---+---+   [ ]Keep  |
|  '   '   '   '   '|
|___|
(or see https://postimg.org/image/i1yngguv7/ )

I therefore need some way to make the outline pane compact, without
truncating titles that much, e.g.

   1. hiding the numbers (which I really don't need here)
   2. change the font-size in the outline pane

Is theresomething I can do to achieve this?

- Klaus


My LyX section numbers don't reset in new chapters

2013-08-14 Thread Steve Litt
Hi all,

I'm asking this here in case anyone can casually tell me something to
try. Otherwise I'll need to carve my file up like a Christmas turkey to
find the root cause.

Anyway, in the LyX environment, but not in the PDF or the DVI, section
numbers don't reset after chapter changes. So in my book, the first
section header of chapter 25 is numbered 225, and the first subsection
of its third section is 227.1. Note that the chapter numbers don't show
up in the *LyX Environment* rendering at all. So chapter 25's first
section isn't numbered 25.1, it's numbered 225, and the last section
of chapter 24 is numbered 224.

If anyone's seen this symptom before and knows of a possible fix,
please let me know. Otherwise, I'll just keep cutting this thing down
until I have a minimum example, and troubleshoot it from there.

Thanks,

SteveT

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


Re: My LyX section numbers don't reset in new chapters

2013-08-14 Thread stefano franchi
On Fri, Aug 9, 2013 at 8:55 PM, Steve Litt sl...@troubleshooters.comwrote:

 Hi all,

 I'm asking this here in case anyone can casually tell me something to
 try. Otherwise I'll need to carve my file up like a Christmas turkey to
 find the root cause.

 Anyway, in the LyX environment, but not in the PDF or the DVI, section
 numbers don't reset after chapter changes. So in my book, the first
 section header of chapter 25 is numbered 225, and the first subsection
 of its third section is 227.1. Note that the chapter numbers don't show
 up in the *LyX Environment* rendering at all. So chapter 25's first
 section isn't numbered 25.1, it's numbered 225, and the last section
 of chapter 24 is numbered 224.

 If anyone's seen this symptom before and knows of a possible fix,
 please let me know. Otherwise, I'll just keep cutting this thing down
 until I have a minimum example, and troubleshoot it from there.



It sounds like a layout issue. Which class/layout are you using?

S.
-- 
__
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


My LyX section numbers don't reset in new chapters

2013-08-14 Thread Steve Litt
Hi all,

I'm asking this here in case anyone can casually tell me something to
try. Otherwise I'll need to carve my file up like a Christmas turkey to
find the root cause.

Anyway, in the LyX environment, but not in the PDF or the DVI, section
numbers don't reset after chapter changes. So in my book, the first
section header of chapter 25 is numbered 225, and the first subsection
of its third section is 227.1. Note that the chapter numbers don't show
up in the *LyX Environment* rendering at all. So chapter 25's first
section isn't numbered 25.1, it's numbered 225, and the last section
of chapter 24 is numbered 224.

If anyone's seen this symptom before and knows of a possible fix,
please let me know. Otherwise, I'll just keep cutting this thing down
until I have a minimum example, and troubleshoot it from there.

Thanks,

SteveT

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


Re: My LyX section numbers don't reset in new chapters

2013-08-14 Thread stefano franchi
On Fri, Aug 9, 2013 at 8:55 PM, Steve Litt sl...@troubleshooters.comwrote:

 Hi all,

 I'm asking this here in case anyone can casually tell me something to
 try. Otherwise I'll need to carve my file up like a Christmas turkey to
 find the root cause.

 Anyway, in the LyX environment, but not in the PDF or the DVI, section
 numbers don't reset after chapter changes. So in my book, the first
 section header of chapter 25 is numbered 225, and the first subsection
 of its third section is 227.1. Note that the chapter numbers don't show
 up in the *LyX Environment* rendering at all. So chapter 25's first
 section isn't numbered 25.1, it's numbered 225, and the last section
 of chapter 24 is numbered 224.

 If anyone's seen this symptom before and knows of a possible fix,
 please let me know. Otherwise, I'll just keep cutting this thing down
 until I have a minimum example, and troubleshoot it from there.



It sounds like a layout issue. Which class/layout are you using?

S.
-- 
__
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


My LyX section numbers don't reset in new chapters

2013-08-14 Thread Steve Litt
Hi all,

I'm asking this here in case anyone can casually tell me something to
try. Otherwise I'll need to carve my file up like a Christmas turkey to
find the root cause.

Anyway, in the LyX environment, but not in the PDF or the DVI, section
numbers don't reset after chapter changes. So in my book, the first
section header of chapter 25 is numbered 225, and the first subsection
of its third section is 227.1. Note that the chapter numbers don't show
up in the *LyX Environment* rendering at all. So chapter 25's first
section isn't numbered "25.1", it's numbered "225", and the last section
of chapter 24 is numbered "224".

If anyone's seen this symptom before and knows of a possible fix,
please let me know. Otherwise, I'll just keep cutting this thing down
until I have a minimum example, and troubleshoot it from there.

Thanks,

SteveT

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


Re: My LyX section numbers don't reset in new chapters

2013-08-14 Thread stefano franchi
On Fri, Aug 9, 2013 at 8:55 PM, Steve Litt <sl...@troubleshooters.com>wrote:

> Hi all,
>
> I'm asking this here in case anyone can casually tell me something to
> try. Otherwise I'll need to carve my file up like a Christmas turkey to
> find the root cause.
>
> Anyway, in the LyX environment, but not in the PDF or the DVI, section
> numbers don't reset after chapter changes. So in my book, the first
> section header of chapter 25 is numbered 225, and the first subsection
> of its third section is 227.1. Note that the chapter numbers don't show
> up in the *LyX Environment* rendering at all. So chapter 25's first
> section isn't numbered "25.1", it's numbered "225", and the last section
> of chapter 24 is numbered "224".
>
> If anyone's seen this symptom before and knows of a possible fix,
> please let me know. Otherwise, I'll just keep cutting this thing down
> until I have a minimum example, and troubleshoot it from there.
>
>

It sounds like a layout issue. Which class/layout are you using?

S.
-- 
__
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


Re: multiple indexes and section numbers

2009-02-08 Thread rgheck

John White wrote:
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of 
the habit of doing this (using Section) in earlier versions as the 
font in Section was very large.  That is no longer the case.


You can adjust the sizes as they appear in LyX, if you like, by editing 
the layout files. Copy stdsections.inc to your local LyX directory, open 
it up in a text editor, and you'll see where the sizes and other aspects 
of the font are set. Change them as you wish. The details on font 
setting are in the Customization manual.


If you want to adjust the sizes in LaTeX, then use the titlesec package.

rh



Re: multiple indexes and section numbers

2009-02-08 Thread rgheck

John White wrote:
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of 
the habit of doing this (using Section) in earlier versions as the 
font in Section was very large.  That is no longer the case.


You can adjust the sizes as they appear in LyX, if you like, by editing 
the layout files. Copy stdsections.inc to your local LyX directory, open 
it up in a text editor, and you'll see where the sizes and other aspects 
of the font are set. Change them as you wish. The details on font 
setting are in the Customization manual.


If you want to adjust the sizes in LaTeX, then use the titlesec package.

rh



Re: multiple indexes and section numbers

2009-02-08 Thread rgheck

John White wrote:
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of 
the habit of doing this (using Section) in earlier versions as the 
font in Section was very large.  That is no longer the case.


You can adjust the sizes as they appear in LyX, if you like, by editing 
the layout files. Copy stdsections.inc to your local LyX directory, open 
it up in a text editor, and you'll see where the sizes and other aspects 
of the font are set. Change them as you wish. The details on font 
setting are in the Customization manual.


If you want to adjust the sizes in LaTeX, then use the titlesec package.

rh



Re: multiple indexes and section numbers

2009-02-07 Thread John White
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of the 
habit of doing this (using Section) in earlier versions as the font in 
Section was very large.  That is no longer the case.


Sorry for the mistake and thanks to everyone who helped me get to the 
bottom of this issue.


John

rgheck wrote:

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx 
section numbering machine (0.1) in article class and have it start 
instead at simple 1 (1).  If I fool with it enough, it seems to 
correct itself, but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh








Re: multiple indexes and section numbers

2009-02-07 Thread John White
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of the 
habit of doing this (using Section) in earlier versions as the font in 
Section was very large.  That is no longer the case.


Sorry for the mistake and thanks to everyone who helped me get to the 
bottom of this issue.


John

rgheck wrote:

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx 
section numbering machine (0.1) in article class and have it start 
instead at simple 1 (1).  If I fool with it enough, it seems to 
correct itself, but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh








Re: multiple indexes and section numbers

2009-02-07 Thread John White
I lied.  The 0.1 is not in Section numbering in article class.  Rather 
0.1 numbering comes up, in 1.6.1 at least, only if I go directly to 
Subsection, without first putting something in section. I got out of the 
habit of doing this (using Section) in earlier versions as the font in 
Section was very large.  That is no longer the case.


Sorry for the mistake and thanks to everyone who helped me get to the 
bottom of this issue.


John

rgheck wrote:

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx 
section numbering machine (0.1) in article class and have it start 
instead at simple 1 (1).  If I fool with it enough, it seems to 
correct itself, but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh








Re: multiple indexes and section numbers

2009-02-04 Thread Jürgen Spitzmüller
John White wrote:
 1. I would sure like to be able to make multiple indexes in the article
 class.  I see an article in wikipedia about doing such in memoir class
 but don't want to use Book.

Have a look at the package splitidx. You have to define a specific index 
converter in PreferencesOutputLaTeX (e.g. splitindex.pl -m 'makeindex -c-
q'), but it works quite well. If you want to reduce ERT, you can define 
custom insets in a module (with LyX 1.6). An example is attached.

Jürgen
#\DeclareLyXModule{Index of Names}
#DescriptionBegin
#Defines an index inset for names.
#DescriptionEnd

Format 11

InsetLayout NameIndex
LyXType   custom
LabelString   IdxNom
LatexType command
LatexName sindex[nom]
Decorationclassic
Font
  Color   foreground
  SizeSmall
  Family  Roman
  Shape   Up
  Series  Medium
  MiscNo_Emph
  MiscNo_Noun
  MiscNo_Bar
EndFont
LabelFont
  Color   red
  SizeSmall
EndFont
MultiPar  false
#   CustomParsfalse
#   ForcePlaintrue
NeedProtect   true
End


Re: multiple indexes and section numbers

2009-02-04 Thread Jürgen Spitzmüller
John White wrote:
 1. I would sure like to be able to make multiple indexes in the article
 class.  I see an article in wikipedia about doing such in memoir class
 but don't want to use Book.

Have a look at the package splitidx. You have to define a specific index 
converter in PreferencesOutputLaTeX (e.g. splitindex.pl -m 'makeindex -c-
q'), but it works quite well. If you want to reduce ERT, you can define 
custom insets in a module (with LyX 1.6). An example is attached.

Jürgen
#\DeclareLyXModule{Index of Names}
#DescriptionBegin
#Defines an index inset for names.
#DescriptionEnd

Format 11

InsetLayout NameIndex
LyXType   custom
LabelString   IdxNom
LatexType command
LatexName sindex[nom]
Decorationclassic
Font
  Color   foreground
  SizeSmall
  Family  Roman
  Shape   Up
  Series  Medium
  MiscNo_Emph
  MiscNo_Noun
  MiscNo_Bar
EndFont
LabelFont
  Color   red
  SizeSmall
EndFont
MultiPar  false
#   CustomParsfalse
#   ForcePlaintrue
NeedProtect   true
End


Re: multiple indexes and section numbers

2009-02-04 Thread Jürgen Spitzmüller
John White wrote:
> 1. I would sure like to be able to make multiple indexes in the article
> class.  I see an article in wikipedia about doing such in memoir class
> but don't want to use Book.

Have a look at the package splitidx. You have to define a specific index 
converter in Preferences>Output>LaTeX (e.g. "splitindex.pl -m 'makeindex -c-
q'"), but it works quite well. If you want to reduce ERT, you can define 
custom insets in a module (with LyX 1.6). An example is attached.

Jürgen
#\DeclareLyXModule{Index of Names}
#DescriptionBegin
#Defines an index inset for names.
#DescriptionEnd

Format 11

InsetLayout NameIndex
LyXType   custom
LabelString   IdxNom
LatexType command
LatexName sindex[nom]
Decorationclassic
Font
  Color   foreground
  SizeSmall
  Family  Roman
  Shape   Up
  Series  Medium
  MiscNo_Emph
  MiscNo_Noun
  MiscNo_Bar
EndFont
LabelFont
  Color   red
  SizeSmall
EndFont
MultiPar  false
#   CustomParsfalse
#   ForcePlaintrue
NeedProtect   true
End


multiple indexes and section numbers

2009-02-03 Thread John White

Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS platform.

1. I would sure like to be able to make multiple indexes in the article 
class.  I see an article in wikipedia about doing such in memoir class 
but don't want to use Book.


2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, but 
its hit and miss every time.


Thx

John


Re: multiple indexes and section numbers

2009-02-03 Thread Typhoon
On Tue, 03 Feb 2009 17:33:35 -0800
John White j...@lawquest.com wrote:

 Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS
 platform.
 
 1. I would sure like to be able to make multiple indexes in the
 article class.  I see an article in wikipedia about doing such in
 memoir class but don't want to use Book.

Memoir also has an article option. I use the multiple indexing
capabilities of Memoir a lot.

Alternatively, there are LaTeX packages that can do multiple indexes.
Try multind or index. I used index before switching to Memoir and
it worked well.

See the TeX FAQ: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multind

HTH,
Alan

 
 2. Also, I would love an easy way to turn off the horrible lyx
 section numbering machine (0.1) in article class and have it start
 instead at simple 1 (1).  If I fool with it enough, it seems to
 correct itself, but its hit and miss every time.
 
 Thx
 
 John
 


Re: multiple indexes and section numbers

2009-02-03 Thread rgheck

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, 
but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh



multiple indexes and section numbers

2009-02-03 Thread John White

Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS platform.

1. I would sure like to be able to make multiple indexes in the article 
class.  I see an article in wikipedia about doing such in memoir class 
but don't want to use Book.


2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, but 
its hit and miss every time.


Thx

John


Re: multiple indexes and section numbers

2009-02-03 Thread Typhoon
On Tue, 03 Feb 2009 17:33:35 -0800
John White j...@lawquest.com wrote:

 Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS
 platform.
 
 1. I would sure like to be able to make multiple indexes in the
 article class.  I see an article in wikipedia about doing such in
 memoir class but don't want to use Book.

Memoir also has an article option. I use the multiple indexing
capabilities of Memoir a lot.

Alternatively, there are LaTeX packages that can do multiple indexes.
Try multind or index. I used index before switching to Memoir and
it worked well.

See the TeX FAQ: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multind

HTH,
Alan

 
 2. Also, I would love an easy way to turn off the horrible lyx
 section numbering machine (0.1) in article class and have it start
 instead at simple 1 (1).  If I fool with it enough, it seems to
 correct itself, but its hit and miss every time.
 
 Thx
 
 John
 


Re: multiple indexes and section numbers

2009-02-03 Thread rgheck

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, 
but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh



multiple indexes and section numbers

2009-02-03 Thread John White

Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS platform.

1. I would sure like to be able to make multiple indexes in the article 
class.  I see an article in wikipedia about doing such in memoir class 
but don't want to use Book.


2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, but 
its hit and miss every time.


Thx

John


Re: multiple indexes and section numbers

2009-02-03 Thread Typhoon
On Tue, 03 Feb 2009 17:33:35 -0800
John White  wrote:

> Folks, I use lyx 1.6.1 on a linux (vector linux slackware) OS
> platform.
> 
> 1. I would sure like to be able to make multiple indexes in the
> article class.  I see an article in wikipedia about doing such in
> memoir class but don't want to use Book.

Memoir also has an "article" option. I use the multiple indexing
capabilities of Memoir a lot.

Alternatively, there are LaTeX packages that can do multiple indexes.
Try "multind" or "index". I used "index" before switching to Memoir and
it worked well.

See the TeX FAQ: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multind

HTH,
Alan

> 
> 2. Also, I would love an easy way to turn off the horrible lyx
> section numbering machine (0.1) in article class and have it start
> instead at simple 1 (1).  If I fool with it enough, it seems to
> correct itself, but its hit and miss every time.
> 
> Thx
> 
> John
> 


Re: multiple indexes and section numbers

2009-02-03 Thread rgheck

John White wrote:
2. Also, I would love an easy way to turn off the horrible lyx section 
numbering machine (0.1) in article class and have it start instead at 
simple 1 (1).  If I fool with it enough, it seems to correct itself, 
but its hit and miss every time.


I don't see this (Fedora 8, LyX 1.6.2svn). Did you upgrade from a 
previous version and have a custom article layout?


rh



Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

 Laurent Duperval wrote:
 Hi,

 I want to create a document where I have multiple chapters, but I want
 \section numbers to continue. I.e. something that looks like this:

 Is this possible?
   
 Certainly, but you may need to edit the LaTeX class file to get it to 
 work. That said, you might just be able to use the remreset package, 
 which you can find (as usual) at ctan.org. Try in the preamble:
 \makeatletter
 [EMAIL PROTECTED]
 \makeatother
 To get LyX to behave as you want, you'll have to edit the layout files.
 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

 Laurent Duperval wrote:
 Hi,

 I want to create a document where I have multiple chapters, but I want
 \section numbers to continue. I.e. something that looks like this:

 Is this possible?
   
 Certainly, but you may need to edit the LaTeX class file to get it to 
 work. That said, you might just be able to use the remreset package, 
 which you can find (as usual) at ctan.org. Try in the preamble:
 \makeatletter
 [EMAIL PROTECTED]
 \makeatother
 To get LyX to behave as you want, you'll have to edit the layout files.
 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Continuous section numbers

2007-09-21 Thread Laurent Duperval
Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?

L


-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Continuous section numbers

2007-09-21 Thread Richard Heck

Laurent Duperval wrote:

Hi,

I want to create a document where I have multiple chapters, but I want
\section numbers to continue. I.e. something that looks like this:

Chapter 1
1 A Section
2 A Section
3 A Section

Chapter 2
4 A Section
5 A Section
6 A Section
7 A Section

Chapter 4
8 A Section
9 A Section

Is this possible?
  
Certainly, but you may need to edit the LaTeX class file to get it to 
work. That said, you might just be able to use the remreset package, 
which you can find (as usual) at ctan.org. Try in the preamble:

   \makeatletter
   [EMAIL PROTECTED]
   \makeatother
To get LyX to behave as you want, you'll have to edit the layout files.

Richard



--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Continuous section numbers

2007-09-21 Thread Laurent Duperval
On Fri, 21 Sep 2007 19:04:02 -0400, Richard Heck wrote:

> Laurent Duperval wrote:
>> Hi,
>>
>> I want to create a document where I have multiple chapters, but I want
>> \section numbers to continue. I.e. something that looks like this:

>> Is this possible?
>>   
> Certainly, but you may need to edit the LaTeX class file to get it to 
> work. That said, you might just be able to use the remreset package, 
> which you can find (as usual) at ctan.org. Try in the preamble:
> \makeatletter
> [EMAIL PROTECTED]
> \makeatother
> To get LyX to behave as you want, you'll have to edit the layout files.
> 

Hmmm... Ok, once I have all my stuff ready I'll look at that.

Thanks!

L

-- 
Prenez la parole en public en étant Speak to an audience while being
moins nerveux et plus convaincant! less nervous and more convincing!
Éveillez l'orateur en vous!Bring out the speaker in you!

Information: [EMAIL PROTECTED]   http://www.duperval.com   (514) 902-0186



Re: Section numbers in left margin?

2007-01-29 Thread Pavel Sanda
  This can certainly be done with the koma-script classes. See also the
  titlesec package. These will allow you to add arbitrary formatting
  commands to set the section titles.
 
 Also memoir:
 
 \chapterstyle{hangnum}

this did not not touch (sub)sections at all.
pavel


Re: Section numbers in left margin?

2007-01-29 Thread Jürgen Spitzmüller
Pavel Sanda wrote:
  \chapterstyle{hangnum}

 this did not not touch (sub)sections at all.

It's called chapterstyle, after all ;-)

Jürgen


Re: Section numbers in left margin?

2007-01-29 Thread Pavel Sanda
  This can certainly be done with the koma-script classes. See also the
  titlesec package. These will allow you to add arbitrary formatting
  commands to set the section titles.
 
 Also memoir:
 
 \chapterstyle{hangnum}

this did not not touch (sub)sections at all.
pavel


Re: Section numbers in left margin?

2007-01-29 Thread Jürgen Spitzmüller
Pavel Sanda wrote:
  \chapterstyle{hangnum}

 this did not not touch (sub)sections at all.

It's called chapterstyle, after all ;-)

Jürgen


Re: Section numbers in left margin?

2007-01-29 Thread Pavel Sanda
> > This can certainly be done with the koma-script classes. See also the
> > titlesec package. These will allow you to add arbitrary formatting
> > commands to set the section titles.
> 
> Also memoir:
> 
> \chapterstyle{hangnum}

this did not not touch (sub)sections at all.
pavel


Re: Section numbers in left margin?

2007-01-29 Thread Jürgen Spitzmüller
Pavel Sanda wrote:
> > \chapterstyle{hangnum}
>
> this did not not touch (sub)sections at all.

It's called "chapterstyle", after all ;-)

Jürgen


Re: Section numbers in left margin?

2007-01-26 Thread Juergen Spitzmueller
Steve Litt wrote:
 How do you know about all these packages? This is true for many on the
 list -- someone comes up with a need and you know exactly what package to
 use to accomplish it. Do you have all this memorized, or do you have a
 quick way of looking it up? Either way, how do you do it -- I want to do
 it too.

Several reasons. I use many of the packages (like enumitem) myself. I've
published quite a few books recently, and faced many of those questions
there myself. And I frequently follow the discussion on comp.text.tex and
(German) de.comp.text.tex (which both are good newsgroups, and googling
their archives often helps).

Finally, another excellent resource is Robin Fairbairn's TUG FAQ:
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

Jürgen



Re: Section numbers in left margin?

2007-01-26 Thread Richard Heck
Juergen Spitzmueller wrote:
 Steve Litt wrote:
   
 How do you know about all these packages? This is true for many on the list 
 -- someone comes up with a need and you know exactly what package to use to 
 accomplish it. Do you have all this memorized, or do you have a quick way of 
 looking it up? Either way, how do you do it -- I want to do it too.
 
 Several reasons. I use many of the packages (like enumitem) myself. I've 
 published quite a few books recently, and faced many of those questions there 
 myself. And I frequently follow the discussion on comp.text.tex and (German) 
 de.comp.text.tex (which both are good newsgroups, and googling their archives 
 often helps).

 Finally, another excellent resource is Robin Fairbairn's TUG FAQ: 
 http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
   
A few more resources, besides the ones Jurgen mentioned:

* The /LaTeX Companion/ both lists and documents many commonly used
  packages, including pretty much all of those that ship with
  standard distributions. I couldn't get along without it.
* TeX distributions ship with a ton of documentation. Finding your
  way around it can be the tricky part. My distribution, tetex,
  ships with an index of all available documentation, at
  /usr/share/texmf/doc/helpindex.html.
* The TeX Catalogue, at
  http://www.ctan.org/tex-archive/help/Catalogue/catalogue.html, is
  extremely comprehensive, and the topical index is incredibly
  helpful. (I should use it more.)
* Subscribe to the CTAN announcements RSS feed, at
  http://rss.gmane.org/gmane.comp.tex.ctan.announce, and keep
  up-to-date with what packages are being added and updated. If you
  don't use RSS (and if not, why on earth not?), you can just read
  the blog at http://blog.gmane.org/gmane.comp.tex.ctan.announce.

Cheers,
Richard

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-26 Thread Juergen Spitzmueller
Steve Litt wrote:
 How do you know about all these packages? This is true for many on the
 list -- someone comes up with a need and you know exactly what package to
 use to accomplish it. Do you have all this memorized, or do you have a
 quick way of looking it up? Either way, how do you do it -- I want to do
 it too.

Several reasons. I use many of the packages (like enumitem) myself. I've
published quite a few books recently, and faced many of those questions
there myself. And I frequently follow the discussion on comp.text.tex and
(German) de.comp.text.tex (which both are good newsgroups, and googling
their archives often helps).

Finally, another excellent resource is Robin Fairbairn's TUG FAQ:
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

Jürgen



Re: Section numbers in left margin?

2007-01-26 Thread Richard Heck
Juergen Spitzmueller wrote:
 Steve Litt wrote:
   
 How do you know about all these packages? This is true for many on the list 
 -- someone comes up with a need and you know exactly what package to use to 
 accomplish it. Do you have all this memorized, or do you have a quick way of 
 looking it up? Either way, how do you do it -- I want to do it too.
 
 Several reasons. I use many of the packages (like enumitem) myself. I've 
 published quite a few books recently, and faced many of those questions there 
 myself. And I frequently follow the discussion on comp.text.tex and (German) 
 de.comp.text.tex (which both are good newsgroups, and googling their archives 
 often helps).

 Finally, another excellent resource is Robin Fairbairn's TUG FAQ: 
 http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
   
A few more resources, besides the ones Jurgen mentioned:

* The /LaTeX Companion/ both lists and documents many commonly used
  packages, including pretty much all of those that ship with
  standard distributions. I couldn't get along without it.
* TeX distributions ship with a ton of documentation. Finding your
  way around it can be the tricky part. My distribution, tetex,
  ships with an index of all available documentation, at
  /usr/share/texmf/doc/helpindex.html.
* The TeX Catalogue, at
  http://www.ctan.org/tex-archive/help/Catalogue/catalogue.html, is
  extremely comprehensive, and the topical index is incredibly
  helpful. (I should use it more.)
* Subscribe to the CTAN announcements RSS feed, at
  http://rss.gmane.org/gmane.comp.tex.ctan.announce, and keep
  up-to-date with what packages are being added and updated. If you
  don't use RSS (and if not, why on earth not?), you can just read
  the blog at http://blog.gmane.org/gmane.comp.tex.ctan.announce.

Cheers,
Richard

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-26 Thread Juergen Spitzmueller
Steve Litt wrote:
> How do you know about all these packages? This is true for many on the
> list -- someone comes up with a need and you know exactly what package to
> use to accomplish it. Do you have all this memorized, or do you have a
> quick way of looking it up? Either way, how do you do it -- I want to do
> it too.

Several reasons. I use many of the packages (like enumitem) myself. I've
published quite a few books recently, and faced many of those questions
there myself. And I frequently follow the discussion on comp.text.tex and
(German) de.comp.text.tex (which both are good newsgroups, and googling
their archives often helps).

Finally, another excellent resource is Robin Fairbairn's TUG FAQ:
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes

Jürgen



Re: Section numbers in left margin?

2007-01-26 Thread Richard Heck
Juergen Spitzmueller wrote:
> Steve Litt wrote:
>   
>> How do you know about all these packages? This is true for many on the list 
>> -- someone comes up with a need and you know exactly what package to use to 
>> accomplish it. Do you have all this memorized, or do you have a quick way of 
>> looking it up? Either way, how do you do it -- I want to do it too.
>> 
> Several reasons. I use many of the packages (like enumitem) myself. I've 
> published quite a few books recently, and faced many of those questions there 
> myself. And I frequently follow the discussion on comp.text.tex and (German) 
> de.comp.text.tex (which both are good newsgroups, and googling their archives 
> often helps).
>
> Finally, another excellent resource is Robin Fairbairn's TUG FAQ: 
> http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
>   
A few more resources, besides the ones J"urgen mentioned:

* The /LaTeX Companion/ both lists and documents many commonly used
  packages, including pretty much all of those that ship with
  standard distributions. I couldn't get along without it.
* TeX distributions ship with a ton of documentation. Finding your
  way around it can be the tricky part. My distribution, tetex,
  ships with an index of all available documentation, at
  /usr/share/texmf/doc/helpindex.html.
* The TeX Catalogue, at
  http://www.ctan.org/tex-archive/help/Catalogue/catalogue.html, is
  extremely comprehensive, and the topical index is incredibly
  helpful. (I should use it more.)
* Subscribe to the CTAN announcements RSS feed, at
  http://rss.gmane.org/gmane.comp.tex.ctan.announce, and keep
  up-to-date with what packages are being added and updated. If you
  don't use RSS (and if not, why on earth not?), you can just read
  the blog at http://blog.gmane.org/gmane.comp.tex.ctan.announce.

Cheers,
Richard

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 10:19, John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers appear
 in the left margin, so that the text of the section headings themselves are
 lined up with the left margin?

That would be really cool. 

Anyway, the following is just a guess, completely untested, but maybe it will 
start off your investigation...


\let\oldsection = \section
\let\endoldsection = \endsection
\renewenvironment{section}{
\leftskip -0.6in
\begin{oldsection}
}{
\end{oldsection}
}


HTH (one can always hope)

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck

This can certainly be done with the koma-script classes. See also the
titlesec package. These will allow you to add arbitrary formatting
commands to set the section titles.

Richard

John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers
 appear in the left margin, so that the text of the section headings
 themselves are lined up with the left margin?

 _
 MSN Hotmail is evolving – check out the new Windows Live Mail
 http://ideas.live.com



-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 9:19 AM, John Hughes wrote:

Is there a way of making the section (and subsection etc.) numbers  
appear in the left margin, so that the text of the section headings  
themselves are lined up with the left margin?


I have the same question, but concerning the numbers 1, 2, 3, ... in  
an enumerate environment.


Bruce



Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck
Bruce Pourciau wrote:
 On Jan 25, 2007, at 9:19 AM, John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers
 appear in the left margin, so that the text of the section headings
 themselves are lined up with the left margin?
 I have the same question, but concerning the numbers 1, 2, 3, ... in
 an enumerate environment.
The labels are set using \labelenumi, \labelenumii, \labelenumiii, and
\labelenumiv, depending on the depth. These can be \renewcommand'ed as
you wish. See also the varioref package's \labelformat command.

I don't know whether enumerate can be modified the way arbitrary lists
can be, i.e., whether \labelsep and the like exist for this environment.
(See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could
try it and find out.

Richard Heck

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

 I have the same question, but concerning the numbers 1, 2, 3, ... in
 an enumerate environment.

\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Richard Heck wrote:

 This can certainly be done with the koma-script classes. See also the
 titlesec package. These will allow you to add arbitrary formatting
 commands to set the section titles.

Also memoir:

\chapterstyle{hangnum}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Thanks, Jürgen.

Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



This does set the numerals 1, 2, 3, ... in the left margin, with the  
text lined up with the margin, but increasing the depth no longer  
indents the list, so when an exam problem has two parts (a) and (b) I  
get


1
(a)
(b)
2

rather than

1
 (a)
 (b)
2

Is there a way to get the normal indenting behavior with increased  
depth, using the preamble?


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

 Is there a way to get the normal indenting behavior with increased
 depth, using the preamble?

You can limit the changes to the first level by using the optional argument
of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


Is there a way to get the normal indenting behavior with increased
depth, using the preamble?


You can limit the changes to the first level by using the optional  
argument

of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Works like a charm. Thanks, Jürgen. And I promise to read the  
documentation for enumitem.


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote:
 Bruce Pourciau wrote:
  Is there a way to get the normal indenting behavior with increased
  depth, using the preamble?

 You can limit the changes to the first level by using the optional argument
 of setenumerate:

 \setenumerate[1]{leftmargin=0pt, labelsep=.6em}

 Jürgen

 P.S.: enumitem ships with an excellent documentation.

Jürgen,

How do you *know* about all these packages? This is true for many on the 
list -- someone comes up with a need and you know exactly what package to use 
to accomplish it. Do you have all this memorized, or do you have a quick way 
of looking it up? Either way, how do you do it -- I want to do it too.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 10:19, John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers appear
 in the left margin, so that the text of the section headings themselves are
 lined up with the left margin?

That would be really cool. 

Anyway, the following is just a guess, completely untested, but maybe it will 
start off your investigation...


\let\oldsection = \section
\let\endoldsection = \endsection
\renewenvironment{section}{
\leftskip -0.6in
\begin{oldsection}
}{
\end{oldsection}
}


HTH (one can always hope)

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck

This can certainly be done with the koma-script classes. See also the
titlesec package. These will allow you to add arbitrary formatting
commands to set the section titles.

Richard

John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers
 appear in the left margin, so that the text of the section headings
 themselves are lined up with the left margin?

 _
 MSN Hotmail is evolving – check out the new Windows Live Mail
 http://ideas.live.com



-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 9:19 AM, John Hughes wrote:

Is there a way of making the section (and subsection etc.) numbers  
appear in the left margin, so that the text of the section headings  
themselves are lined up with the left margin?


I have the same question, but concerning the numbers 1, 2, 3, ... in  
an enumerate environment.


Bruce



Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck
Bruce Pourciau wrote:
 On Jan 25, 2007, at 9:19 AM, John Hughes wrote:
 Is there a way of making the section (and subsection etc.) numbers
 appear in the left margin, so that the text of the section headings
 themselves are lined up with the left margin?
 I have the same question, but concerning the numbers 1, 2, 3, ... in
 an enumerate environment.
The labels are set using \labelenumi, \labelenumii, \labelenumiii, and
\labelenumiv, depending on the depth. These can be \renewcommand'ed as
you wish. See also the varioref package's \labelformat command.

I don't know whether enumerate can be modified the way arbitrary lists
can be, i.e., whether \labelsep and the like exist for this environment.
(See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could
try it and find out.

Richard Heck

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

 I have the same question, but concerning the numbers 1, 2, 3, ... in
 an enumerate environment.

\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Richard Heck wrote:

 This can certainly be done with the koma-script classes. See also the
 titlesec package. These will allow you to add arbitrary formatting
 commands to set the section titles.

Also memoir:

\chapterstyle{hangnum}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Thanks, Jürgen.

Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



This does set the numerals 1, 2, 3, ... in the left margin, with the  
text lined up with the margin, but increasing the depth no longer  
indents the list, so when an exam problem has two parts (a) and (b) I  
get


1
(a)
(b)
2

rather than

1
 (a)
 (b)
2

Is there a way to get the normal indenting behavior with increased  
depth, using the preamble?


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

 Is there a way to get the normal indenting behavior with increased
 depth, using the preamble?

You can limit the changes to the first level by using the optional argument
of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


Is there a way to get the normal indenting behavior with increased
depth, using the preamble?


You can limit the changes to the first level by using the optional  
argument

of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Works like a charm. Thanks, Jürgen. And I promise to read the  
documentation for enumitem.


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote:
 Bruce Pourciau wrote:
  Is there a way to get the normal indenting behavior with increased
  depth, using the preamble?

 You can limit the changes to the first level by using the optional argument
 of setenumerate:

 \setenumerate[1]{leftmargin=0pt, labelsep=.6em}

 Jürgen

 P.S.: enumitem ships with an excellent documentation.

Jürgen,

How do you *know* about all these packages? This is true for many on the 
list -- someone comes up with a need and you know exactly what package to use 
to accomplish it. Do you have all this memorized, or do you have a quick way 
of looking it up? Either way, how do you do it -- I want to do it too.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 10:19, John Hughes wrote:
> Is there a way of making the section (and subsection etc.) numbers appear
> in the left margin, so that the text of the section headings themselves are
> lined up with the left margin?

That would be really cool. 

Anyway, the following is just a guess, completely untested, but maybe it will 
start off your investigation...


\let\oldsection = \section
\let\endoldsection = \endsection
\renewenvironment{section}{
\leftskip -0.6in
\begin{oldsection}
}{
\end{oldsection}
}


HTH (one can always hope)

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck

This can certainly be done with the koma-script classes. See also the
titlesec package. These will allow you to add arbitrary formatting
commands to set the section titles.

Richard

John Hughes wrote:
> Is there a way of making the section (and subsection etc.) numbers
> appear in the left margin, so that the text of the section headings
> themselves are lined up with the left margin?
>
> _
> MSN Hotmail is evolving – check out the new Windows Live Mail
> http://ideas.live.com
>


-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 9:19 AM, John Hughes wrote:

Is there a way of making the section (and subsection etc.) numbers  
appear in the left margin, so that the text of the section headings  
themselves are lined up with the left margin?


I have the same question, but concerning the numbers 1, 2, 3, ... in  
an enumerate environment.


Bruce



Re: Section numbers in left margin?

2007-01-25 Thread Richard Heck
Bruce Pourciau wrote:
> On Jan 25, 2007, at 9:19 AM, John Hughes wrote:
>> Is there a way of making the section (and subsection etc.) numbers
>> appear in the left margin, so that the text of the section headings
>> themselves are lined up with the left margin?
> I have the same question, but concerning the numbers 1, 2, 3, ... in
> an enumerate environment.
The labels are set using \labelenumi, \labelenumii, \labelenumiii, and
\labelenumiv, depending on the depth. These can be \renewcommand'ed as
you wish. See also the varioref package's \labelformat command.

I don't know whether enumerate can be modified the way arbitrary lists
can be, i.e., whether \labelsep and the like exist for this environment.
(See http://www.giss.nasa.gov/tools/latex/ltx-260.html.)* *But one could
try it and find out.

Richard Heck

-- 
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

> I have the same question, but concerning the numbers 1, 2, 3, ... in
> an enumerate environment.

\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Richard Heck wrote:

> This can certainly be done with the koma-script classes. See also the
> titlesec package. These will allow you to add arbitrary formatting
> commands to set the section titles.

Also memoir:

\chapterstyle{hangnum}

Jürgen



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



Thanks, Jürgen.

Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 11:30 AM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


I have the same question, but concerning the numbers 1, 2, 3, ... in
an enumerate environment.


\usepackage{enumitem}
\setenumerate{leftmargin=0pt, labelsep=.6em}

Jürgen



This does set the numerals 1, 2, 3, ... in the left margin, with the  
text lined up with the margin, but increasing the depth no longer  
indents the list, so when an exam problem has two parts (a) and (b) I  
get


1
(a)
(b)
2

rather than

1
 (a)
 (b)
2

Is there a way to get the normal indenting behavior with increased  
depth, using the preamble?


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Juergen Spitzmueller
Bruce Pourciau wrote:

> Is there a way to get the normal indenting behavior with increased
> depth, using the preamble?

You can limit the changes to the first level by using the optional argument
of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Re: Section numbers in left margin?

2007-01-25 Thread Bruce Pourciau


On Jan 25, 2007, at 1:55 PM, Juergen Spitzmueller wrote:


Bruce Pourciau wrote:


Is there a way to get the normal indenting behavior with increased
depth, using the preamble?


You can limit the changes to the first level by using the optional  
argument

of setenumerate:

\setenumerate[1]{leftmargin=0pt, labelsep=.6em}

Jürgen

P.S.: enumitem ships with an excellent documentation.



Works like a charm. Thanks, Jürgen. And I promise to read the  
documentation for enumitem.


Bruce

Re: Section numbers in left margin?

2007-01-25 Thread Steve Litt
On Thursday 25 January 2007 14:55, Juergen Spitzmueller wrote:
> Bruce Pourciau wrote:
> > Is there a way to get the normal indenting behavior with increased
> > depth, using the preamble?
>
> You can limit the changes to the first level by using the optional argument
> of setenumerate:
>
> \setenumerate[1]{leftmargin=0pt, labelsep=.6em}
>
> Jürgen
>
> P.S.: enumitem ships with an excellent documentation.

Jürgen,

How do you *know* about all these packages? This is true for many on the 
list -- someone comes up with a need and you know exactly what package to use 
to accomplish it. Do you have all this memorized, or do you have a quick way 
of looking it up? Either way, how do you do it -- I want to do it too.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/


arbitrary Section numbers

2005-12-16 Thread Nick Kuzmik
 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 
2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 
1
  
  I've tried using Section* and manually titeling my headings, but they they 
don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  
insert a section heading and dispite being the first section on the  page, have 
that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?
  


Nick Kuzmik
(845) 406-5115
AIM NKUZMIK
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: arbitrary Section numbers

2005-12-16 Thread Paul A. Rubin

Nick Kuzmik wrote:

 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 1
  
  I've tried using Section* and manually titeling my headings, but they they don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  insert a section heading and dispite being the first section on the  page, have that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?


You can use ERT to set the chapter, section, subsection etc. counters to 
anything you want.  The command is \setcounter{x}{n} where x is the name 
of the counter (chapter, section, subsection, subsubsection, ...) and n 
is a positive integer.  You put the command in ERT prior to the heading 
where you want it to take effect, and you can do so repeatedly if you 
want the heading numbers to skip around.  Two things to keep in mind:


1.  The counter must be defined.  (For instance, the article class does 
not have a chapter counter.)


2.  The heading environment will increment the corresponding counter, so 
you need to make allowances for that.  Suppose you want the first 
heading to be a subsection numbered 2.5.  You would put the following in 
ERT prior to the subsection environment:


 \setcounter{section}{2}\setcounter{subsection}{4}.

The subsection environment will increment the subsection counter to 5 
(but will not change the section counter).


Paul



Re: arbitrary Section numbers

2005-12-16 Thread Andres Becerra Sandoval
On 12/16/05, Nick Kuzmik [EMAIL PROTECTED] wrote:
  Among other things I like to use Lyx to  create study guides for my math 
 courses.  I use  Section/subsection/subsubsection to organize that info in a 
 reasonable  fashion.  I also like to use a TOC as some of these study guides  
 can get a tad large, and the TOC speads up the studying.

   What I've found awkward is that when a create a study guide for say  
 chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts 
 at Section 1

   I've tried using Section* and manually titeling my headings, but they they 
 don't appear in the TOC.

   What I'm asking is does anybody know of some ERT that will allow me to  
 insert a section heading and dispite being the first section on the  page, 
 have that be section 4, and still have it show up in the TOC?

   Am I trying to have my cake and eat it too?



 Nick Kuzmik
 (845) 406-5115
 AIM NKUZMIK
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


Hello,

I attach a simple LyX file that does the trick. The general pattern is:

 \setcounter{Some}{Value}

Where Some is the environment you want to change (section, equation ...)


--
  Andres
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Arbitrary Section Numbers
\layout Author

Andres Becerra
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{section}{3}
\end_inset 


\layout Section

Introduction
\layout Section

Content A
\layout Section

Content B
\layout Section

Conclusions
\the_end



arbitrary Section numbers

2005-12-16 Thread Nick Kuzmik
 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 
2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 
1
  
  I've tried using Section* and manually titeling my headings, but they they 
don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  
insert a section heading and dispite being the first section on the  page, have 
that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?
  


Nick Kuzmik
(845) 406-5115
AIM NKUZMIK
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: arbitrary Section numbers

2005-12-16 Thread Paul A. Rubin

Nick Kuzmik wrote:

 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 1
  
  I've tried using Section* and manually titeling my headings, but they they don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  insert a section heading and dispite being the first section on the  page, have that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?


You can use ERT to set the chapter, section, subsection etc. counters to 
anything you want.  The command is \setcounter{x}{n} where x is the name 
of the counter (chapter, section, subsection, subsubsection, ...) and n 
is a positive integer.  You put the command in ERT prior to the heading 
where you want it to take effect, and you can do so repeatedly if you 
want the heading numbers to skip around.  Two things to keep in mind:


1.  The counter must be defined.  (For instance, the article class does 
not have a chapter counter.)


2.  The heading environment will increment the corresponding counter, so 
you need to make allowances for that.  Suppose you want the first 
heading to be a subsection numbered 2.5.  You would put the following in 
ERT prior to the subsection environment:


 \setcounter{section}{2}\setcounter{subsection}{4}.

The subsection environment will increment the subsection counter to 5 
(but will not change the section counter).


Paul



Re: arbitrary Section numbers

2005-12-16 Thread Andres Becerra Sandoval
On 12/16/05, Nick Kuzmik [EMAIL PROTECTED] wrote:
  Among other things I like to use Lyx to  create study guides for my math 
 courses.  I use  Section/subsection/subsubsection to organize that info in a 
 reasonable  fashion.  I also like to use a TOC as some of these study guides  
 can get a tad large, and the TOC speads up the studying.

   What I've found awkward is that when a create a study guide for say  
 chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts 
 at Section 1

   I've tried using Section* and manually titeling my headings, but they they 
 don't appear in the TOC.

   What I'm asking is does anybody know of some ERT that will allow me to  
 insert a section heading and dispite being the first section on the  page, 
 have that be section 4, and still have it show up in the TOC?

   Am I trying to have my cake and eat it too?



 Nick Kuzmik
 (845) 406-5115
 AIM NKUZMIK
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


Hello,

I attach a simple LyX file that does the trick. The general pattern is:

 \setcounter{Some}{Value}

Where Some is the environment you want to change (section, equation ...)


--
  Andres
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Arbitrary Section Numbers
\layout Author

Andres Becerra
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{section}{3}
\end_inset 


\layout Section

Introduction
\layout Section

Content A
\layout Section

Content B
\layout Section

Conclusions
\the_end



arbitrary Section numbers

2005-12-16 Thread Nick Kuzmik
 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 
2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 
1
  
  I've tried using Section* and manually titeling my headings, but they they 
don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  
insert a section heading and dispite being the first section on the  page, have 
that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?
  


Nick Kuzmik
(845) 406-5115
AIM NKUZMIK
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: arbitrary Section numbers

2005-12-16 Thread Paul A. Rubin

Nick Kuzmik wrote:

 Among other things I like to use Lyx to  create study guides for my math 
courses.  I use  Section/subsection/subsubsection to organize that info in a 
reasonable  fashion.  I also like to use a TOC as some of these study guides  
can get a tad large, and the TOC speads up the studying.
  
  What I've found awkward is that when a create a study guide for say  chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts at Section 1
  
  I've tried using Section* and manually titeling my headings, but they they don't appear in the TOC.  
  
  What I'm asking is does anybody know of some ERT that will allow me to  insert a section heading and dispite being the first section on the  page, have that be section 4, and still have it show up in the TOC?
  
  Am I trying to have my cake and eat it too?


You can use ERT to set the chapter, section, subsection etc. counters to 
anything you want.  The command is \setcounter{x}{n} where x is the name 
of the counter (chapter, section, subsection, subsubsection, ...) and n 
is a positive integer.  You put the command in ERT prior to the heading 
where you want it to take effect, and you can do so repeatedly if you 
want the heading numbers to skip around.  Two things to keep in mind:


1.  The counter must be defined.  (For instance, the article class does 
not have a chapter counter.)


2.  The heading environment will increment the corresponding counter, so 
you need to make allowances for that.  Suppose you want the first 
heading to be a subsection numbered 2.5.  You would put the following in 
ERT prior to the subsection environment:


 \setcounter{section}{2}\setcounter{subsection}{4}.

The subsection environment will increment the subsection counter to 5 
(but will not change the section counter).


Paul



Re: arbitrary Section numbers

2005-12-16 Thread Andres Becerra Sandoval
On 12/16/05, Nick Kuzmik <[EMAIL PROTECTED]> wrote:
>  Among other things I like to use Lyx to  create study guides for my math 
> courses.  I use  Section/subsection/subsubsection to organize that info in a 
> reasonable  fashion.  I also like to use a TOC as some of these study guides  
> can get a tad large, and the TOC speads up the studying.
>
>   What I've found awkward is that when a create a study guide for say  
> chapters 2.5-4.4, and start using Section and such, Lyx automatically  starts 
> at Section 1
>
>   I've tried using Section* and manually titeling my headings, but they they 
> don't appear in the TOC.
>
>   What I'm asking is does anybody know of some ERT that will allow me to  
> insert a section heading and dispite being the first section on the  page, 
> have that be section 4, and still have it show up in the TOC?
>
>   Am I trying to have my cake and eat it too?
>
>
>
> Nick Kuzmik
> (845) 406-5115
> AIM NKUZMIK
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Hello,

I attach a simple LyX file that does the trick. The general pattern is:

 \setcounter{Some}{Value}

Where Some is the environment you want to change (section, equation ...)


--
  Andres
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Arbitrary Section Numbers
\layout Author

Andres Becerra
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
setcounter{section}{3}
\end_inset 


\layout Section

Introduction
\layout Section

Content A
\layout Section

Content B
\layout Section

Conclusions
\the_end



top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section

what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section

I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}

which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section

I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}

I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.

Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.

Thanks.

{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: top level section numbers needed in format X.0

2005-03-04 Thread Paul A. Rubin
Todd Denniston wrote:
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section
what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section
I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}
which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section
I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}
I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.
Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.
Thanks.
{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
Try adding this to the preamble:
\def\thesection{\arabic{section}.0}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
-- Paul


Re: top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
Paul A. Rubin wrote:
 
 Todd Denniston wrote:
 
  Hello,
SNIP
  what I need is (I am required to use it, I do not like it though as it adds
  confusion by making top levels look like subsections):
  1.0first top level section
  1.1first subsection
  1.1.1first subsubsection
  2.0second top level section
SNIP
 Try adding this to the preamble:
 
 \def\thesection{\arabic{section}.0}
 \def\thesubsection{\arabic{section}.\arabic{subsection}}
 \def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
 
 -- Paul

Simple and Effective.

Thanks, and if we ever meet, remind me I owe you a few beers.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section

what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section

I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}

which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section

I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}

I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.

Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.

Thanks.

{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: top level section numbers needed in format X.0

2005-03-04 Thread Paul A. Rubin
Todd Denniston wrote:
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section
what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section
I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}
which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section
I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}
I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.
Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.
Thanks.
{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
Try adding this to the preamble:
\def\thesection{\arabic{section}.0}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
-- Paul


Re: top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
Paul A. Rubin wrote:
 
 Todd Denniston wrote:
 
  Hello,
SNIP
  what I need is (I am required to use it, I do not like it though as it adds
  confusion by making top levels look like subsections):
  1.0first top level section
  1.1first subsection
  1.1.1first subsubsection
  2.0second top level section
SNIP
 Try adding this to the preamble:
 
 \def\thesection{\arabic{section}.0}
 \def\thesubsection{\arabic{section}.\arabic{subsection}}
 \def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
 
 -- Paul

Simple and Effective.

Thanks, and if we ever meet, remind me I owe you a few beers.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section

what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section

I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}

which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section

I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}

I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.

Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.

Thanks.

{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


Re: top level section numbers needed in format X.0

2005-03-04 Thread Paul A. Rubin
Todd Denniston wrote:
Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1first top level section
1.1first subsection
1.1.1first subsubsection
2second top level section
what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0first top level section
1.1first subsection
1.1.1first subsubsection
2.0second top level section
I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}
which gives me
1.0first top level section
1.1.0first subsection
1.1.1.0first subsubsection
2.0second top level section
I have tried 
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???

%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}
I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.
Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.
Thanks.
{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt
Try adding this to the preamble:
\def\thesection{\arabic{section}.0}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
-- Paul


Re: top level section numbers needed in format X.0

2005-03-04 Thread Todd Denniston
"Paul A. Rubin" wrote:
> 
> Todd Denniston wrote:
> 
> > Hello,

> > what I need is (I am required to use it, I do not like it though as it adds
> > confusion by making top levels look like subsections):
> > 1.0first top level section
> > 1.1first subsection
> > 1.1.1first subsubsection
> > 2.0second top level section

> Try adding this to the preamble:
> 
> \def\thesection{\arabic{section}.0}
> \def\thesubsection{\arabic{section}.\arabic{subsection}}
> \def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
> 
> -- Paul

Simple and Effective.

Thanks, and if we ever meet, remind me I owe you a few beers.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter


  1   2   >