Michael Kirches | 1 Nov 2004 10:43
Picon
Picon

[MiKTeX] Question on Chapters

Hi!

Normally when it comes to create chapters for some LaTeX-document, 
regardless of usage, chapters do start with number 1 (or if no chapters 
were creates, section start with 0.1). Is it possible to force chapters 
to start with numbers different from 1 (let's say first chapter shall 
have number 2)?

Greetz Michael

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Hans F. Nordhaug | 1 Nov 2004 12:02
Picon
Picon
Favicon

Re: [MiKTeX] Question on Chapters

On Mon, Nov 01, 2004 at 10:43:45AM +0100, Michael Kirches wrote:
> Hi!
> 
> Normally when it comes to create chapters for some LaTeX-document, 
> regardless of usage, chapters do start with number 1 (or if no chapters 
> were creates, section start with 0.1). Is it possible to force chapters 
> to start with numbers different from 1 (let's say first chapter shall 
> have number 2)?

\setcounter{chapter}{1} 

before you start the chapter that should have number 2. 

This is a general LaTeX question much better asked at comp.text.tex:
<http://groups.google.com/groups?group=comp.text.tex>

Hans

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Michael Kirches | 2 Nov 2004 15:15
Picon
Picon

[MiKTeX] Re: Re: Question on Chapters

Hans wrote:
...
This is a general LaTeX question much better asked at comp.text.tex:
<http://groups.google.com/groups?group=comp.text.tex>

Sorry Hans, I didn't knew that this list is home to "specified" questions. I will remeber you when I got
another "general" question.
Thank you for your answer, I will test it and hopefully it will lead to success

Greetz Michael

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
KUCKAERTZ Régis - NVISION | 3 Nov 2004 13:37
Picon

[MiKTeX] syntax package

Hello all,

I've been trying to use the 'syntax' package for typesetting BNF grammar.
With that simple example:

\documentclass{article}
\usepackage{syntax}
\begin{document}
\begin{grammar}
  <S> ::= `.'
\end{grammar}
\end{document}

I'm getting the following error during compilation:

...
! Use of \gr <at> implitem doesn't match its definition.
<inserted text> \special 
                         {src:5x.tex}
l.5   <
       S> ::= `.'
[1] (./x.aux) )
(see the transcript file for additional information)
Output written on x.dvi (1 page, 284 bytes).
Transcript written on x.log.

I'm kinda new to LaTeX, looking at syntax.sty puts my brain in jeopardy :-/
Is there someone here who could be of any help?

Many thanks,
(Continue reading)

Hans F. Nordhaug | 3 Nov 2004 15:07
Picon
Picon
Favicon

Re: [MiKTeX] syntax package

On Wed, Nov 03, 2004 at 01:37:30PM +0100, KUCKAERTZ Régis - NVISION wrote:
> Hello all,
> 
> I've been trying to use the 'syntax' package for typesetting BNF grammar.
> With that simple example:
> 
> \documentclass{article}
> \usepackage{syntax}
> \begin{document}
> \begin{grammar}
>   <S> ::= `.'
> \end{grammar}
> \end{document}
> 
> I'm getting the following error during compilation:

I just tried your example and it worked like a charm. Have you installed
syntax.sty manually? If so, uninstall it and let MiKTeX install it
automatically.

Hans

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
Morten Høgholm | 3 Nov 2004 16:39
Picon

Re: [MiKTeX] syntax package

On Wed, 03 Nov 2004 15:07:24 +0100, Hans F. Nordhaug  
<Hans.F.Nordhaug <at> hiMolde.no> wrote:

> On Wed, Nov 03, 2004 at 01:37:30PM +0100, KUCKAERTZ Régis - NVISION  
> wrote:
>> Hello all,
>>
>> I've been trying to use the 'syntax' package for typesetting BNF  
>> grammar.
>> With that simple example:
>>
>> \documentclass{article}
>> \usepackage{syntax}
>> \begin{document}
>> \begin{grammar}
>>   <S> ::= `.'
>> \end{grammar}
>> \end{document}
>>
>> I'm getting the following error during compilation:
>
> I just tried your example and it worked like a charm. Have you installed
> syntax.sty manually? If so, uninstall it and let MiKTeX install it
> automatically.

