Re: problem with section numbering

2014-07-01 Thread adiro
> You can also use the chngcntr package to do the same sort of thing:
>  \usepackage{chngcntr}
>  \counterwithin*{section}{part}
> But for this simple purpose you probably don't need to do that.
> 
> Richard
> 
> 

tnx!
your second advise worked for me. do you know how can I make the section 
numbers reset on every new part in the Lyx document as-well? 






Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Rich Shepard

On Sat, 5 Apr 2014, Jürgen Spitzmüller wrote:


After all, \frontmatter is but a shortcut to

\clearpage
\pagenumbering{roman}
\setcounter{page}{1}


Jürgen,

  Thank you. I did not know that.

Carpe weekend,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
www.appl-ecosys.com  Voice: 503-667-4517 Fax: 503-667-8863


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Jürgen Spitzmüller
2014-04-05 17:48 GMT+02:00 Rich Shepard:

> Jürgen,
>
>   I define:
>
> \pagenumbering{roman}
> \setcounter{page}{1}
> \pagestyle{headings}
>
> without explicitly writing \frontmatter.


Of course you can do that, but

\frontmatter

is shorter. After all, \frontmatter is but a shortcut to

\clearpage
\pagenumbering{roman}
\setcounter{page}{1}

Jürgen


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Rich Shepard

On Sat, 5 Apr 2014, Jürgen Spitzmüller wrote:


However, note that you get roman page numbering before the mainmatter only
if you actually use \frontmatter.


Jürgen,

  I define:

\pagenumbering{roman}
\setcounter{page}{1}
\pagestyle{headings}

without explicitly writing \frontmatter.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
www.appl-ecosys.com  Voice: 503-667-4517 Fax: 503-667-8863


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Jürgen Spitzmüller
2014-04-05 17:07 GMT+02:00 Rich Shepard:

> Furthermore, I discovered in the current book I'm writing that I do not
> need to explicitly enter \frontmatter. I put everything I want there, and
> following the ToC and other lists I add \mainmatter and set the page
> numbering. It's working for me.
>

However, note that you get roman page numbering before the mainmatter only
if you actually use \frontmatter.

Jürgen


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Rich Shepard

On Sat, 5 Apr 2014, Richard Heck wrote:


In that case LyX knows nothing about it, so the reported behavior is not
surprising.


Richard,

  Furthermore, I discovered in the current book I'm writing that I do not
need to explicitly enter \frontmatter. I put everything I want there, and
following the ToC and other lists I add \mainmatter and set the page
numbering. It's working for me.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
www.appl-ecosys.com  Voice: 503-667-4517 Fax: 503-667-8863


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Richard Heck

On 04/05/2014 10:54 AM, Rich Shepard wrote:

On Sat, 5 Apr 2014, Jürgen Spitzmüller wrote:

How do you insert \frontmatter and \mainmatter? AFAIK the LyX KOMA 
layouts

do not natively support these yet.


Jürgen,

  They need to be manually added in ERT boxes.


In that case LyX knows nothing about it, so the reported behavior is not 
surprising.


Richard



Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Rich Shepard

On Sat, 5 Apr 2014, Jürgen Spitzmüller wrote:


How do you insert \frontmatter and \mainmatter? AFAIK the LyX KOMA layouts
do not natively support these yet.


Jürgen,

  They need to be manually added in ERT boxes.

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
www.appl-ecosys.com  Voice: 503-667-4517 Fax: 503-667-8863


Re: koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Jürgen Spitzmüller
2014-04-05 14:50 GMT+02:00 Csikos Bela:

> This is only a report of a misbehavior so that lyx user (and possibly
> developers) would be aware of it.
>
> Lyx (both 2.0.x and 2.1.0rc1) numbers koma book class sections
> consecutively disregarding \frontmatter and \mainmatter.
>

How do you insert \frontmatter and \mainmatter? AFAIK the LyX KOMA layouts
do not natively support these yet.

Jürgen


koma script book (scrbook) class section numbering in lyx 2.0.x and 2.1.0rc1

2014-04-05 Thread Csikos Bela
Hello:

This is only a report of a misbehavior so that lyx user (and possibly 
developers) would be aware of it.

Lyx (both 2.0.x and 2.1.0rc1) numbers koma book class sections consecutively 
disregarding \frontmatter and \mainmatter.

This results in a difference between section numbers in lyx interface and the 
pdf output.
For example if the document has 2 sections in the front matter and 5 in the 
main matter,
in lyx these are numbered from 1 to 7. In the pdf output the sections in the 
front matter are not numbered and the the sections in the main matter are 
numbered from 1 to 5.
This makes identifying text locations and editing/correcting the text difficult 
occasionally.

bcsikos425




Re: alpha-numeric Section Numbering

2012-02-07 Thread Julien Rioux

On 04/02/2012 5:07 AM, Boris Seincher wrote:

Hello!

I want to use LyX wor a law paper in german. When I use Part, Chapter,
Section and so on I get a sctructure like this:
I., 1, 1.1 ... However I want something like this: A, I, 1, a), aa),
(i), (ii).

Is it somehow possible?

Thank you in advance



I would think that there exists a document class specifically for 
Jura... something that comes along with jurabib? Maybe this is a 
starting point: http://www.jurawiki.de/LaTeX


Rgeards,
Julien



Re: alpha-numeric Section Numbering

2012-02-06 Thread Guenter Milde
On 2012-02-04, stefano franchi wrote:
> On Sat, Feb 4, 2012 at 4:07 AM, Boris Seincher  wrote:

>> I want to use LyX wor a law paper in german. When I use Part, Chapter,
>> Section and so on I get a sctructure like this:
>> I., 1, 1.1 ... However I want something like this: A, I, 1, a), aa), (i),
>> (ii).

>> Is it somehow possible?

There are several ways to achieve this:

Maybe there is already a special LaTeX package for your document class
e.g. at CTAN.

> One way to do it is by redefining the corresponding commands:
> \thepart, \thechapter, etc. 
...
> This code may not get you all the way there, though. It only changes
> the style of the counters, not the overall styling of the sectioning
> commands. For instance, you will still get  "Part A" not just "A".

> A better solution may be to use the titlesec package (or the memoir
> class which includes the titlesec package). Take a look at section 9.2
> of the manual (available on Ctan and probably on your own
> installation: http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/).
> Titlesec will allow you complete control over the sectioning commands

Another alternative is to use the KOMA-script classes that provide many
well documented configuration options including section heading styling.
See scrguide.pdf or the English version scrguien.pdf on CTAN or your
local installation).

> In either case, you'll get your desidered numbering scheme in the pdf
> only.  Lyx will still show you arabic figures on screen. You would
> have to write a module to fix what you see on screen as well (although
> a bug made it impossible a few versions back. Things may have
> changed).

Günter



Re: alpha-numeric Section Numbering

2012-02-04 Thread stefano franchi
On Sat, Feb 4, 2012 at 4:07 AM, Boris Seincher  wrote:
> Hello!
>
> I want to use LyX wor a law paper in german. When I use Part, Chapter,
> Section and so on I get a sctructure like this:
> I., 1, 1.1 ... However I want something like this: A, I, 1, a), aa), (i),
> (ii).
>
> Is it somehow possible?
>
> Thank you in advance

One way to do it is by redefining the corresponding commands:
\thepart, \thechapter, etc. If I understood your scheme correctly, you
want:

part: Alpha
chapter: Roman
section: arabic
subsection: alpha + )
subsubsection: : subsection + alpha
paragraph: ( + roman + )

You may try this code in the preamble of your doc:

\renewcommand{\thepart}{\Alph{part}}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\alph{subsection})}
\renewcommand{\thesubsubsection}{\alph{subsection}\alph{subsubsection})}
\renewcommand{\theparagraph}{(\roman{paragraph})}

This code may not get you all the way there, though. It only changes
the style of the counters, not the overall styling of the sectioning
commands. For instance, you will still get  "Part A" not just "A".

A better solution may be to use the titlesec package or (the memoir
class which includes the titlesec package). Take a look at section 9.2
of the manual (available on Ctan and probably on your own
installation: http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/).
Titlesec will allow you complete control over the sectioning commands

In either case, you'll get your desidered numbering scheme in the pdf
only.  Lyx will still show you arabic figures on screen. You would
have to write a module to fix what you see on screen as well (although
a bug made it impossible a few versions back. Things may have
changed).

Cheers,

Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

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


alpha-numeric Section Numbering

2012-02-04 Thread Boris Seincher

Hello!

I want to use LyX wor a law paper in german. When I use Part, Chapter, 
Section and so on I get a sctructure like this:
I., 1, 1.1 ... However I want something like this: A, I, 1, a), aa), 
(i), (ii).


Is it somehow possible?

Thank you in advance


Re: problem with section numbering

2011-05-24 Thread Lisa Deutscher

Am 24.05.2011 16:06, schrieb Richard Heck:

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous 
as in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



Ha!
Problem solved!
Thanks very much, I am a happy woman now.


Re: problem with section numbering

2011-05-24 Thread Richard Heck

On 05/24/2011 05:07 AM, Lisa Deutscher wrote:

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.


You would need to add it BEFORE the first section of the part (and you 
would actually need to reset it to zero). But...


Now it figures correctly in the Table of contents, also the 
subsections and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?


there is a better way to do this. In your preamble, put:
\@addtoreset{section}{part}
This tells LaTeX to reset the section counter every time the part 
counter is changed.


You can also use the chngcntr package to do the same sort of thing:
\usepackage{chngcntr}
\counterwithin*{section}{part}
But for this simple purpose you probably don't need to do that.

Richard



problem with section numbering

2011-05-24 Thread Lisa Deutscher

hello everyone

I am writing a thesis with lyx that consists of different parts which 
are divided into several sections etc.


I would like the first section of each part to start with 1.
without any interference of mine, the numbering would be continuous as 
in: part I, section 1, section 2; part II, section 3, sect 4 etc.
I could help this by adding \setcounter{section}{1} after the first 
section of every part.
Now it figures correctly in the Table of contents, also the subsections 
and following sections are numbered correctly.
BUT the numbering of the first sections themselves within the text is 
all wrong. example:
part I, section 1, section 2; part II, section 3, subsection 1.1, 
section 2, section 3 etc


any ideas how to mend this?

documentclass: article KOMA,  lyx version 1.6.8, OS win 7

thanks a lot!

Lisa


Re: section numbering

2011-01-28 Thread Richard Heck

