Re: [NTG-context] tex error in curent beta
Jan Tosovsky mailto:j.tosovsky@email.cz 15. Oktober 2015 um 22:33 Hi Wolfgang, thanks,
you are right, I've created this MWE (but not sure if it still makes sense).
\setupcombinedlist[chapter][ before=, distance=0.5cm, width=-0.5cm, margin=2cm, numbercommand={\simplealignedbox{\listparameter{width}}{flushright}}, pageconversionset=pagenumber, ] Create a command and apply it to the numbercommand key.
\define[1]\ChapterListNumbercommand {\simplealignedbox{\listparameter{width}}{flushright}{#1}} \setuplist [chapter] [ before=, distance=0.5cm, width=-0.5cm, margin=2cm, numbercommand=\ChapterListNumbercommand, pageconversionset=pagenumber, ] Wolfgang
On 2015-10-15 Wolfgang Schuster wrote:
Create a command and apply it to the numbercommand key.
\define[1]\ChapterListNumbercommand {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
\setuplist [chapter] [ before=, distance=0.5cm, width=-0.5cm, margin=2cm, numbercommand=\ChapterListNumbercommand, pageconversionset=pagenumber, ]
This compiles, thanks, but that number is not hanging on the right any more :-( This is my more complete MWE: \setuphead[chapter][ alternative=middle, before={\blank[force,10mm]}, after={\blank[1*line]}, style=\bfc, numberstyle={\kerncharacters[0.125]\bfa}, numbercommand=\groupedcommand{}{\blank[4mm]}, sectionstopper={.}, conversion=Romannumerals, ] \define[1]\ChapterListNumbercommand {\simplealignedbox{\listparameter{width}}{flushright}{#1}} \setupcombinedlist[chapter][ before=, distance=0.5cm, width=-0.5cm, margin=2cm, numbercommand=\ChapterListNumbercommand, pageconversionset=pagenumber, ] \starttext \startfrontmatter \title{TOC} \placecontent \chapter{Preface} \stopfrontmatter \startbodymatter \chapter{Chapter 1} \stopbodymatter \stoptext Desired output is attached. Jan
participants (2)
-
Jan Tosovsky
-
Wolfgang Schuster