[NTG-context] (ConTeXt LMTX 2.11.05) how do I make it so that sections, descriptions, and itemizations have just a space between some of the text that they produce

2024-09-16 Thread Felix
{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[ title={Chapter 4 Quiz}, author={Author}, date={September 16, 2024} ] \startitemgroup[itemize][n] \startitem I'm not a fan of the default spacing \sto

[NTG-context] Re: Interline spacing in tabulate paragraphs

2024-09-15 Thread Wolfgang Schuster
] [rm] [Aptos Serif] % \definefontfamily [aptos] [ss] [Aptos] % % \setupbodyfont[aptos,ss] \startdocument \bold{ConTeXt 1x:} \samplefile{dijkstra} \blank \setupinterlinespace[2]% relative value \bold{ConTeXt 2x:} \samplefile{dijkstra} \blank \setupinterlinespace[line=\dimexpr\bodyfontsize+8pt

[NTG-context] Re: Interline spacing in tabulate paragraphs

2024-09-15 Thread Florent Michel
Hello, It's probably not the best solution, but it seems to work on my side if I replace `big` by `2em`; see code below. ``` \startdocument \setupinterlinespace[2em] \input dijkstra \starttabulate[|k0r|k0xp|][EQ={---}] \NC Word \EQ definition; \NC\AR \NC Important word \EQ \input dij

[NTG-context] Interline spacing in tabulate paragraphs

2024-09-15 Thread Kirill Davidov
Greetings, Is there a way to set interline spacing in tabulate environments? The table's paragraphs do not seem to obey \setupinterlinespace like the rest of the text does. Code to toy with: \startdocument \setupinterlinespace[big] \input lorem \starttabulate[|k0r|k0xp|][EQ={---}] \NC

[NTG-context] Re: Indentation in headings

2024-09-14 Thread Wolfgang Schuster
\setupindenting [yes, 2.5em, first] \setuphead [section] [ align=flushleft, beforehead={\startnarrow[left=\parindent][left]}, afterhead=\stopnarrow, aligntitle=yes, indentnext=yes, ] \showframe \startdocument \startsection[title=Very long section title that makes you

[NTG-context] Indentation in headings

2024-09-14 Thread Kirill Davidov
troublesome if the title is long enough. Example code to tinker with: \setupindenting[yes, 2.5em, first] \setuphead[section][     style=\bf,     align=flushleft,     distance=1em,     indentnext=yes, ] \showframe \startdocument \startsection[title=Foo] \input dijkstra \stopsection \startsection

[NTG-context] Re: What could possibly be wrong with 'P'?

2024-09-09 Thread jbf
after the \startdocument, I guess. But just the same, grateful for your patience and clarity. Julian On 10/9/24 13:25, Wolfgang Schuster wrote: jbf schrieb am 10.09.2024 um 02:36: Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this

[NTG-context] Re: What could possibly be wrong with 'P'?

2024-09-09 Thread Wolfgang Schuster
jbf schrieb am 10.09.2024 um 02:36: Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this is happening. Is 'p' (or 'P') some sort of restricted letter in certain circumstances? Here is the issue: \startdocume

[NTG-context] What could possibly be wrong with 'P'?

2024-09-09 Thread jbf
Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this is happening. Is 'p' (or 'P') some sort of restricted letter in certain circumstances? Here is the issue: \startdocument [metadata:author={Author name}, me

[NTG-context] Re: Strange extra space when using cases in an inner align in math

2024-08-25 Thread Mikael Sundqvist
packed. It looks like you had the wrong > > number of \NC. I hope the examples below help, the last one is merely > > for Hans for looking into why the relation-digit space is added there. > > > > /Mikael > > > > \definemathsimplealign[inneralign] > > >

[NTG-context] Re: Strange extra space when using cases in an inner align in math

2024-08-25 Thread Gerion Entrup
space is added there. > > /Mikael > > \definemathsimplealign[inneralign] > > \showglyphs > \showboxes > > \showmakeup[mathglue] > > \startdocument > > OK with \typ {n=2} instead of \typ {n=3}: > > \startformula > \startalign > \NC a =

[NTG-context] Re: How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get an

2024-08-22 Thread Hraban Ramm
mentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] \startpart[title=one] \stoppart \startalignment[middle] {\sc 1. one} % there is added space as shwon when trying to emulate what I want through regular text \stopalignment \startchapte

[NTG-context] How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get any re

2024-08-22 Thread Felix
] \stopsetups \startdocument[title=Title,author=Author,date=Date] \startpart[title=one] \stoppart \startalignment[middle] {\sc 1. one} % there is added space as shwon when trying to emulate what I want through regular text \stopalignment \startchapter[title=two] \stopchapter \startpart[title

[NTG-context] Re: Strange extra space when using cases in an inner align in math

2024-08-20 Thread Mikael Sundqvist
looking into why the relation-digit space is added there. /Mikael \definemathsimplealign[inneralign] \showglyphs \showboxes \showmakeup[mathglue] \startdocument OK with \typ {n=2} instead of \typ {n=3}: \startformula \startalign \NC a = b \NC \NR \NC \NC \startinneralign[n=2,align

[NTG-context] Strange extra space when using cases in an inner align in math

2024-08-20 Thread Gerion Entrup
Hi, I currently have the case of a strange extra space in math mode when using cases in inner align. Here is a MWE to demonstrate the problem: ``` \definemathsimplealign[inneralign] \startdocument \startformula \startalign \NC a = b \NR \NC \NC

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-19 Thread Felix
section numbers, use this \startsetups document:start \centerline{\documentvariable{title}} \centerline{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] \stopdocument ``` I hope

[NTG-context] Re: Complete novice, why does it seem that LuaLaTeX (Compiled via LaTeX Workshop with MikTeX and added packages on Windows) will generate a more compact result than ConTeXt?

2024-08-13 Thread Hans Hagen via ntg-context
en] \setupindenting[yes,0.5in] \startsetups document:start \centerline{\documentvariable{title}} \centerline{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title

[NTG-context] Re: command line arguments

2024-03-19 Thread Willi Egger
Hello Hraban, I puzzled a while. To me the —arguments= option does not work. I saw then on the Wiki, that one can also add documentarguments as —schema=2UP —numberofpages=16. I further changed to \startdocument … \stopdocument. Please look at the attached file Willi impositiontest-2.tex

[NTG-context] Drawing calligraphy practice grid in metafun

2023-11-20 Thread Andres Conrado Montoya
ion(xheight, dd) ; aa = Section(ascender, oo) ; % Devolver posicion final con espacio para siguiente renglon aa + nib*2 enddef ; % Llenar la página con renglones for i=1 upto availableLines : start := Line(dsc, asc, med, start) ; endfor ; \stopreusableMPgraphic \startdocume

[NTG-context] Footnotes on the bottom of the column's current page, instead of the columns' end

2023-10-25 Thread Juliano David Hilario
=\gobbleoneargument] \setupnotation[question][counter=] \startdocument \startcolumns[n=2, balanced] \dorecurse{19}{ \question{1. This is a question for discussion. I wished it was on the current page instead of the end} \input{knuth} } \stopcolumns \stopdocument mwe.pdf Description:

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context
] \setcounter [userpage] [0] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument \setupfootertexts [title

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
] \setuppagenumbering [location=] \startdocument \setupfooter[state=stop] \startfrontmatter frontpage \stopfrontmatter \setupfooter[state=start] \startbodymatter \dorecurse{10}{\samplefile{lorem}} \stopbodymatter \stopdocument

[NTG-context] Re: Better option for a macro with lots of arguments

2023-08-23 Thread Hans Hagen via ntg-context
glish ... \stopbuffer \startbuffer spanish ... \stopbuffer \startsetups [document:stop] ... \stopsetups \startdocument [spanisabstract={\getbuffer[spanish]}, ] ... \stopdocument untested, just key

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Wolfgang Schuster
t/stoptext  pair or equivalent commands (e.g. startdocument/stopdocument or startproduct/stopproduct). Replace cont-yes.mkiv with the newer equivalent. And you're right though. \starttext is not even needed most of the times. And now it gets even worse, see https://meeting.contextgarden

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
ombre}\par % \stopsetups Just loop over the set and call up the variables in the setup: % \startdocument % \dorecurse{\datasetsize{autores}}{ % \setups[userdata:idautor] % } % \stopdocument However, i can provide a processor: % \startsetups[userdata:idautor] % \dontle

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
lfigure[orcid.pdf][logo]} {\userdataparameter{orcid}} \quad \imghref {\externalfigure[gscholar.pdf][logo]} {\userdataparameter{gscholar}} \quad \userdataparameter{author}\par \stopsetups \defineuserdata[idautor][alternative=idautor] \startdocument % I have to man

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Wolfgang Schuster
Alan Braslau via ntg-context schrieb am 06.07.2023 um 09:34: Hello, Trying to use: \startdocument \startpagefigure[Coverpages.pdf][page=1]\stoppagefigure \startpagefigure[Coverpages.pdf][page=2]\stoppagefigure % before \startmakeup [titlepage] front \stopmakeup \startmakeup [titlepage

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Henning Hraban Ramm
Am 06.07.23 um 11:58 schrieb Alan Braslau: Maybe it’s also a problem of \startdocument – I always get a first empty page and don’t understand why. One gets an empty first page if there is *any* text content anywhere in the setups or environment files before the \startdocument. My problem

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Alan Braslau via ntg-context
cover][page][page=no,doublesided=no] \definelayout[cover][page] \startmakeup [cover] \filterpages[Coverpages][1] \stoppagemakeup \startmakeup [cover] \filterpages[Coverpages][2] \stoppagemakeup Thank you for your suggestion! Maybe it’s also a problem of \startdocum

