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

2020-07-15 Thread Wolfgang Schuster
Peter Münster schrieb am 15.07.2020 um 14:55: Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space

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

2020-07-15 Thread Peter Münster
Hi, What is the right way please to get normal white-space after a section in columns, i.e. not too much? Example, that shows the problem: --8<---cut here---start->8--- \starttext \startsection[title=Space is ok here] \input tufte \stopsection \startc

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Wolfgang Schuster
idea what causes the problem here without looking at the code (I guess ConTeXt tries to prevent a line break after the title) but this works. \dontleavehmode\blank Wolfgang ___ If your question is of interest to others

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
> Thanks for your help. > Fabrice > > \setupenumerations > [before={\blank}, >after={\blank}, >alternative=serried, >title=yes, >titleleft=, >titleright=, >prefix=yes, >prefixsegments=chapter, >way=bychapter, >titlestyle=b

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
; In my lessons, I often have to include tables, figures, ... in definitions, > theorems ... > With the context engine it works fine but not with lmtx. > Thanks for your help. > Fabrice > > \setupenumerations > [before={\blank}, >after={\blank}, >alternati

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft

Re: [NTG-context] gnuplot module broken with latest 2020-07-13 16:31

2020-07-13 Thread Adam Reviczky
; > > > (...tail calls...) > > > > 1 \usemodule[gnuplot] > > 2 > > 3 % write a script for gnuplot > > 4 >> \startGNUPLOTscript[sin] > > 5plot sin(x) > > 6 \stopGNUPLOTscript > > 7 > > 8 %

Re: [NTG-context] gnuplot module broken with latest 2020-07-13 16:31

2020-07-13 Thread Hans Hagen
10 mtx-context     | fatal error: return code: 256 Does the gnuplot module need adjustments? No, i messed up something ... will be fixed tomorrow Do you have lmtx installed? It has nicer gnuplot support: m-gnuplot-demo.gp : set format xy "$%g$" set title 'This is a

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

2020-07-13 Thread Hans Hagen
On 7/13/2020 11:27 AM, Julian Fox wrote: That's obviously much simpler! I was under the impression that 'title' was only for use in front matter, or that if I used it elsewhere, then it didn't show the number but that the next use of 'chapter' would increment as i

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

2020-07-13 Thread Julian Fox
That's obviously much simpler! I was under the impression that 'title' was only for use in front matter, or that if I used it elsewhere, then it didn't show the number but that the next use of 'chapter' would increment as if it had a number. I was wrong! On Mon

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

2020-07-13 Thread Henning Hraban Ramm
> Am 13.07.2020 um 02:23 schrieb jbf : > > Hi there, > > I have a situation where numbered chapters are occasionally interspersed with > unnumbered chapters, so, for example, it might be: > > 1 First chapter title with number > > second chapter title unnumber

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

2020-07-12 Thread Jairo A. del Rio
Oh, I see. Thanks! Jairo :) El dom., 12 de jul. de 2020 a la(s) 22:56, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 12.07.2020 um 22:31: > > I've realized ConTeXt now puts the section label and section number > > above t

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

2020-07-12 Thread Wolfgang Schuster
Jairo A. del Rio schrieb am 12.07.2020 um 22:31: I've realized ConTeXt now puts the section label and section number above the section title whe alternative=middle is set. How to disable this behavior so one can have a section label and number next to a centered section title? Thank y

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

2020-07-12 Thread jbf
Hi there, I have a situation where numbered chapters are occasionally interspersed with unnumbered chapters, so, for example, it might be: 1 First chapter title with number   second chapter title unnumbered 2 Second chapter title with  number 3 Third chapter title with number

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

2020-07-12 Thread Jairo A. del Rio
I've realized ConTeXt now puts the section label and section number above the section title whe alternative=middle is set. How to disable this behavior so one can have a section label and number next to a centered section title? Thank you in advance. Sincerely,

Re: [NTG-context] About the table of contents

2020-07-11 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 11.07.2020 um 15:02: Hello, I would like to reduce the space between the numbering and the title of the chapters, sections and subsections. I would also like to have this: 1 My first chapter 1.1 My first section 1.1.1 My first subsection You can use \setuplist

[NTG-context] About the table of contents

2020-07-11 Thread Fabrice Couvreur
Hello, I would like to reduce the space between the numbering and the title of the chapters, sections and subsections. I would also like to have this: 1 My first chapter 1.1 My first section 1.1.1 My first subsection \setuplist [chapter] [style=bold,width=10mm] \starttext \placelist

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

2020-07-09 Thread Aditya Mahajan
}} \setuphead [chapter] [command=\MyChapter] \chapter{Chapter title} which gives me a chapter number (without the word 'Chapter') and 1cm below it the chapter title, e.g.: 1   My chapter title But when I transfer this to the actual tex file I am working with, I lose the chap

