* uservariables in heads and lists
@ 2018-01-14 16:24 Henning Hraban Ramm
0 siblings, 0 replies; only message in thread
From: Henning Hraban Ramm @ 2018-01-14 16:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi, it’s been a while...
For a scientific magazine I need subtitles in the margin and authors as well as subtitles in my ToC. I didn’t yet try the latter, since I got stuck with the first.
Here’s my complete, not really working example:
"""
\usemodule[visual]
\setuplayout[
backspace=21mm,
topspace=12mm,
width=117mm,
height=270mm,
header=15mm,
headerdistance=2mm,
footer=3mm,
footerdistance=4mm,
rightmargindistance=5mm,
rightmargin=55mm,
leftmargin=0mm,
grid=yes,
location=doublesided
]
\define[2]\ChapterCmd{%
{\bfa #2}
{\inouter{\structureuservariable{subtitle}}}
}
\setuphead[chapter][
page=right,
command=\ChapterCmd,
]
\starttext
%\showlayout
\starttitle[title={Content}][subtitle={}]
%\placelist[chapter][criterium=all]
\stoptitle
\startchapter
[title=My Title,][% is this necessary?
subtitle=My Subtitle,
author=Me and I]
\fakewords{100}{200}
\stopchapter
\stoptext
"""
Problems:
(1) The subtitle is not in the margin as defined by \setuplayout, but beside the chapter title.
(2) \starttitle throws
...xmf/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:823: table index is nil
stack traceback:
...xmf/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:823: in function 'setprop'
...xmf/tex/texmf-context/tex/context/base/mkiv/typo-mar.lua:207: in function <...xmf/tex/texmf-context/tex/context/base/mkiv/typo-mar.lua:204>
What does that mean?
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-14 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-14 16:24 uservariables in heads and lists Henning Hraban Ramm
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).