From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: chapter setup with subtitle in margin
Date: Thu, 25 Jan 2018 08:10:00 +0100 [thread overview]
Message-ID: <CAHy-LL-Azh5hcU9GXu5fqBjZvht-s8BwXw0mE6XGy4uxo88Htg@mail.gmail.com> (raw)
In-Reply-To: <C9EA58A2-37FB-40F4-A748-18D8D08210F6@fiee.net>
[-- Attachment #1.1: Type: text/plain, Size: 2423 bytes --]
On Wed, Jan 24, 2018 at 11:00 PM, Henning Hraban Ramm <texml@fiee.net>
wrote:
> Am 2018-01-24 um 19:25 schrieb Aditya Mahajan <adityam@umich.edu>:
>
> > On Wed, 24 Jan 2018, Henning Hraban Ramm wrote:
> >
> >> Am 2018-01-23 um 22:31 schrieb Henning Hraban Ramm <texml@fiee.net>:
> >>
> >>> I have this nice/complicated chapter setup (see attachments):
> >>> Three problems I cannot get rid of:
> >>>
> >>> - There’s always an indent in front of the title (red box); it should
> not.
> >>> - The subtitle should start on the same line as the main title.
> >>> - The subtitle should have an appropriate line spacing.
> >>
> >> I could solve the subtitle placement with layers.
> >>
> >> But the chapter title still has this indent. :-(
> >
> > Untested, but you have two spurious spaces in your code
> >
> > \define[2]\ChapterCmd{%
> > \inouter{\framed[frame=off,align=flushleft]{%
> > %\startlinecorrection
> > \switchtobodyfont[rm,12pt] % <-- Here. Remove space before %
> > \structureuservariable{subtitle}}%
> > %\stoplinecorrection
> > }% << HERE: % was missing
> > \framed[width=\textwidth,frame=off,align=flushleft]{\ChapterTitleFont
> #2}
> > }
>
> Thank you, but those existed only in an old version.
> Current is:
>
> \define[2]\ChapterCmd{%
> \framed[width=\textwidth,frame=off,align=flushleft,style=\ChapterTitleFont]{#2}%
> without framed it’s a hbox?
> \setlayerframed[rightmargin]%
> [frame=off,width=\outermarginwidth,y=0mm,setups=
> Subtitle,align=flushleft]%
> {\structureuservariable{subtitle}}%
> }
>
> And the indent is still there.
>
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>
I think you can get rid of that horizontal space by adding "offset=overlay"
to the framed environment used in your \ChapterCmd.
/Mikael
[-- Attachment #1.2: Type: text/html, Size: 3871 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2018-01-25 7:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-23 21:31 Henning Hraban Ramm
2018-01-24 18:20 ` Henning Hraban Ramm
2018-01-24 18:25 ` Aditya Mahajan
2018-01-24 22:00 ` Henning Hraban Ramm
2018-01-25 7:10 ` Mikael P. Sundqvist [this message]
2018-01-25 10:44 ` Henning Hraban Ramm
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=CAHy-LL-Azh5hcU9GXu5fqBjZvht-s8BwXw0mE6XGy4uxo88Htg@mail.gmail.com \
--to=mickep@gmail.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).