[NTG-context] help with confusion re chapter number

2020-07-09 Thread jbf
] \chapter{Chapter title} which gives me a chapter number (without the word 'Chapter') and 1cm below it the chapter title, e.g.: 1   My chapter title But when I transfer this to the actual tex file I am working with, I lose the chapter number. Admittedly, there is more co

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

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

Re: [NTG-context] Vertical space between label and title

2020-07-09 Thread Fabrice Couvreur
l.com>: > > > > Hello, > > I want a vertical space between the label and the chapter title: is this > the right way to proceed ? > > Why not? It seems to work. What’s your problem? > > BTW I’d set \mainlanguage[fr] > > Hraban > > __

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

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

Re: [NTG-context] Vertical space between label and title

2020-07-07 Thread Henning Hraban Ramm
> Am 07.07.2020 um 19:27 schrieb Fabrice Couvreur : > > Hello, > I want a vertical space between the label and the chapter title: is this the > right way to proceed ? Why not? It seems to work. What’s your problem? BTW I’d set \mainlangu

[NTG-context] Vertical space between label and title

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

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
t=0pt,width=max,frame=off] > \getinlineuserdata > \stopframedtext} > \stopsetups > > \showframe > \starttext > \startuserdata[margintext] > {\bf Remarque — }\input ward > \stopuserdata > \startuserdata[margintext] > \externalfigure[dummy][width=\rightma

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
\stopframedtext} \stopsetups \showframe \starttext \startuserdata[margintext] {\bf Remarque — }\input ward \stopuserdata \startuserdata[margintext] \externalfigure[dummy][width=\rightmarginwidth] \stopuserdata \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext > On 6