On 01/28/2011 02:38 AM, Sajjad wrote:

Hello forum,

I am writing a small report and the document settings has been set to 
Report.


When i change the environment to section the numbering style starts 
with 0.1.


I would like to have it started as 1 instead. How do i change this 
setting?


This is because Reports have chapters. If you don't want chapters, then 
use article, or something like it.


Richard



section numbering

2011-01-27 Thread Sajjad
Hello forum,

I am writing a small report and the document settings has been set to
Report.

When i change the environment to section the numbering style starts with
0.1.


I would like to have it started as 1 instead. How do i change this setting?


Thanks
Sajjad


Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-21 Thread rgheck

On 10/20/2009 07:22 PM, Pete Crite wrote:

On 20/10/2009, at 11:26 AM, rgheck wrote:


On 10/19/2009 01:10 AM, Pete Crite wrote:


1. How do I get the page numbers to continue in the abstract? The 
abstract is the third page in, and appears to reset the page count.


I don't know about this one. Presumably, your document class has 
\abstract reset the page numbers. So the solution is likely to look 
in report.cls, find the abstract command, copy it to your preamble, 
change "newcommand" to "renewcommand", and delete whichever bit 
resets the page numbers.


Absolutely brilliant! Thank you so much for your help!
I'm not very familiar with LaTeX, so I'm probably doing it all wrong, 
but just to record what I did…


LaTeX has a really baroque syntax, but it isn't that terrible. I think 
what you did is fine.


rh



Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-20 Thread Pete Crite

On 20/10/2009, at 11:26 AM, rgheck wrote:


On 10/19/2009 01:10 AM, Pete Crite wrote:


1. How do I get the page numbers to continue in the abstract? The  
abstract is the third page in, and appears to reset the page count.


I don't know about this one. Presumably, your document class has  
\abstract reset the page numbers. So the solution is likely to look  
in report.cls, find the abstract command, copy it to your preamble,  
change "newcommand" to "renewcommand", and delete whichever bit  
resets the page numbers.


Absolutely brilliant! Thank you so much for your help!
I'm not very familiar with LaTeX, so I'm probably doing it all wrong,  
but just to record what I did… The following lines found in /usr/local/ 
texlive/2008/texmf-dist/tex/latex/base/report.cls


\...@titlepage
  \newenvironment{abstract}{%
  \titlepage
  \null\vfil
  \...@beginparpenalty\@lowpenalty
  \begin{center}%
\bfseries \abstractname
\...@endparpenalty\@M
  \end{center}}%
 {\par\vfil\null\endtitlepage}
\else
  \newenvironment{abstract}{%
  \...@twocolumn
\section*{\abstractname}%
  \else
\small
\begin{center}%
  {\bfseries \abstractname\vspace{-.5em}\vspace...@}}%
\end{center}%
\quotation
  \fi}
  {...@twocolumn\else\endquotation\fi}
\fi

After some trial and error, I added the first part to the preamble,  
with "\titlepage" removed and "newcommand" replaced by "renewcommand"  
as suggested. This seems to work. Hence, in the preamble:


  \renewenvironment{abstract}{%
  \null\vfil
  \...@beginparpenalty\@lowpenalty
  \begin{center}%
\bfseries \abstractname
\...@endparpenalty\@M
  \end{center}}%
 {\par\vfil\null\endtitlepage}


2. I have two major Parts in my document. The first Part consists  
of sections (no chapters), with the second Part including  
chapters. I don't want chapters in the first section, for both  
inline effect (e.g. don't want new pages), and Table of Contents  
listing (i.e. don't want bold and no dots. What I _would_ like, if  
possible, if for the sections to be numbered similarly to  
chapters. i.e. 1 instead of 0.1, with the rest of its formatting  
remaining as a section. Is it possible to change the numbering of  
the sections (in the first Part only) without changing anything  
else?



Yes:
\let\oldthesection=\thesection
\renewcommand{\thesection}{\arabic{section}}
in ERT at the beginning of Part I. Then at Part II:
\renewcommand{\thesection}{\oldthesection}
again in ERT. I think.


This works perfectly!

3. In the second Part, I'd like the chapters in the TOC to be  
listed as "Chapter 1. Foobar" rather than "1 Foobar". i.e. I'd  
like it to be consistent with the inline chapter headings.


Look into the titlesec and titletoc packages. I think one of those  
will do what you want.


Again, I've probably done this totally wrong, but this works. Again,  
for future reference…


Firstly, in the preamble:

\usepackage[compact]{titlesec}
\newenvironment{notintoc}
{\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}\ignorespaces}}
{\setcounter{secnumdepth}{2}%
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}\ignorespaces}}

Then, just before the chapter begins, insert "clear page", then ERT  
"\addcontentsline{toc}{chapter}{Chapter 1: Yourtitle}", which adds the  
nicely formatted title to the TOC.
Then ERT "\begin{notintoc}", and the write the chapter heading itself  
(e.g. "Yourtitle"). After the heading, ERT "\end{notintoc}". This part  
suppresses sending of the title to the TOC.


From preliminary testing, this seems to work well, with my headers,  
etc. looking as expected. I don't really know exactly what the  
preamble settings do, but they seem okay. I find the titlesec  
documentation a little opaque.



Richard


Thanks again for your help!!

Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-19 Thread rgheck

On 10/19/2009 01:10 AM, Pete Crite wrote:


1. How do I get the page numbers to continue in the abstract? The 
abstract is the third page in, and appears to reset the page count.


I don't know about this one. Presumably, your document class has 
\abstract reset the page numbers. So the solution is likely to look in 
report.cls, find the abstract command, copy it to your preamble, change 
"newcommand" to "renewcommand", and delete whichever bit resets the page 
numbers.


