* indented headings possible?
@ 2018-12-13 10:12 Taco Hoekwater
2018-12-13 16:08 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2018-12-13 10:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi again,
Is there a way to make section headings automatically honour the current
left- and rightskip? For example, like this:
\starttext
\showframe
\startnarrower[left]
\section{Section 1}
stuff
\stopnarrower
\stoptext
I know I could rig this up with
\dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par
but that is horrible code. Is there any way to get the correct effect
using \setuphead ?
Best wishes,
Taco
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: indented headings possible?
2018-12-13 10:12 indented headings possible? Taco Hoekwater
@ 2018-12-13 16:08 ` Wolfgang Schuster
2018-12-14 8:25 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2018-12-13 16:08 UTC (permalink / raw)
To: mailing list for ConTeXt users, Taco Hoekwater
Taco Hoekwater schrieb am 13.12.18 um 11:12:
> Hi again,
>
> Is there a way to make section headings automatically honour the current
> left- and rightskip? For example, like this:
>
> \starttext
> \showframe
> \startnarrower[left]
> \section{Section 1}
> stuff
> \stopnarrower
> \stoptext
>
> I know I could rig this up with
>
> \dontleavehmode\vbox{\advance\hsize-\leftskip\section{Section 1}}\par
>
> but that is horrible code. Is there any way to get the correct effect
> using \setuphead ?
\setuphead
[section]
[aligntitle=yes]
\showframe [text] [text]
\starttext
\startnarrower[left]
\startsection[title={Section 1}]
stuff
\stopsection
\stopnarrower
\stoptext
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: indented headings possible?
2018-12-13 16:08 ` Wolfgang Schuster
@ 2018-12-14 8:25 ` Taco Hoekwater
0 siblings, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2018-12-14 8:25 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
Hi Wolfgang,
Thanks!
> On 13 Dec 2018, at 17:08, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Taco Hoekwater schrieb am 13.12.18 um 11:12:
>> Hi again,
>> Is there a way to make section headings automatically honour the current
>> left- and rightskip? For example, like this:
>
> \setuphead
> [section]
> [aligntitle=yes]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-14 8:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-13 10:12 indented headings possible? Taco Hoekwater
2018-12-13 16:08 ` Wolfgang Schuster
2018-12-14 8:25 ` Taco Hoekwater
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).