ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ownnumber=yes
@ 2005-12-21  4:42 David Arnold
  2005-12-21 10:09 ` ownnumber=yes Vit Zyka
  2005-12-21 13:40 ` ownnumber=yes Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: David Arnold @ 2005-12-21  4:42 UTC (permalink / raw)


All,

This:

%output=pdf

\definehead[david][section]
\setuphead[david][ownnumber=yes]

\starttext

\chapter{One}
\input tufte

\section{Two}
\input tufte

\david{Three}
\input tufte

\section{Four}
\input tufte

\stoptext


Causes this:

! TeX capacity exceeded, sorry [input stack size=5000].
<argument> \s!section
                       -3
\previoussection #1->\csname \??se #1
                                      \c!before \endcsname
\countervalue #1->\csname #1
                             \endcsname
\@@longsectionnumber ...?se \previoussection {#1}}
                                                   >\zerocount  
\csname \previ...

\finalsectionnumber ...alue {\@@sectie \c!number }
                                                   \fi \fi
\@@shortsectionnumber ...1\c!ownnumber \endcsname
                                                   \fi
...
l.14 \david{Three}


Any ideas?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ownnumber=yes
  2005-12-21  4:42 ownnumber=yes David Arnold
@ 2005-12-21 10:09 ` Vit Zyka
  2005-12-21 15:59   ` \startstandardmakeup aligned top-left Jilani Khaldi
  2005-12-21 13:40 ` ownnumber=yes Hans Hagen
  1 sibling, 1 reply; 7+ messages in thread
From: Vit Zyka @ 2005-12-21 10:09 UTC (permalink / raw)


David Arnold wrote:
> All,
> 
> This:
> 
> %output=pdf
> 
> \definehead[david][section]

If you set

> \setuphead[david][ownnumber=yes]
 >
> \starttext
> 
> \chapter{One}
> \input tufte
> 
> \section{Two}
> \input tufte
> 

then add a mandatory argument:

   \david{10}{Three}

Vit

> \david{Three}
> \input tufte
> 
> \section{Four}
> \input tufte
> 
> \stoptext
> 
> 
> Causes this:
> 
> ! TeX capacity exceeded, sorry [input stack size=5000].
> <argument> \s!section
>                       -3
> \previoussection #1->\csname \??se #1
>                                      \c!before \endcsname
> \countervalue #1->\csname #1
>                             \endcsname
> \@@longsectionnumber ...?se \previoussection {#1}}
>                                                   >\zerocount  \csname 
> \previ...
> 
> \finalsectionnumber ...alue {\@@sectie \c!number }
>                                                   \fi \fi
> \@@shortsectionnumber ...1\c!ownnumber \endcsname
>                                                   \fi
> ...
> l.14 \david{Three}
> 
> 
> Any ideas?
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ownnumber=yes
  2005-12-21  4:42 ownnumber=yes David Arnold
  2005-12-21 10:09 ` ownnumber=yes Vit Zyka
@ 2005-12-21 13:40 ` Hans Hagen
  1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2005-12-21 13:40 UTC (permalink / raw)


David Arnold wrote:

> %output=pdf
>
> \definehead[david][section]
> \setuphead[david][ownnumber=yes]
>
> \starttext
>
> \chapter{One}
> \input tufte
>
> \section{Two}
> \input tufte
>
> \david{Three}
> \input tufte
>
> \section{Four}
> \input tufte
>
> \stoptext
>
>
you need to provide the 'own' number!

\david{own number}{Three}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* \startstandardmakeup aligned top-left
  2005-12-21 10:09 ` ownnumber=yes Vit Zyka
@ 2005-12-21 15:59   ` Jilani Khaldi
  0 siblings, 0 replies; 7+ messages in thread
From: Jilani Khaldi @ 2005-12-21 15:59 UTC (permalink / raw)


Hi All,
I have the first page of a document set this way:
...
\startstandardmakeup
*Document info*
\stopstandardmakeup
...
The result is *Document info* is placed in the center of the page. How 
to put it (*Document info*) at the top-left of the page?
Thank you.

jk

-- 
Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: \startstandardmakeup aligned top-left
  2005-12-21 17:41 \startstandardmakeup aligned top-left Jilani Khaldi
  2005-12-21 17:50 ` Peter Münster
@ 2005-12-21 18:01 ` Radhelorn
  1 sibling, 0 replies; 7+ messages in thread
From: Radhelorn @ 2005-12-21 18:01 UTC (permalink / raw)


Jilani Khaldi wrote:
> Hi All,
> I have the first page of a document set this way:
> ....
> \startstandardmakeup
> *Document info*
> \stopstandardmakeup
> ....
> The result is *Document info* is placed in the center of the page. How 
> to put it (*Document info*) at the top-left of the page?
> Thank you.
> 

Inside standardmakeup you can use whole bunch of TeX/ConTeXt commands 
for  setting up glue and spaces. In your case just add \vfill after 
*Document info*. Also see cont-en manual about makeups. You can define 
your own or alter many options of standard makeup.

-- 
Radhelorn <radhelorn@mail.ru>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: \startstandardmakeup aligned top-left
  2005-12-21 17:41 \startstandardmakeup aligned top-left Jilani Khaldi
@ 2005-12-21 17:50 ` Peter Münster
  2005-12-21 18:01 ` Radhelorn
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Münster @ 2005-12-21 17:50 UTC (permalink / raw)


On Wed, 21 Dec 2005, Jilani Khaldi wrote:

> \startstandardmakeup
> *Document info*
> \stopstandardmakeup
> ...
> The result is *Document info* is placed in the center of the page. How 
> to put it (*Document info*) at the top-left of the page?

\starttext
\startstandardmakeup
*Document info*
\vfill
\stopstandardmakeup
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* \startstandardmakeup aligned top-left
@ 2005-12-21 17:41 Jilani Khaldi
  2005-12-21 17:50 ` Peter Münster
  2005-12-21 18:01 ` Radhelorn
  0 siblings, 2 replies; 7+ messages in thread
From: Jilani Khaldi @ 2005-12-21 17:41 UTC (permalink / raw)


Hi All,
I have the first page of a document set this way:
...
\startstandardmakeup
*Document info*
\stopstandardmakeup
...
The result is *Document info* is placed in the center of the page. How 
to put it (*Document info*) at the top-left of the page?
Thank you.

jk

-- 
Jilani KHALDI
http://jkhaldi.oltrelinux.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-12-21 18:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  4:42 ownnumber=yes David Arnold
2005-12-21 10:09 ` ownnumber=yes Vit Zyka
2005-12-21 15:59   ` \startstandardmakeup aligned top-left Jilani Khaldi
2005-12-21 13:40 ` ownnumber=yes Hans Hagen
2005-12-21 17:41 \startstandardmakeup aligned top-left Jilani Khaldi
2005-12-21 17:50 ` Peter Münster
2005-12-21 18:01 ` Radhelorn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).