Re: [NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
=high]} \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location=high]} \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext Le jeu. 2 juil. 2020 à 19:04, Marco Patzer a écrit : > On Thu, 2

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups \showframe \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \startchapter[title=First chapter

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
/node-syn.lua:435: attempt to index a nil value (upvalue 'filehandle') 1 >> \newdimen\LWidth 2 \newdimen\LHeight 3 \newdimen\LDistanceX 4 \newdimen\LDistanceY 5 6 \LWidth=75mm 7 \LHeight=30mm 8 \LDistanceX=0mm 9 \LDistanceY=0mm 1

Re: [NTG-context] spacing before items

2020-06-25 Thread David Rogers
broken or not good enough, he doesn't hesitate to fix it or improve it in the best way he can see. This is good for the software in that it is constantly improving in every direction, but it does also make it a bit more of a challenge to document, and a bit more of a challenge to find someone

Re: [NTG-context] French interface - previous message = wrong title

2020-06-24 Thread Hans Hagen
On 6/24/2020 11:01 PM, Garulfo wrote: Hi, I try to update and to fill the french content of mult-def.lua. Currently, I have an updated "mult-def.lua" file. 3 questions : 1/ which commands should be executed in order to make the new local    interface effective with context context --make fr

[NTG-context] French interface - previous message = wrong title

2020-06-24 Thread Garulfo
Hi, I try to update and to fill the french content of mult-def.lua. Currently, I have an updated "mult-def.lua" file. 3 questions : 1/ which commands should be executed in order to make the new local interface effective with context 2/ which commands should be executed in order to build a l

[NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
(can better be done global) fonts > bodyfont '11.2pt' is defined (can better be done global) fonts > defining > font with asked name 'IBMPlexSans-regular' is not found using lookup 'file' fonts > defining > unknown fo

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
Thanks Taco! I added this and Hans' explanations to the wiki: https://wiki.contextgarden.net/variable_color but could not set a better title for that page such as « Variable arrays of colors, pens, paths ». Best regards: Otared > On 22 Jun 2020, at 09:28, Taco Hoekwate

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

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

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

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

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
][2][a, packed, 1*broad][left=(, right=), stopper=] > > \starttext > > \startsection{First Section} \startsection[title={...}] The first entry uses the "before" value while inner entries use "inbetween". \starttext \setupitemgroup [itemize][1] [ befo

Re: [NTG-context] spacing before items

2020-06-17 Thread Mike Cooper
Thanks Wolfgang! 1. Where can this solution be found? (wiki or elsewhere) 2. I'm guessing that you're saying that my \startsection should have [title={...}] instead of what I gave? -Original Message- From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf O

Re: [NTG-context] spacing before items

2020-06-16 Thread Wolfgang Schuster
] \setupitemgroup[mdshw][1][n] \setupitemgroup[mdshw][2][a, packed, 1*broad][left=(, right=), stopper=] \starttext \startsection{First Section} \startsection[title={...}] The first entry uses the "before" value while inner entries use "inbetween". \starttext \setupite

[NTG-context] using annotations for extended print handling

2020-06-14 Thread Pablo Rodriguez
ch has a corresponding "i3-stop", or "ii22-synopsis-start" (with the corresponding closing annotation). To make easier to identify these annotations, they all share the same title. As contents, all these text annotations have the page number. From the generated PDF document, I need to r

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
page number i instead of ii. It seems to have something to do > > with the use of makeup. I was using it to create a vertically centered > > title page. Is there a better way of doing this which will give the > > correct page numbers? > > > > Best, > > > >

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Wolfgang Schuster
Jack Steyn schrieb am 14.06.2020 um 16:46: Hi, I'm not sure why the following MWE produces a document where page 2 has the page number i instead of ii. It seems to have something to do with the use of makeup. I was using it to create a vertically centered title page. Is there a better w

[NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
Hi, I'm not sure why the following MWE produces a document where page 2 has the page number i instead of ii. It seems to have something to do with the use of makeup. I was using it to create a vertically centered title page. Is there a better way of doing this which will give the correct

[NTG-context] Extra space when \setcharacterkerning is used in enumeration

2020-06-12 Thread Mikael Sundqvist
e{myindent}#1.} \defineenumeration[sats][ text={Sats}, style={\em}, title=yes, titlestyle=, width=fit, headstyle={\smallcaps\setcharacterkerning[sats]}, headcommand={\vakuum}, number=yes, alternative=serried, indenting={yes,\measure{myindent}}, ] \defineenumeration[SATS][sats][ headstyle=\smallc

Re: [NTG-context] using modeset

2020-06-11 Thread Wolfgang Schuster
. After all, only the title and caption text needs to be translated. I tried doing this but in the case of \startchapter using a \doifmode but the PDF bookmarks text is not correctly generated. You need \enabledirectives[references.bookmarks.preroll] in your setup files to get the correct text

[NTG-context] using modeset

2020-06-11 Thread Jan Willem Flamma
of other modes using \startmode and \doifmode. Duplication is unavoidable but it would make sense to try and re-use the existing structural elements such as \startsection \startsubsection \placefigure etc as much as possible. After all, only the title and caption text needs to be translated.I tried

[NTG-context] Interaction references with Reference List and Bibliography

2020-06-10 Thread Adam Reviczky
is always fine. See MWE: --- \setupinteraction[state=start] \usebtxdataset[sample.bib] \usebtxdefinitions[apa] \starttext \input tufte \cite[hh2010a] \input zapf \cite[hh2010a] \title{Reference List} \placelistofpublications[criterium=all] \title{Bibliography} \placelistofpublications[metho

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread mf
] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread Wolfgang Schuster
] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread Hans Hagen
\startplacefigure[location=left,number=no,title={}] \externalfigure[dummy][width=.45\textwidth] \stopplacefigure \dontleavehmode % if this is commented out then the text and the figure are placed on top of each other \startframedtext[frame=off] \input ward.tex \stopframedtext \stoptext %% end

Re: [NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread Otared Kavian
nalfigure[dummy] > > \starttext > \startplacefigure[location=left,number=no,title={}] > \externalfigure[dummy][width=.45\textwidth] > \stopplacefigure > \dontleavehmode % if this is commented out then the text and the figure are > placed on top of each other > \sta

[NTG-context] \startplacefigure and \startframedtext in lmtx

2020-06-09 Thread Otared Kavian
certain number of cases where such combinations are used, I woul dlike to be sure to not make a mistake by changing all the instances… Here is an example: %% begin figure-framedtext.tex \useMPlibrary[dum] \defineexternalfigure[dummy] \starttext \startplacefigure[location=left,number=no,title

Re: [NTG-context] chapter numbers

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

Re: [NTG-context] chapter numbers

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

[NTG-context] chapter numbers

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

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

2020-06-02 Thread Wolfgang Schuster
]   [after=\directsetup{chapter:after}] % \setuphead %   [title] %   [after={\blank[...]}] \starttext \dorecurse{10}   {\chapter{Chapter #1}    \input knuth} \stoptext Wolfgang ___ If your question is of interest to others

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

2020-06-02 Thread jbf
standard chapter head. Julian On 3/6/20 12:58 am, Wolfgang Schuster wrote: jbf schrieb am 02.06.2020 um 11:41: Hi list, I am attempting to achieve, for every second chapter, to have only one line of space between the chapter title and the text that follows. I looked at the following

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

2020-06-02 Thread Wolfgang Schuster
jbf schrieb am 02.06.2020 um 11:41: Hi list, I am attempting to achieve, for every second chapter, to have only one line of space between the chapter title and the text that follows. I looked at the following example in the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def

[NTG-context] reduced space below chapter title

2020-06-02 Thread jbf
Hi list, I am attempting to achieve, for every second chapter, to have only one line of space between the chapter title and the text that follows. I looked at the following example in the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def\MyChapterCommand#1#2% {\vbox to 4cm\bgroup

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Wolfgang Schuster
es as well but the input is different because everything is hidden. \starttext \startplacefigure[title={A combination of three figures}]     \startcombination[3*1]     {\externalfigure[image-1.pdf][width=4cm]}{a}     {\externalfigure[image-2.pdf][width=4cm]}{b}     {\externalfigure[im

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Wolfgang Schuster
Otared Kavian schrieb am 01.06.2020 um 14:30: Hi all, Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below? \startplacefigure[title={A combination of three figures}] % this title appears below the

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
tared > On 1 Jun 2020, at 14:51, Tomas Hala wrote: > > Hi Otared, > > maybe there is a better, more system solution, but the following works: > > \setupcaptions[figure][location=bottom] > \startplacefigure[title={A combination of three figures}] % this titl

Re: [NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Tomas Hala
Hi Otared, maybe there is a better, more system solution, but the following works: \setupcaptions[figure][location=bottom] \startplacefigure[title={A combination of three figures}] % this title appears below the figure \startcombination[3*1] {\framed[width=4cm]{a}}{\externalfigure[image-1

[NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
Hi all, Is it possible to write the individual captions for each element of a combination of floats above it, while the caption for the figure appears below? \startplacefigure[title={A combination of three figures}] % this title appears below the figure \startcombination[3*1

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

2020-05-29 Thread Henning Hraban Ramm
image empty }{% \directsetup{noheader} \vbox{% {\ChapterFont\structurevariable{title}\par}% \blank[big] \externalfigure[img/\structureuservariable{image}][width=0.8\textwidth]\par } \doifnot{\structureuservariable{vita}}{}{% if vita \vfill \vbox

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

2020-05-29 Thread Jan U. Hasecke
, suppose you wanted to use the image defined as part of > `\startchapter` as the background image of the _current_ page, then you > could access the value of the \structureuservariable. For example, > > \startchapter[title=whatever][image=filename] > > \structureuservariable{i

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

2020-05-29 Thread Aditya Mahajan
7;t have to worry about it. See https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data for more details. Now, suppose you wanted to use the image defined as part of `\startchapter` as the background image of the _current_ page, then you could access the value of the \s

Re: [NTG-context] referencing both real and user pagenumbers

2020-05-29 Thread Wolfgang Schuster
] \starttext \chapter[title=My first, reference=First] \page in chapter 1 on page \getreference[realpage][First] \stoptext Create a new reference command with \definereferenceformat [getrealpage] [type=realpage] and use it (e.g. \getrealpage[First]) to show the page number. Wolfgang

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

2020-05-29 Thread Wolfgang Schuster
=\structureuservariable{image}]}] \setupexternalfigure[location=default] \starttext \startchapter [title={Tufte}] [image=cow] \dorecurse{4}{\samplefile{tufte}} \stopchapter \startchapter [title={Knuth}] [image=mill] \dorecurse{8}{\samplefile{knuth}} \stopchapter \startchapter [title={Zapf}] [image=hacker

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

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

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

2020-05-29 Thread juh
,backgroundcolor=blue,] \page[empty,right] \popbackground} \stopsetups \setuphead [chapter] [ page=yes, before=\directsetup{chapter:before}, ] \setupexternalfigure[location=default] \starttext \startchapter [title={foo}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter

Re: [NTG-context] About the use of command handlers

2020-05-29 Thread Hans Hagen
k \appendtoks \setuevalue{\currentlook}{\module_look_do{\currentlook}} \to \everydefinelook \unexpanded\def\module_look_do#id% {\edef\currentlook{#id}% \dosingleempty\module_look_do_do} \def\module_look_do_do[#parms]#content% {\dontleavehmode \begingroup \iffirstargument \setupcurren

Re: [NTG-context] Anyone managed a tabulated table of contents

2020-05-25 Thread Hans Hagen
On 5/25/2020 2:40 PM, Bruce Horrocks wrote: I can't be the first to have wanted to try something like this. Is it possible to use tabulate (or any of the table types) to customise the layout of the table of contents? I'd like 4 columns - title, subject, author and page - where s

[NTG-context] Anyone managed a tabulated table of contents

2020-05-25 Thread Bruce Horrocks
I can't be the first to have wanted to try something like this. Is it possible to use tabulate (or any of the table types) to customise the layout of the table of contents? I'd like 4 columns - title, subject, author and page - where subject and author will (eventually) be

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread context
Hello Garulfo, thanks for the great work! Two suggestions: 1. Obsolete manuals: Could their pictures be scratched somehow? One will see on the first sight that he is to investigate "no-more-valid" stuff. 2. Could you add a "download all manuals" hlink/button next to

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Hans Hagen
On 5/20/2020 4:55 PM, cont...@vivaldi.net wrote: 2. Could you add a "download all manuals" hlink/button next to each (sub)title to download appropriate manuals as .zip, so to get: most manuals are in the di

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
[mycommand] \setelementnature[mycommand][mixed] \starttext \startsection[title={Sample document}] \startparagraph This is a paragraph \stopparagraph \startelement[mycommand][name=whatever] This is mycommand \stopelement \stopsection \stoptext ``` gives ``` http://www.w3.org/1998/M

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
ttext \startsection[title={Sample document}] \startparagraph This is a paragraph \stopparagraph \startelement[mycommand][name=whatever] This is mycommand \stopelement \stopsection \stoptext ``` Using `\dostarttagged{mycommand}{whatever}` does export as ``, and looking at the code, I don'

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Hans Hagen
[title={Sample document}]   \startparagraph     This is a paragraph   \stopparagraph   \startmycommand     This is mycommand   \stopmycommand \stopsection \stoptext ``` If I compile using `context --trackers=structures.tags filename`, I get ``` backend > tags > U+0031:1 =>

[NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
Hi, What is needed to enable export of user defined macros? Consider the following example: ``` \def\startmycommand{\dostarttagged{mycommand}\empty} \def\stopmycommand {\dostoptagged} \setupbackend[export=xml, level=0] \starttext \startsection[title={Sample document}] \startparagraph

[NTG-context] ConTeXt doesn't recognize source on network drive?

2020-05-11 Thread context
/context/base/mkiv/cont-yes.mkiv: ! I can't find file `x://Users/MMi/Akce/Stechovice-I-etapa.RDS/Projekt.RDS/P.Prac/SO_251/TZ/14-001-TZ.mkiv'. l.8 } l.97 \getvalue{clf_processjob} % from cont-run.lua 1 %D \module 2 %D [ file=cont-yes,

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Wolfgang Schuster
can use a project file where you load all environments and load then the project file in your product and component files. ##chapter-4-seconde.tex## \startcomponent chapter-4-seconde Add here \environment ... or \project ... \startchapter[title=] ... \stopchapter \stopcomponent Wolfgang

Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Fabrice Couvreur
Hi Aditya, It does not work ; the compilation encounters errors with each command that I created. I guess it comes from the components. Fabrice ##chapter-4-seconde.tex## \startcomponent chapter-4-seconde \startchapter[title=] ... \stopchapter \stopcomponent Le jeu. 7 mai 2020 à 16:01, Aditya

Re: [NTG-context] \placetable[location=split] reference ??

2020-05-07 Thread Benjamin Buchmuller
different as soon as xtable tries to place them … Cheers \startplacetable[reference=tab1,title={A table},location=split] \startxtable[split=repeat] \startxrow \startxcell hi \stopxcell \stopxrow \stopxtable \stopplacetable > On 22 Apr 2020, at 21:10, Benjamin Buchmuller > wrote: > >

Re: [NTG-context] long caption in 2-page spread

2020-05-07 Thread jbf
After trying Hraban's two suggestions to resolve the problem of a caption ('title=') for an image across a two-page spread (and I have tried a variety of adaptations of those two possible solutions), I still have not resolved the issue. To repeat what Hans gave me, to res

Re: [NTG-context] long caption in 2-page spread

2020-05-04 Thread Henning Hraban Ramm
simplifies matters). > > But in my case the title is a lengthy sentence, rather than the 4-word 'This > is a cow'. And even though I have been able to split the line, e.g. > title={this is my very, very, very,\\ very etc. etc. long title}, what > happens is that part of the capt

[NTG-context] long caption in 2-page spread

2020-05-04 Thread jbf
The following excellent solution (see below) to a 2-page spread of an image was given me by Hans (I had been completely unaware of the command \startspread. It appears to be recent and undocumented, but it certainly simplifies matters). But in my case the title is a lengthy sentence, rather

[NTG-context] unwanted vertical spaces after sectionhead in column layout

2020-05-02 Thread Damien Thiriet
Hello list, Looks like lmtx adds extra vertical space after heads. Compare those two MWE: \setuppapersize [S4] \setuphead [subject] [after={}] \starttext \startsubject[title={blabla}] \input knuth \stopsubject \stoptext \setuppapersize [S4] \setuphead [subject] [after={}] \starttext

Re: [NTG-context] \definehead behaving differently when in an environment file versus \input'ed

2020-05-02 Thread Wolfgang Schuster
[termes,14pt] \starttext {\bfc Cheesy double boxed title} \stoptext end example while your complexer version loads the bodyfont after \starttext (\startcomponent acts here as \starttext) begin example \starttext \setupbodyfont[termes,14pt] {\bfc Cheesy double boxed title} \stoptext %

Re: [NTG-context] Trouble setting PDF boxes

2020-04-30 Thread Jack Steyn
etuplayout[location=middle, marking=on] \setupinteraction [title={TestDoc}, author={Anon}] \setupbackend [format=PDF/X-1a:2003, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \setupinteractionscreen[width=max,height=max] \startluacode moduledata.mystuff={} respecify_pdf_boxes

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Hans Hagen
lacefigure[location=here,title={This is a cow!}] \externalfigure[cow.pdf][height=\textheight]% \stopplacefigure \stopspread \setuppagenumbering[state=start] \stoppostponing \dorecurse{10}{\input tufte \par}

[NTG-context] \placetable[location=split] reference ??

2020-04-22 Thread Benjamin Buchmuller
Hi, I would like to reference a table of the following structure. \starttext \startplacetable[reference=tab1,title={A table},location=split] \startxtable \startxrow \startxcell hi \stopxcell \stopxrow \stopxtable \stopplacetable In Table \in[tab1] \stoptext It has [location=split], which I

Re: [NTG-context] TOC- removing Contents 0

2020-04-22 Thread Pablo Rodriguez
On 4/22/20 2:44 AM, jbf wrote: > A simple question, but I have not found an answer to it as yet: > > \completecontent does everything it is supposed to, including providing > the title 'Contents' on the ToC page, but it also gives me as the first > line in the ToC: > &

Re: [NTG-context] TOC- removing Contents 0

2020-04-21 Thread Henning Hraban Ramm
> Am 22.04.2020 um 02:44 schrieb jbf : > > A simple question, but I have not found an answer to it as yet: > > \completecontent does everything it is supposed to, including providing the > title 'Contents' on the ToC page, but it also gives me as the first line

[NTG-context] TOC- removing Contents 0

2020-04-21 Thread jbf
A simple question, but I have not found an answer to it as yet: \completecontent does everything it is supposed to, including providing the title 'Contents' on the ToC page, but it also gives me as the first line in the ToC: Contents  0 In fact the ToC appears on page 1, but

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
xml:section > > \doifelse{\xmlatt{#1}{id}}{\selectedtopic} > {\setvariable{xml}{beforesection}{conditional}} > {\setvariable{xml}{beforesection}{}} > > \startsection[title={\xmlatt{#1}{id}}] > \xmlflush{#1} > \stopsection > >

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
\xmlregistersetup{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \startsection[title={\xmlatt{#1}{id}}, beforesection={\doif{\xmlatt{#1}{id}}{\selectedtopic} {conditional}}] \xmlflush{#1} \doif

[NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
\xmlflush{#1} \stopxmlsetups \startxmlsetups xml:section \startsection[title={\xmlatt{#1}{id}}, beforesection={\doif{\xmlatt{#1}{id}}{\selectedtopic} {conditional}}] \xmlflush{#1} \doif{\xmlatt{#1}{id}}{\selectedtopic}{conditional} \stopsection

Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Aditya Mahajan
y It uses \wrappedcurrentconstruction. However, it only prints the counter label and the counter name. What if I need the text enclosed by braces in the frame header too? E. g. \starttheorem[thm1]{Residue theorem} so the framed title includes "Residue theorem" also. Thank you in advance.

[NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Jairo A. del Rio
ed by braces in the frame header too? E. g. \starttheorem[thm1]{Residue theorem} so the framed title includes "Residue theorem" also. Thank you in advance. ___ If your question is of interest to others as well

<    10   11   12   13   14   15   16   17   18   19   >