From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tex error in curent beta
Date: Mon, 26 Oct 2015 11:34:41 +0100 [thread overview]
Message-ID: <562E01C1.7070901@gmail.com> (raw)
In-Reply-To: <562bde34.0852b40a.75e99.4ee8SMTPIN_ADDED_BROKEN@mx.google.com>
[-- Attachment #1.1: Type: text/plain, Size: 2880 bytes --]
> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 24. Oktober 2015 um 21:34
>
> More complete example for experiments:
> (I am not experienced in ConTeXt, most of it was suggested here in the
> forum, there are most likely other ways how to accomplish the desired
> output - see attachments).
>
>
> \mainlanguage[cs]
>
> \setuppapersize[B5]
>
> \setuplayout[header=0cm, footer=1cm]
> \setuppagenumbering[alternative=doublesided, location={footer, right},
> style=italic]
>
> % page numbering
> \definestructureconversionset[frontpart:pagenumber][][romannumerals]
> \definestructureconversionset[bodypart:pagenumber] [][numbers]
> \definestructureconversionset[backpart:pagenumber] [][numbers]
>
> \startsectionblockenvironment[frontpart]
> \setupuserpagenumber[numberconversion=romannumerals]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[bodypart]
> \setupuserpagenumber[numberconversion=numbers]
> \stopsectionblockenvironment
>
> \startsectionblockenvironment[backpart]
> \setupuserpagenumber[numberconversion=numbers]
> \stopsectionblockenvironment
>
> % fonts
> \definefontfamily[palatino][rm][Palatino Linotype][features={default,
> quality}]
> \definefontfeature[f:superscript][sups=yes]
> \setupbodyfont[palatino, 10pt]
>
> \setuplabeltext[cs][chapter=KAPITOLA ]
>
> \setupindenting[medium, yes]
>
> \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,
> ]
>
> % this alignment has no effect in 0.81
> \define[1]\ChapterListNumbercommand
> {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
>
> \setupcombinedlist[content][list=chapter, alternative=c]
> \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{Introduction}
> \chapter{Workflow}
> \chapter{Input}
> \chapter{Output}
> \stopbodymatter
> \startbackmatter
> \chapter{Index}
> \stopbackmatter
> \stoptext
Try to make shorter examples by removing layout and font changes when
when they are not necessary.
\define[1]\ChapterListNumbercommand
{\offset[x=-2cm,width=0pt]{\simplealignedbox{1.5cm}{flushright}{#1}}}
\setuplist
[chapter]
[distance=0cm,
width=0cm,
margin=2cm,
numbercommand=\ChapterListNumbercommand]
\starttext
\startfrontmatter
\completecontent
\chapter{Preface}
\stopfrontmatter
\startbodymatter
\chapter{Introduction}
\chapter{Workflow}
\chapter{Input}
\chapter{Output}
\stopbodymatter
\startbackmatter
\chapter{Index}
\stopbackmatter
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4243 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-10-26 10:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <561feba6.48bab40a.8b398.ffffa097SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-15 19:49 ` Wolfgang Schuster
2015-10-15 20:33 ` Jan Tosovsky
[not found] ` <56200e5c.ea6ab40a.ed6b6.ffffa027SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-15 20:57 ` Wolfgang Schuster
2015-10-16 17:31 ` Jan Tosovsky
[not found] ` <010801d10838$6f8234d0$4e869e70$@tosovsky@email.cz>
2015-10-22 19:25 ` Jan Tosovsky
[not found] ` <562938f8.8dc6b40a.df74b.ffff8d6cSMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-23 16:49 ` Wolfgang Schuster
[not found] ` <01dd01d10cff$6cfd04d0$46f70e70$@tosovsky@email.cz>
2015-10-24 19:34 ` Jan Tosovsky
[not found] ` <562bde34.0852b40a.75e99.4ee8SMTPIN_ADDED_BROKEN@mx.google.com>
2015-10-26 10:34 ` Wolfgang Schuster [this message]
2015-10-26 18:55 ` Jan Tosovsky
2015-10-15 18:05 Jan Tosovsky
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=562E01C1.7070901@gmail.com \
--to=schuster.wolfgang@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).