[NTG-context] Re: documentation: parameters of \setuplist

2024-04-23 Thread Wolfgang Schuster
l you want. \setuplabeltext [en] [chapter=Chapter , appendix=Appendix , hraban=Hraban ] %\setuplist[chapter][label=hraban,width=3cm] \setuplist[chapter][label=yes,width=3cm] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{First chapter} \chapter{Seco

[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
Changing location=none to location=text still left me with the bullet points appearing in a big list at the end of my chapter, but without any messages in them. On Monday, April 22, 2024 at 07:54:39 AM MDT, Joel via ntg-context wrote: A few years back, I tried using endnotes

[NTG-context] Re: \luaescapestring in proper Lua

2024-04-11 Thread Pablo Rodriguez via ntg-context
On 4/11/24 18:56, Hans Hagen via ntg-context wrote: > [...] >>> \protected\def\PrintTheThing{\ctxlua{document.print_the_thing()}} >> >> Sorry, but why \protected is required or recommended here? > > depends if you want it to be expandable I see now that "still.

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
Alan Bowen schrieb am 30.03.2024 um 20:59: How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. You can try this: \definepagestate[alanpage

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
> On 30 Mar 2024, at 19:59, Alan Bowen wrote: > > How can I get the last page number of a chapter for a list (ToC)? > > Outside of a list, I use \lastpagenumber. > But that does not work in a list such as the ToC. > > Any tips or pointers will be gladly received.

[NTG-context] last page number for a list

2024-03-30 Thread Alan Bowen
How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. Alan

[NTG-context] Re: Headertext

2024-03-27 Thread Henning Hraban Ramm
Am 26.03.24 um 17:12 schrieb Wolfgang Schuster: begin example \showframe \definetext   [chapterheader] % identifier   [header]    % vertical position (header/footer) % [text]  % horizontal position (text/margin)   [This is a custom header for \tex{chapter}] % content

[NTG-context] Re: Headertext

2024-03-27 Thread Thomas Meyer
quot; in the following example. begin example \showframe \starttext \setuphead[chapter][header=high] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \setuphead[chapter][header=empty] \chapter{Lorem Ipsum} \dorecurse{10}{\samplefile{lorem}} \stoptext end example A

[NTG-context] start/end pages in ToC

2024-03-26 Thread Alan Bowen
numbers I am getting only “??”. I am not sure why this is happening and would be grateful if someone could tell me why or point me to documentation that explains the problem and how to solve it. Many thanks in advance. My minimalish working example: \definehead[SourceTitle][chapter] \setuphead

[NTG-context] Re: Headertext

2024-03-26 Thread Wolfgang Schuster
Thomas Meyer schrieb am 26.03.2024 um 16:28: Hi folks, I know, with \setuphead[chapter][header=high] I can suppress the header text on the first page. But what can I do if I still want to have part of the header text on the first page? Is there something I can do with \definetext and if so

[NTG-context] Headertext

2024-03-26 Thread Thomas Meyer
Hi folks, I know, with \setuphead[chapter][header=high] I can suppress the header text on the first page. But what can I do if I still want to have part of the header text on the first page? Is there something I can do with \definetext and if so, how? Thanks for any help Greetings

[NTG-context] Re: Use of marking

2024-03-21 Thread Thomas Meyer
Hi Pablo and Bruce, thank you very much for your two solutions. That helps me enormously now. Greetings Thomas Am 21.03.24 um 16:34 schrieb Bruce Horrocks: \startsetups[doc:header] \getmarking[chapternumber] \space - \space \getmarking[chapter] \space :: \space \getmarking

[NTG-context] Re: Use of marking

2024-03-21 Thread Bruce Horrocks
> On 20 Mar 2024, at 18:45, Andres Conrado Montoya > wrote: > > 2. As far as I have found, including the chapter/section number in the > marking is not really a trivial task. I usually hack something using > \headnumber and \getmarking, like so: You can do the follow

[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
As I understand, Thomas needs a layout in which the header shows something like 1. Chapter title -- 1.1. Section title (including the numbers! *This is the important bit!*) There are a couple things about this: 1. In a section (part, chapter, section, etc.) you can introduce three versions

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
\setupheadtext[de][section=Aufgabe] Rename the section, then you don’t need marking. Sorry, I'm in a hurry and must look up how to get the number… Am 20.03.24 um 12:18 schrieb Thomas Meyer: Hi Hraban, and thanks. setuphead[chapter,section][numberwidth=2em] or "fit" work

[NTG-context] Re: Use of marking

2024-03-20 Thread Thomas Meyer
Hi Hraban, and thanks. setuphead[chapter,section][numberwidth=2em] or "fit" works! I know \setupheadertexts, but do not know what shall I write here: \startsection[titel=Aufgabe, marking=?] If I write marking=Aufgabe I get Aufgabe, no number! For chapter the same. \setuph

[NTG-context] Re: Use of marking

2024-03-20 Thread Hraban Ramm
Am 20.03.24 um 08:18 schrieb Thomas Meyer: HI folks, yesterday while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Au

[NTG-context] Use of marking

2024-03-20 Thread Thomas Meyer
HI folks, yesterday while reading along I learned how to suppress the chapter numbers in sections. That was something I was looking for myself. But how do you use marking correctly in startsection? I would like to see "1. Kapitel - 1. Aufgabe" in the header on the right. How can I

[NTG-context] Re: Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 20:35: I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1

[NTG-context] Suppress the Chapter Number in the Section Numbering

2024-03-19 Thread Jeroen
I am trying to suppress the chapter number in a section number as below as in 1., 2., etc instead of 1.1, 1.2, etc. Is there a simple way to achieve this? 1. The First Chapter 1. The First Section ... 2. The Second Section ... 2. The Second Chapter 1. The Third Section ... 2. The Fourth Section

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.03.2024 um 12:59: I have some style adjustments for the chapters. The chapter "numbers" need to be Boek I, Boek II, etc. A vertical separator was introduced with an inframe. The chapter title at the right side does not vertically align properly with the chap

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Hraban Ramm
Hi Jeroen, it might make sense to use \setuphead[chapter][ conversion=R, ] \setuplabeltext[nl][chapter={Boek }] instead of ownnumber. I would use one command for number and title and put both in the same kind of frame. Probably you should use a \strut in the text or \inframed[strut=yes

[NTG-context] Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have some style adjustments for the chapters. The chapter "numbers" need to be Boek I, Boek II, etc. A vertical separator was introduced with an inframe. The chapter title at the right side does not vertically align properly with the chapter number in the frame (inside the frame is

[NTG-context] Re: how to include an an svg file?

2024-03-16 Thread Jean-Pierre Delange
nts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './ctx-test-MetaPost-pdf.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded structu

[NTG-context] Creating a module for calligraphy practice templates

2024-03-12 Thread Andres Conrado Montoya
handled properly so far. For example, if I place a chapter before the Pauta macro invocation, there will be data on the top and bottom areas in the last page of the chapter. I've tried using \page and clearing the areas, which feels like cheating, but still does not work well. Any ideas on how

[NTG-context] update

2024-03-11 Thread Hans Hagen
vline in postscript), a native "--" operator (equivalent but somewehat more efficient on huge generated paths). The luametafun manual has a chapter on paths that describes some of this. Yet another new feature is "firstcontrol" and "secondcontrol" that is an a

[NTG-context] Re: Log entries about confusing level change

2024-03-08 Thread Hans Hagen
nge at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
d they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [title=front1]   \samplefil

[NTG-context] Re: Text in Margin

2024-02-19 Thread Henning Hraban Ramm
Am 19.02.24 um 14:14 schrieb Jeroen: In a textbook I am looking to place a large left margin at every page of each chapter. At left printed pages a left margin and at right printed pages a right margin, so like a double sided construction. In this margin I would like to place: 1. Keywords

[NTG-context] Re: Text in Margin

2024-02-19 Thread Wolfgang Schuster
Jeroen schrieb am 19.02.2024 um 14:14: In a textbook I am looking to place a large left margin at every page of each chapter. At left printed pages a left margin and at right printed pages a right margin, so like a double sided construction. In this margin I would like to place: You can use

[NTG-context] Text in Margin

2024-02-19 Thread Jeroen
In a textbook I am looking to place a large left margin at every page of each chapter. At left printed pages a left margin and at right printed pages a right margin, so like a double sided construction. In this margin I would like to place: 1. Keywords and small descriptions to emphasize some

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Oliver Marugg
/context/base/mkxl/context.mkxl >> mtx-context | current version: 2024.01.24 22:39 >> -- >> Stripped down MWE: >> \setuppapersize[A4] [A4] >> \starttext >> \completecontent[criterium=all] >> % ToC >> \page >> \chapter{CHAP 1} >>

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Wolfgang Schuster
-context | main context file: /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.01.24 22:39 -- Stripped down MWE: \setuppapersize[A4] [A4] \starttext \completecontent[criterium=all] % ToC \page \chapter{CHAP 1} TEXT

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Oliver Marugg
/context/base/mkiv/context.mkiv >> mtx-context | current version: 2024.01.24 22:39 >> mtx-context | main context file: >> /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl >> mtx-context | current version: 2024.01.24 2

[NTG-context] Re: Section numbering does not work

2024-02-13 Thread Taco Hoekwater
text.mkxl > mtx-context | current version: 2024.01.24 22:39 > -- > > Stripped down MWE: > > \setuppapersize[A4] [A4] > \starttext > \completecontent[criterium=all] > % ToC > \page > \chapter{CHAP 1} > TEXT > \startbackmatter >

[NTG-context] Section numbering does not work

2024-02-12 Thread Oliver Marugg
/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.01.24 22:39 -- Stripped down MWE: \setuppapersize[A4] [A4] \starttext \completecontent[criterium=all] % ToC \page \chapter{CHAP 1} TEXT \startbackmatter \startchapter[title=Literature

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
of the book, according to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c] At the back of the book: \placelist[chron][criterium=all

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
order at the back of the book (i.e. not >>> in page number order, although I need the page numbers to show up in the >>> TOC. There is the normal TOC at the front of the book, according to chapter >>> titles. >>> >>> I have succeeded i

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
to show up in the TOC. There is the normal TOC at the front of the book, according to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c

[NTG-context] Re: chronological TOC

2024-01-27 Thread Henning Hraban Ramm
at the front of the book, according to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c] At the back of the book: \placelist[chron][criterium

[NTG-context] chronological TOC

2024-01-26 Thread jbf
to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c] At the back of the book: \placelist[chron][criterium=all] Then at an appropriate point

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Shiv Shankar Dayal
Dear Hans, Aditya, Thanks for clarifying. In any case, I will process chapter-by-chapter, so runtime should be manageable. On Wed, Jan 24, 2024 at 10:32 PM Hans Hagen wrote: > On 1/24/2024 5:50 PM, Aditya Mahajan wrote: > > On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: > > >

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-19 Thread Hans Hagen
perfotmance cores over dozens of so called efficient cores. (that said: luametatex runs fine on my mobile phone) Option 2: Split your book into a project with each chapter, or even part of a chapter as a separate component and compile only the chapter you are working on. Set up a nighttime

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Bruce Horrocks
far faster than waiting for Hans to make changes, even assuming there is something that can be changed. I'd recommend a Mac M3 :-) Option 2: Split your book into a project with each chapter, or even part of a chapter as a separate component and compile only the chapter you are working on. Set up

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Gavin via ntg-context
I’m working I only typeset the component. A typical chapter typesets in 1.6 seconds if I haven’t changed the diagrams. (I just did one to check.) That’s fast enough for me. Hope that helps, Gavin > On Jan 18, 2024, at 10:24 AM, Shiv Shankar Dayal > wrote: > > I can process TeXBo

[NTG-context] Re: Metapost docs

2024-01-11 Thread Shiv Shankar Dayal
h ed. > by Roberto Ierusalimschy (https://www.amazon.com/gp/product/8590379868) > > If you provide an example of what you hope to accomplish with MetaPost, we > might have more specific recommendations. Below are two graphs that I made > in TikZ, which I hope to convert to MetaPost (ac

[NTG-context] Re: Metapost docs

2024-01-11 Thread Gavin via ntg-context
(https://www.amazon.com/gp/product/8590379868) If you provide an example of what you hope to accomplish with MetaPost, we might have more specific recommendations. Below are two graphs that I made in TikZ, which I hope to convert to MetaPost (actually LMTX). These are from my chapter

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
t; > I want to use linked bibliography numbers, linked Chapter, section > subsection, linked margin numbers, in the text. > > \setupinteraction[state=start] This is essential. > > \starttext > > Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von > \m{x\dou

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
Am 08.01.24 um 14:10 schrieb Ursula Hermann: Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] This is essential. \starttext Der Wert von \m{y = f(x)} ist

[NTG-context] Links

2024-01-08 Thread Ursula Hermann
Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] \starttext Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit

[NTG-context] Re: Problem with \startlinenumbering left and right arguments

2023-12-09 Thread Wolfgang Schuster
Marcus Vinicius Mesquita schrieb am 07.12.2023 um 19:21: Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-12-08 Thread Paul Mazaitis
;> >> https://github.com/pmazaitis/nova-context/releases/tag/0.6.0 >> >> ...currently in beta, but fairly functional. >> >> This version of the extension supports: >> >> * Syntax Highlighting >> * Folding for (most) environments >> * Navigating by Symb

[NTG-context] Problem with \startlinenumbering left and right arguments

2023-12-07 Thread Marcus Vinicius Mesquita
Dear List, In the MWE below, the left and right arguments are not applied in the last chapter. How can this be fixed? \starttext \startlinenumbering[left={[},right={]}] \dorecurse{5}{% \startchapter[title={Knuth}] \samplefile{knuth} \stopchapter } \stoplinenumbering \stoptext Kind regards

[NTG-context] Re: (again) wrong destination types?

2023-12-04 Thread Bruce Horrocks
gt; In PDF terms (simplified), fit to page destinations are /Fit > destinations and placed destinations are /XYZ destinations. > > This sample shows what might be the root issue here: > > \setupinteraction[state=start, page=name, focus=standard] > \starttext > \completeco

[NTG-context] Re: (again) wrong destination types?

2023-12-03 Thread Pablo Rodriguez via ntg-context
tupinteraction[state=start, page=name, focus=standard] \starttext \completecontent \chapter{Chapter} a\footnote{b} \stoptext ConTeXt handles internally links in categories. For some reason unknown to me, "page=name" triggers that special operation links contain /Fit instead /XYZ d

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
; \stopbuffer > > \startxmlsetups xml:text > \xmlsetsetup{#1}{doc|s|ss}{xml:*} > \stopxmlsetups > > \xmlregistersetup{xml:text} > > \startxmlsetups xml:doc > \chapter{\xmlpos{#1}\letterat\xmldepth{#1}: \xmlflush{#1}} > \stopxmlsetups > > \startxmlsetups xml:s > \s

[NTG-context] Problem with textstyle

2023-11-17 Thread Rik Kabel
Hello list, The following example does not compile, complaining “Missing number, treated as zero needed to see a number, look up 'weird error' in the index to The TeXbook”: \setuphead   [chapter] [   textstyle=cap

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-16 Thread Alexandre Christe
ttps://nova.app/). > > The extension is here: > > https://github.com/pmazaitis/nova-context/releases/tag/0.6.0 > > ...currently in beta, but fairly functional. > > This version of the extension supports: > > * Syntax Highlighting > * Folding for (most) environme

[NTG-context] Re: named destinations in /GoToR

2023-11-14 Thread Pablo Rodriguez via ntg-context
lowing sample: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5}{\dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}}} \stoptext Of course, this kind of identifiers have to be unique to be useful, but I wonder

[NTG-context] Re: named destinations in /GoToR

2023-11-13 Thread Michal Vlasák
> \starttext > \dorecurse{5} > {\chapter[\recurselevel]{Chapter} > \section[sec-\recurselevel]{Section}} > \stoptext > > This source only samples PDF documents not generated with ConTeXt. This > means that no .tuc file may be available and named destinations ma

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
Dear list, imagine I have a PDF document (named "whatever.pdf") such as the one generated from this source: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}} \stoptext T

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-11 Thread Henning Hraban Ramm
functional. This version of the extension supports: * Syntax Highlighting * Folding for (most) environments * Navigating by Symbols (headings: chapter, section, etc.) * Spell-checking of body text and section titles * Managing builds with Nova's tasks system (As an aside, this extension uses

[NTG-context] ConTeXt support for Nova text editor (MacOS)

2023-11-11 Thread Paul Mazaitis
supports: * Syntax Highlighting * Folding for (most) environments * Navigating by Symbols (headings: chapter, section, etc.) * Spell-checking of body text and section titles * Managing builds with Nova's tasks system (As an aside, this extension uses an updated version of the ConTeXt tree-sitter parser

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
[references.border=darkblue]% \goto{#1}[url(#1)]\stop} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter[three]{Second chapter} \stoptext I see that the directive for link

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Keith McKay
un XL”) manual is also (meta)fun, I meant the general metafun(-s|-p) manual, the big one (>400 p. in the “print” version, >600 p. in the “screen” version). Recommended! Hraban Am 06.10.23 um 10:08 schrieb Keith McKay: > Also look at the LuaMetaFun manual chapter

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Fabrice Couvreur
in the “print” > version, >600 p. in the “screen” version). Recommended! > > Hraban > > Am 06.10.23 um 10:08 schrieb Keith McKay: > > Also look at the LuaMetaFun manual chapter 8. In fact the whole manual > > is worth a read. I'm sure you find much of use in it.

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Henning Hraban Ramm
While the luametafun (“Metafun XL”) manual is also (meta)fun, I meant the general metafun(-s|-p) manual, the big one (>400 p. in the “print” version, >600 p. in the “screen” version). Recommended! Hraban Am 06.10.23 um 10:08 schrieb Keith McKay: Also look at the LuaMetaFun manual cha

[NTG-context] Re: Gray gradient with Metapost

2023-10-06 Thread Keith McKay
Also look at the LuaMetaFun manual chapter 8. In fact the whole manual is worth a read. I'm sure you find much of use in it. Best Wishes Keith On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm, wrote: > Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: > > Hi, > > I would like to obta

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread peter.hopcroft--- via ntg-context
Yes, indeed. The metafun manual also explains things about overlays and layers I hadn't known. I'd previously ignored that manual. Thank you, Peter > On 5/10/2023, at 7:05 PM, Thomas A. Schmitz > wrote: > > Have a look at chapter 6.4 of the metafun manual. You need StartPage ...

[NTG-context] Re: Gray gradient with Metapost

2023-10-05 Thread Henning Hraban Ramm
Am 05.10.23 um 21:50 schrieb Fabrice Couvreur: Hi, I would like to obtain, if possible, a gray gradient like in the image. My code uses Metapost but maybe this is possible with Metafun. Have a look into the Metafun manual, chapter 8.1 “shading”. Hraban

[NTG-context] Re: How can I use a variable for a MetaPost coordinate ?

2023-10-05 Thread Thomas A. Schmitz
Have a look at chapter 6.4 of the metafun manual. You need StartPage ... StopPage in your MPcode, then you can knock yourself out by using variables such as PaperHeight or TextHeight and do all sorts of calculations. All best Thomas On 10/5/23 05:54, peter.hopcroft--- via ntg-context wrote

[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
=> default tags by Adobe \setupbackend[export=yes] \setupstructure[state=start,method=auto] \starttext \chapter[chap:testing]{Testing} \input knuth \input tufte \input knuth \input tufte \input knuth \input tufte \stoptext What seems to be going wrong? Is the software looking for the *.i

[NTG-context] Frontpage and Titlepage

2023-10-02 Thread Jeroen
\startchapter [title={Chapter Title}] \samplefile{tufte} \stopchapter \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https

[NTG-context] Re: \underbar in head

2023-09-21 Thread jbf
So clearly I would need to upgrade my version. It does not work with what I have at the moment. Thank you. Julian On 22/9/23 02:04, Wolfgang Schuster wrote: I get a line below the chapter title with LMTX and LuaTeX with the current ConTeXt version

[NTG-context] Re: \underbar in head

2023-09-21 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 07:01: However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything

[NTG-context] Re: \underbar in head

2023-09-20 Thread jbf
However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything else underlined in 'Ward'. Could

[NTG-context] Re: \underbar in head

2023-09-20 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 05:03: Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar

[NTG-context] \underbar in head

2023-09-20 Thread jbf
Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
That works fine except that the following line does only issue the sequential number and not the chapter number. Refer to \in{code fragment}[tit1] bla MWE: \startuseMPgraphic{CountFrame} picture p; numeric w, h, o; p := textext.rt("\wrappedcurrentconstruction"); w := Overlay

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and th

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] Re: streams reversed?

2023-09-15 Thread jbf
can see the issue: effectively, the streams have worked for frontmatter (Foreword), but when I get to Chapter 1 in bodymatter, they are reversed. You will see that. I can't work out why, but you might be able to see what is causing that. And of course, I have two other problems to work out before I could

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Bruce Horrocks
> On 15 Sep 2023, at 13:56, Taco Hoekwater wrote: > > Like this? > > \definehead[mychapter][chapter] > \setuphead[mychapter][page=no] Taco beat me to it... a simple example: \starttext \chapter{First} Some text \chapter{Second} More text \chapter{Third} More text

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater
;>> apparently there isn’t. So, the example below does not work, but maybe it >>> wouldn’t be too hard to add it… >>> >> There is a ‘before' key, but note that the sectionblock itself is called >> “backpart”, not “backmatter” >>

[NTG-context] Re: streams reversed?

2023-09-15 Thread Hamid,Idris
' using frontmatter, bodymatter etc. etc. Since it would be too long and complicated an MWE to place here in the list to demonstrate my problem, I will send you the file separately so you can see the issue: effectively, the streams have worked for frontmatter (Foreword), but when I get to Chapter

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Rik Kabel
that the sectionblock itself is called “backpart”, not “backmatter” Either use \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] Or, nicer: \startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment Best, Denis \setuphead[chapter

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater
tself is called “backpart”, not “backmatter” Either use \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] Or, nicer: \startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment > Best, > Denis > \setuphead[chapter][page=ye

[NTG-context] Re: Chapters without new page

2023-09-15 Thread denis.maier
I thought there should be a setups key on \setupsectionblock, but apparently there isn’t. So, the example below does not work, but maybe it wouldn’t be too hard to add it… Best, Denis \setuphead[chapter][page=yes] \setupsectionblock[backmatter][setups={\setuphead[chapter][page

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
On 9/14/2023 10:10 PM, Rik Kabel wrote: On 9/14/2023 5:49 PM, Jeroen wrote: In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
On 9/14/2023 5:49 PM, Jeroen wrote: In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen Untried: 1

[NTG-context] Re: streams reversed?

2023-09-14 Thread jbf
I get to Chapter 1 in bodymatter, they are reversed. You will see that. I can't work out why, but you might be able to see what is causing that. And of course, I have two other problems to work out before I could use this in a real production scenario: there is the one you have already

[NTG-context] Chapters without new page

2023-09-14 Thread Jeroen
In the \startbackmatter ... \stopbackmatter section i would like to have some chapters that are not automatically placed on a new page for the next chapter. Is there an easy way to suppress the new page for these chapters? Thanks, Jeroen

[NTG-context] Re: streams reversed?

2023-09-14 Thread Bruce Horrocks
On 13 Sep 2023, at 07:47, jbf wrote: > > When I come to bodymatter and Chapter 1, again it works, except that the > positions of the languages are reversed, so I end up with vi on the left and > en on the right. By Chapter 2 we are back to the correct position once more >

[NTG-context] streams reversed?

2023-09-13 Thread jbf
) in frontmatter. When I come to bodymatter and Chapter 1, again it works, except that the positions of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right). I want to know why

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread denis.maier
heading's title ? Using the key does not seem to work. There are ways but not in a general way because you try to access the values before they are known to ConTeXt. To provide a proper solution you have to tell what you're trying to achieve. I'm just trying to output the author's name above a chapter h

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Wolfgang Schuster
achieve. I’m just trying to output the author’s name above a chapter heading. Do you need more information? You can create a custom header for the chapter page and show the value of the author key which works without problems because the header is added after to the finished page after th

  1   2   3   4   5   6   7   8   9   10   >