Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Taco Hoekwater via ntg-context
t;> Von: ntg-context im Auftrag von Joel via ntg- >> context >> Gesendet: Sonntag, 8. Mai 2022 04:49:32 >> An: ntg-context@ntg.nl >> Cc: Joel >> Betreff: [NTG-context] How to place "Content" and other chapter-level titles >> the same vertical di

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Denis Maier via ntg-context
uot;Content" and other chapter-level titles > the same vertical distance from the top? > > I created a chapter title style with a large number telling the chapter > number, > and below it the title of the chapter. > > It looks like this: > > - >

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
title of the chapter. It looks like this: - 1 <--really big chapter number === <-- there is a border created by a background image between these How to keep <--chapter title fish This is the article <-- the artic

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
<--really big chapter number === <-- there is a border created by a background image between these How to keep <--chapter title fish This is the article <-- the article begins about how to keep fish - \definefontsize[a]% \definefontsize

[NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-07 Thread Joel via ntg-context
I created a chapter title style with a large number telling the chapter number, and below it the title of the chapter. It looks like this: -    1   <--really big chapter number=== <-- there is a border created by a background image b

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
][{\directsetup{figure}\tightlayer[figure]}] \startsetups figure \setlayerframed[figure][frame=off,preset=rightbottom]{\copyright\ 2022} \stopsetups \externalfigure[cow][background={foreground,figure}] \stoptext \starttext \definecollector[example] \setcollector [example] {\externalfigure[cow

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

2022-05-02 Thread Denis Maier via ntg-context
{{, }}, and-2={{ und }}] % 1, 2 und 3 > \setuplabeltext [hr] [and-1={{, }}, and-2={{ i }}]% 1, 2 i 3 > > maybe wikify I've just checked, \commalistsentence is already on the wiki, but you have to know it exists. (I'll check whether I can link to that page from somewhere.) But there's

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Pablo Rodriguez via ntg-context
ere. The layer is relative to the page, not to the paper in this case. And the state is an option for the layer (in \definelayer), not for the background, being "start" its default value. Just in case it might help, Pablo \setupexternalfigures [location={default,global}] \

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Henning Hraban Ramm via ntg-context
of the \setlayerframed command . — What would be possible is to attach the layer as a background to one of the different areas of the paper. I hope this gives you a hint how to proceed.. Willi On 15 Apr 2022, at 21:51, Henning Hraban Ramm via ntg-context wrote: Hi again, I’m always struggling

Re: [NTG-context] placing (on) layers

2022-04-16 Thread Willi Egger via ntg-context
be possible is to attach the layer as a background to one of the different areas of the paper. I hope this gives you a hint how to proceed.. Willi > On 15 Apr 2022, at 21:51, Henning Hraban Ramm via ntg-context > wrote: > > Hi again, > > I’m always struggling with putti

[NTG-context] placing (on) layers