2. I have two major Parts in my document. The first Part consists of 
sections (no chapters), with the second Part including chapters. I 
don't want chapters in the first section, for both inline effect 
(e.g. don't want new pages), and Table of Contents listing (i.e. 
don't want bold and no dots. What I _would_ like, if possible, if for 
the sections to be numbered similarly to chapters. i.e. 1 instead of 
0.1, with the rest of its formatting remaining as a section. Is it 
possible to change the numbering of the sections (in the first Part 
only) without changing anything else?



Yes:
\let\oldthesection=\thesection
\renewcommand{\thesection}{\arabic{section}}
in ERT at the beginning of Part I. Then at Part II:
\renewcommand{\thesection}{\oldthesection}
again in ERT. I think.

3. In the second Part, I'd like the chapters in the TOC to be listed 
as "Chapter 1. Foobar" rather than "1 Foobar". i.e. I'd like it to be 
consistent with the inline chapter headings.


Look into the titlesec and titletoc packages. I think one of those will 
do what you want.


Richard



Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-19 Thread Pete Crite

On 19/10/2009, at 7:40 PM, Wolfgang Engelmann wrote:


Am Monday 19 October 2009 07:10:52 schrieb Pete Crite:


On 13/10/2009, at 10:00 AM, Pete Crite wrote:

Hi, I am attempting to write a thesis using LyX, and have a few
questions. I have Googled extensively, but can't seem to find the
answers. I am using the report class.

1. How do I get the page numbers to continue in the abstract? The
abstract is the third page in, and appears to reset the page count.


Could'nt you just abuse a chapter and write Abstract as the chapter  
heading?


Wolfgang


Yeah, I've done that in the meantime. I did like the abstract  
formatting, though, and I just expected that there'd be a easy way to  
have page numbers in the abstract. I thought that would be a pretty  
common usage. Guess not.


Cheers,
Pete.


Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-19 Thread Wolfgang Engelmann
Am Monday 19 October 2009 07:10:52 schrieb Pete Crite:
> I hate to bump this, but my thesis is close to its due date, and I'm
> hoping to have these issues sorted so I can print it!
>
> Would anyone be able to help me at all?
>
> Thank you!
> Pete.
>
> On 13/10/2009, at 10:00 AM, Pete Crite wrote:
> > Hi, I am attempting to write a thesis using LyX, and have a few
> > questions. I have Googled extensively, but can't seem to find the
> > answers. I am using the report class.
> >
> > 1. How do I get the page numbers to continue in the abstract? The
> > abstract is the third page in, and appears to reset the page count.

Could'nt you just abuse a chapter and write Abstract as the chapter heading?

Wolfgang


Re: Page numbers in abstract, section numbering, and TOC modification

2009-10-18 Thread Pete Crite
I hate to bump this, but my thesis is close to its due date, and I'm  
hoping to have these issues sorted so I can print it!


Would anyone be able to help me at all?

Thank you!
Pete.


On 13/10/2009, at 10:00 AM, Pete Crite wrote:

Hi, I am attempting to write a thesis using LyX, and have a few  
questions. I have Googled extensively, but can't seem to find the  
answers. I am using the report class.


1. How do I get the page numbers to continue in the abstract? The  
abstract is the third page in, and appears to reset the page count.


2. I have two major Parts in my document. The first Part consists of  
sections (no chapters), with the second Part including chapters. I  
don't want chapters in the first section, for both inline effect  
(e.g. don't want new pages), and Table of Contents listing (i.e.  
don't want bold and no dots. What I _would_ like, if possible, if  
for the sections to be numbered similarly to chapters. i.e. 1  
instead of 0.1, with the rest of its formatting remaining as a  
section. Is it possible to change the numbering of the sections (in  
the first Part only) without changing anything else?


3. In the second Part, I'd like the chapters in the TOC to be listed  
as "Chapter 1. Foobar" rather than "1 Foobar". i.e. I'd like it to  
be consistent with the inline chapter headings.


Thanks in advance!
Pete.




Page numbers in abstract, section numbering, and TOC modification

2009-10-13 Thread Pete Crite
Hi, I am attempting to write a thesis using LyX, and have a few  
questions. I have Googled extensively, but can't seem to find the  
answers. I am using the report class.


1. How do I get the page numbers to continue in the abstract? The  
abstract is the third page in, and appears to reset the page count.


2. I have two major Parts in my document. The first Part consists of  
sections (no chapters), with the second Part including chapters. I  
don't want chapters in the first section, for both inline effect (e.g.  
don't want new pages), and Table of Contents listing (i.e. don't want  
bold and no dots. What I _would_ like, if possible, if for the  
sections to be numbered similarly to chapters. i.e. 1 instead of 0.1,  
with the rest of its formatting remaining as a section. Is it possible  
to change the numbering of the sections (in the first Part only)  
without changing anything else?


3. In the second Part, I'd like the chapters in the TOC to be listed  
as "Chapter 1. Foobar" rather than "1 Foobar". i.e. I'd like it to be  
consistent with the inline chapter headings.


Thanks in advance!
Pete.


Section numbering

2009-09-08 Thread Julio Rojas
Dear all, I'm writing a memoir(book) document in Lyx. I used the
numbering & TOC setup to use numbering until subsubsection. When I
generated the PDF it didn't apper. I then included in the preamble:

\setsecnumdepth{all}
\maxsecnumdepth{all}

>From that moment numbering and inclusion in the TOC was perfect. Is
this a bug? If so, is it a known one?

Best regards.
-
Julio Rojas
jcredbe...@gmail.com


Re: Reset Section Numbering by Part

2009-06-23 Thread Andrew Hills

but in my head if you need a toc and to start sections anew for each
part, you do not write an article ;).


You caught me; I'm not writing an article. The article class is just the 
one I'm most familiar manipulating. I'm also not releasing the source 
for my document, so I'm more comfortable with unorthodox hacks.


It turns out there's a simple preamble command that accomplishes what I 
want: \...@addtoreset{section}{part}. It turned up after hours of poring 
over documentation when Google searches failed.


--Andrew Hills


SV: Reset Section Numbering by Part

2009-06-23 Thread Ingar Pareliussen
Hi

> I want the section numbering to restart for each part in the article 
> class. The only way I have devised is a simple hack in the 
> LaTeX preamble:
> 
> \let\oldpart\part
> \renewcommand{part}[1]{\oldpart{#1}
> \setcounter{section}{0}}
> 
> This works great, except for the Table of Contents. When I generate a 
> PDF, every Section N links to the first Section N; e.g., clicking on 
> Part III, Section 2 takes me down to Part I, Section 2.
> 
> I understand that I can define a new counter with 
> \newcounter{newsection}[part] to reset when I want it to. Is 
> there a way 
> to force sections to display this new counter while still 
> being linked 
> with the old one? If not, is there another way to solve my problem?

I think your problem is that hyperef only uses the section number
when making the bookmarks in toc. So, if I haven't overlooked somthing,
a new section wouldn't help you. Or atleast not if you didn't change 
the hyperref-package to understand the newsection as well.

I think you have three options. The first is to use the report-class instead 
of article, and chapter instead of part. This would have some side effects,
but in my head if you need a toc and to start sections anew for each
part, you do not write an article ;).

The second is to read the manual for the hyperef-peackage and hope that
there is someway to make hyperef to use the text of the section. I do not
know if this is the case, as I never have had the need.

The third is to construct the toc yourself from somthing like cross-ref.

I would go for option one, but you may have good reasons to use 
article-class that I do not know of.

HTH,
Ingar
 


Reset Section Numbering by Part

2009-06-22 Thread Andrew Hills

Hi all,

I want the section numbering to restart for each part in the article 
class. The only way I have devised is a simple hack in the LaTeX preamble:


\let\oldpart\part
\renewcommand{part}[1]{\oldpart{#1}
\setcounter{section}{0}}

This works great, except for the Table of Contents. When I generate a 
PDF, every Section N links to the first Section N; e.g., clicking on 
Part III, Section 2 takes me down to Part I, Section 2.


I understand that I can define a new counter with 
\newcounter{newsection}[part] to reset when I want it to. Is there a way 
to force sections to display this new counter while still being linked 
with the old one? If not, is there another way to solve my problem?


Other information: LyX 1.6.2 on Windows XP (MiKTeX 2.7)

--Andrew Hills


override section numbering in aastex class

2008-08-20 Thread Tomás Revilla
In the article (AASTeX) document class, is there an option to globablly
override section numbering? If not, can it be done in the preamble, how?
Unfortunately, the *section, *subsection options do not appear in the drop
down list. I do not want to use ERT because I am collaborating with someone
who started using LyX, so it is OK to put some ERT formating in a few
places, but that would be nasty through all the document.


Re: about the style of the section numbering

2008-05-29 Thread Maksi


Haiyang Chao wrote:
> Thanks for your prompt response. Actually, Ijust need to modify another
> guy's file. But he is also not so familiar with lyx. My lyx file is using
> ieeetran.cls. It looks like "document setting" is the only part I can
> modify
> to change the page style.

LaTeX has come a long way and today the basic usage of LaTeX starts with the
choice of the document class. At least two packages are very powerful and
very configurable: Memoir and KOMA-Script. Within these classes you can
change practically everything you want. For other classes (the regular ones)
you need a lot of extra packages to change their look and behaviour. And
then there are very special classes such as AMS, IEEE and so on which are
often written for very special purposes such as specific journals. Unless
you are writing for such a journal providing its own document class or
unless you want your writings to look exactly like in one of these journals,
I for my part would not recommend using them. Use Memoir or KOMA instead and
check their manuals to make changes. Quite a few typical changes can be done
very easily by mouse-click in LyX’ document settings dialogue. If you need
help with theses classes simply ask on the list.
-- 
View this message in context: 
http://www.nabble.com/about-the-style-of-the-section-numbering-tp17508124p17529204.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Re: about the style of the section numbering

2008-05-28 Thread Jean-Marc Lasgouttes
"Haiyang Chao" <[EMAIL PROTECTED]> writes:

>  JMarc:
>
> Thanks for your prompt response. Actually, Ijust need to modify another
> guy's file. But he is also not so familiar with lyx. My lyx file is using
> ieeetran.cls. It looks like "document setting" is the only part I can modify
> to change the page style.

But do you really want to use ieeetran? What are your constraints?

JMarc


Re: about the style of the section numbering

2008-05-28 Thread Haiyang Chao
 JMarc:

Thanks for your prompt response. Actually, Ijust need to modify another
guy's file. But he is also not so familiar with lyx. My lyx file is using
ieeetran.cls. It looks like "document setting" is the only part I can modify
to change the page style.

Best
Haiyang

On Wed, May 28, 2008 at 4:24 AM, Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
wrote:

> "Haiyang Chao" <[EMAIL PROTECTED]> writes:
>
> > Hi, everyone.
> >
> > I am a freshman to lyx but I have some latex experiences. I got a
> question
> > on how to change the style of the section numbering.
> >
> > In my current file, I got section number like I, II, III, IV in dvi
> files.
> > Can u guys tell me how I can change this style back to 1, 2,3,4 ?
>
> Hi,
>
> You have to tell us more about your document. What document class did
> you pick?
>
> JMarc
>


Re: about the style of the section numbering

2008-05-28 Thread Jean-Marc Lasgouttes
"Haiyang Chao" <[EMAIL PROTECTED]> writes:

> Hi, everyone.
>
> I am a freshman to lyx but I have some latex experiences. I got a question
> on how to change the style of the section numbering.
>
> In my current file, I got section number like I, II, III, IV in dvi files.
> Can u guys tell me how I can change this style back to 1, 2,3,4 ?

Hi,

You have to tell us more about your document. What document class did
you pick?

JMarc


about the style of the section numbering

2008-05-28 Thread Haiyang Chao
Hi, everyone.

I am a freshman to lyx but I have some latex experiences. I got a question
on how to change the style of the section numbering.

In my current file, I got section number like I, II, III, IV in dvi files.
Can u guys tell me how I can change this style back to 1, 2,3,4 ?

Thanks

Best
Haiyang


Re: Section numbering mystery

2007-10-03 Thread Helge Hafting

Donn Ingle wrote:

Hello again,
I have attached a sample file.
The problem is explained within, but to precis:
1. I want roman numeral numbering up to the TOC, thereafter I want
normal numbering.
  

Don't know this one.

2. I want the SECTIONs to not be numbered, but to appear in the TOC
  

Use the menu Document->Settings. You get a dialog.
The seventh item there should be "Numbering & TOC"
Here you can decide what sectioning levels are numbered,
and what to include in the TOC.

If your LyX doesn't have this, get the latest which is 1.5.x

Helge Hafting



Re: Section numbering mystery

2007-10-03 Thread Donn Ingle
Forget it - I found an answer on:
http://wiki.lyx.org/Examples/RomanPageNumbering

Once again, I had searched the wiki for "Roman numerals" -- to no avail.

If I had tried "mainmatter", it would have worked.

I got to it from google with "lyx numbering frontmatter mainmatter"

\d


Section numbering mystery

2007-10-03 Thread Donn Ingle
Hello again,
I have attached a sample file.
The problem is explained within, but to precis:
1. I want roman numeral numbering up to the TOC, thereafter I want
normal numbering.
2. I want the SECTIONs to not be numbered, but to appear in the TOC

This file, on my system, is numbering the SECTION on DVI/PDF output,
but not in Lyx. Can someone steer me in the right direction?

\d


section.numbering.mystery.lyx
Description: application/lyx


Re: Section numbering

2006-11-08 Thread Paul A. Rubin

[EMAIL PROTECTED] wrote:

I'm writing a set of rules unsing Koma article. I'd like section numbers appear
as:
Article 12
instead of simply 12.
How should I do ?
Change of layout or what ?
Thanks for the help




Try putting \renewcommand{\thesection}{Article \arabic{section}} in the 
preamble.


/Paul



Section numbering

2006-11-07 Thread alain . didierjean

I'm writing a set of rules unsing Koma article. I'd like section numbers appear
as:
Article 12
instead of simply 12.
How should I do ?
Change of layout or what ?
Thanks for the help

--
~adj~


Re: renaming section numbering

2006-09-12 Thread Paul A. Rubin

pol wrote:

I have renamed section numbering as the following (rather long) string:

{Title \arabic{section}:}

In the table of contents, section 'numbers' appear overlappped to section
names. 
See enclosed test file.
Is that a bug? 


No, it's LaTeX behaving normally.

Any hints to fix that? 


Assuming that you really want the TOC to include the word "Title" at the 
start of each chapter (??), you need to tell LaTeX to allocate more 
space for chapter numbers in the TOC.  Have a look at the "labelwidth" 
entries in


http://www.tug.org/TeXnik/mainFAQ.cgi?file=tocloft/TOC

with particular note of the tocloft package (which might be the least 
painful way to do it).


/Paul



renaming section numbering

2006-09-08 Thread pol
I have renamed section numbering as the following (rather long) string:

{Title \arabic{section}:}

In the table of contents, section 'numbers' appear overlappped to section
names. 
See enclosed test file.
Is that a bug? 
Any hints to fix that? 

Thank you 

--
Pol


 enc
#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{lastpage}
\usepackage{listings}
\usepackage[nice]{nicefrac} 
\usepackage[official]{eurosym}
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl}
\usepackage{mathptmx}% instead of package times
\usepackage[scaled=0.92]{helvet} % or [scaled=0.92], if you like
\usepackage{courier}
\usepackage{nameref}
\usepackage[ps2pdf,urlcolor=blue,a4paper, pdftitle={Title of PDF-Document},
colorlinks=true]{hyperref}
\end_preamble
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single
\papersize a4paper
\use_geometry true
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 2.2cm
\topmargin 2cm
\rightmargin 2.9cm
\bottommargin 2cm
\headheight 0cm
\headsep 1.5cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\bullet 0 0 9 -1
\bullet 1 0 10 -1
\tracking_changes false
\output_changes true
\end_header

\begin_body

\begin_layout Standard
\begin_inset LatexCommand \tableofcontents{}

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
renewcommand{
\backslash
thesection}{Title 
\backslash
arabic{section}:}
\end_layout

\begin_layout Standard


\backslash
renewcommand{
\backslash
labelenumi}{} 
\end_layout

\end_inset


\end_layout

\begin_layout Section

\series bold
First 
\series default
Chapter 
\end_layout

\begin_layout Standard
text
\end_layout

\begin_layout Section
Second Chapter 
\end_layout

\begin_layout Standard
text
\end_layout

\begin_layout Section
Third Chapter 
\end_layout

\begin_layout Standard
text
\end_layout

\end_body
\end_document 



bug?: section numbering in note-insets

2006-06-15 Thread Sven Schreiber
Hi all,
when I shove an entire subsection into a note inset, the numbering of
the other non-note subsections remains as if nothing was "commented
out", i.e. numbers on screen do not match the printed output.

I realize that this behavior might also be considered a feature, but I'm
inclined to classify it as a bug instead. But I found no matching bugs
in bugzilla, although I vaguely remember reading some discussion of that
somewhere. So should I open a new bug? (oh btw this is with lyx 1.4.1 on
windows)

On a related note, isn't part 3.3.9.3 in the User's Guide concerning the
comment paragraph environment obsolete now with Lyx 1.4?

Cheers,
Sven


Re: table of contents and no sections listed and no section numbering

2005-07-06 Thread Geoffrey Lloyd


- Original Message - 
From: "Jeremy C. Reed" <[EMAIL PROTECTED]>

To: "Rich Shepard" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, July 06, 2005 10:08 PM
Subject: Re: table of contents and no sections listed and no section 
numbering




On Wed, 6 Jul 2005, Rich Shepard wrote:
In another document, I want the table of contents to list all the 
sections
(but not Subsubsections) and I don't want these sections numbered. What 
can

I do so the table fo contents list the chapters and sections, but the
sections are not numbered?
I am wondering how I can do that without the section numbering in the 
table of contenst -- while still having the section numbering within the 
content itself. Not real important though.


Ok before your ToC insert the following in ERT

\setcounter{secnumdepth}{0}

Then after your ToC have another ERT with

\setcounter{secnumdepth}{1}

This should only number the chapters in the TOC but still list the sections 
(if your TOC depth is set correctly as discussed in the earlier email), but 
both the chapters and the sections in your document.  You may need to play 
with the numbers but this is the right idea.


Geoff 



Re: table of contents and no sections listed and no section numbering

2005-07-06 Thread Rich Shepard

On Wed, 6 Jul 2005, Jeremy C. Reed wrote:


I am wondering how I can do that without the section numbering in the table
of contenst -- while still having the section numbering within the content
itself. Not real important though.


  You'd need to redefine the commands.


I tried setting the Section Numbering depth to -2 (and also to 0) and my
table of contents was correct, but then the numbering was gone within the
chapters too.


  This is the way that most documents are done: all or nothing. Any custom
fitting must be done by hand. Look through the mail list archives and the
Tips & Tricks pages for more insight.

Rich

--
Dr. Richard B. Shepard, President  | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)  | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com>   Voice: 503-667-4517   Fax: 503-667-8863


