From: "Felix " <fm117575@students.panola.edu>
To: ntg-context@ntg.nl
Subject: [NTG-context] How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get any result)
Date: Thu, 22 Aug 2024 18:54:35 -0000 [thread overview]
Message-ID: <172435287540.3284622.13504913980140373229@cgl.ntg.nl> (raw)
\setuppapersize
[letter]
[letter]
\setuplayout[
backspace=0.5in,
topspace=0.5in,
header=0in, % No headers
footer=0in, % Space for the footer
width=middle,
height=middle,
]
\definefontfeature [default] [default] [trep=yes]
\definefontfamily [TimesNewRoman] [rm] [Times New Roman]
\definetypeface [TimesNewRoman] [mm] [math] [stixtwo]
\setupbodyfont [TimesNewRoman,12pt]
\mainlanguage[en-us]
\setupindenting[yes,0.5in]
\setupheads[indentnext=yes] % To get indentation after section numbers, use this
\setuphead[part][
page=no,
placehead=yes,
numbercommand=\groupedcommand{}{.} % Add period after numbers
]
\setuphead[chapter][
page=no,
numbercommand=\groupedcommand{}{.} % Add period after numbers
]
\setuphead[section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][
numbercommand=\groupedcommand{}{.} % Add period after numbers
]
\setuphead[part, chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection, subject, subsubject, subsubsubject, subsubsubsubject, subsubsubsubsection][
before=,
after=,
style=sc, % Small caps style
align=middle, % Center the section titles
] % it seems that when I make this into setupheads and delete the first square braket set it will not result in what I want
\startsetups document:start
\centerline{\documentvariable{title}}
\centerline{\documentvariable{author}}
\centerline{\documentvariable{date}}
\blank[line]
\stopsetups
\startdocument[title=Title,author=Author,date=Date]
\startpart[title=one]
\stoppart
\startalignment[middle]
{\sc 1. one} % there is added space as shwon when trying to emulate what I want through regular text
\stopalignment
\startchapter[title=two]
\stopchapter
\startpart[title=three]
\stoppart
\startchapter[title=four]
\stopchapter
\startsubject[title=five]
\stopsubject
\stopdocument
with this code I'm trying to get it so that part, chapter, and the 5 section levels will have roman numerals. I read the docs but didn't get the result I wanted for roman numerals and can't seem to figure out how to get rid of the tiny space that is after the period in the section stuff. Would love an answer for this.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2024-08-22 18:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-22 18:54 Felix [this message]
2024-08-22 21:40 ` [NTG-context] " 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=172435287540.3284622.13504913980140373229@cgl.ntg.nl \
--to=fm117575@students.panola.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).