From: Rik Kabel <context@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: Aligning subsection head with following paragraph in tagged pdf output
Date: Fri, 31 Mar 2017 21:01:28 -0400 [thread overview]
Message-ID: <852a8eb7-4579-bf11-e466-fbd646658d78@rik.users.panix.com> (raw)
In-Reply-To: <87zig1jbcr.fsf@equaltext.com>
On 2017-03-31 19:05, Todd DeVries wrote:
> Hello,
>
> I would like to align a subsection heading with the following
> paragraph. For example:
>
> Subsectiontext. The data presented in this section will ...
>
> What I get is:
>
> Subsection Text
>
> The data presented in this section will ...
>
> What recipe should be used with the \setupheads command to produce this
> output? I've tried several variations including the snippit below.
>
> \setuppapersize[letter][letter]
> \setuptagging[state=start]
> \setupheads[subsection][style=\bf, number=no, after={. }, alternative=text]
> \starttext
> \startsection[reference=sec:deep, title=Deep Thoughts
> \startparagraph
> Oh Hum, its too windy to play out side, so perhaps I'll write a while...
> \startsubsection[reference=first, title=First Subsection]
> \startparagraph
> \input knuth
> \stopparagraph
> \stopsubsection
> \stopsection
> \stoptext
First, add a closing ] to \startsubsection...
Then remove the \startparagraph following it, and the \stopparagraph
after knuth. alternative=text is working, but \startparagraph is
starting a new paragraph after the heading. \start\stopparagraph is not
happy with the text alternative.
You should also add a \stopparagraph after the Oh Hum line.
Then change \setupheads to \setuphead. \setupheads should have only
one []. That [] contains key/value option pairs that apply to all
heading levels. \setuphead[sectionlevel][] is used to provide key/value
option pairs for sectionlevel headings (and for lower-level heads for
inherited options).
--
Rik
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-04-01 1:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 23:05 Todd DeVries
2017-04-01 1:01 ` Rik Kabel [this message]
2017-04-01 4:10 ` Todd DeVries
2017-04-01 15:32 ` Rik Kabel
2017-04-01 18:20 ` Pablo Rodriguez
2017-04-01 19:58 ` Alan Braslau
2017-04-01 23:47 ` Todd DeVries
2017-04-02 20:15 ` Wolfgang Schuster
2017-04-02 23:09 ` Todd DeVries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=852a8eb7-4579-bf11-e466-fbd646658d78@rik.users.panix.com \
--to=context@rik.users.panix.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).