No, in this case the error happens because of source specials being  
enabled. I'll take a closer look at what can be done.
--

-- 
Morten Høgholm

(Continue reading)

KUCKAERTZ Régis - NVISION | 3 Nov 2004 17:02
Picon

RE: [MiKTeX] syntax package

That's weird, I reinstalled it and it didn't work either... all my packages
are up to date!

Thanks a lot for your help, I'll look on my own for what are "source
specials" and if I really need that feature :-?

Régis Kuckaertz

> -----Original Message-----
> From: miktex-users-admin <at> lists.sourceforge.net 
> [mailto:miktex-users-admin <at> lists.sourceforge.net] On Behalf 
> Of Morten Høgholm
> Sent: mercredi 3 novembre 2004 16:40
> To: miktex-users <at> lists.sourceforge.net
> Subject: Re: [MiKTeX] syntax package
> 
> On Wed, 03 Nov 2004 15:07:24 +0100, Hans F. Nordhaug 
> <Hans.F.Nordhaug <at> hiMolde.no> wrote:
> 
> > On Wed, Nov 03, 2004 at 01:37:30PM +0100, KUCKAERTZ Régis - NVISION
> > wrote:
> >> Hello all,
> >>
> >> I've been trying to use the 'syntax' package for typesetting BNF 
> >> grammar.
> >> With that simple example:
> >>
> >> \documentclass{article}
> >> \usepackage{syntax}
> >> \begin{document}
(Continue reading)

KUCKAERTZ Régis - NVISION | 3 Nov 2004 17:45
Picon

RE: [MiKTeX] syntax package

Mr Høgholm,

Now I see what source specials are, but I can't tell which package makes use
of them... I tried disabling the --src compilation option in WinEdt and it
worked "like a charm" :-)

I don't think they are really necessary for me at the moment, so it doesn't
matter if I leave that option disabled (I'm afraid it won't be the case
anymore when I'll use something like the fancyhdr package, that handles page
headers and footers). However, I'll be vigilent and keep on looking for a
possible solution, and if you are interested too, I'll be glad to hear your
comments!

Best regards,
Régis

> -----Original Message-----
> From: miktex-users-admin <at> lists.sourceforge.net 
> [mailto:miktex-users-admin <at> lists.sourceforge.net] On Behalf 
> Of KUCKAERTZ Régis - NVISION
> Sent: mercredi 3 novembre 2004 17:03
> To: miktex-users <at> lists.sourceforge.net
> Subject: RE: [MiKTeX] syntax package
> 
> That's weird, I reinstalled it and it didn't work either... 
> all my packages are up to date!
> 
> Thanks a lot for your help, I'll look on my own for what are 
> "source specials" and if I really need that feature :-?
> 
(Continue reading)

Morten Høgholm | 3 Nov 2004 18:19
Picon

Re: [MiKTeX] syntax package

On Wed, 03 Nov 2004 13:37:30 +0100, KUCKAERTZ Régis - NVISION  
<regis.kuckaertz <at> nvision.lu> wrote:

> Hello all,
>
> I've been trying to use the 'syntax' package for typesetting BNF grammar.
> With that simple example:
>
> \documentclass{article}
> \usepackage{syntax}
> \begin{document}
> \begin{grammar}
>   <S> ::= `.'
> \end{grammar}
> \end{document}
>
> I'm getting the following error during compilation:
>
> ...
> ! Use of \gr <at> implitem doesn't match its definition.
> <inserted text> \special
>                          {src:5x.tex}
> l.5   <
>        S> ::= `.'
> [1] (./x.aux) )
> (see the transcript file for additional information)
> Output written on x.dvi (1 page, 284 bytes).
> Transcript written on x.log.

This works:
(Continue reading)

Pierre BACH | 3 Nov 2004 20:06
Picon
Favicon

RE: [MiKTeX] syntax package

I have the same error on Latex but no error with pdflatex. The pdf is
generated and contain   <S> ::= `.'

My problem is that I don't know what is expected.

Bests regard

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

Gmane