[NTG-context] How to shift unnumbered ToC entry?

2020-09-23 Thread Lukas/ConTeXt
Hello, how do I shift unnumbered ToC entry (here: \subsubsection)? My attempt: \setuphead[subsubsection][number=no] \setuplist[subsubsection][distance=20mm,width=20mm] \starttext \placecontent \page \section{S} \subsection{Ss} \subsubsection{Sss} \stoptext I'm getting

Re: [NTG-context] Best way to store text for later use

2020-09-19 Thread Denis Maier
{abstract} \stopabstract \stopsetups \setuphead [chapter][ alternative=middle, page=yes, indentnext=no, style=\tfa\setupinterlinespace, after={\directsetup{placeauthors}\directsetup{abstract}}, footer=chapterfooter, ] How could I fetch the xml node from here so I

Re: [NTG-context] Best way to store text for later use

2020-09-19 Thread Hans Hagen
\setuphead [chapter][     alternative=middle,     page=yes,     indentnext=no,     style=\tfa\setupinterlinespace,     after={\directsetup{placeauthors}\directsetup{abstract}},     footer=chapterfooter,     ] How could I fetch the xml node from here so I don't need a variable, buffer or the like

Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Denis Maier
{abstract}     \stopabstract \stopsetups \setuphead [chapter][     alternative=middle,     page=yes,     indentnext=no,     style=\tfa\setupinterlinespace,     after={\directsetup{placeauthors}\directsetup{abstract}},     footer=chapterfooter,     ] How could I fetch the xml node from here so I

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Wolfgang Schuster
         \startfootnotetitle[title={Notas}]              \placefootnotes          \stopfootnotetitle      \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setupfootnotedefinition[style={\switchtobodyfont[12pt]}] \setuphead[chapter][aftersection=\setups{chapter:after

Re: [NTG-context] Footnote font size equal to main text font size

2020-09-16 Thread Henning Hraban Ramm
se\rawcountervalue[footnote]\relax > \else > \startfootnotetitle[title={Notas}] > \placefootnotes > \stopfootnotetitle > \fi > \stopsetups > > \setupnotes[location=none] > \setupnotation[way=bychapter] > \setupfootnotedefinition

[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread Jairo A. del Rio
}] \placefootnotes \stopfootnotetitle \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setupfootnotedefinition[style={\switchtobodyfont[12pt]}] \setuphead[chapter][aftersection=\setups{chapter:after}] \starttext \startchapter[title={Chapter One}] Here

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-09 Thread jbf
not produce a numbered item - however, it is producing the label 'Chapter' which I don't want for these item. You can see below how I tried to avoid that, but it failed. My MWE addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword] \setuplist [foreword

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
\chapter, since it does not produce a numbered item - however, it is producing the label 'Chapter' which I don't want for these item. You can see below how I tried to avoid that, but it failed. My MWE addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread Wolfgang Schuster
to avoid that, but it failed. My MWE addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword] \setuplist [foreword]  [label=foreword,  alternative=command,  command=\ChapterListCommand]% definition not included here. It was given in an earlier response

Re: [NTG-context] styling individual parts of ToC entry

2020-09-09 Thread jbf
addition to what Wolfgang provided is: \definehead [foreword] [chapter] \setuphead [foreword] \setuplist [foreword]  [label=foreword,  alternative=command,  command=\ChapterListCommand]% definition not included here. It was given in an earlier response from Wolfgang

[NTG-context] author in ToC and other design complications