Re: table of contents and no sections listed and no section numbering

2005-07-06 Thread Jeremy C. Reed

On Wed, 6 Jul 2005, Rich Shepard wrote:


I want one document to have section numbers within the different chapters,
etc. But I do not want the sections listed in the table of contents -- I
only want the chapter names listed in the table of contents. Any
suggestions on how I can use numbered sections in my book but not listed in
the table of contents?


 Set your ToC depth to '1'.


Thanks for the quick answer.

I have LyX 1.3.5 and I set Layout -> Document ... -> Numbering -> Table 
of contents depth to "0" and it worked like I wanted.



In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What can
I do so the table fo contents list the chapters and sections, but the
sections are not numbered?


 Set your ToC depth to '2.'


This showed my sections, but they contained numbers like:

2.1 Overview 
2.2 Objectives 

I am wondering how I can do that without the section numbering in the 
table of contenst -- while still having the section numbering within the 
content itself. Not real important though.


I tried setting the Section Numbering depth to -2 (and also to 0) and my 
table of contents was correct, but then the numbering was gone within the 
chapters too.



 Both are found under Layout -> Document -> Numbering.


 Jeremy C. Reed

 BSD News, BSD tutorials, BSD links
 http://www.bsdnewsletter.com/


Re: table of contents and no sections listed and no section numbering

2005-07-06 Thread Rich Shepard

On Wed, 6 Jul 2005, Jeremy C. Reed wrote:


I want one document to have section numbers within the different chapters,
etc. But I do not want the sections listed in the table of contents -- I
only want the chapter names listed in the table of contents. Any
suggestions on how I can use numbered sections in my book but not listed in
the table of contents?


  Set your ToC depth to '1'.


In another document, I want the table of contents to list all the sections
(but not Subsubsections) and I don't want these sections numbered. What can
I do so the table fo contents list the chapters and sections, but the
sections are not numbered?


  Set your ToC depth to '2.'

  Both are found under Layout -> Document -> Numbering.

Rich

--
Dr. Richard B. Shepard, President  | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)  | Impact Assessments Using Fuzzy Logic"
   Voice: 503-667-4517   Fax: 503-667-8863


table of contents and no sections listed and no section numbering

2005-07-06 Thread Jeremy C. Reed

I have two different questions:

I want one document to have section numbers within the different chapters, 
etc. But I do not want the sections listed in the table of contents -- I 
only want the chapter names listed in the table of contents. Any 
suggestions on how I can use numbered sections in my book but not listed 
in the table of contents?


In another document, I want the table of contents to list all the sections 
(but not Subsubsections) and I don't want these sections numbered. What 
can I do so the table fo contents list the chapters and sections, but the 
sections are not numbered?


I tried searching for these but didn't find anything.

 Jeremy C. Reed

 BSD News, BSD tutorials, BSD links
 http://www.bsdnewsletter.com/


Re: Section numbering (additional dots needed)

2004-05-26 Thread Juergen Spitzmueller
Dominik Waßenhoven wrote:

> It is possible with the KOMA-classes, for example "scrartcl". Then
> you can use the document-option "pointednumbers". I don't know how
> to get this with standard article class.

in the preamble, write
\renewcommand\thesection{\arabic{section}.}
\renewcommand\thesubsection{\thesection\arabic{subsection}.}
\renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}.}

Jürgen.



Re: Section numbering (additional dots needed)

2004-05-24 Thread Dominik Waßenhoven
Hi Oleg,
Oleg schrieb:
Hello,
 Can i place a dot after section number in article or other style like this:
1. Introduction
  1.1. Common ?
It is possible with the KOMA-classes, for example "scrartcl". Then 
you can use the document-option "pointednumbers". I don't know how 
to get this with standard article class.

Dominik.-


Re: Section numbering (additional dots needed)

2004-05-24 Thread Christian Ridderström
On Thu, 20 May 2004, Oleg wrote:

> Hello,
> 
>  Can i place a dot after section number in article or other style like this:
> 
> 1. Introduction
>   1.1. Common ?
> 
> I've tried to change article.layout, LabelSep xx but it only adds spaces
> after number, maybe there is other function for this. Is it possible in
> LyX?

The layout controls the appearance inside LyX, see 

http://wiki.lyx.org/pmwiki.php/LyX/Concepts

for a description on how this works.

> Well i have a book written in
> 
> TeX with dots after section numbers, maybe i have to write something in
> LaTeX preambule?

Yes, you need to add something to the preamble. Unfortunatly I don't know
what.

/Christian

-- 
Christian Ridderström   http://www.md.kth.se/~chr




Section numbering (additional dots needed)

2004-05-23 Thread Oleg
Hello,

 Can i place a dot after section number in article or other style like this:

1. Introduction
  1.1. Common ?

I've tried to change article.layout, LabelSep xx but it only adds spaces after number,
maybe there is other function for this. Is it possible in LyX? Well i have a book 
written in 

TeX with dots after section numbers, maybe i have to write something in LaTeX 
preambule?

O.K.


Re: koma-script and no section-numbering within lyx

2003-11-17 Thread Stephan Maseizik
Günter Milde <[EMAIL PROTECTED]> schrieb:
> The problem is solved by inserting a line in 
> /usr/share/lyx/layouts/scrclass.inc
>
> # pseudo-diff
> --- 20 - 22
> Input stdlists.inc
> +Input stdcounters.inc
> Input stdfloats.inc
> ---

With the help of this answer I found an obsolete scrclass.ins
(~/.lyx/layouts/scrclass.ins) in my home directory. Renaming of the
~/.lyx/layouts folder into something else solved my problem, as lyx now
uses the up-to-date global file(s) in /usr/share/lyx/.

Thanks for your help,
Stephan
-- 
Stephan Maseizik<[EMAIL PROTECTED]>(gpg-key on request)



Re: koma-script and no section-numbering within lyx

2003-11-14 Thread Günter Milde
On Sun, Nov 02, 2003 at 12:39:21PM +0100, Stephan Maseizik wrote:
> Georg Baum <[EMAIL PROTECTED]> schrieb:
> 
> > I had the same problem some time ago. I believe that it was a problem with 
> > lyx. 1.3.4cvs works here, so upgrading may help.
> 
> Thank you for the answer! I'll just wait for Lyx 1.3.3 entering Debian
> unstable then.

The problem is solved by inserting a line in 
/usr/share/lyx/layouts/scrclass.inc

