ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setuphead and newline
@ 2012-10-25 12:25 WolfgangZ
  2012-10-25 13:10 ` Marco Patzer
  0 siblings, 1 reply; 4+ messages in thread
From: WolfgangZ @ 2012-10-25 12:25 UTC (permalink / raw)
  To: ntg-context

Hello,
I'm trying to insert a newline between the number and the head text 
(chaper). Where do I have to put the \crlf ?

It sohould look like:

1
This is the chapter text


Many thanks in advance
WolfgangZ


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: setuphead and newline
  2012-10-25 12:25 setuphead and newline WolfgangZ
@ 2012-10-25 13:10 ` Marco Patzer
  2012-10-25 17:27   ` Wolfgang
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2012-10-25 13:10 UTC (permalink / raw)
  To: ntg-context

2012-10-25 WolfgangZ:

Hi WolfgangZ

> I'm trying to insert a newline between the number and the head text 
> (chaper). Where do I have to put the \crlf ?
> 
> It sohould look like:
> 
> 1
> This is the chapter text

\defineheadalternative
  [mine]
  [renderingsetup=mine]

\startsetups [mine]
  \headsetupspacing
  \startframedtext [offset=none, frame=off]
    \headnumbercontent\\
    \headtextcontent
  \stopframedtext
\stopsetups

\setuphead
  [section]
  [alternative=mine]

\starttext
  \startsection [title=FooBar]
  \stopsection
\stoptext


Marco

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: setuphead and newline
  2012-10-25 13:10 ` Marco Patzer
@ 2012-10-25 17:27   ` Wolfgang
  2012-10-25 17:35     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang @ 2012-10-25 17:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]

Am 25.10.2012 15:10, schrieb Marco Patzer:
> 2012-10-25 WolfgangZ:
>
> Hi WolfgangZ
>
>> I'm trying to insert a newline between the number and the head text
>> (chaper). Where do I have to put the \crlf ?
>>
>> It sohould look like:
>>
>> 1
>> This is the chapter text
>
> \defineheadalternative
>    [mine]
>    [renderingsetup=mine]
>
> \startsetups [mine]
>    \headsetupspacing
>    \startframedtext [offset=none, frame=off]
>      \headnumbercontent\\
>      \headtextcontent
>    \stopframedtext
> \stopsetups
>
> \setuphead
>    [section]
>    [alternative=mine]
>
> \starttext
>    \startsection [title=FooBar]
>    \stopsection
> \stoptext
>
>
> Marco
>
> ___________________________________________________________________________________
>
Hi Marco,
it works alsmost as I need, but I don't manage to get the text on grid. 
I tried linecorrection=on option at the framed text as well as 
\startlinecorrection.
I'm also wondering why the chapter number is above the first line, see 
screenshot.
Best regards
WolfgangZ
PS. I'm using MKIV

[-- Attachment #2: grid.png --]
[-- Type: image/png, Size: 10189 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: setuphead and newline
  2012-10-25 17:27   ` Wolfgang
@ 2012-10-25 17:35     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-10-25 17:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.10.2012 um 19:27 schrieb Wolfgang <wollez@gmx.net>:

> it works alsmost as I need, but I don't manage to get the text on grid. I tried linecorrection=on option at the framed text as well as \startlinecorrection.
> I'm also wondering why the chapter number is above the first line, see screenshot.

Make a minimal example which demonstrates the problem because otherwise it’s not possible to tell what needs to be changed.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2012-10-25 17:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 12:25 setuphead and newline WolfgangZ
2012-10-25 13:10 ` Marco Patzer
2012-10-25 17:27   ` Wolfgang
2012-10-25 17:35     ` Wolfgang Schuster

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).