2022-04-15 Thread Henning Hraban Ramm via ntg-context
}\relax}] \definelayer[papier][ preset=lefttop, %x=0mm,y=0mm, width=\paperwidth, height=\paperheight, ] \setupbackgrounds[paper][background=cover,state=start] \starttext \showframe TEST \setlayerframed[papier][ preset=lefttop, %x=-\measure{Bleed}, %y=-\measure{Bleed}, offset

Re: [NTG-context] Switching fonts changes framedtext justification

2022-04-07 Thread Thangalin via ntg-context
). \defineoverlay[TextBubbleRxOverlay][\useMPgraphic{TextBubble}{side=0}] \defineframedtext[TextBubbleRxFrame][TextBubbleFrame][ background=TextBubbleRxOverlay, location=left, ] % Send text (right-facing). \defineoverlay[TextBubbleTxOverlay][\useMPgraphic{TextBubble}{side=1}] \defineframedtext

Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context
eader=repeat, option=stretch, > loffset=.5ex,roffset=.5ex] > > \setupTABLE [row] [odd] > [background=color,backgroundcolor=hs-hellblau,] > > \setupTABLE [start] [spaceinbetween=25pt] > > \defineseparatedlist > [preislistecsv] > [separator={;}, % tab >befor

[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context
Hi all, I include tables via csv files like this \processdatabasefile[test][test.csv] I was able to style the tables with this: \setupTABLE [ split=yes, header=repeat, option=stretch, loffset=.5ex,roffset=.5ex] \setupTABLE [row] [odd] [background=color,backgroundcolor=hs-hellblau

Re: [NTG-context] Chapter number retrieval

2022-03-23 Thread Willi Egger via ntg-context
;>> I see a comment by yourself back in 2011 at >>>> https://wiki.contextgarden.net/Last_Head_Number >>>> >>>> I wonder if this helps? >>>> >>>> Julian >>>> >>>> On 22/3/22 07:47, Willi Egger via ntg-context wr

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Adam Reviczky via ntg-context
>> > > >> I see a comment by yourself back in 2011 at > https://wiki.contextgarden.net/Last_Head_Number > > >> > > >> I wonder if this helps? > > &g

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
ntg-context wrote: > >>> Hello everybody! > >>> > >>> > >>> I would like to typeset the chapter title without number in the text. — > >>> However I still would need to retrieve the number for a calculation in a > >>> MetaFun graphic. I assum

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
lli Egger via ntg-context wrote: >> I would like to typeset the chapter title without number in the text. — >> However I still would need to retrieve the number for a calculation in a >> MetaFun graphic. I assume, that even though this number is not typeset, it >> is kept i

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread śrīrāma via ntg-context
t typeset, it is > kept in the background. How to retrieve it? > Hi, On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote: > > I would like to typeset the chapter title without number in the text. — > However I still would need to retrieve the number for a calculation

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Adam Reviczky via ntg-context
er via ntg-context wrote: > >>> Hello everybody! > >>> > >>> > >>> I would like to typeset the chapter title without number in the text. > — However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that ev

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
without number in the text. — >> However I still would need to retrieve the number for a calculation in a >> MetaFun graphic. I assume, that even though this number is not typeset, it >> is kept in the background. How to retrieve it? >> >> Kind regards >> >> W

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ If your

[NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-21 Thread Willi Egger via ntg-context
o you use \startfrontmatter and \startbodymatter in your document to > create blocks? > > 2. Is you installation up-to-date? > > Attached is a slightly modified version of your example, the only thing which > has to be local to the bodypart is the

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
in your document to create blocks? 2. Is you installation up-to-date? Attached is a slightly modified version of your example, the only thing which has to be local to the bodypart is the background setting to enable the thumb pictures. Wolfgang \definecolor [chap_frame] [black] \definecolor

[NTG-context] Metafun, difficulty with graphical element in the margin, again.

2022-03-19 Thread Willi Egger via ntg-context
, lacking the background of the implementation… So here follows the section of the log with the error: metafun > log > metafun > log > error: Transform components aren't all known metafun > log > metapost> trace > (0,0,mfun_page_h

[NTG-context] Errors compiling the MetaFun manual

2022-03-12 Thread Marco Patzer via ntg-context
wn string ta %% metafun > log > %% metafun > log > error: Equation cannot be performed (unknown string=vacuous) \setupbackgrounds [page] [background={foreground,foregraphics}] \defineoverlay [foregraphics] [\positionoverlay{foregraphics}] \starttext \startMPpo

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
ddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
\externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=chapCover] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[empty]} \stopsetups \set

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
tartsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \resetlayer[chapCover] \setlayer [chapCover] {\determineheadnumber[chapter] \externalfigure [chap-cover-\currentheadnumber] [width=\paperwidth]} \setupbackgrounds[page][background=cha

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
layer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetups chapter:after \doifoddpageelse{} {\page[empty]} \

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
[x=0mm, y=0mm, width=\paperwidth, height=\paperheight,repeat=yes] \setlayer [mill] {\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \p

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
perwidth,height=\paperheight,repeat=yes] \setlayer[mill]{\externalfigure[mill][width=\paperwidth]} \startsetups chapter:before \doifoddpageelse{} {\pushbackground[page] \setupbackgrounds[page][background=mill] \page[empty] \popbackground} \stopsetups \startsetup

[NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
\textwidth]} \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page]%[background=color,backgroundcolor=red] [background=mylayer] \page[empty] \popbackground} \startchapter[title={Prelude}] etc. This correctly places the Chapter1.jpg on the facing page to Chapter 1. My problem comes