# pseudo-diff
--- 20 - 22
Input stdlists.inc
+Input stdcounters.inc
Input stdfloats.inc
---

Günter 

-- 
G.Milde at web.de


Re: koma-script and no section-numbering within lyx

2003-11-02 Thread Stephan Maseizik
Georg Baum <[EMAIL PROTECTED]> schrieb:

> I had the same problem some time ago. I believe that it was a problem with 
> lyx. 1.3.4cvs works here, so upgrading may help.

Thank you for the answer! I'll just wait for Lyx 1.3.3 entering Debian
unstable then.

Stephan
-- 
Stephan Maseizik<[EMAIL PROTECTED]>(gpg-key on request)



Re: koma-script and no section-numbering within lyx

2003-11-01 Thread Georg Baum
Am Samstag, 1. November 2003 17:40 schrieb Stephan Maseizik:
> I'm using Lyx 1.3.2 on Debian unstable and have the following problem
> using the koma-script package: headers (parts,chapters,sections,...) are
> not numbered within Lyx while the dvi-output is o.k. When using a
> different package e.g. article or article(mwart) all headers get
> numbered within Lyx as expected.

I had the same problem some time ago. I believe that it was a problem with 
lyx. 1.3.4cvs works here, so upgrading may help.

> I played around with different fonts for the display, as I thought it
> might have to do with koma-script using sans-serife fonts for headers,
> but with no success.

This ist probably not the case, since the headings are displayed.


Georg




koma-script and no section-numbering within lyx

2003-11-01 Thread Stephan Maseizik
I'm using Lyx 1.3.2 on Debian unstable and have the following problem
using the koma-script package: headers (parts,chapters,sections,...) are
not numbered within Lyx while the dvi-output is o.k. When using a
different package e.g. article or article(mwart) all headers get
numbered within Lyx as expected.

I played around with different fonts for the display, as I thought it
might have to do with koma-script using sans-serife fonts for headers,
but with no success.

Anybody any ideas? Is this a problem with Lyx that perhaps is solved in
1.3.3 already (I'd simply wait for 1.3.3.entering Debian unstable then)
or is it caused by some wrong configuration on my side?

Stephan

-- 
Stephan Maseizik<[EMAIL PROTECTED]>(gpg-key on request)



Re: no section numbering within lyx

2003-07-24 Thread David L. Johnson
On Thu, 2003-07-24 at 14:32, Kai Johannes Keller wrote:
> Hello Till,
> 
> I haven't read all the statements and replies to this topic carefully,  
> but I think that until now nobody suggested to check whether the value
> in the field "SECTION" in menu
> 
> FORMAT -> DOCUMENT -> NUMBERING
> 
> (must be something like that, I have only the German version)

Just to clarify, in English that would be 

Layout -> Document -> Numbering

and checking that is a good idea.

-- 

David L. Johnson

   __o   | As far as the laws of mathematics refer to reality, they are not
 _`\(,_  | certain, and as far as they are certain, they do not refer to
(_)/ (_) | reality.  -- Albert Einstein  
   



Re: no section numbering within lyx

2003-07-24 Thread Ronald Florence
Till von Reumont <[EMAIL PROTECTED]> writes:

> When I put the
> lines
> LANG
> EN
> in it, it still doesn't change to an english interface. 

The `en' should probably be lowercase.  Did you logout and login again
after changing ~/.MacOSX/environment.plist?

(From the LyX on Aqua howto: You need to logout and login again
before changes in environment.plist take effect.)

--

Ronald Florence www.18james.com



Re: no section numbering within lyx

2003-07-24 Thread Kai Johannes Keller
Hello Till,

I haven't read all the statements and replies to this topic carefully,  
but I think that until now nobody suggested to check whether the value
in the field "SECTION" in menu

FORMAT -> DOCUMENT -> NUMBERING

(must be something like that, I have only the German version)

is different from 0 (zero).

Give it a try,

Ciao

   -Kai-




Am Mit, 2003-07-23 um 12.58 schrieb Till von Reumont:
> hello.
> i am using the os x aqua version of lyx 1.3.2. everything works 
> perfectly except that there are no numbers in the sections and 
> subsections of the documents no matter if the document is an "article", 
> a "report" etc. the actual output is ok though, my ps or dvi files are 
> all correctly displayed and printed complete with numbered sections and 
> subsections. when working with large documents in lyx it gets a little 
> confusing sometimes because the numbers don't show up. any idea what i 
> could do?
> thanks, [EMAIL PROTECTED]
-- 
Kai Johannes Keller <[EMAIL PROTECTED]>



Re: no section numbering within lyx

2003-07-24 Thread Ronald Florence
Till von Reumont <[EMAIL PROTECTED]> writes:

> I am not getting numbers anywhere, not in the LyX-Help-Documents and
> not in my own ones. I am definitely using the normal Section type
> sections and not the Section* ones. In the Navigation menu too I get
> no numbering of sections and subsections and subsub... 

This is curious.  I haven't been able to reproduce this on LyX/Aqua,
and have not heard a similar report from anyone else.  Does this
persist when you change the screen font(s)?  

> Another little curiosity is that even though I never put the
> apropriate lines int the ~/.MacOSX/environment.plist (and I looked and
> they are not there) my LyX is entirely in German. I wonder how it
> knows that I am in Germany and using a German OS X? 

LyX on Aqua must be more clever than we assumed.  ;<) The language
change mechanism isn't well tested and may not work as described in
the HOWTO.  In German, does your Preferences menu appear under Edit or
under LyX?  How about "About LyX" -- is it under LyX or under Help?
You might try changing the language preference for the Mac to English
in System Preferences and logging out and in again to see if that
opens LyX in English.
-- 

Ronald Florence www.18james.com



Re: no section numbering within lyx

2003-07-24 Thread Juergen Spitzmueller
Till von Reumont wrote:
> I am not getting numbers anywhere, not in the LyX-Help-Documents and
> not in my own ones. I am definitely using the normal Section type
> sections and not the Section* ones. In the Navigation menu too I get no
> numbering of sections and subsections and subsub... and so on. When I
> render the file to dvi or ps or pdf, everything is perfect: numbers
> appear where they are supposed to.

