[NTG-context] Full page image and caption in another page?

2020-09-22 Thread José de Mattos Neto
\starttext \showframe \dorecurse{2}{\input{knuth}} \setuppapersize[rotate] % this doesn't work because is in same page \startplacebigfigure[title={A cow}]{\externalfigure[cow]}\stopplacebigfigure \setuppapersize[default] \dorecurse{2}{\input{knuth}} \stoptext

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm
n current LMTX and MkIV. Hraban \usemodule[visual] \definecolor[fakerulecolor][c=.2,m=.1,k=.2] \useMPlibrary[dum] \automigrateinserts % nop in LMTX \showframe \setupcaptions[ headstyle={\ss\bfx}, align={flushleft,high}, hang=yes, ] \starttext \fakewords{10}{30} % Footnotes, but no co

Re: [NTG-context] \startstructurelevel

2020-09-20 Thread Denis Maier
Hi Otared, thanks! That worked. Best, Denis Am 20.09.2020 um 11:23 schrieb Otared Kavian: Hi Denis, Does \startstructurelevel[title={Bibliography},number=no] \stopstructurelevel give what you want? Best regards: Otared K. On 20 Sep 2020, at 10:39

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm
tnotes, but no combination %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={1 Image with footnote\footnote[f:1]{\input lorem }}] \externalfigure[001][width=.34\textwidth] \stopplacefigure \startplacefigure[title={2 Another image with footnote\footno

Re: [NTG-context] \startstructurelevel

2020-09-20 Thread Otared Kavian
Hi Denis, Does \startstructurelevel[title={Bibliography},number=no] \stopstructurelevel give what you want? Best regards: Otared K. > On 20 Sep 2020, at 10:39, Denis Maier wrote: > > Hi, > > I'm using \startstructurelevel so I can nest s

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

2020-09-18 Thread Hans van der Meer
lfilter{#1}{/volume/command(xml:article-meta:volume)}, > doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, > elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, > title=\xmlfilter{#1}{/title-group/article-title/co

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

2020-09-18 Thread Denis Maier
=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)}, doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)}, elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)}, title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
>> \starttext >> \input lorem >> \startplacefigure[location=none] >> \startfloatcombination[2*1] >> \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] >> \externalfigure[003][width=.48\textwidth] >> \stopplacefigure >> \startplacefigure[title={Rig

[NTG-context] Fwd: Re: footnotes in captions in floatcombinations

2020-09-16 Thread Hans Hagen
nothing in lmtx \showframe \starttext \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image\footnote[f:4

[NTG-context] sidefloats and narrower

2020-09-16 Thread Henning Hraban Ramm
=\stopquotation] \starttext %\fakewords{50}{60} \startplacefigure[location={right,-line},title={\fakewords{7}{10}}] \externalfigure[022][width=0.33\textwidth,height=0.75\textheight] \stopplacefigure \startZitat \fakewords{30}{60} \stopZitat \fakewords{30}{60} \startZitat \fakewords{15}{20

Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
. \useMPlibrary[dum] \automigrateinserts \showframe \starttext \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image

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

2020-09-16 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 15.09.2020 um 04:38: Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax      \else

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

2020-09-16 Thread Henning Hraban Ramm
> Am 15.09.2020 um 04:38 schrieb Jairo A. del Rio : > > Hi, list. I've adapted the following example from the mailing list. My aim is > to use endnotes for each chapter: > > \mainlanguage[es] > \definehead[footnotetitle][title] > \startsetups[chapter:after] > \ifca

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

2020-09-14 Thread Jairo A. del Rio
Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax \else \startfootnotetitle[title={Notas

[NTG-context] footnotes in captions in floatcombinations

2020-09-14 Thread Henning Hraban Ramm
or with floatcombinations without footnotes. Please let there be an easy fix... Hraban \useMPlibrary[dum] \automigrateinserts \showframe \starttext \input knuth %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={Image with footnote\footnote[f:1]{foo bar baz

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

2020-09-09 Thread jbf
the following, using an idea Hraban had floated:  \setupsectionblock  [bodypart]  [number=no] \define[1]\SectionTocEntry{%   #1\crlf% title   \structurelistuservariable{author}% } \setuplist[section][   textcommand=\SectionTocEntry, ] I need to adjust the \setuplist[section] so these section entries

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

2020-09-09 Thread jbf
. Chapters are already working correctly, thanks to Wolfgang's ChapterListCommand and I am assuming I need that for the several frontmatter 'chapters'. I was earlier using \title for foreword, preface and notes to contributors, but have abandoned that as complicating things, and am now using

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

2020-09-09 Thread Wolfgang Schuster
was earlier using \title for foreword, preface and notes to contributors, but have abandoned that as complicating things, and am now using \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

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

2020-09-09 Thread jbf
on just one item, the Foreword, since if I get that right, I can apply the same logic to sections. Chapters are already working correctly, thanks to Wolfgang's ChapterListCommand and I am assuming I need that for the several frontmatter 'chapters'. I was earlier using \title for foreword

Re: [NTG-context] Fullwidth topfigure with caption in the margin

2020-09-08 Thread Mikael Sundqvist
caption[topfigure][ > number=no, > location=bottom, > style={\switchtobodyfont[8bp]}, > ] > \starttext > \dorecurse{4}{\samplefile{knuth}} > > \startplacetopfigure[title={\samplefile{ward}}] > \blackrule[width=6.5in,height=2in,color=transparentred] > \stopplacetopfigure

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

2020-09-07 Thread jbf
anything like what I want. But at least let me indicate what I have tried: (1) I have defined two different 'title' items (Foreword and Preface unnumbered) since both of these require an author name of the kind produced by the \ChapterListCommand. Do I also need a \TitleListCommand

[NTG-context] Fullwidth topfigure with caption in the margin

2020-09-07 Thread Mikael Sundqvist
[topfigure][topfigures][figure] \setupfloat[topfigure][ default={margin}, location=flushleft, maxwidth=6.5in, ] \setupcaption[topfigure][ number=no, location=bottom, style={\switchtobodyfont[8bp]}, ] \starttext \dorecurse{4}{\samplefile{knuth}} \startplacetopfigure[title={\samplefile{ward

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

2020-09-07 Thread Wolfgang Schuster
jbf schrieb am 07.09.2020 um 01:31: Yes, Wolfgang, that corrects the minor problem of including the author name correctly, even when there is no year range. Thank you. But since I use \title, not \chapter, for the frontmatter items, ( Foreword, Preface, A note on Contributors

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

2020-09-06 Thread jbf
Yes, Wolfgang, that corrects the minor problem of including the author name correctly, even when there is no year range. Thank you. But since I use \title, not \chapter, for the frontmatter items, ( Foreword, Preface, A note on Contributors), the ChapterListCommand clearly does not apply, so

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move setups from the document content into the environment file. 4. Use pagestate=start to increase the page counter with \startstandardmakeup. 5. Set search path for figur

Re: [NTG-context] Typing efficiency

2020-09-06 Thread Jan Willem Flamma
rtmode[nl]>  \setupselector[language][n=2]>  \keepblocks[nltext]> \stopmode>   > \starttext>   > \startsection[title=\select{language}{English title}{Dutch title}]>   > \beginentext>  This is English text.> \endentext> \beginnltext>  This is Dutch

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

2020-09-06 Thread Wolfgang Schuster
jbf schrieb am 06.09.2020 um 02:03: Thanks Wolfgang, while I don't pretend to fully understand the setup you have provided (but am working on doing so!), of course it provides the correct result for a chapter that has a title, an author, and a year. My ever-so-complicated book (and its

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

2020-09-05 Thread jbf
Thanks Wolfgang, while I don't pretend to fully understand the setup you have provided (but am working on doing so!), of course it provides the correct result for a chapter that has a title, an author, and a year. My ever-so-complicated book (and its authors!) however, throws one small

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

2020-09-05 Thread Wolfgang Schuster
jbf schrieb am 05.09.2020 um 03:35: Now that with Hraban's invaluable assistance I am able to include title, subtitle, author as and when necessary in the ToC and put them on the same line if I need to, I have two questions that I have not found a satisfactory solution to after playing around

[NTG-context] styling individual parts of ToC entry

2020-09-04 Thread jbf
Now that with Hraban's invaluable assistance I am able to include title, subtitle, author as and when necessary in the ToC and put them on the same line if I need to, I have two questions that I have not found a satisfactory solution to after playing around with various possibilities. I need

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Wolfgang Schuster
\startmode[nl] \setupselector[language][n=2] \keepblocks[nltext] \stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \beginentext This is English text. \endentext \beginnltext This is Dutch text. \endnltext \stopsection \stoptext

Re: [NTG-context] Typing efficiency

2020-09-04 Thread Taco Hoekwater
] \keepblocks[nltext] \stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \beginentext This is English text. \endentext \beginnltext This is Dutch text. \endnltext \stopsection \stoptext Best wishes, Taco > On 4 Sep 2020, at 14:02, Jan Willem Fla

[NTG-context] Typing efficiency

2020-09-04 Thread Jan Willem Flamma
  ===\setupinteraction[state=start] %\enablemode[nl]\enablemode[en] \defineselector [language] [max=2,n=1]\startmode[en]    \setupselector[language][n=1]\stopmode\startmode[nl]    \setupselector[language][n=2]\stopmode \starttext \startsection[title=\select{language}{English title}{Dutch title}] \startbuffer[en

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

2020-09-04 Thread Henning Hraban Ramm
urelistuservariable instead. But if all of your chapters have the author set, you don’t need that check. > But I took your example and adjusted it for, say, a chapter which has just a > title (no subtitle) and an author, and added, below what I already have in > the pream

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

2020-09-04 Thread jbf
on \rawstructurelistuservariable' that  link simply tells me 'There is currently no text in this page'. That leaves someone like me without a lot of the long-gained knowledge that others have, quite lost :-) But I took your example and adjusted it for, say, a chapter which has just a title (no subtitle

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move

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

2020-09-04 Thread Henning Hraban Ramm
t; ForewordAuthor's name iii > > Chapter One Chapter title > > Author's name 1 > > Chapter Two 1820-1880 > > Chapter title > > Au

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
Flamma   The main product file==\environment env-WA \startproduct currentproduct % Document definitions\define\MyManual{Course Manual}\define\MyTitle{Title}\define\MySubtitleOne{Subtitle 1}\define\MySubtitleTwo{Subtitle 2}\define\MyRevnumber{Revision number} % Load frontmatter files\startfront

[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] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
be able to copy and adapt to your needs. Kind regards, Jan Willem Flamma *The main product file* == \environment env-WA \startproduct currentproduct % Document definitions \define\MyManual{Course Manual} \define\MyTitle{Title} \define\MySubtitleOne{Subtitle 1} \define

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

2020-09-03 Thread jbf
the header (title of the book) on the verso pages, which is drawn from the simple statement: \startdocument   [metadata:title={Book title}] Shouldn't  \setupheader affect both headers? Or is it possible I have left something out of my \setupheader declaration? A minimal example will make

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

2020-09-03 Thread Aditya Mahajan
but it doesn't seem Better to use style={\switchtobodyfont[10pt,ss]} or \switchtobodyfont[10pt]\ss... > to affect the header (title of the book) on the verso pages, which is > drawn from the simple statement: > > \startdocument >   [metadata:title={Book title}] > > Shouldn

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

2020-09-03 Thread jbf
Thanks Otared. That clears up that little item :-) BTW I know how to reduce font size in the headers (chapter titles) that appear on the recto pages, which I can do with something like \setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem to affect the header (title

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
\MyManual{Course Manual}\define\MyTitle{Title}\define\MySubtitleOne{Subtitle 1}\define\MySubtitleTwo{Subtitle 2}\define\MyRevnumber{Revision number} % Load frontmatter files\startfrontmatter    \component fm-frontpage    \component fm-titlepage    \component fm-tableofcontents\stopfrontmatter % Load

Re: [NTG-context] odd behaviour with \definefontfamily

2020-08-25 Thread jbf
=file:LibrisADFStd-Regular.otf] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \tf ffi, \it ffi, \bf ffi, \bi ffi. \ss THIS IS A TITLE IN SANS SERIF \tt Monospaced \stoptext Context then tells me that: /mkiv lua stats  > loaded fonts: 6 fi

Re: [NTG-context] odd behaviour with \definefontfamily

2020-08-25 Thread Wolfgang Schuster
] \setupbodyfont[mainface] \starttext \tf ffi, \it ffi, \bf ffi, \bi ffi. \ss THIS IS A TITLE IN SANS SERIF \tt Monospaced \stoptext Context then tells me that: /mkiv lua stats  > loaded fonts: 6 files: baskervaldadfstd-bold.otf, baskervaldadfstd-bolditalic.otf, baskervaldadfstd-italic.

Re: [NTG-context] odd behaviour with \definefontfamily

2020-08-25 Thread jbf
, \it ffi, \bf ffi, \bi ffi. \ss THIS IS A TITLE IN SANS SERIF \tt Monospaced \stoptext Context then tells me that: /mkiv lua stats  > loaded fonts: 6 files: baskervaldadfstd-bold.otf, baskervaldadfstd-bolditalic.otf, baskervaldadfstd-italic.otf, baskervaldadfstd.otf, librisadfstd-bolditalic.

Re: [NTG-context] Overriding the number on a float

2020-08-25 Thread Duncan Hothersall
ption[figure][state=stop,numberstopper={\convertedcounter[subfigure]}]} > > \def\unsetsubfigures > {\setupcaption[figure][state=start,numberstopper=]} > > %usage > \setsubfigures > > \startplacefigure[title=Test figure] > \externalfigure[dummy] > \stopplacefigur

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Taco Hoekwater
r=]} %usage \setsubfigures \startplacefigure[title=Test figure] \externalfigure[dummy] \stopplacefigure \incrementnumber[subfigure] \startplacefigure[title=Test another figure] \externalfigure[dummy] \stopplacefigure \unsetsubfigures I could not find a safe way to increment the subfigure number automatic

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
Hi, If there are a few special numberings of floats, and one wants floats numbered 1.6a and 1.6b, the following seems to work: Best regards: Otared %%% begin ownnumber-in-floats.tex \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
) – does section use a different counter name or is it no counter at all? \setnumber[figure][10] works (but only with integers, not some alphanumerical stuff, sorry Duncan). \setupnumber is a synonym of \setupcounter and exists for backwards compatibility. Hraban \useMPlibrary[d

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
from the previous calculated number. Would that >> be possible? > > > You can set your own section numbers but the counter isn't stopped. Thank you! I overlooked "ownnumber". It works for sections, but not for items or floats. \setnumber[section][10] doesn’t work, \setcounte

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
m[number={R}] or \startsection[number={3a}] would be nice. If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Would that be possible? You can set your own section numbers but the counter isn't stopped. \star

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
um 16:02: > > Hello, > For the title of the chapters I use the following command. > > \unexpanded\def\HeadTitle#1#2% >{\framed > [frame=off, >width=fit, >align=flushleft] >{\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} > \bl

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

2020-08-24 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.08.2020 um 16:02: Hello, For the title of the chapters I use the following command. \unexpanded\def\HeadTitle#1#2%    {\framed [frame=off,        width=fit,        align=flushleft]  {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} \blank#1\blank#2} When I

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

2020-08-23 Thread Fabrice Couvreur
Hello, For the title of the chapters I use the following command. \unexpanded\def\HeadTitle#1#2% {\framed [frame=off, width=fit, align=flushleft] {\color[darkgray]{\tfxx\cap\bf\labeltext{chapter}} \blank#1\blank#2} When I compile my project, I have the label

Re: [NTG-context] Chapter heading with rules

2020-08-21 Thread Otared Kavian
Hi Julian, Indeed you can acchieve what you want, but it is better to define a command which takes care of the number and the title of the chapter at the same time (as in \ myChapterCommand below). %% begin example.tex \definefiller[ChapterRule] [alternative=rule, color=gray

[NTG-context] Chapter heading with rules

2020-08-20 Thread jbf
Have achieved a Chapter title with rules either side (see below - not an original invention!) but I want the chapter number to be part of 'My Chapter Title'; instead, the following MWE means it comes before the ChapterLeftRule. I know I can do it by actually putting the number before My

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
{\switchtobodyfont[48pt]#1}} {#2} \stopoverlay} } \starttext \startchapter[title={This is a test},ownnumber=1234] \input knuth.tex \stopchapter \stoptext Best regards: Otared On 18 Aug 2020, at 11:47, jbf wrote: Thanks Otared - and whether using

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
uot;Mycolor", s = 0.85 ] draw lmt_outline [ text = "1", kind = "fillup", fillcolor = "Mycolor", rulethickness = 1, ] xsized 1cm; \stopuseMPgraphic \unexpanded\def\MyNumber#1{\useMPgraphic{fun}#1} \unexpanded\def\Tit

[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
{#1} {#2} \stopoverlay} } \starttext \startchapter[title={This is a test}] \input knuth.tex \stopchapter \stoptext %% end example Best regards: Otared > On 18 Aug 2020, at 01:18, jbf wrote: > > I meant to include an example of what I me

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

2020-08-17 Thread jbf
/8/20 4:54 pm, Aditya Mahajan wrote: On Mon, 17 Aug 2020, jbf wrote: Am completely new to using Metafun, which I presume I would need to use to achieve a Hansen Memoir-style Chapter heading (chapter title overlayed on a large lightgray number). Of course, I am assuming I would need to use Metafun

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

2020-08-17 Thread jbf
wrote: Am completely new to using Metafun, which I presume I would need to use to achieve a Hansen Memoir-style Chapter heading (chapter title overlayed on a large lightgray number). Of course, I am assuming I would need to use Metafun to create this... So my first question is to ask if I could

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

2020-08-17 Thread Aditya Mahajan
On Mon, 17 Aug 2020, jbf wrote: > Am completely new to using Metafun, which I presume I would need to use > to achieve a Hansen Memoir-style Chapter heading (chapter title > overlayed on a large lightgray number). Of course, I am assuming I would > need to use Metafun to create thi

[NTG-context] memoir-style chapter heading

2020-08-16 Thread jbf
Am completely new to using Metafun, which I presume I would need to use to achieve a Hansen Memoir-style Chapter heading (chapter title overlayed on a large lightgray number). Of course, I am assuming I would need to use Metafun to create this... So my first question is to ask if I could

Re: [NTG-context] reading a single element from XML

2020-08-16 Thread Pablo Rodriguez
This is another D paragraph. \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{html}{xml:gen} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:gen \xmlfilter{#1}{/**/div/command(xml:chapter)} \stopxmlsetups \start

Re: [NTG-context] About documented code

2020-08-16 Thread Wolfgang Schuster
want to know how to customize it, at least at a minimum, and 2) \showframe is enabled by default. How to disable it? Maybe 1) can answer 2) too. Thank you very much. There is no way to change the color of the title page from your module itself, the only way is to change the value module (s

Re: [NTG-context] headers again

2020-08-14 Thread Wolfgang Schuster
chapters did increment correctly, after being interrupted by an unnumbered one. \starttext \startchapter[title={Chapter one}] \stopchapter \startchapter[title={Chapter two},number=no] \stopchapter \startchapter[title={Chapter three}] \stopchapter \startchapter[title={Chapter four},number

Re: [NTG-context] headers again

2020-08-14 Thread Hans Hagen
am also using \title, given that I need some unnumbered chapters interspersed  among them, I run into difficulties with headers. Numbered chapters have the correct headers, unnumbered ones (with \title) either don't have them, or do not have the proper chapter header (they pick up the header from

Re: [NTG-context] headers again

2020-08-13 Thread jbf
no problems, nor should I expect any. But because I am also using \title, given that I need some unnumbered chapters interspersed  among them, I run into difficulties with headers. Numbered chapters have the correct headers, unnumbered ones (with \title) either don't have them, or do not have the proper

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 13.08.2020 um 04:53: > > On Thu, 13 Aug 2020, jbf wrote: > > > > > Where running heads (headers) are concerned, if I use \chapter I have no > > > problems, nor should I expect any. B

Re: [NTG-context] headers again

2020-08-13 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 13.08.2020 um 04:53: On Thu, 13 Aug 2020, jbf wrote: Where running heads (headers) are concerned, if I use \chapter I have no problems, nor should I expect any. But because I am also using \title, given that I need some unnumbered chapters interspersed  among them, I

Re: [NTG-context] headers again

2020-08-12 Thread jbf
[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups and referencing it in the \chapter or \title items, was able to achieve the desired result in every way, including that missing  header on one page. Thank you. J On 13/8/20 3:36 pm, Aditya Mahajan wrote: On Thu, 13 Aug

Re: [NTG-context] headers again

2020-08-12 Thread jbf
relevant recto pages are all headed 'Introduction' as they should be. J On 13/8/20 12:53 pm, Aditya Mahajan wrote: On Thu, 13 Aug 2020, jbf wrote: Where running heads (headers) are concerned, if I use \chapter I have no problems, nor should I expect any. But because I am also using \title

Re: [NTG-context] headers again

2020-08-12 Thread Aditya Mahajan
On Thu, 13 Aug 2020, jbf wrote: > Where running heads (headers) are concerned, if I use \chapter I have no > problems, nor should I expect any. But because I am also using \title, > given that I need some unnumbered chapters interspersed  among them, I > run into difficulties

[NTG-context] headers again

2020-08-12 Thread jbf
, putting it  simply: Where running heads (headers) are concerned, if I use \chapter I have no problems, nor should I expect any. But because I am also using \title, given that I need some unnumbered chapters interspersed  among them, I run into difficulties with headers. Numbered chapters have

Re: [NTG-context] \checkpage in the TOC

2020-08-12 Thread Willi Egger
[3*big]}] > > \starttext > \placelist[section][criterium=text] > \blank[3*big] > \placeregister[index][criterium=text] > \page > \startsection[title=Alpha] first \index{first} \stopsection > \startsection[title=Beta] second \index{second} \stopsection

Re: [NTG-context] \title with extra content in toc

2020-08-11 Thread Mikael Sundqvist
I do not recommend against the start/stop variant, but in this case I think you can also do \chapter[title=..., list=..., bookmark=...] /Mikael Den ons 12 aug. 2020 05:46jbf skrev: > That is clear enough and works (of course!) and reminds me that I'm > better off using the \star

[NTG-context] further to the earlier header question

2020-08-11 Thread jbf
as: \setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] then everything works as it should: Chapter title as header on recto pages and book title as header on verso pages. And as chapters change so does the header on the recto page

Re: [NTG-context] \title with extra content in toc

2020-08-11 Thread jbf
That is clear enough and works (of course!) and reminds me that I'm better off using the \starttitle...\stoptitle format than just \title as I have been. J On 12/8/20 1:23 pm, Aditya Mahajan wrote: [   title={Title of chapter},   list={What appears in TOC},   bookmark={What

Re: [NTG-context] \title with extra content in toc

2020-08-11 Thread Aditya Mahajan
On Wed, 12 Aug 2020, jbf wrote: Still dealing with \title, but am creating a separate thread because the question is different. As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using

Re: [NTG-context] \checkpage in the TOC

2020-08-11 Thread Hans Hagen
[index][criterium=text] \page \startsection[title=Alpha] first \index{first} \stopsection \startsection[title=Beta] second \index{second} \stopsection \startsection[title=Gamma] third \index{third} \stopsection \startsection[title=Delta] fourth \index{fourth} \stopsection

[NTG-context] \title with extra content in toc

2020-08-11 Thread jbf
Still dealing with \title, but am creating a separate thread because the question is different. As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using it in the main body for 'chapters

[NTG-context] header text on final page of section

2020-08-11 Thread jbf
I am using \title within frontmatter for an introduction. The \setupheadertexts for title (recto and verso pages) is: \setupheadertexts   [{\hfill\getmarking[title]\hfill}][]   [{\hfill\documentvariable{metadata:title}\hfill}][] Now, that setup (this time for [chapter]) works correctly

Re: [NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Nicola
\startmakeup[toc] >> \placecontent >> \stopmakeup >> %\setuppagenumber[number=1] >> \startchapter[title={A}]\stopchapter >> \startchapter[title={B}]\stopchapter >> \stopfrontmatter >> \stoptext >> &

Re: [NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Pablo Rodriguez
> %\setuppagenumber[number=1] > \startchapter[title={A}]\stopchapter > \startchapter[title={B}]\stopchapter > \stopfrontmatter > \stoptext > > The first entry in the ToC has page number 0. I can fix it by > uncommenting the commented

[NTG-context] Page number 0 in Table of Contents with makeup

2020-08-11 Thread Nicola
Consider this example: \definemakeup[toc][align=middle] \setuppagenumbering[alternative=doublesided] \starttext \startfrontmatter \startmakeup[toc] \placecontent \stopmakeup %\setuppagenumber[number=1] \startchapter[title

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

2020-08-11 Thread Nicola
] \definestructureconversionset[bodypart:pagenumber] [][numbers] \starttext \startfrontmatter \page[even] \startalignment[bottom,flushright] Copyright © 2020 Author \stopalignment \start \setuphead[chapter][after={}] \completecontent \stop \page[odd] \startchapter[title={Preface}]\input{knuth}\stopchapter

Re: [NTG-context] floats side by side

2020-08-08 Thread Henning Hraban Ramm
figures with captions included >> in the usual numbering of figures and not one number & caption for the >> combination. >> How can I achieve this? > > Use a float combination: > > \startplacefigure[location=none] >\startfloatcombination[2*1] >\s

Re: [NTG-context] floats side by side

2020-08-08 Thread Wolfgang Schuster
tion for the combination. How can I achieve this? Use a float combination: \useMPlibrary[dum] \starttext \input ward \startplacefigure[title={Dummy}] \externalfigure[dummy] \stopplacefigure \input jojomayer \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={

[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

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
Hello, I have a little problem with the numbering of theorems when there is no subsection. I would like to know : Theorem 1.1 Theorem 1.2 Theorem 2.3 Theorem 2.4 Thank you Fabrice begin example \setuplabeltext[chapter=Chapitre~] \unexpanded\def\Title#1#2{\framed[frame=off,width=fit

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
[section] [aftersection=\directsetup{section:end}] \starttext \startsection[title=Ward] \input ward \stopsection \page \startsection[title=Knuth] \input knuth \stopsection \stoptext end example Wolfgang ___ If you

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

2020-08-04 Thread Willi Egger
} \stopsection% } \stopsetups \starttext \startsection[title=Ward] \setuppagenumbering[conversion=romannumerals] \input ward \stopmysection \startsection[title=Knuth

<    8   9   10   11   12   13   14   15   16   17   >