From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: help with confusion re chapter number
Date: Thu, 9 Jul 2020 22:25:08 -0400 (EDT) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2007092224390.323540@nqv-guvaxcnq> (raw)
In-Reply-To: <d9924286-e8e7-aeab-37f6-367008e1a061@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]
On Fri, 10 Jul 2020, jbf wrote:
> Hi, I wonder if someone could lead me out of my current confusion.
>
> In a test example with MWE as follows, I get exactly what I want:
>
> \setuplabeltext [en] [chapter=~]
> \define[2]\MyChapter
> {\framed[frame=off,width=broad,align=middle]{#1\blank[1cm]#2}}
> \setuphead [chapter] [command=\MyChapter]
> \chapter{Chapter title}
>
> which gives me a chapter number (without the word 'Chapter') and 1cm
> below it the chapter title, e.g.:
>
> 1
>
> My chapter title
>
> But when I transfer this to the actual tex file I am working with, I
> lose the chapter number. Admittedly, there is more complication to my
> setup in the 'real' example, and maybe that's where I've gone wrong, but
> why am I losing the chapter number?
>
> \define[2]\MyChapter
> {\framed[frame=off,width=broad,align=middle,number=yes]{#1\blank[1cm]#2}}
> \setuphead
> [chapter][header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm]},after={\blank[3cm]},command=\MyChapter]
What happens if you remove `numbercommand=...,`?
Aditya
[-- Attachment #2: Type: text/plain, Size: 493 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
___________________________________________________________________________________
prev parent reply other threads:[~2020-07-10 2:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-10 1:12 jbf
2020-07-10 2:25 ` Aditya Mahajan [this message]
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=nycvar.YAK.7.78.908.2007092224390.323540@nqv-guvaxcnq \
--to=adityam@umich.edu \
--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).