Can you tell us the console messages when running lyx (there is a console app 
somewhere in MacOSX's Apllication folder)? Especially, are there some 
messages about missing counters? Perhaps the stdcounters are not included in 
your layout files. Look out for
Input stdcounters.inc
in the layout file or in one of its included files (stdclass.inc for 
instance).

The layout files are in the /layout folder of you lyx directory.

HTH,
Juergen.


Re: no section numbering within lyx

2003-07-24 Thread Till von Reumont
Hi

I am not getting numbers anywhere, not in the LyX-Help-Documents and 
not in my own ones. I am definitely using the normal Section type 
sections and not the Section* ones. In the Navigation menu too I get no 
numbering of sections and subsections and subsub... and so on. When I 
render the file to dvi or ps or pdf, everything is perfect: numbers 
appear where they are supposed to.

Another little curiosity is that even though I never put the apropriate 
lines int the ~/.MacOSX/environment.plist (and I looked and they are 
not there) my LyX is entirely in German. I wonder how it knows that I 
am in Germany and using a German OS X? When I put the lines
LANG
EN
in it, it still doesn't change to an english interface. Do You think 
this might have anything to do with the missing section-numbers?
Thanks again,
Till





Am Donnerstag, 24.07.03 um 17:38 Uhr schrieb 
[EMAIL PROTECTED]:

Von: Ronald Florence <[EMAIL PROTECTED]>
Datum: Mi, 23. Jul 2003  16:42:26 Europe/Berlin
An: [EMAIL PROTECTED]
Betreff: Re: no section numbering within lyx
Till von Reumont <[EMAIL PROTECTED]> writes:

i am using the os x aqua version of lyx 1.3.2. everything works
perfectly except that there are no numbers in the sections and
subsections of the documents no matter if the document is an
"article", a "report" etc.
This is surprising, as I've never seen this problem with LyX Aqua.  If
you look at one of the LyX help files, do you not get numbered
sections?
--
Ronald Florencewww.18james.com



Re: no section numbering within lyx

2003-07-23 Thread Jan Peters
i am using the os x aqua version of lyx 1.3.2. everything works
perfectly except that there are no numbers in the sections and
subsections of the documents no matter if the document is an
"article", a "report" etc.
This is surprising, as I've never seen this problem with LyX Aqua.  If
you look at one of the LyX help files, do you not get numbered
sections?


Are you sure you are not accidentally taking Section* instead of 
Section?



Re: no section numbering within lyx

2003-07-23 Thread Ronald Florence
Till von Reumont <[EMAIL PROTECTED]> writes:

> i am using the os x aqua version of lyx 1.3.2. everything works
> perfectly except that there are no numbers in the sections and
> subsections of the documents no matter if the document is an
> "article", a "report" etc. 

This is surprising, as I've never seen this problem with LyX Aqua.  If
you look at one of the LyX help files, do you not get numbered
sections?  
-- 

Ronald Florence www.18james.com



no section numbering within lyx

2003-07-23 Thread Till von Reumont
hello.
i am using the os x aqua version of lyx 1.3.2. everything works 
perfectly except that there are no numbers in the sections and 
subsections of the documents no matter if the document is an "article", 
a "report" etc. the actual output is ok though, my ps or dvi files are 
all correctly displayed and printed complete with numbered sections and 
subsections. when working with large documents in lyx it gets a little 
confusing sometimes because the numbers don't show up. any idea what i 
could do?
thanks, [EMAIL PROTECTED]



Re: changing section numbering

2003-06-18 Thread Matej Cepl
On 2003-06-18, 09:26 GMT, Jihčne Krichčne wrote:
> I'm writing a document (article type). I would like to change the 
> starting number of section numbering. Is it possible to do so ? If 
> yes, please tell me how.

Read latex info file/hlp file in your LaTeX distribution. I would try

   \setcounter{section}{15}

as ERT before the section which you want to affect.

   Matej

-- 
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488



changing section numbering

2003-06-18 Thread Jihène Krichène
Hello everybody
I'm writing a document (article type). I would like to change the starting number of 
section numbering. Is it possible to do so ? If yes, please tell me how.
best regards




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005


Section numbering

2003-02-10 Thread Matej Cepl
Hi,

it seems to me, that in LyX-Qt 1.3.0 labels in
Layout/Document/Numbering are reversed, so that where is
Numbering Depth/Section should be Numbering Depth/Table of
contents and vice versa.

Any comments?

   Matej

-- 
Matej Cepl,
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review
   of Pennsylvania, 1759.



Re: section numbering with new line

2002-12-29 Thread Dekel Tsur
On Mon, Dec 16, 2002 at 03:45:56PM +0100, Jochen Wurster wrote:
> my institution requires a special layout for the work i am currently
> writing. And there are some requirements which i couldn't fulfill completly
> with lyx. At the moment i am using book document class.
>  - Section: Section number + new line followed by the section name
>  - Chapters without the text 'Chapter' in the title. And no space above the
> chapter name. The text 'Chapter' is ommitted by document class book
> (koma-script) , but koma-script introduces other problems in my layout e.g.
> way too many space between sections or section name followed by 5cm space in
> front of the section's text.

Add the following lines to the preamble:

\usepackage{titlesec}

\titleformat{\chapter}[display]
   {\normalfont\huge\bfseries}
   {\thechapter}
   {20pt}
   {\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{40pt}

\titleformat{\section}[display]
   {\normalfont\Large\bfseries}
   {\thesection}
   {10pt}
   {}




section numbering with new line

2002-12-16 Thread Jochen Wurster
Hi,

my institution requires a special layout for the work i am currently
writing. And there are some requirements which i couldn't fulfill completly
with lyx. At the moment i am using book document class.
 - Section: Section number + new line followed by the section name
 - Chapters without the text 'Chapter' in the title. And no space above the
chapter name. The text 'Chapter' is ommitted by document class book
(koma-script) , but koma-script introduces other problems in my layout e.g.
way too many space between sections or section name followed by 5cm space in
front of the section's text.

Can someone help me?

Bye
Jochen




Re: Section numbering format

2002-07-10 Thread Herbert Voss

Remzi Seker wrote:

> 
> I need to have my chapter, section, subsection titles formatted together with 
> their numbers. I have the titles formatted with the help of Dekel and 
> Herbert, however the numbers are not really as I want. Such that
> 1.1 THIS IS A SECTION
> the number "1.1" is bold and larger than the title itself... 
> 
> I am attaching an example file. Thanks alot in advance.


> \chapterfont{\mdseries\centering}
> \sectionfont{\mdseries\centering}
> \subsectionfont{\mdseries\textit}
> \subsubsectionfont{\mdseries\textit}
> \paragraphfont{\mdseries\textit}


for example: \chapterfont{\small\mdseries\centering} ...

Herbert

-- 
http://www.lyx.org/help/




Section numbering format

2002-07-10 Thread Remzi Seker

Hi,

I need to have my chapter, section, subsection titles formatted together with 
their numbers. I have the titles formatted with the help of Dekel and 
Herbert, however the numbers are not really as I want. Such that
1.1 THIS IS A SECTION
the number "1.1" is bold and larger than the title itself... 

I am attaching an example file. Thanks alot in advance.

Remzi

#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass scrbook
\begin_preamble
\usepackage{sectsty}
\chapterfont{\mdseries\centering}
\sectionfont{\mdseries\centering}
\subsectionfont{\mdseries\textit}
\subsubsectionfont{\mdseries\textit}
\paragraphfont{\mdseries\textit}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
%\renewcommand{\@seccntformat}[1]{}
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{float}
\usepackage{ntheorem}
\usepackage{accents}
\usepackage{lscape}
\usepackage{tocloft}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{setspace}
\newcommand{\rightBow}[1]{\accentset{\curvearrowright}{#1}}
\newcommand{\leftBow}[1]{\accentset{\curvearrowleft}{#1}}
\usepackage{dsfont}
\usepackage[nice]{nicefrac}

%%\def\need#1{\par \penalty-100 \begingroup % preserve \dimen@
%%  \dimen@\pagegoal \advance\dimen@-\pagetotal % space left
% % \ifdim #1>\dimen@ % not enough space left
 %%\ifdim\dimen@>\z@ \vfil\fi % only do \vfil if some space left on page
 % %   \eject 
 %% \fi \endgroup}

\renewcommand{\contentsname}{CONTENTS}
\renewcommand{\cfttoctitlefont}{\hfill\rmfamily\mdseries\scshape}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftloftitlefont}{\hfill\rmfamily\mdseries\scshape}
\renewcommand{\cftafterloftitle}{\hfill}
\renewcommand{\cftlottitlefont}{\hfill\rmfamily\mdseries\scshape}
\renewcommand{\cftafterlottitle}{\hfill}
%\renewcommand\thechapter{}

\hyphenpenalty=1
\clubpenalty = 1
\widowpenalty = 1 
\displaywidowpenalty = 1

\newcounter{parentfigure}

\newenvironment{subfigures}{%
  \refstepcounter{figure}%
  \protected@edef\theparentfigure{\thefigure}%
   \setcounter{parentfigure}{\value{figure}}%
   \setcounter{figure}{0}%
   \def\thefigure{\theparentfigure\alph{figure}}%
  \ignorespaces
}{%
  \setcounter{figure}{\value{parentfigure}}%
  \ignorespacesafterend
}


\usepackage[breaklines]{listings}
\renewcommand\lstlistingname{Program}% default is Listing
\renewcommand\lstlistlistingname{List of Programs}%default is Listings
\renewcommand\thelstlisting{\thechapter .\arabic{lstlisting}}% captionstyle
\newcommand{\lst}[2]{%
\noindent\rule[-1ex]{\textwidth}{0.3mm}\vspace{-1ex}

\lstinputlisting[caption={#2},label={#1},stringspaces=false,frame={tb},lineskip=-1pt,extendedchars=true,%

basicstyle=\footnotesize\tt,labelstep=1,labelstyle=\tiny,indent=2em,language=Matlab,breaklines]{#1}
\vspace{1ex}%
}

\def\ss#1{{\scriptstyle #1}}

%usepackage{hyperref}
\usepackage[refpage]{nomencl}
\makeglossary
\makeindex

\RequirePackage{ifthen}
\renewcommand{\nomgroup}[1]{% 
\ifthenelse{\equal{#1}{A}}{\item[\rmfamily\mdseries{Chapter 1}]}{%
\ifthenelse{\equal{#1}{B}}{\item[\rmfamily\mdseries{Chapter 2}]}{}}
\ifthenelse{\equal{#1}{C}}{\item[\rmfamily\mdseries{Chapter 3}]}{
\ifthenelse{\equal{#1}{D}}{\item[\rmfamily\mdseries{Chapter 4}]}{}}
\ifthenelse{\equal{#1}{E}}{\item[\rmfamily\mdseries{Chapter 5}]}{
\ifthenelse{\equal{#1}{F}}{\item[\rmfamily\mdseries{Chapter 6}]}{}}}
\end_preamble
\options nochapterprefix
\language american
\inputencoding auto
\fontscheme pslatex
\graphics default
\float_placement !h
\paperfontsize 12
\spacing double 
\papersize letterpaper
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 3.81cm
\topmargin 2.54cm
\rightmargin 2.54cm
\bottommargin 2.54cm
\secnumdepth 3
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Chapter


\family roman 
\series medium 
\size normal 
CHAPTER III: CUBIC FLOWGRAPHS
\layout Section


\family roman 
\series medium 
\size normal 
INTRODUCTION
\layout Subsection


\family roman 
\series medium 
\size normal 
Control Flowgraphs
\layout Standard

An alogorithm is usually represented by a diagram called flowchart, and
 then with the help of flowchart, the program can be built.
 Because of the logical flow, every program can be represented by a flowchart
 
\the_end



Re: Section numbering

2001-11-03 Thread Rich Shepard

On Sat, 3 Nov 2001, Rodney Kanno wrote:

> Ahh okay...so simple, I was expecting to have to put in some code
> somewhere..Thanks!

Rodney,

  You're certainly welcome. I'm a LyX newcomer, too, so I'm always willing
to give back for the help that I've received.

  The ease of producing quality documents in LyX compared with LaTeX makes
even command line preferrers such as me take to it so readily.

  I have an acquaintance out here who learned TeX years ago. He's actually
adopted the eplain macros, but that's as far as he's gone. When I wrote
about the half-hour LyX learning curve (the time needed to read the
tutorial), he sent me a transcript that he laborously hand-crafted for his
daughter when she was graduating from high school. He asked if LyX could do
the same job.

  My response was that I presumed so, and I know that tables are easy enough
to put in, but I wasn't going to try to replicate the huge amount of TeX's
results. He's seriously looking at LyX now. :-)

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED]
 http://www.appl-ecosys.com




Re: Section numbering

2001-11-03 Thread Rodney Kanno

Ahh okay...so simple, I was expecting to have to put in some code 
somewhere..Thanks!

Rodney

Rich Shepard wrote:

> On Sat, 3 Nov 2001, Rodney Kanno wrote:
> 
>> As suggested, I changed my paper to the article class. BUt how do I get
>> the title to print on it's own page (like how the report class does it)?
>> I do not want to use chapters..mainly section ans subsections.
> 
> 
>   Layout->Paragraph, then selectel PageBreak below.
> 
> Rich
> 
> Dr. Richard B. Shepard, President
> 
>Applied Ecosystem Services, Inc. (TM)
> 2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
>  + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED]
>  http://www.appl-ecosys.com
> 
> 
> 





Re: Section numbering

2001-11-03 Thread Rich Shepard

On Sat, 3 Nov 2001, Rodney Kanno wrote:

> As suggested, I changed my paper to the article class. BUt how do I get
> the title to print on it's own page (like how the report class does it)?
> I do not want to use chapters..mainly section ans subsections.

  Layout->Paragraph, then selectel PageBreak below.

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED]
 http://www.appl-ecosys.com




Re: Section numbering

2001-11-03 Thread Renaud MICHEL

Le Samedi 3 Novembre 2001 20:02, vous avez écrit :
> As suggested, I changed my paper to the article class. BUt how do I get
> the title to print on it's own page (like how the report class does it)?
> I do not want to use chapters..mainly section ans subsections.

Use the option titlepage (in the document dialog there is an other options 
textbox, just add titlepage).

-- 
On nait fatigue et on vit pour se reposer.
Aime ton lit comme toi meme.
Repose toi le jour, pour dormir la nuit
Si tu en vois un qui se repose, aide-le
Le travail c'est de la fatigue.
Ne fais pas aujourd'hui ce que tu peux faire demain.
Fais-en le moins possible et ce que tu dois faire,
fais le faire par les autres.
Trop de repos n'a jamais fais mourir personne.
Quand l'envie de travailler te prend, assieds-toi, attends qu'elle te passe.
Si le travail c'est la sante, vive la maladie.

Renaud MICHEL



Re: Section numbering

2001-11-03 Thread Rodney Kanno

As suggested, I changed my paper to the article class. BUt how do I get 
the title to print on it's own page (like how the report class does it)? 
I do not want to use chapters..mainly section ans subsections.

Rodney

Matej Cepl wrote:

> On Fri, Nov 02, 2001 at 08:00:13AM -1000, Rodney Kanno wrote:
> 
>> I am writing a paper using the report document class. When I add a 
>> section, the numbering starts at 0.1, how do I get it to start at 1?
> 
> 
> Using sections before chapters is considered a really bad idea.
> If you do not want chapters at all, use article (or scrartcl)
> class.
> 
> Matej
> 





Re: Section numbering

2001-11-02 Thread Matej Cepl

On Fri, Nov 02, 2001 at 08:00:13AM -1000, Rodney Kanno wrote:
> I am writing a paper using the report document class. When I add a 
> section, the numbering starts at 0.1, how do I get it to start at 1?

Using sections before chapters is considered a really bad idea.
If you do not want chapters at all, use article (or scrartcl)
class.

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Give your heartache to him. (1Pt 5,7; Mt 11:28-30)




Re: Section numbering

2001-11-02 Thread Christopher M. Jones

Yes.

You could put it in either of those places. If you want this for all time 
then you should put it in the preamble and save it as the default layout.

On Friday 02 November 2001 06:39 pm, you wrote:
> Pardon my ignorance, but I'm a newbie and I don't know where I would add
> the command:
>
> \renewcommand{\thesection}{\arabic{section}}
>
> would this be in the report itself or in the latex preamble?
>
> Rodney
>
> On Friday 02 November 2001 01:57 pm, Renaud MICHEL wrote:
> > Le Vendredi 2 Novembre 2001 19:00, vous avez écrit :
> > > I am writing a paper using the report document class. When I add a
> > > section, the numbering starts at 0.1, how do I get it to start at 1?
> >
> > It is because the report class has chapters, you should use chapter
> > instead of section, if you don't want chapters you should use the article
> > class. If you want to use the report class but don't want the chapter you
> > can redefine the command \thesection (the command responsible of the 0.1)
> > with \renewcommand{\thesection}{\arabic{section}}
> > this should give you a 1.



Re: Section numbering

2001-11-02 Thread Rodney K

Pardon my ignorance, but I'm a newbie and I don't know where I would add the 
command:

\renewcommand{\thesection}{\arabic{section}}

would this be in the report itself or in the latex preamble?

Rodney


On Friday 02 November 2001 01:57 pm, Renaud MICHEL wrote:
> Le Vendredi 2 Novembre 2001 19:00, vous avez écrit :
> > I am writing a paper using the report document class. When I add a
> > section, the numbering starts at 0.1, how do I get it to start at 1?
>
> It is because the report class has chapters, you should use chapter instead
> of section, if you don't want chapters you should use the article class.
> If you want to use the report class but don't want the chapter you can
> redefine the command \thesection (the command responsible of the 0.1) with
> \renewcommand{\thesection}{\arabic{section}}
> this should give you a 1.



Re: Section numbering

2001-11-02 Thread Renaud MICHEL

Le Vendredi 2 Novembre 2001 19:00, vous avez écrit :
> I am writing a paper using the report document class. When I add a
> section, the numbering starts at 0.1, how do I get it to start at 1?

It is because the report class has chapters, you should use chapter instead 
of section, if you don't want chapters you should use the article class.
If you want to use the report class but don't want the chapter you can 
redefine the command \thesection (the command responsible of the 0.1) with
\renewcommand{\thesection}{\arabic{section}}
this should give you a 1.

-- 
Linux: a better Windows NT than OS/2.

Renaud MICHEL



Section numbering

2001-11-02 Thread Rodney Kanno

HI,

I am writing a paper using the report document class. When I add a 
section, the numbering starts at 0.1, how do I get it to start at 1?

Rodney





Re: Section numbering origin changes

2001-10-25 Thread J.P. van Bolhuis

Rich Shepard wrote:
> 
>   Last evening I came up against a problem with section numberin changes
> that I could not resolve. It occurred in two imported text documents, one I
> declared an article the other a report. Both are software manuals (one an
> admin guide the other a user guide) I was sent via e-mail. The version of
> LyX is 1.1.6fix3.
> 
>   When I imported the first document I tried both the report and article
> classes to see which would print in a format I preferred. When I declared
> the first section as a "section" it was numbered '1', and sub-sections were
> '1.1' and '1.2' then '2' and so on. I changed the document type from article
> to report and the numbers changed to begin with '0' rather than '1'. I
> couldn't find where to change them back again.
> 
>   Putting that aside for a while, I imported the second manual changing the
> document class to 'report'. As soon as I specified the first heading as a
> "section", it was numbered '0'.
> 
>   I'm sure this is a simple user error, but I didn't see in the on-line
> references how to change it back again. I'd appreciate a pointer to the
> solution.
> 
> Thanks,
> 
> Rich
> 
> Dr. Richard B. Shepard, President
> 

IIRC, the highest level header in an article is ¨section¨  while the
highest level in a report (book?) is ¨Chapter¨, so basically what is
happening is correct, since you don't have declared a chapter.

Unfortunately i don't know a way to automatically change all section
headers in chapter headers (subsection to section etc..) except for
manually replacing it. You might consider editing the lyx file in an
editor (joe, vi, emacs) and change all the \section{ to \chapter{ etc..

Perhaps someone the list knows a better way..



Section numbering origin changes

2001-10-24 Thread Rich Shepard

  Last evening I came up against a problem with section numberin changes
that I could not resolve. It occurred in two imported text documents, one I
declared an article the other a report. Both are software manuals (one an
admin guide the other a user guide) I was sent via e-mail. The version of
LyX is 1.1.6fix3.

  When I imported the first document I tried both the report and article
classes to see which would print in a format I preferred. When I declared
the first section as a "section" it was numbered '1', and sub-sections were
'1.1' and '1.2' then '2' and so on. I changed the document type from article
to report and the numbers changed to begin with '0' rather than '1'. I
couldn't find where to change them back again.

  Putting that aside for a while, I imported the second manual changing the
document class to 'report'. As soon as I specified the first heading as a
"section", it was numbered '0'.

  I'm sure this is a simple user error, but I didn't see in the on-line
references how to change it back again. I'd appreciate a pointer to the
solution.

Thanks,

Rich

Dr. Richard B. Shepard, President

   Applied Ecosystem Services, Inc. (TM)
2404 SW 22nd Street | Troutdale, OR 97060-1247 | U.S.A.
 + 1 503-667-4517 (voice) | + 1 503-667-8863 (fax) | [EMAIL PROTECTED]
 http://www.appl-ecosys.com




Re: References with changed section numbering

2001-09-03 Thread Herbert Voss

Aino de Vries wrote:
> 
> Hi,
> A homework i have to write is required to have its sections numbered the following 
>way:
> A Section
>   I Subsection
> 1 Subsubsection
>a Paragraph
>  aa Subparagraph
>  bb Subparagraph 2
> I have managed to achieve this by using the following latex preamble:
> \usepackage{titlesec}
> \renewcommand{\thesection}{\Alph{section}}
> \renewcommand{\thesubsection}{\Roman{subsection}}
> \renewcommand{\thesubsubsection}{\arabic{subsubsection}}
> \renewcommand{\theparagraph}{\alph{paragraph}}
> \renewcommand{\thesubparagraph}{\alph{subparagraph}\alph{subparagraph}}
> 
> Now, if i insert a label at "Subparagraph" and refer to it later in the text, the 
>reference appears as "aa".
> If possible, i would like the reference to be like "A. I. 1. a. aa."
> Does someone know a way to do this?

in preamble:

\renewcommand{\p@subsection}{\thesection.}
\renewcommand{\p@subsubsection}{\thesection.\thesubsection.}
\renewcommand{\p@paragraph}{\thesection.\thesubsection.\thesubsubsection.}
\renewcommand{\p@subparagraph}{\thesection.\thesubsection.\thesubsubsection.\theparagraph.}

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



References with changed section numbering

2001-09-03 Thread Aino de Vries

Hi,
A homework i have to write is required to have its sections numbered the following way:
A Section
  I Subsection
1 Subsubsection
   a Paragraph
 aa Subparagraph
 bb Subparagraph 2
I have managed to achieve this by using the following latex preamble:
\usepackage{titlesec}
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thesubsection}{\Roman{subsection}}
\renewcommand{\thesubsubsection}{\arabic{subsubsection}}
\renewcommand{\theparagraph}{\alph{paragraph}}
\renewcommand{\thesubparagraph}{\alph{subparagraph}\alph{subparagraph}}

Now, if i insert a label at "Subparagraph" and refer to it later in the text, the 
reference appears as "aa". 
If possible, i would like the reference to be like "A. I. 1. a. aa."
Does someone know a way to do this?
Greetings,
Aino de Vries



#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass scrartcl
\begin_preamble
\usepackage{titlesec}
\renewcommand{\thesection}{\Alph{section}}
\renewcommand{\thesubsection}{\Roman{subsection}}
\renewcommand{\thesubsubsection}{\arabic{subsubsection}}
\renewcommand{\theparagraph}{\alph{paragraph}}
\renewcommand{\thesubparagraph}{\alph{subparagraph}\alph{subparagraph}}
\end_preamble
\language german
\inputencoding auto
\fontscheme pslatex
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 1cm
\topmargin 1cm
\rightmargin 1cm
\bottommargin 1cm
\secnumdepth 5
\tocdepth 5
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Title

Example
\layout Standard


\begin_inset LatexCommand \tableofcontents{}

\end_inset 


\layout Section

Section
\layout Subsection

Subsection
\layout Subsubsection

Subsubsection
\layout Paragraph

Paragraph
\layout Subparagraph


\begin_inset LatexCommand \label{test}

\end_inset 

Subparagraph
\layout Subparagraph

Subparagraph 2
\layout Standard

Reference to 
\begin_inset LatexCommand \ref{test}

\end_inset 


\the_end



Re: Section Numbering

2001-03-25 Thread Herbert Voss

Hisyam wrote:
> 
> Hello,
> You are absolutely right that I should using the latex8 document class for
> my conference paper.
> 
> After reading throught the Help->Customization and the Help->Extended
> manual, I make the following changes:
> 1. cp /usr/share/lyx/layouts/latex8.layout
> ~/.lyx/layouts/latex8.layout.layout
> 2. edit latex8.layout and change the line to read
>   \DeclareLaTeXClass[article, latex8.sty, times.sty]{article (Latex8}
> 3. Preamble
>   \usepackage{Latex8}
> Results: Still can't see "article(latex8)" as a document class option in the
> Layout --> Document popup. :-(
> 
> I've download latex8.sty from Internet. Where should I put this style?

save it in /usr/local/share/texmf
or any other dir, which is in the latex dir tree.
don't forget to run texhash

Herbert

-- 
http://perce.de/lyx/



Re: Section Numbering

2001-03-24 Thread Hisyam

Hello,
You are absolutely right that I should using the latex8 document class for
my conference paper.

After reading throught the Help->Customization and the Help->Extended
manual, I make the following changes:
1. cp /usr/share/lyx/layouts/latex8.layout
~/.lyx/layouts/latex8.layout.layout
2. edit latex8.layout and change the line to read
  \DeclareLaTeXClass[article, latex8.sty, times.sty]{article (Latex8}
3. Preamble
  \usepackage{Latex8}
Results: Still can't see "article(latex8)" as a document class option in the
Layout --> Document popup. :-(

I've download latex8.sty from Internet. Where should I put this style?

Helps are appreciated.

Have a nice day!

Hisyam

- Original Message -
From: Allan Rae <[EMAIL PROTECTED]>
To: Hisyam <[EMAIL PROTECTED]>
Cc: LyX Users <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 1:40 PM
Subject: Re: Section Numbering


> On Wed, 21 Mar 2001, Hisyam wrote:
>
> > Thank you. Work nicely for section but I do get additional problems.
> > Defination, Theorem, Equations numbering also change to Roman which not
what
> > I what. Any suggestions?
>
> If it's a conference paper you are writing you should in fact be using the
> latex8 document class.  This is actually a latex8.sty file used in
> conjunction with article.cls.  IEEEtran.cls is actually for most of the
> IEEE Transactions series of publications.
>
> This will in fact match any IEEE conference.
>
> > I've managed to download ieeetran.tar.Z from the site you mentioned.
After
> > uncompress and untar there are three files i.e. IEEEtran.cls,
> > IEEEsample2e.tex, and IEEE.bst. How do I configure it with LyX.version
> > 1.1.5fix2.
>
> Put IEEEtran.cls somewhere where LaTeX can find it.  The run LyX and use
> Options->Reconfigure and when that's finished restart LyX and you should
> have the new document class available.  Similar instructions for
> installing latex8.sty.  Take a look at Help->Customization for more
> detailed description of installing class files.
>
> You'll also find some documentation for using latex8 in the Help->Extended
> manual.
>
> Allan. (ARRae)
>




Re: Section Numbering

2001-03-20 Thread Allan Rae

On Wed, 21 Mar 2001, Hisyam wrote:

> Thank you. Work nicely for section but I do get additional problems.
> Defination, Theorem, Equations numbering also change to Roman which not what
> I what. Any suggestions?

If it's a conference paper you are writing you should in fact be using the
latex8 document class.  This is actually a latex8.sty file used in
conjunction with article.cls.  IEEEtran.cls is actually for most of the
IEEE Transactions series of publications.

This will in fact match any IEEE conference.

> I've managed to download ieeetran.tar.Z from the site you mentioned. After
> uncompress and untar there are three files i.e. IEEEtran.cls,
> IEEEsample2e.tex, and IEEE.bst. How do I configure it with LyX.version
> 1.1.5fix2.

Put IEEEtran.cls somewhere where LaTeX can find it.  The run LyX and use
Options->Reconfigure and when that's finished restart LyX and you should
have the new document class available.  Similar instructions for
installing latex8.sty.  Take a look at Help->Customization for more
detailed description of installing class files.

You'll also find some documentation for using latex8 in the Help->Extended
manual.

Allan. (ARRae)




Re: Section Numbering

2001-03-20 Thread Hisyam

Thank you. Work nicely for section but I do get additional problems.
Defination, Theorem, Equations numbering also change to Roman which not what
I what. Any suggestions?

I've managed to download ieeetran.tar.Z from the site you mentioned. After
uncompress and untar there are three files i.e. IEEEtran.cls,
IEEEsample2e.tex, and IEEE.bst. How do I configure it with LyX.version
1.1.5fix2.

Thanks and appreciate your help. Have a nice day!

Hisyam

- Original Message -
From: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
To: Hisyam <[EMAIL PROTECTED]>
Cc: LyX Users <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 6:16 PM
Subject: Re: Section Numbering


> >>>>> "Hisyam" == Hisyam  <[EMAIL PROTECTED]> writes:
>
> Hisyam> Hi Floks, How do I change section numbering from 1, 2, ... to
> Hisyam> I, II,  because I need to write an article in IEEE
> Hisyam> conference paper format. Thanks. Have a nice day!
>
> Your best bet is to get the IEEEtran.cls document class, which is
> supported by LyX. You will be able to find it here
> http://www.ieee.org/organizations/pubs/transactions/stylesheets.htm
>
> Note that I have not tried that myself...
>
> JMarc
>
> PS: to give an answer to your actual question: in
> Layout>LaTeX_Preamble, add
>   \renewcommand{\thesection}{\Roman{section}}
>




Re: Section Numbering

2001-03-20 Thread Jean-Marc Lasgouttes

>>>>> "Hisyam" == Hisyam  <[EMAIL PROTECTED]> writes:

Hisyam> Hi Floks, How do I change section numbering from 1, 2, ... to
Hisyam> I, II,  because I need to write an article in IEEE
Hisyam> conference paper format. Thanks. Have a nice day!

Your best bet is to get the IEEEtran.cls document class, which is
supported by LyX. You will be able to find it here
http://www.ieee.org/organizations/pubs/transactions/stylesheets.htm

Note that I have not tried that myself...

JMarc

PS: to give an answer to your actual question: in
Layout>LaTeX_Preamble, add
  \renewcommand{\thesection}{\Roman{section}}



Section Numbering

2001-03-20 Thread Hisyam

Hi Floks,
How do I change section numbering from 1, 2, ... to I, II,  because I
need to write an article in IEEE conference paper format.
Thanks.
Have a nice day!

Newbie




Re: Section-numbering

2001-03-08 Thread Remzi Seker

On Thursday 08 March 2001 09:48, Chris Schulbert wrote:
=> Hi!
=>
=> I my document I want to switch off temporarily the secion-numbering.
=> Although, the sections should still apear in the toc. It is somewhat
=> biological work and the many generas and species, I have to describe
=> shouldn't show up with numbers. Like this:
=>
=> Phylum
=> Class
=> Subclass
=> Supraorder
=> Order
=> Suborder
=> Family
=> Genus
=> Species
=>
=> To receive a small, but usefull toc, I only want to show the family and
 the => Genus in the toc.
=> I could use \addcontentsline, but is there no way to stop the numbering
 e.g. => on page 34 and start again on page 120, when all the descriptive
 stuff is => over?
=>
=>
=> I know, I always try things that complicated :-)
=>
=>
=> Chris

You can try using section* for those you don't want them to appear in TOC.
Also, go to layout > document > Extra and set the section number depth to -1
or 92. This should do. (I have lyx 1.1.6) if you dont have that option in
your lyx, try putting in the latex preamble:

\usepackage{sectsty}
\renewcommand{\@seccntformat}[1]{}

This should do.

Remzi



Section-numbering

2001-03-08 Thread Chris Schulbert

Hi!

I my document I want to switch off temporarily the secion-numbering.
Although, the sections should still apear in the toc. It is somewhat
biological work and the many generas and species, I have to describe
shouldn't show up with numbers. Like this:

Phylum
Class
Subclass
Supraorder
Order
Suborder
Family
Genus
Species

To receive a small, but usefull toc, I only want to show the family and the
Genus in the toc.
I could use \addcontentsline, but is there no way to stop the numbering e.g.
on page 34 and start again on page 120, when all the descriptive stuff is
over?


I know, I always try things that complicated :-)


Chris





Re: Fw: Section Numbering and Face.

2001-02-01 Thread John Levon

On Thu, 1 Feb 2001, Allan Rae wrote:

> On Fri, 19 Jan 2001, Angus Leeming wrote:
> 
> > You need a valid unit with the integer. Eg, "1 cm", "2 em", "3 mm" etc.
> 
> Maybe we should offer a choice-box with the units available?
> 
> But then again can margins have rubber lengths?
> 
> Allan.  (ARRae)
> 

This is exactly what the KDE frontend does i.e. offers a units combo box
where appropriate. Doesn't mean I've got it exactly right of course.

Dealing with glue lengths is a pain, my current poor solution is three
text boxes + combo boxes. I can't think of a nicer way of entering glue
lengths.

john




Re: Fw: Section Numbering and Face.

2001-02-01 Thread Allan Rae

On Fri, 19 Jan 2001, Angus Leeming wrote:

> You need a valid unit with the integer. Eg, "1 cm", "2 em", "3 mm" etc.

Maybe we should offer a choice-box with the units available?

But then again can margins have rubber lengths?

Allan.  (ARRae)




Re: Fw: Section Numbering and Face.

2001-01-20 Thread Dekel Tsur

On Fri, Jan 19, 2001 at 05:12:47PM +, Angus Leeming wrote:
> > > Another question is how do I set the page margins? I have tried but it
> > > does
> > > not let me set them. May be I need to try milimeters?
> You need a valid unit with the integer. Eg, "1 cm", "2 em", "3 mm" etc.

You also need to make sure that the "Use geometry package" option is selected.



Re: Section Numbering and Face.

2001-01-20 Thread Dekel Tsur

On Fri, Jan 19, 2001 at 10:58:15AM -0600, Rem wrote:
> I am writing my thesis in LyX and I have to stick to the thesis guidelines of 
> Graduate School so here is what I need to do:
> 
> Sections should not be bold. I change the face from Layout > Font, but the 
> number, i.e. 0.1 remains there and it is in bold. Moreover, I need to have 
> the section title in the center (subsections must be left justified). 

Use the titlesec or sectsty package. For example, you can put the following
lines in the preamble:

\usepackage{sectsty}
\sectionfont{\mdseries\centering}
\subsectionfont{\mdseries}



  1   2   >