[NTG-context] Double-sided documents with MetaFun's Field[Text][Text]

2022-02-06 Thread śrīrāma via ntg-context
}] \setupbackgrounds[page][background=page] \starttext \dorecurse{10}{\input knuth \page} \stoptext %%% EOF In the resulting PDF the Field[Text][Text] path is not positioned (/computed?) correctly, while the manually positioned Area[Text][Text] path is as expected. So, it seems

Re: [NTG-context] doublesided margin page number

2022-01-31 Thread Wolfgang Schuster via ntg-context
Youssef Cherem via ntg-context schrieb am 24.01.2022 um 02:28: I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on? Add     \setupbackgrounds[state=repeat] to your setups to ensure the text background is refreshed. Wolfgang

Re: [NTG-context] doublesided margin page number

2022-01-31 Thread Pablo Rodriguez via ntg-context
works: \setupbackgrounds[page] [setups=setpagenumber, background=pgnumber] Of course, you have to place the layer properly. Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an

[NTG-context] doublesided margin page number

2022-01-23 Thread Youssef Cherem via ntg-context
[pagenumber] [ width=\paperwidth, height=\paperheight, % preset=rightbottom, voffset=.3\paperheight ] %\setupbackgrounds[page][background=pagenumber, setups=setpagenumber] \setupbackgrounds[text] [rightmargin] [background=pagenumber, setups=setpagenumber] %isso aqui é o que funciona para

Re: [NTG-context] new upload

2022-01-23 Thread Arthur Rosendahl via ntg-context
On Sat, Jan 22, 2022 at 06:01:42PM +0530, kauśika via ntg-context wrote: > Recently when we were troubled by incorrect rendering of certain conjuncts in > malayalam, Hans added a new font-feature. More below*, but first some > background: from my testing, the main reason for the

Re: [NTG-context] new upload