2020-09-03 Thread jbf
this MWE): %-- \setuphead [subject] [incrementnumber=list] \setuphead [title] [incrementnumber=list] \setupcombinedlist   [content] [list={chapter,title,section,subsection}]\switchtobodyfont[10.5pt] \setuplist[chapter][style=normal,alternative=b, before=] And then I

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
, in my opinion it would be better to define a command which takes care of all the formatting you are wishing, and then use it in the chapter header. Something like \define[2]\MyChapterCommand{\switchtobodyfont[mychapterfont,12pt] {\bf\ss #1.~#2}} \setuphead[chapter][command=\MyChapterCommand

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
mmary". > Fabrice > [image: contents.png] > > > \setuphead > [title] > [command=, >numbercommand=] > > Wolfgang > > > ___ > If your question is of interest to others as w

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 24.08.2020 um 15:32: Hi Wolfgang, Thank you for your reply. Probably my fault but now I get the number 0 on the word "Summary". Fabrice contents.png \setuphead   [title]   [command=,    numbercommand=]

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Fabrice Couvreur
ank#1\blank#2} > > When I compile my project, I have the label "Chapitre" above the word > "Sommaire" in the table of contents : how to delete it ? > > > 1. Don't apply the command to \title > > \setuphead[title][command=] > > > 2. Make the command

Re: [NTG-context] Label to delete in the table of contents

2020-08-24 Thread Wolfgang Schuster
compile my project, I have the label "Chapitre" above the word "Sommaire" in the table of contents : how to delete it ? 1. Don't apply the command to \title \setuphead[title][command=] 2. Make the command local to bodypart of your document, this works only when you use

Re: [NTG-context] Chapter heading with rules

2020-08-21 Thread Otared Kavian
]\myChapterCommand{% \midaligned{{\filler[ChapterLeftRule]}#1.~#2{\filler[ChapterRightRule]}} } \setuphead[chapter] [textstyle={\setcharactercasing[WORD]\ssa}, command=\myChapterCommand] \starttext \startchapter[title={My Chapter Title}] \input knuth.tex \stopchapter

Re: [NTG-context] Chapter numbering after \part

2020-08-20 Thread Wolfgang Schuster
=, but that doesn't work. Then I tried a makeup, because I thought that would create a 'Part' page independent of chapter numbers - but that doesn't work either:-).  Am sure it is achievable, however \setuphead   [chapter]   [sectionsegmments=chapter] Wolfgang

[NTG-context] Chapter heading with rules

2020-08-20 Thread jbf
Chapter title (e.g. 1 My Chapter Title), since the proper numbered version still appears in the TOC, but my preference would be to include a command in the \setuphead, if possible (so long as it still allows the numbered chapter to appear in the TOC of course). Possible? \definefiller   [ChapterRule

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-20 Thread Mike Cooper
ng from the > >> last command on the page counts. > > > > That makes sense. I wasn't really thinking of my sections as "chapters" > > per se. > And I was forcing sections (each >5 pages) to start on new (odd) pages. But > switching to chapters is fine

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Adrian
s > >    6. Conversion > >    7. Fundamental theorems on well-formed formulas and on the normal form > > I tried to the following for the chapters: > > \defineconversion[church][Chapter \Romannumerals.\quad] > > \setuphead[chapter][conversion=church] > > Whic

Re: [NTG-context] TOC chapter and section numbering

2020-08-19 Thread Wolfgang Schuster
the normal form I tried to the following for the chapters: \defineconversion[church][Chapter \Romannumerals.\quad] \setuphead[chapter][conversion=church] Which appeared to generate the prefix correctly but it overlapped the title. \setuplabeltext [en] [chapter=Chapter ] \defineresetset

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread jbf
at which the chapter number appears: below is an example in which one uses \raise and \hbox. \setuppagenumbering[state=start,location=footer] \setuphead[chapter] [ % numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command, command

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
le#1#2{\framed[frame=off,width=fit,align=flushleft] {#1\blank#2}} \setuphead[chapter] [style=\bfd, align={flushleft,broad}, command=\Title, textcommand=\MyNumber, numbercommand=\groupedcommand{}{\MyNumber}, number=no] \starttex

[NTG-context] TOC chapter and section numbering

2020-08-18 Thread Adrian
Hello, I'm attempting to typeset a short book using ConTeXt (current version: 2020.08.09 22:03). EXAMPLE: \setuplist[content][alternative=c] \setuphead[title][alternative=middle,style=cap] \setuphead[chapter][number=no] \setuphead[section][sectionsegments=section] \setuplist[section][width

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread Otared Kavian
] \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command, command=\MemoirChapter, ] \define[2]\MemoirChapter {\framed[frame=off,width=broad,align=middle] {\startoverlay

Re: [NTG-context] TOC chapter and section numbering

2020-08-18 Thread Taco Hoekwater
part, chapter, but not section \setupheads[sectionresetset=default] \setuphead[section][sectionsegments=section:*] Mostly copied from the wiki page about titles: https://wiki.contextgarden.net/Titles Best wishes, Taco _

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
to \defineoverlay[number] and then add text on top \framed (but without the frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
the frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter] [ numberstyle={\switchtobodyfont[48pt]}, numbercolor=gray, alternative=command

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread Aditya Mahajan
rs of just where to start! I assume I would have to > \defineoverlay[number] and then add text on top \framed (but without the > frame borders). Am I at least correct about this? You don't need metafun for something this simple. Here is a crude implementation: \setuphead[chapter]

Re: [NTG-context] headers again

2020-08-14 Thread Hans Hagen
=no, The correct way here is to reset the marking entries at the begin of a new chapter or title with \setuphead [chapter,title] [marking=reset] Agreed. This is a better solution. Any idea why this is not the default? because this is all kind of tricky wrt when to reset ... chapters can

Re: [NTG-context] headers again

2020-08-13 Thread jbf
. (this reply is in jest ) incrementnumber=no, The correct way here is to reset the marking entries at the begin of a new chapter or title with \setuphead [chapter,title] [marking=reset] Agreed. This is a better solution. Any idea why this is not the default? Aditya

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
; \startchapter[title={This is a title}, number=no] > > \input ward > >\page > >\input knuth > > \stopchapter > > \stoptext > > Don't do this, unnumbered chapter still increase the counter and > when you add another chapter afterwards you wonder why the numb

Re: [NTG-context] headers again

2020-08-13 Thread Wolfgang Schuster
\stoptext Don't do this, unnumbered chapter still increase the counter and when you add another chapter afterwards you wonder why the number is wrong. The correct way here is to reset the marking entries at the begin of a new chapter or title with \setuphead [chapter,title] [marking=reset

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Wolfgang Schuster
no idea how to allow chapters to start at arbitrary pages when alternative=doublesided. \setuphead[chapter][page=yes] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] headers again

2020-08-12 Thread jbf
Rightly so, and as I was producing such an MWE (stripping away a lot of other 'clutter') I found what was causing the problem. At one stage, trying to solve the problem, I had created a MyChapter definition and had left a command referencing it in the following: \setuphead   [chapter][header

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-12 Thread Nicola
es to be aligned: >>>> >>>> Preface >>>> I XYZ >>>>... >>>> VIII XYZ >>>>... >>>> >>>> I have tried to do my homework by playing with \setuphead, but I am >>>>

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
(this may help others). Just one more thing: [...] I'd prefer all the titles to be aligned: Preface I XYZ ... VIII XYZ ... I have tried to do my homework by playing with \setuphead, but I am afraid I need your help on this. Sorry, but too tired to type a sample. How

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
te the wiki (this may help others). > >> Just one more thing: >> [...] >> I'd prefer all the titles to be aligned: >> >> Preface >>I XYZ >> ... >> VIII XYZ >> ... >> >> I have tried to do my homework by playing w

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
gt; I'd prefer all the titles to be aligned: > > Preface >I XYZ > ... > VIII XYZ > ... > > I have tried to do my homework by playing with \setuphead, but I am > afraid I need your help on this. Sorry, but too tired to type a sample. How

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
es to be aligned: Preface I XYZ ... VIII XYZ ... I have tried to do my homework by playing with \setuphead, but I am afraid I need your help on this. Nicola ___ If your question is of interes

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
all blank pages. Break pages with \page[yes, blank]. Not the best solution for empty pages before a new chapter. \setuphead [chapter] [page={yes,header,footer,right}] 4. Suppress headers in the front matter. This would be my educated guess: \startsectionblockenvironment

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
pters is fine and takes care of some other stuff I was forcing. You don't have to use \chapter as first level section which starts on a new page, you can do the same with \section when you use \setuphead [section] [page={yes,odd}] One thing I *CANNOT* figure out: I'

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper
n > > Mike Cooper schrieb am 11.08.2020 um 19:01: > > > > > >> > >> Ehm... Why don’t you just use \setuphead[section][page=right] ? > >> > >> Hraban > > > > > > Haha! Well... because I never found that approach in my searching. &

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper
ent into the environment file messed up my formerly clean TOC page. :-) So, I've currently got: \startsectionblockenvironment[frontpart] \setupheader[state=none] \setupfooter[state=none] \stopsectionblockenvironment Do I keep this and also include your code above? Or

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
(after TOC)! Totally stuck with that one... Ehm... Why don’t you just use \setuphead[section][page=right] ? Hraban Haha! Well... because I never found that approach in my searching. But now, I'm not using it because it doesn't work for me. I was in the middle of guessing I needed to set

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Mike Cooper
ions, EXCEPT for the first chapter (after TOC)! Totally stuck with that > one... > > Ehm... Why don’t you just use \setuphead[section][page=right] ? > > Hraban Haha! Well... because I never found that approach in my searching. But now, I'm not using it because it doesn't work

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Wolfgang Schuster
pages. To have a different text on a chapter page you can use the \definetext command to set them (third first argument is the name of the setup and the second argument the location). These setups than can applied to the chapter with the header and footer key in \setuphead. begin example

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
ocument uses environments, I would like most setups to > be in the environment, if possible. E.g., is it possible to replace > > \setuphead[chapter][after={}] > > (see below) with an environment setup that applies only to the ToC? Either you create and set up a \chapter command fo

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
\setuphead[chapter][after={}] (see below) with an environment setup that applies only to the ToC? Nicola %%% \definepapersize[lsda][width=128.4mm,height=198.3mm] \setuppapersize[lsda] \setuplayout[ backspace=22.9mm, width=90.3mm

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-11 Thread Henning Hraban Ramm
r (after TOC)! Totally > stuck with that one... Ehm... Why don’t you just use \setuphead[section][page=right] ? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-10 Thread Mike Cooper
With \setupheadertexts and \setupfootertexts you set first the text > which should appear on regular pages. > > To have a different text on a chapter page you can use the \definetext > command to set them (third first argument is the name of the setup and > the second argument t

Re: [NTG-context] About the numbering of theorems

2020-08-08 Thread Fabrice Couvreur
t; subsection. I would like to know : > > > > Theorem 1.1 > > Theorem 1.2 > > > > Theorem 2.3 > > Theorem 2.4 > > > > Thank you > > Fabrice > > Use a conversion set to set the number conversion for you sections and > remove the conver

[NTG-context] Wrong counting of lines and paragraphs

2020-08-07 Thread Marcus Vinicius Mesquita
Dear list, In the MWE below you don't get lines and paragraphs numbered correctly: \setuplinenumbering[location=inner,align=right,style=\tfxx,distance=10pt,color=red] \setupparagraphnumbering[state=start,style=bold,distance=0pt,color=darkblue] \setuphead[title][alternative=text,style=bold

Re: [NTG-context] About the numbering of theorems

2020-08-07 Thread Wolfgang Schuster
sections and remove the conversion setting (\setuphead[...][conversion=...]) from the setups. \defineconversionset [fabrice] [n,n,R,n] [n] \setupheads [sectionconversionset=fabrice] Wolfgang ___ If your question

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
,align=flushleft]{#1\blank#2}} \startbuffer[mybuffer] \starttheorem \input ward \stoptheorem \stopbuffer \setuphead [chapter] [style=\bfd, align={flushleft,broad}, command=\Title] \setuphead [section] [style=\bfc, distance=\zeropoint, sectionsegments=section, conversion

Re: [NTG-context] custom header/footer for 1st/other pages of section

2020-08-06 Thread Wolfgang Schuster
. To have a different text on a chapter page you can use the \definetext command to set them (third first argument is the name of the setup and the second argument the location). These setups than can applied to the chapter with the header and footer key in \setuphead. begin example

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-05 Thread Willi Egger
t; > \startsetups [section:end] > \ifodd\namedheadnumber{section} > \directsetup{section:odd} > \else > \directsetup{section:even} > \fi > \stopsetups > > \setuphead > [section] > [aftersection=\directsetup{section:end}] > > \starttext &g

Re: [NTG-context] Placing a section ending depending on odd/even sectionnumber

2020-08-04 Thread Wolfgang Schuster
\bold {End of odd numbered section} \stopsetups \startsetups [section:even] \vfill \bold {End of even numbered section} \stopsetups \startsetups [section:end] \ifodd\namedheadnumber{section} \directsetup{section:odd} \else \directsetup{section:even} \fi \stopsetups \setuphead

Re: [NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
w it crashes: > > > > > \setuphead[chapter][alternative=middle,textstyle=\cap,numbercommand=\WORDS] > > > \setuphead[section][sectionsegments=section,align=middle,textstyle={\bf},conversion=R,numbercommand={\bf}] > > > \setuphead[subsection][numbercommand=,textstyle={\it},sectionseg

Re: [NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 04.08.2020 um 06:07: The following worked some days ago. Now it crashes: \setuphead[chapter][alternative=middle,textstyle=\cap,numbercommand=\WORDS] \setuphead[section][sectionsegments=section,align=middle,textstyle={\bf},conversion=R,numbercommand={\bf}] \setuphead

[NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: lun., 3 de ago. de 2020 a la(s) 23:05 Subject: Re: [NTG-context] \emph not working in LMTX (bug?) To: Wolfgang Schuster The following worked some days ago. Now it crashes: \setuphead[chapter][alternative=middle,textstyle=\cap

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Willi Egger
;> >> \def\stopmysection >>{\checkpage[willi][lines=4]} >> >> The before=/after= pair is used when a page break is forced by the test, >> inbetween= is used if there is no forced break. >> >> (\testpage is a wrapper around \checkpage: >> ht

Re: [NTG-context] ntg-context Digest, Vol 193, Issue 65

2020-07-30 Thread Jan Hansen
graphical >>> element. Now as usual this graphic might be moved to a new page which is of >>> course unwanted. >>> >>> At this moment I have: >>> >>> \startsetups endsection >>> \vfil >>> >>> \p

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Wolfgang Schuster
: https://source.contextgarden.net/page-brk.mkiv?search=testpage#l564 ) No need for a new \stop command. \setuphead   [section]   [aftersection={\checkpage[willi][lines=4]}] Wolfgang ___ If your question is of interest

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread James Withers
myvar}{date}\hfill\getvariable{myvar}{ref}}} > > \define\mylist{\getvariable{myvar}{list}---{\bf > \getvariable{myvar}{date}}} > > In this case you have to use \defineexpandable to create your commands > and enable expansion for sections. > > \defineexpandable\mytitle{...} >

Re: [NTG-context] Using variables and macros for styling of section title and line in table of contents

2020-07-22 Thread Wolfgang Schuster
}}} \define\mylist{\getvariable{myvar}{list}---{\bf \getvariable{myvar}{date}}} In this case you have to use \defineexpandable to create your commands and enable expansion for sections. \defineexpandable\mytitle{...} \defineexpandable\mylist {...} \setuphead[section][expansion=yes] Wolfgang

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
for ConTeXt's community to use it as a "new" or an "updated" french interface, I may try to produce a 40~50 pages documentation for the basics commands (during 2020 S2): • \starttext • \startchapter, \startsection, \starttitle, \startsubject, \setuphead, \completecont

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Lukas/ConTeXt
Hello Peter, playing with "grid" option within \setuplayout and \setuphead might help - see: \setuplayout[grid=no] \setuphead[section][grid=no] \starttext \startsection[title=Space is ok here] \input tufte \stopsection \blank \startcolumns[n=2] \startsection

Re: [NTG-context] white-space after section-head in columns

2020-07-15 Thread Wolfgang Schuster
is ok here] \input tufte \stopsection \startcolumns[n=2] \startsection[title=Too much white-space here] \input tufte \stopsection \setuphead[section][after=\vskip-2ex] \startsection[title=Space is ok here with workaround] \input tufte \stopsection \stopcolumns \stoptext --8<-

[NTG-context] white-space after section-head in columns

2020-07-15 Thread Peter Münster
olumns[n=2] \startsection[title=Too much white-space here] \input tufte \stopsection \setuphead[section][after=\vskip-2ex] \startsection[title=Space is ok here with workaround] \input tufte \stopsection \stopcolumns \stoptext --8<---cut here---end---&

Re: [NTG-context] Chapter numbering that does not follow a regular pattern

2020-07-13 Thread Julian Fox
ou need the unnumbered chapters in your ToC, you must add them like > \setupcombinedlist[content][list={chapter,title}] > > You can setup most options for both using \setuphead[chapter,title][...] > > HTH > > Hraban > > _

Re: [NTG-context] Chapter numbering that does not follow a regular pattern

2020-07-13 Thread Henning Hraban Ramm
[list={chapter,title}] You can setup most options for both using \setuphead[chapter,title][...] HTH Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@n

Re: [NTG-context] About alternative=middle in section heads

2020-07-12 Thread Jairo A. del Rio
ction title whe alternative=middle is set. How to disable > > this behavior so one can have a section label and number next to a > > centered section title? Thank you in advance. > > You're using the wrong option. > > \noheaderandfooterlines > > \starttext > > \st

Re: [NTG-context] About alternative=middle in section heads

2020-07-12 Thread Wolfgang Schuster
in advance. You're using the wrong option. \noheaderandfooterlines \starttext \start \setuphead[section][alternative=middle] \section{\mono{alternative=middle}} \stop \start \setuphead[section][align=middle] \section{\mono{align=middle}} \stop \stoptext Wolfgang

Re: [NTG-context] help with confusion re chapter number

2020-07-09 Thread Aditya Mahajan
}} \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

[NTG-context] help with confusion re chapter number

2020-07-09 Thread jbf
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

[NTG-context] re vertical space between Chapter number and title

2020-07-09 Thread jbf
I have found my own answer to the question I asked earlier: \setuppapersize[A4] \setuplabeltext [en] [chapter=~] \define[2]\MyChapter   {\framed[frame=off,width=broad,align=middle]{#1\blank[2cm]#2}} \setuphead [chapter] [command=\MyChapter] \chapter{Chapter title} It was simply a matter

[NTG-context] more space between Chapter number and title

2020-07-09 Thread jbf
Hi, I am using \setuppapersize[A4] \setuplabeltext [en] [chapter=~] \define[2]\MyChapter   {\framed[frame=off,width=broad,align=middle]{#1\\#2}} \setuphead [chapter] [command=\MyChapter] \chapter{Chapter title} to successfully achieve the following result:   1

[NTG-context] Vertical space between label and title

2020-07-07 Thread Fabrice Couvreur
Hello, I want a vertical space between the label and the chapter title: is this the right way to proceed ? Thank you. Fabrice \setuplabeltext[chapter=Chapitre~] \unexpanded\def\Title#1#2{\framed[frame=off,width=fit,align=flushleft]{#1\blank#2}} \setuphead [chapter] [style=\bfc, command

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
\setuphead[chapter][before={\blank[4*big]}] \starttext \startchapter[title={No space above this chapter}] chapter text etc \stopchapter \setuphead[chapter][before={\blank[4*big,force]}] \startchapter[title={Chapter with spacing but out of line with grid}] chapter text etc \stopchapter \setuphead

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread Wolfgang Schuster
the \blank command. I'm curious where the use of \mbox is documented. Is this the right way to do it or is there a more elegant way that I am missing? Many thanks James \setuphead[chapter][before={\blank[4*big]}] You have to add the "force" keyword to \blank because T

[NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
to do it or is there a more elegant way that I am missing? Many thanks James \setuphead[chapter][before={\blank[4*big]}] \starttext \startchapter[title={No space above this chapter}] chapter text etc \stopchapter \setuphead[chapter][before={\mbox{}\blank[4*big]}] \startchapter[title={Chapter

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
it should be placed on the second page. This sample shows thie problem in a simpler way: \definelayer[whatever] [x=3em, y=3em] \setupbackgrounds[page][background=whatever] \setuphead [section] [before={\testpage[2]\blank[2*big]}] \starttext \dorecurse{18}{\section{Section

[NTG-context] Bug in lmtx or wrong setup?

2020-06-09 Thread Jan U. Hasecke
Hi all, I encountered a very strange problem. I want to have section headlines expanding the whole textarea, but the following copy text of the section shall be typeset in columns. I have this setup and it works fine. \setuphead [section] [ insidesection=\startcolumns, aftersection

Re: [NTG-context] chapter numbers

2020-06-08 Thread jbf
gt; wrote: I am attempting to get the word 'Chapter' to appear in the Chapter title, followed by its number, and I attempted to do it simply with: \setupheadtext[chapter=Chapter] \setuphead    [chapter]    [header=empty] What I get is simply the number, e.g. 1 My first c

Re: [NTG-context] chapter numbers

2020-06-08 Thread Duncan Hothersall
ter' to appear in the Chapter > title, followed by its number, and I attempted to do it simply with: > > \setupheadtext[chapter=Chapter] > \setuphead >[chapter] >[header=empty] > > What I get is simply the number, e.g. 1 My first chapter, 2 My second > chapter etc. \

[NTG-context] chapter numbers

2020-06-07 Thread jbf
I am attempting to get the word 'Chapter' to appear in the Chapter title, followed by its number, and I attempted to do it simply with: \setupheadtext[chapter=Chapter] \setuphead   [chapter]   [header=empty] What I get is simply the number, e.g. 1 My first chapter, 2 My second chapter etc

Re: [NTG-context] Two issues with respect to sections in ConTeXt

2020-06-06 Thread Wolfgang Schuster
with this key to the section number, this means each chapter will now have "Chapter " as prefix for the number which changes all documents. % \setuphead % [section] % [bodypartlabel=] % default: bodypartlabel=section \starttext \section{A section without label} \setuplabeltext [en] [sectio

Re: [NTG-context] Two issues with respect to sections in ConTeXt

2020-06-05 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 05.06.2020 um 05:28: First: [...] Second: The TeX command \S (section mark) seems to be insensitive to font size commands. I've tried with \setuphead[section][sectionstarter=\S] And the sign is smaller than the surrounding letters. I thought it was a matter

[NTG-context] Two issues with respect to sections in ConTeXt

2020-06-04 Thread Jairo A. del Rio
manually writing a \setuplabeltext for every language, so he suggested that I move my question here and there we are. Second: The TeX command \S (section mark) seems to be insensitive to font size commands. I've tried with \setuphead[section][sectionstarter=\S] And the sign is smaller than

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
jbf schrieb am 03.06.2020 um 01:21: Thanks Wolfgang. Clearly that fixes the problem. I also came up with another solution which avoids the need to define a MyChapterCommand, by first setting up the normal chapter as: \setuphead   [chapter] [header=empty,alternative=middle,style=bold

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
Thanks Wolfgang. Clearly that fixes the problem. I also came up with another solution which avoids the need to define a MyChapterCommand, by first setting up the normal chapter as: \setuphead   [chapter] [header=empty,alternative=middle,style=bold,numbercommand=\groupedcommand{}{\blank[2cm

Re: [NTG-context] reduced space below chapter title

2020-06-02 Thread Wolfgang Schuster
\MyChapterCommand#1#2% {\vbox to 4cm\bgroup {#1\hskip.75em #2} \vss \egroup} \setuphead[chapter][header=nomarking, command=\MyChapterCommand] \starttext \chapter{test} \input tufte \stoptext and presumed that I could adjust that to something like 1cm instead of 4cm. The problem

[NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
{#1\hskip.75em #2} \vss \egroup} \setuphead[chapter][header=nomarking, command=\MyChapterCommand] \starttext \chapter{test} \input tufte \stoptext and presumed that I could adjust that to something like 1cm instead of 4cm. The problem is that when I try to process the original

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
} \setupalign[width,hz,hanging,hyphenated]% reset alignment \stopsetups \setuphead[chapter][ page=left, number=no, command=\gobbletwoarguments, before=, after={\directsetup{bigchapter}}, style={\ChapterFont}, ] This is the result: https://www.dreiviertelhaus.de/editionka/lauf-los-buch

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
ething >    {\datasetvariable{chapter}{\ChapterCounter}{image}} >    {\startlayout[page] >     \centerbox{\externalfigure > [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]} >     \stoplayout}} > > \stopsetups > > \setuphead >   [chap

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
}}    {\startlayout[page]     \centerbox{\externalfigure [\datasetvariable{chapter}{\ChapterCounter}{image}][factor=min]}     \stoplayout}} \stopsetups \setuphead   [chapter]   [page=,    beforesection=\directsetup{chapter:before}, insidesection={\setdataset[chapter][\ChapterCounter][image

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
] \setupbackgrounds[page][background=color,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [ page=yes, before=\directsetup{chapter:before}, ] \setupexternalfigure[location=default] \starttext \startchapter [title={foo

<    1   2   3   4   5   6   7   8   9   10   >