[NTG-context] definedocument, begin & closing

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startdocument, the setups "document:start" and "document:stop" get inserted at the beginning and end. But if I define my own document, it doesn’t work. What’s wrong? """ \definedocument[presentation] \startsetups[presentation:start] {\bfd\d

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Henning Hraban Ramm
? Maybe it’s also a problem of \startdocument – I always get a first empty page and don’t understand why. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-co

[NTG-context] Title pages makeup extra blank pages

2023-07-06 Thread Alan Braslau via ntg-context
Hello, Trying to use: \startdocument \startpagefigure[Coverpages.pdf][page=1]\stoppagefigure \startpagefigure[Coverpages.pdf][page=2]\stoppagefigure % before \startmakeup [titlepage] front \stopmakeup \startmakeup [titlepage] back \stopmakeup \startfrontmatter ... \stopfrontmatter

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread jbf via ntg-context
. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [{\pagenumber \hskip1em \setup{headertext}}] [ ] My second attempt (quite crass, but it works!!) was to

Re: [NTG-context] how to change metadata halfway through document

2023-01-30 Thread Hans Hagen via ntg-context
On 1/30/2023 1:14 AM, jbf via ntg-context wrote: Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title

[NTG-context] how to change metadata halfway through document

2023-01-29 Thread jbf via ntg-context
Am trying to understand how best to change the title metadata in headertext halfway through a document that has two parts: Constitutions and Regulations. My first attempt (did not work) \startsetups[headertext] \startdocument [metadata:title={Regulations}] \stopsetups \setupheadertexts

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-26 Thread Hans Hagen via ntg-context
ar text. \stopbuffer \startxmlsetups xml:xhtml \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups \startxmlsetups xml:html \startdocument \xmlflush{#1} \stopdocument\stopxmlsetups % Paragraphs are followed by a paragraph break, bu

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-25 Thread Thangalin via ntg-context
etsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{html|p|em}{xml:*}\stopxmlsetups \startxmlsetups xml:html \startdocument \xmlflush{#1} \stopdocument\stopxmlsetups % Paragraphs are followed by a paragraph break, but only if not nested.\startxmlsetups xml:p \xmlfunction{#1}{p}

[NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-22 Thread juh+ntg-context--- via ntg-context
] \startdocument \starttext \input lorem \stoptext \stopdocument When I create a pdf from LibreOffice with these fonts I have a good display. pdffonts shows different font inclusion: pdffonts libreoffice.pdf name type encoding emb sub uni object ID

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
I found a way to wrap everything before \startdocument, so I think this looks like a template more or less: In case anyone is interested, here's the MWE: \definenote[address] \setupnote[address][rule=off,location=text] \setupnotation[footnote][numberconversion=numerals] \defin

Re: [NTG-context] process list items differently depending on position in list

2022-05-02 Thread Denis Maier via ntg-context
ffer \startxmlsetups xml:setup \xmlsetsetup{\xmldocument}{*}{-} \xmlsetsetup{\xmldocument}{document|p}{xml:*} \stopxmlsetups \xmlregistersetup{xml:setup} \startxmlsetups xml:document \xmlfilter{#1}{/title/command(xml:title)} \xmlfilter{#1}{/author/command(xml:author)} \startdocument \xmlfl

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Wolfgang Schuster via ntg-context
d [chapter] [page=no] \startdocument [title={Dummy title}] \dorecurse{5}   {\startchapter[title={Chapter \convertnumber{word}{#1}}]    \samplefile{lorem}    \stopchapter} \stopdocument Wolfgang ___ If your ques

Re: [NTG-context] Dynamic document variables from metadata

2022-01-02 Thread Thangalin via ntg-context
={\xmlatt{#1}{content}}] > > \setupdocument[metadata:author={\xmlatt{#1}{content}}] > > \setupinteraction[author={\documentvariable{author}}] \stopxmlsetups % > > How can this be generalized? %\startxmlsetups xml:journal > > %\setupdocument[journal={\xmlatt{#1}{content}}] %\

Re: [NTG-context] Dynamic document variables from metadata

2022-01-02 Thread Hans Hagen via ntg-context
How can this be generalized? %\startxmlsetups xml:journal %\setupdocument[journal={\xmlatt{#1}{content}}] %\stopxmlsetups \startxmlsetups xml:body \startdocument Author: \documentvariable{author} \par Journal: \documentvariable{journal} \stopdocument \stopxmlsetups \xmlprocessbuffer{main}{xdoc}{}|

[NTG-context] Dynamic document variables from metadata

2022-01-01 Thread Thangalin via ntg-context
ournal={\xmlatt{#1}{content}}]%\stopxmlsetups \startxmlsetups xml:body \startdocument Author: \documentvariable{author} \par Journal: \documentvariable{journal} \stopdocument\stopxmlsetups \xmlprocessbuffer{main}{xdoc}{} Thank you! __

Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Pablo's solution works, but I tried yours without success. Here are the main lines of my project begin product \startproduct[terminale-manual] \project[terminale-environment] \startdocument \startfrontmatter ... \stopfrontmatter \startbodymatter \comp

Re: [NTG-context] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster
but it's also possible to load it before them. There are reasons for both positions and when you choose one you should keep it for all files. 4. \startdocument In my product file I added a document-environment, while it isn't necessary in this case it provides a nice hook to insert a

[NTG-context] new page before xtable with repeated headers

2021-04-23 Thread Werner Hennrich
efinextable[mytable:header] \setupxtable[mytable:header] [ foregroundstyle=\bf, foregroundcolor=darkred, ] % == \startdocument \dorecurse{2} { \input tufte \vskip7mm } \startxtable[mytable] \startxtablehead \startxrow[mytable:header] \startxcell Some H

[NTG-context] update and meeting

2020-09-15 Thread Hans Hagen
might go too (never really used, but no overhead either). (2) Another change is in the \startdocument mechanism. This (already old and rusted) wrapper runs on top of variables but we think no one knows (or uses) that. So, it now is a real wrapper with inheritance and such. It is dedicated to Tom

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

2020-09-03 Thread jbf
ffect 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 wil

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}] > > Sh

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

2020-09-03 Thread jbf
f 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? Julian On 4/9/20 5:30 am, Otared Kavian wrote:

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Alan Braslau
e{subtitle}}, metadata:author={\documentvariable{author}}, metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wolfgang. The above example does work. It fails to set the metadata if one moves the \setupdo

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Henning Hraban Ramm
; metadata:author={\documentvariable{author}}, >>> metadata:keywords={\documentvariable{keywords}}] >>> >>> \startdocument [title={My title}] >>> \input knuth >>> \stopdocument >>> end example >>> >>> Wolfgang >> &g

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Wolfgang Schuster
ument    [metadata:title={\documentvariable{title}},     metadata:subtitle={\documentvariable{subtitle}},     metadata:author={\documentvariable{author}},     metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wol

Re: [NTG-context] \documentvariable (used in environment)

2020-07-24 Thread Alan Braslau
title}},    metadata:subtitle={\documentvariable{subtitle}},    metadata:author={\documentvariable{author}},    metadata:keywords={\documentvariable{keywords}}] \startdocument [title={My title}] \input knuth \stopdocument end example Wolfgang Thank you, Wolfgang. The above example does work. It fai

Re: [NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Wolfgang Schuster
}},    metadata:keywords={\documentvariable{keywords}}] \stopenvironment and correct use would be \environment MYENVIRONMENT \startdocument [title={My title}] \stopdocument because, of course, the environment contains more than \setupdocument such as font loading that should be done before the

[NTG-context] \documentvariable (used in environment)

2020-07-22 Thread Alan Braslau
}}] \stopenvironment and correct use would be \environment MYENVIRONMENT \startdocument [title={My title}] \stopdocument because, of course, the environment contains more than \setupdocument such as font loading that should be done before the \startdocument. The metadata does not get set

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
gt; %-- Working example, but it is not what I need -- > > \setupindenting[yes,small] > > \defineconversion[mymix][1,\m{*},2] > > > > \setupnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] > > > > \s

Re: [NTG-context] Symbol Footnote Command

2019-12-23 Thread Hans Hagen
upnotation[footnote][align={hz,hanging},indenting={yes,small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the

[NTG-context] Symbol Footnote Command

2019-12-23 Thread Aykut Aykutt
small,next},numberconversion=mymix] \startdocument This is the first sentence with a footnote.\footnote{This is the first footnote and its mark is "1".} This is the second sentence with a footnote.\footnote{This is the second footnote and its mark is "*". } This is the third sentence wit

[NTG-context] \beginBLOCKS and \endBLOCKS do not work in \dorecurse

2019-11-11 Thread Romain Diss
Hi, I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is it possible? Here is a minimum non working exemple (from https://wiki.contextgarden.net/Command/defineblock): %% \startdocument \defineblock[question] \hideblocks[question] % We don't want to print blocks whe

Re: [NTG-context] Custom Footertext

2019-09-30 Thread Pablo Rodriguez
t[pagella] > \setupbodyfont[pagella,12pt] I would say that the first line isn’t required. > \setupcolors[state=start] If I’m not wrong, this is also the default. > \setupfootertexts[section][] This might be what you need: \setupfootertexts[section][\getvariable{document}{metad

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
pcombinedlist[content][level=1] \setupexternalfigures[directory={images}] \startdocument[ metadata:title={MkIV Context Notes}, metadata:subtitle={}, metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \title{MkIV \CONTEXT\ Notes.} \startcolumns[n=2] \input zapf \st

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Wolfgang Schuster
Jeroen schrieb am 29.09.2019 um 20:36: This is the main file. Neither minimal nor complete and \stopdocument is also missing. \environment mkivcnotesenv \startdocument  [metadata:subject={MkIV Context},    affiliation=Context] \starttext \startfrontmatter \input{frontpage.tex} \stopfrontmatter

Re: [NTG-context] Custom Footertext

2019-09-29 Thread Jeroen
This is the main file. \environment mkivcnotesenv \startdocument [metadata:subject={MkIV Context}, affiliation=Context] \starttext \startfrontmatter \input{frontpage.tex} \stopfrontmatter \startbodymatter \section{Introduction} \dorecurse{10}{input knuth} \stopbodymatter \startappendices

Re: [NTG-context] sorttype option not recognized in setupbtxrendering

2019-03-19 Thread Romain Diss
make the 'sorttype' option work. If I first define a named rendering with '\definebtxrendering', the 'sorttype' is correctly read... Don't know why it doesn't work with the default rendering. > % test-biblio.tex > \usebtxdataset[biblio.bib] \definebtxren

[NTG-context] sorttype option not recognized in setupbtxrendering

2019-03-19 Thread Romain Diss
txdataset[biblio.bib] \setupbtxrendering[sorttype=index] \startdocument \startchapter[title=First chapter] \input ward \cite[ward,knuth]\blank \placelistofpublicati

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
set=1em, frame=off, leftframe=on, rulethickness=.1em, framecolor=red] \startdocument \startchapter[title=A chapter] \input knuth \cite[knuth]\blank \input ward \cite[ward]\blank \placelistofpublications[criterium=chapter] \stopchapter \stopdocument %

[NTG-context] Bibliography : wrong order of references when rendered by chapter

2019-03-18 Thread Romain Diss
t know if it's very clear so here's a minimal 'non' working example (in the second chapter, ward reference should be numbered 1 and knuth should be 2, following the order of appearence in the bibliography list): % mnwe.tex \usebtxdataset[biblio.bib] \setupbtxrendering

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
7;t remember. > > ... it's not a godo idea to use that hook to add content > > I'm not adding content, it was just for the MWE. I'll post another > > thread about what I intend to achieve. > > When you use \startdocument you can use > > \startsetup

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Wolfgang Schuster
Marco Patzer schrieb am 27.11.18 um 18:34: On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: MWE: \startcomponent * \appendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
On Tue, 27 Nov 2018 18:21:45 +0100 Hans Hagen wrote: > > MWE: > > > > \startcomponent * > >\appendtoks Foobar \to\everystarttext > >\startdocument\null\stopdocument > > \stopcomponent > > > > If the first and last line is commented

Re: [NTG-context] \everystarttext in components

2018-11-27 Thread Hans Hagen
k in components? MWE: \startcomponent * \appendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when compiled as a component it doesn't. it kicks in when context things a text starts (so

[NTG-context] \everystarttext in components

2018-11-27 Thread Marco Patzer
pendtoks Foobar \to\everystarttext \startdocument\null\stopdocument \stopcomponent If the first and last line is commented out, it prints “Foobar”, when compiled as a component it doesn't. Marco ___ If your questi

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done with \setupinteraction but \startdocument is nicer). A minimal file would be

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
can be > used to insert a titlepage or endpage). You can even use \startdocument (or > \setupdocument) to set the document name in the pdf viewer (yes it can also > be done with \setupinteraction but \startdocument is nicer). > > A minimal file would be > > \star

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
content in a document environment which has hooks to insert text etc. at the begin and end of the document (which can be used to insert a titlepage or endpage). You can even use \startdocument (or \setupdocument) to set the document name in the pdf viewer (yes it can also be done with

Re: [NTG-context] xml, language, btx problems

2018-06-17 Thread Wolfgang Schuster
\startxmlsetups [xml:testsetups] \xmlsetsetup{\xmldocument}{document}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups [xml:document] \mainlanguage[\xmlatt{#1}{language}] \startdocument \xmlflush{#1} \stopdocument \stopxmlsetups % The “document:start” setup is

Re: [NTG-context] Questions about \starttext

2018-04-15 Thread Tomas Hala
he distribution there are a lot of manuals of which the setup # demonstrates ways to organize ... one probably not known to all is # # \startdocument[settings] ... \stopdocument ok, where can I find it? The thing I am a bit confused and which was the main reason of my question, is why the compiler

Re: [NTG-context] Questions about \starttext

2018-04-03 Thread Hans Hagen
ganize ... one probably not known to all is \startdocument[settings] ... \stopdocument Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands te

Re: [NTG-context] Presentation sections identified by color and mark

2018-02-04 Thread Hans Hagen
topuseMPgraphic \setupbackgrounds   [text]   [background={PageShape}] \starttext \setupdocument[title={Title},location={Place}] \startdocument   \definecolor[BackgroundColor][r=0,g=.7,b=0]   \startTopic[title={Topic Green}]     Some text A     \startSubject[title={Some green 1}]

[NTG-context] Presentation sections identified by color and mark

2018-02-03 Thread jmmora
w pa withpen pencircle scaled 10pt withcolor contrastcolor ; fi ; StopPage ; \stopuseMPgraphic \setupbackgrounds [text] [background={PageShape}] \starttext \setupdocument[title={Title},location={Place}] \startdocument \definecolor[BackgroundColor][r=0,g=.7,b=0] \startTopic[title={

[NTG-context] sectionconversionset not working for table of contents

2017-09-18 Thread Stephens, Kenny
section,subsection}] \setuplist [chapter] [style=\bigbodyfont\bold, alternative=b,] \setuplist [section] [width=2.0em, margin=2.0em, alternative=c,] \setuplist [subsection] [width=3.0em, margin=4.0em, style=slanted, alternative=c,] \startdocument \startfrontmatter \plac

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-26 Thread Thomas Widmann
l the column doesn't generate orphan/widow >> >> Is this possible with ConTeXt/LuaTeX? > > maybe be more explicit with very large penalties helps > > \startdocument > > \showmakeup[penalty] > > [...] > > \stopdocument Thanks, Hans, that's a very ins

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-25 Thread Hans Hagen
: repeat adjust parameters (column width, looseness, ...) typeset column until the column doesn't generate orphan/widow Is this possible with ConTeXt/LuaTeX? maybe be more explicit with very large penalties helps \startdocument \showmakeup[penalty] \startbuffer \dorecurse{

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Henri Menke
enmin=60 \lefthyphenmin=60 \def\Sblackbold#1{{\bf #1}} \def\Sdef#1{{#1}} \def\Sdefrf#1{{\bf #1}} \def\ShwJNR#1{{\blue\bf #1}} \def\Spospsmallcaps#1{{\sc #1}} \def\Spunctuation#1{{#1}} \def\Sxrefxrhw#1{{\bf #1}} \def\Sgroupintro#1{{\it #1}} \def\threeentries{   \vbox{\hsize=\textwidth \ShwJNR{

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
60 \def\Sblackbold#1{{\bf #1}} \def\Sdef#1{{#1}} \def\Sdefrf#1{{\bf #1}} \def\ShwJNR#1{{\blue\bf #1}} \def\Spospsmallcaps#1{{\sc #1}} \def\Spunctuation#1{{#1}} \def\Sxrefxrhw#1{{\bf #1}} \def\Sgroupintro#1{{\it #1}} \def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip .5em% \Spospsmallcaps{no

Re: [NTG-context] Adjusting column width dynamically to get rid of orphans and widows

2017-06-23 Thread Thomas Widmann
1{{\it #1}} \def\threeentries{\ShwJNR{headphones}\page[no]\par\-\hskip .5em\Spospsmallcaps{noun}\Spunctuation{ }\Sdef{a pair of small speakers that you wear over your ears}\par\ShwJNR{heard}\page[no]\par\-\hskip .5em\Spospsmallcaps{verb}\Spunctuation{ }\Sgroupintro{the past tense and past participl

Re: [NTG-context] Bug in \startdocument

2017-01-25 Thread Hans Hagen
On 1/24/2017 8:53 PM, Henri Menke wrote: Dear devs, It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug. The PDF subject is not set using metadata:subject but with metadata:subtitle. This is not a big issue by itself but merely a little

[NTG-context] Bug in \startdocument

2017-01-24 Thread Henri Menke
Dear devs, It is really convenient to set PDF metadata in \startdocument, however I noticed that there is a bug. The PDF subject is not set using metadata:subject but with metadata:subtitle. This is not a big issue by itself but merely a little confusing. What’s worse is that using

Re: [NTG-context] (again) PDF info fields

2016-07-17 Thread Pablo Rodriguez
gt;metadata:doi={doi:\documentvariable{doi}}, >metadata:keywords={\documentvariable{keywords}}] > > \startdocument > [title={Your title}, >subtitle={your subtitle}, >author={your name}, >address={your address}, >keywords={your keywo

Re: [NTG-context] (again) PDF info fields

2016-07-17 Thread Alan BRASLAU
={\documentvariable{keywords}}] \startdocument [title={Your title}, subtitle={your subtitle}, author={your name}, address={your address}, keywords={your keywords}, abstract={The abstract goes here.\par The Abstract and the keywords have to fit in this page.}, year={2016}, doi

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Marco Patzer
umentvariable{title}] > > \mainlanguage [sv] > > > > \startdocument [title={\translate[en=Foo, sv=Bar]}] > >\input knuth > > \stopdocument > > > > This literally shows: > > > >Title: \translate [en=Foo, sv=Bar] > > > > The following work

Re: [NTG-context] Expansion in PDF metadata

2016-03-04 Thread Hans Hagen
On 3/4/2016 7:58 AM, Marco Patzer wrote: Hi! How to expand \translate so that it doesn't show up in the PDF metadata? Example: \setupdocument [metadata:title=\documentvariable{title}] \mainlanguage [sv] \startdocument [title={\translate[en=Foo, sv=Bar]}] \input knuth \stopdocument

[NTG-context] Expansion in PDF metadata

2016-03-03 Thread Marco Patzer
Hi! How to expand \translate so that it doesn't show up in the PDF metadata? Example: \setupdocument [metadata:title=\documentvariable{title}] \mainlanguage [sv] \startdocument [title={\translate[en=Foo, sv=Bar]}] \input knuth \stopdocument This literally shows: Title: \translate [e

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Alan BRASLAU <mailto:alan.bras...@cea.fr> 17. Januar 2016 um 23:39 On Sun, 17 Jan 2016 20:09:56 +0100 Thanks, again, these are useful pointers. In conclusion, good practice could be (but would this work?): \startdocument [title=My title, metadata:title=\documentvariable{title}, aut

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
le in the pdf without a manual > setting with \setupinteraction you can use the value of > “metadata:title” in your document. Thanks, again, these are useful pointers. In conclusion, good practice could be (but would this work?): \startdocument [title=My title, metadata:title=\documentva

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Wolfgang Schuster
Alan BRASLAU <mailto:alan.bras...@cea.fr> 17. Januar 2016 um 19:55 On Sun, 17 Jan 2016 19:27:31 +0100 How does this play with \startdocument [title=Document title, author=Me] It doesn’t matter if you set the values with \setupdocument or \startdocument. Here, I learn about metadata

Re: [NTG-context] TeX markup in \setupinteraction for PDF metadata fields

2016-01-17 Thread Alan BRASLAU
le{}. > > \setupdocument >[ metadata:title=Document title, > metadata:author=Author name] > > \setupinteraction[state=start] > > \starttext > \unknown > \stoptext > > Wolfgang How does this play with \startdocument [title=Document title, aut

Re: [NTG-context] parenthesis in Arabic text

2015-05-17 Thread Sam Ḥilluc
lowing example: > > > >\usemodule[simplefonts] > > > >\setmainfont[amiri][features=arabic,range=arabic] > >\setupdirections[bidi=global] > >\setupalign[righttoleft] > > > >\def\text{(ب)} > > > >\startdocument > >

  1   2   >