2022-01-23 Thread kauśika via ntg-context
ts (what works, what doesn't, fixes, hacks, etc). But mostly it is in a very usable state (for the most part). I am very much a non-expert and helping in very little ways. It is Hans in the background who is doing all the really important things with the code, design and engineering of the

Re: [NTG-context] new upload

2022-01-22 Thread Richard Mahoney via ntg-context
ort .. recent indic (font) > experiences and transliteration tricks will be eplained by kauśika Recently when we were troubled by incorrect rendering of certain conjuncts in malayalam, Hans added a new font-feature. More below*, but first some background: from my testing, the main reason for the pr

Re: [NTG-context] new upload

2022-01-22 Thread kauśika via ntg-context
juncts in malayalam, Hans added a new font-feature. More below*, but first some background: from my testing, the main reason for the problems with fonts seems to come from the varied interpretations and/or implementations of OTF specification. To add to this complexity there are two script tags (

[NTG-context] XML, dealing with whitespace

2022-01-15 Thread Denis Maier via ntg-context
, Denis P.S. Background: I convert docx files with pandoc to jats xml. Pandoc does quite a decent job, but I need to tweak a few things with xslt. The actual transformation that I need works ok, but the transformation also causes other problems. This is the original markdown file

Re: [NTG-context] Conditional text appearing in a fixed vertical space

2022-01-11 Thread Fabrice L via ntg-context
we can not see the text; but of course, if you change the background, you see the hidden text. So there is another step to the process (I usually do this only once a term); open the file in Acrobat, and find the option to delete hidden text. The text for which the color is the same as the back

Re: [NTG-context] Critical Editions?

2022-01-06 Thread Jean-Pierre Delange via ntg-context
post - it might become quickly useless. As long as we have enough nerds who can and will do the necessary work privately, we are safe. Maybe the wrong approach is that studies in humanities don’t need a strong background in computer science (programming). In that case, it is really hard to use

Re: [NTG-context] Critical Editions?

2022-01-06 Thread Pablo Rodriguez via ntg-context
e occasional updates from our normal > budget (the DFG had decreed that no further funding for this project > was possible) and after my retirement - I have no great hopes for a > continuation of my post - it might become quickly useless. As long > as we have enough nerds who can

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
; > How can one go about implementing a ruler around the page/text area > > (such as a background) like the one provided by the latex package > > fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler > > <https://www.ctan.org/tex-archive/macros/l

Re: [NTG-context] measure layer/ ruler

2022-01-01 Thread Hans Hagen via ntg-context
On 1/1/2022 11:46 AM, Youssef Cherem via ntg-context wrote: Dear list users, How can one go about implementing a ruler around the page/text area (such as a background) like the one provided by the latex package fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler <ht

[NTG-context] measure layer/ ruler

2022-01-01 Thread Youssef Cherem via ntg-context
Dear list users, How can one go about implementing a ruler around the page/text area (such as a background) like the one provided by the latex package fgruler? https://www.ctan.org/tex-archive/macros/latex/contrib/fgruler or koma script's \layercontentsmeasure

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Hans Hagen via ntg-context
On 12/24/2021 5:45 PM, Jason Ross via ntg-context wrote: Dear list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names? Background: I am developing an exporter for Org mode. In Org, users can specify the number

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Bruce Horrocks via ntg-context
> On 24 Dec 2021, at 16:45, Jason Ross via ntg-context > wrote: > > Dear list, > > Is it possible to set the maximum table of contents depth to a number rather > than providing an explicit list of section names? > > > Background: > > I am develop

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
r list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names? Background: I am developing an exporter for Org mode. In Org,

Re: [NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Denis Maier via ntg-context
names? Background: I am developing an exporter for Org mode. In Org, users can specify the number of levels they want in the table of contents with a number. I currently do this by having the sectioning commands be known to the ex

[NTG-context] Setting table of contents depth by number rather than by list

2021-12-24 Thread Jason Ross via ntg-context
Dear list, Is it possible to set the maximum table of contents depth to a number rather than providing an explicit list of section names? Background: I am developing an exporter for Org mode. In Org, users can specify the number of levels they want in the table of contents with a number. I

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Wolfgang Schuster via ntg-context
not working for me. Here is my MWE: \define[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background

Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Willi Egger via ntg-context
y MWE: > > > > \define[]\logofile{an_image_file.png} % Here defining the variable with the > filename to use. > > \definelayer[stillimage] > \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the > \logofile macro. > \setupbackground

[NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread skyhorse--- via ntg-context
[]\logofile{an_image_file.png} % Here defining the variable with the filename to use. \definelayer[stillimage] \setlayer[stillimage]{\externalfigure[\logofile]} % Here trying to use the \logofile macro. \setupbackgrounds[page][background=stillimage] \starttext \input knuth \stoptext What's

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Mikael Sundqvist via ntg-context
r} >{\framed > [offset=overlay, > align=normal, > width=\textwidth, > height=2cm]{foo}} > > works but maybe you want this instead: > > \defineoverlay >[MyOrn] >[\MyOrn > {\framedtextparameter{MyTitle}} > {\novrule wi

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Hans Hagen via ntg-context
] [background=MyOrn,width=\textwidth,height=2cm] \startMyText[MyTitle={oeps}] foo \stopMyText Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

[NTG-context] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

[NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

Re: [NTG-context] Sum and mathalignment

2021-11-30 Thread Bruce Horrocks via ntg-context
> On 30 Nov 2021, at 19:34, Alexandre Christe via ntg-context > wrote: > > Dear list, > > > > What I've done is to play with mathalignment and \framed. Here is a MWE: > > \starttext > \defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}] > &g

[NTG-context] Sum and mathalignment

2021-11-30 Thread Alexandre Christe via ntg-context
Dear list, [image: image.png] What I've done is to play with mathalignment and \framed. Here is a MWE: \starttext \defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}] \framed[frame=off,background=midrule,boffset=.65cm]{\startformula \startmathalignment[n=12,align={middle,middle

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-29 Thread Fabrice L via ntg-context
fineblock[Complement] \setupblock[Complement][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \starttext % Let's process the summar

Re: [NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
\defineblock[ComplementTwo] \defineblock[ComplementThree] \setupblock[ComplementTwo,ComplementThree][ before={\page[yes]\setuppagenumber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \startte

[NTG-context] Blocks inside a conditional mode.

2021-11-28 Thread Fabrice L via ntg-context
ber[state=stop]\setupheadertexts[]\setupbackgrounds[page][background=color,backgroundcolor=red]}, after={\page[yes]\setuppagenumber[state=start]}] \doifallmodes{Professor} { \keepblocks[Complement] } \starttext page 1 \beginComplement A complement

Re: [NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
; > \setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery > > Font Here } > > \setupbackgrounds[page][background=mwe] > > > > \starttext > > Normal font text goes here. \blank[4*big] > > { \switchtobodyfo

Re: [NTG-context] font problems

2021-11-26 Thread Hans Hagen via ntg-context
] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font Here } \setupbackgrounds[page][background=mwe] \starttext Normal font text goes here. \blank[4*big] { \switchtobodyfont[chancery] This should be Chancery here to. But isn't. } \blank[2*big]Note

[NTG-context] font problems

2021-11-26 Thread jdh via ntg-context
Font Here } \setupbackgrounds[page][background=mwe] \starttext Normal font text goes here. \blank[4*big] { \switchtobodyfont[chancery] This should be Chancery here to. But isn't. } \blank[2*big]Note that if I comment out the \type{setlayer[mwe

[NTG-context] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
the number? It probably involves neither of the approaches I have used here, but I am not sure just what approach to take, other than using a background layer... and maybe that is what I need to do. Julian \define[2]\MyChapterCommand% {\framed[frame=on,bottomframe=off,leftframe=off,rightframe

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context
, this is what you want: \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title

Re: [NTG-context] repeat layer recto pages

2021-11-09 Thread Pablo Rodriguez via ntg-context
ully; the layer repeats for every page > at the moment. I must have omitted something). Hi Julian, this is what you want: \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment > \startbodymatter

[NTG-context] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
something). \startbodymatter \setupbackgrounds  [rightpage]  [background=butterfly] \startchapter[title={Chapter title}] \definelayer[butterfly]     [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly]     [hoffset=.99\textwidth, voffset=1cm]     {\externalfigure

Re: [NTG-context] To prepare the online meeting of Tuesday

2021-11-06 Thread Hans Hagen via ntg-context
On 11/6/2021 12:37 PM, Alain Delmotte via ntg-context wrote: Hi, I asked to discuss or have some suggestions about installing and using Scite for ConTeXt. If it is possible OK, but it is not urgent. To give some background: I use Windows 10 and lmtx (in its own folder). I installed Scite

[NTG-context] To prepare the online meeting of Tuesday

2021-11-06 Thread Alain Delmotte via ntg-context
Hi, I asked to discuss or have some suggestions about installing and using Scite for ConTeXt. If it is possible OK, but it is not urgent. To give some background: I use Windows 10 and lmtx (in its own folder). I installed Scite in c:\wscite

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Pablo Rodriguez via ntg-context
this will work in your real-world document) might be using \xmlpure instead of \xmlflush as in: \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlpure{#1})] The background for both commands can be found on https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=103. I hope it helps, P

Re: [NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, I found a minimal example. Am Fri, Oct 22, 2021 at 03:11:41PM +0200 schrieb juh via ntg-context: > in a minimal example > > \starttext > \externalfigure[test.svg][conversion=mp] > \stoptext > > renders fine. > > I my real world project white background i

[NTG-context] svg conversion=mp renders wrong background

2021-10-22 Thread juh via ntg-context
Hi all, in a minimal example \starttext \externalfigure[test.svg][conversion=mp] \stoptext renders fine. I my real world project white background is rendered black. Any hints where I can start to debug? juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Es

[NTG-context] Solved: Making metafun pictures fainter

2021-10-12 Thread Gavin via ntg-context
lors (.8white, black); draw fullcircle scaled 1cm withpen pencircle scaled 0.8pt ;); vardef shadow(expr p, t) = draw redecorated (draw p) withcolor t[background,0.8background]; enddef; \stopMPinclusions \startMPpage pair p; for i=0 upto 10: p := (i*cm/10, -((i-7.33)**2)*cm/7); s

[NTG-context] Solved: Making metafun pictures fainter

2021-10-12 Thread Gavin via ntg-context
ullcircle scaled 1cm withpen pencircle scaled 0.8pt ;);  vardef shadow(expr p, t) =    draw redecorated (draw p) withcolor t[background,0.8background];  enddef; \stopMPinclusions\startMPpage  pair p;  for i=0 upto 10:    p := (i*cm/10, -((i-7.33)**2)*cm/7);    shadow(ball shifted p, (i+1)/10)

[NTG-context] Making metafun pictures fainter

2021-10-10 Thread Gavin via ntg-context
t if I put a white circle behind each transparent ball so that they look lighter without showing the earlier objects through them (third example). However, that solution is going to be difficult for more complex shapes. I tried drawing the shape using “redecorated () withcolor white", to dr

[NTG-context] flushlayer

2021-09-28 Thread Bruce Horrocks via ntg-context
] [background=coverlayer,state=start ] \starttext \setlayerframed [coverlayer] [width=60mm,height=60mm,hoffset=0mm,voffset=0mm] [frame=on] {Some framed text top left of paper}% Hello world. %\flushlayer[coverlayer] \stoptext The above works as expected: the framed text is at the top left

Re: [NTG-context] Framedtext : text out of frame

2021-09-26 Thread Hans Hagen via ntg-context
On 9/26/2021 5:07 PM, Fabrice Couvreur via ntg-context wrote: Hi, How to fix the small problem in the code below where the text goes out of the frame ? Thanks Fabrice \usecolors[x11] \starttext   \startframedtext[frame=off,width=\textwidth, align={broad,right},indenting={yes},background

[NTG-context] Framedtext : text out of frame

2021-09-26 Thread Fabrice Couvreur via ntg-context
Hi, How to fix the small problem in the code below where the text goes out of the frame ? Thanks Fabrice \usecolors[x11] \starttext \startframedtext[frame=off,width=\textwidth, align={broad,right},indenting={yes},background=color,backgroundcolor=navajowhite1] \startitemize[columns,three

Re: [NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Wolfgang Schuster via ntg-context
,    height=\paperheight,    location={left,top},    x=120mm,y=220mm,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left

[NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Huseyin Özoguz via ntg-context
,    doublesided=yes] \startsetups layer \setlayer[pagenumber][even]{\pagenumber} \stopsetups \setupbackgrounds[page][setups=layer,background={pagenumber}] \starttext ~\page~\page~\page \stoptext And it works, but only for the left (even) page. On the right page I want to place the pagenumber

[NTG-context] textbackground for text of different size

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, the red highlight block in the following example is not covering the two 40pt characters: \definetextbackground[important][frame=no,background=color,backgroundcolor=red] \starttext abc\important{123{\switchtobodyfont[40pt]45}xy}z \stoptext Is there an option that fixes this? Thanks

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
> > \startuniqueMPgraphic{concept} > > draw fullcircle scaled 1cm shifted (10cm,10cm); > > \stopuniqueMPgraphic > > \defineoverlay[concept][\uniqueMPgraphic{concept}] > > \setupbackgrounds[page][background=concept] > > \starttext > > . > > \stoptext > >

Re: [NTG-context] positioning of metapost figure

2021-09-12 Thread Hans Hagen via ntg-context
ay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][background=concept] \starttext . \stoptext How should the metapost background figure be positioned correctly? \startuniqueMPgraphic{concept} StartPage; draw fullcircle scaled 1cm shifted (10cm,10cm); draw Page withpen

[NTG-context] positioning of metapost figure

2021-09-12 Thread Sylvain Hubert via ntg-context
Dear List, The following code draws a circle at the center of the page, ignoring the "shifted" part. \startuniqueMPgraphic{concept} draw fullcircle scaled 1cm shifted (10cm,10cm); \stopuniqueMPgraphic \defineoverlay[concept][\uniqueMPgraphic{concept}] \setupbackgrounds[page][backgrou

Re: [NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Hans Hagen via ntg-context
] \setupbackgrounds[text][background={bg},state=start] \starttext \starttransparent[light]% \externalfigure[hacker]% \stoptransparent \setlayer[bg][ hoffset=5mm, voffset=5mm, ]{ \starttransparent[light]% \externalfigure[hacker]% \stoptransparent } \stoptext ''' The layer stuff is not "minimal&qu

[NTG-context] transparency stopped working in LMTX

2021-09-07 Thread Henning Hraban Ramm via ntg-context
(Latest LMTX, yesterday’s luametatex binary) The MWE shows no transparency with LMTX, it works with MkIV: ''' \setupexternalfigures[location=default] \definetransparency[light][a=1,t=.05] \definelayer[bg][x=0mm,y=0mm] \setupbackgrounds[text][background={bg},state=start] \starttext

[NTG-context] MetaFun : textext.dflt / textext.dlft and MkIV / LMTX

2021-09-05 Thread Garulfo via ntg-context
Pict /2 , (bbheight Pict / -2) ) ; Pict := Pict rotated 45; Pict := Pict shifted (.5PaperWidth, .5PaperHeight) ; draw Pict withcolor darkyellow ; StopPage ; \stopuseMPgraphic %- \defineoverlay[MonOverlay][\useMPgraphic{MonGraphique}] \setupbackgrounds[page][background=MonOverlay

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Hans Hagen via ntg-context
.5 1.5` echo $OUTPUT ${ROTATION}˚ # downscale, add a white border and a shadow, rotate, move down, add a piece of tape (tesa1.png), grayscale convert "$INPUT" \ -auto-orient \ -resize 800x800 \ -bordercolor white -border 10 \ \( +clone -background black -shadow 80x3+2+2 \) +swap \ -backgrou

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Henning Hraban Ramm via ntg-context
a piece of tape (tesa1.png), grayscale convert "$INPUT" \ -auto-orient \ -resize 800x800 \ -bordercolor white -border 10 \ \( +clone -background black -shadow 80x3+2+2 \) +swap \ -background transparent \ -layers merge \ -rotate ${ROTATION} \ +repage \ -gravity north \ -splice 0x10 \ \(

Re: [NTG-context] layer disappears when showframe is set

2021-08-27 Thread juh via ntg-context
Hi Wolfgang, thanks a lot for your help. Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster: > To keep the layer setting you have to move \showframe above your own > \setupbackgrounds command because the reset of the background-key happens > then before you pass your

Re: [NTG-context] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context
]} \setupbackgrounds[header][background=Cow] \showframe \starttext \input knuth \stoptext The \showframe command is just a wrapper for \setupbackgrounds to enable the frames on certain parts of the page. One of the settings which are passed to \setupbacgrounds when you use \showframe is "backg

[NTG-context] layer disappears when showframe is set

2021-08-26 Thread juh via ntg-context
Hi, this sample shows that the image in a layer in header disappears if showframe is set. \setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0] \setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow] \showframe

Re: [NTG-context] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context
] \definelayer [MyLogo] [doublesided=yes, width=\paperwidth, height=\paperheight, repeat=yes] \setupbackgrounds [page] [background=MyLogo] \setuppagenumbering [alternative=doublesided] \setlayer [MyLogo] [left] [preset=leftbottom, x=\dimexpr\cutspace-\rightmargindistance

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