[NTG-context] Re: appendaction in "shipouts" "after" fails in the latest version

2024-09-21 Thread 黄复雄
| fatal error: return code: 1 > > D:\ah21\TEX\vertical-typesetting> > ``` > > and got a mini-try-error.log: > > ```text > return { > ["filename"]="d:/ah21/TEX/vertical-typesetting/mini-try.lmtx", > ["lastcontext"]="", &g

[NTG-context] appendaction in "shipouts" "after" fails in the latest version

2024-09-15 Thread 黄复雄
;]="d:/ah21/TEX/vertical-typesetting/mini-try.lmtx", ["lastcontext"]="", ["lastluaerror"]="registered function call [254]: ...n64/tex/texmf-context/tex/context/base/mkiv/util-seq.lua:328: attempt to call a nil value\nstack traceback:\n

[NTG-context] Re: ConTeXt LMTX 2024, \setupalign: Is the "Nicer justification and microtypography" list of options listed in ConTeXt Garden now obselete?

2024-09-14 Thread Wolfgang Schuster
ramed   [Example]   [width=max,    offset=none,    framecolor=lightgray] \starttext \startprocesscommalist[normal,{normal,verytolerant},{normal,stretch},{normal,hanging},{normal,hz}]   \starttitle[title=\currentcommalistitem]     \startframed[Example][align=\currentcommalistitem]     \samplefile{

[NTG-context] collector advice

2024-09-11 Thread jbf
all, hence the 5cm width. Problem is that that vertical label (Taken by...) is on the right hand side of the page, and I can't seem to adjust that with various offset attempts to bring it across to the right of the pic. How do I now get it to

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

2024-09-09 Thread jbf
\c!leftwidth \n \\hss \\egroup ...\n ...\n\n \n \\stopfrontmatter\n\n", ["lastluaerror"]="", ["lasttexerror"]="Valid keyword expected, likely 'plus'", ["lasttexhelp"]="You started a keyword but it seems to be an invalid one. The

[NTG-context] slanted fallback and compact fonts

2024-08-19 Thread Pablo Rodriguez via ntg-context
:{slanted}}] \setupbodyfont[mainface] \startTEXpage[offset=1em] a \it a \stopTEXpage \stoptext Compact fonts in LuaMetaTeX prevent the slanted in the fallback font, but it causes no problem with the main defined font family. MkIV slants both the fallback and the main font families. I guess

[NTG-context] Re: Problem with Cambria

2024-08-16 Thread Lutz Haseloff
ia. >> >> My file is: >> >> \setupbodyfont[cambria] >> \definefont[symbola][file:symbola*default at 10pt] >> \starttext >> \startMPpage[offset=1dk] >> draw textext("AC{\symbola ⚡}DC"); >> \stopMPpage >> \stoptext > >Which result (YE

[NTG-context] Re: Problem with Cambria

2024-08-16 Thread Wolfgang Schuster
Lutz Haseloff schrieb am 16.08.2024 um 09:47: Hi Hans, hi all, the latest ConTeXt lmtx seems to have a problem with MS Cambria. My file is: \setupbodyfont[cambria] \definefont[symbola][file:symbola*default at 10pt] \starttext \startMPpage[offset=1dk] draw textext("AC{\symbola

[NTG-context] Problem with Cambria

2024-08-16 Thread Lutz Haseloff
Hi Hans, hi all, the latest ConTeXt lmtx seems to have a problem with MS Cambria. My file is: \setupbodyfont[cambria] \definefont[symbola][file:symbola*default at 10pt] \starttext \startMPpage[offset=1dk] draw textext("AC{\symbola ⚡}DC"); \stopMPpage \stoptext mtxrun find

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
> > > On Wed, Aug 7, 2024 at 1:01 AM Henning Hraban Ramm wrote: > > > > > > Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal: > > > > What is the general method of customizing chapter tit

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
t; > using Metapost? > > > > If you can create it with a macro, you can use it for a title. > > > > This looks just like \framed and \rotate with \offset. > > > > Hraban > > ___

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
attachment. Is it achievable without > > using Metapost? > > If you can create it with a macro, you can use it for a title. > > This looks just like \framed and \rotate with \offset. > > Hraban > ___

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Henning Hraban Ramm
\framed and \rotate with \offset. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

[NTG-context] Re: Customizing chapter and page no. styles

2024-08-02 Thread Duncan Hothersall
yscaled 1cm ; \stopuseMPgraphic \defineoverlay[circled][\useMPgraphic{circled}] \def\Circled#1% {\framed [background=circled,frame=off,offset=overlay] {\color[darkred]{#1}}} \setuppagenumbering[location=] \setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}] and for

[NTG-context] Re: MetaPost background

2024-07-23 Thread Wolfgang Schuster
"gray" ; w := MakeupWidth; h := OverlayHeight; draw (0,0)--(MakeupWidth,0) withpen pencircle scaled 2pt withcolor green; draw (0,OverlayHeight)--(MakeupWidth,OverlayHeight) withpen pencircle scaled 2pt withcolor green; Add offset value to the horizontal/vertical dimensi

[NTG-context] About a pagination

2024-07-23 Thread Fabrice Couvreur
er:rightpage}] [\prefixedpagenumber] [\prefixedpagenumber] [\directsetup{header:leftpage}] \defineframedtext [ChapterFrame] [frame=on, width=local, height=broad, after={\blank[2*line]}, offset=0pt] \startsetups [section:chapter] \setuphead [chapter] [align=leftright, textco

[NTG-context] Draw leftframe to a description

2024-07-08 Thread Gerion Entrup
thickness=1mm, framecolor=blue, toffset=0mm, % there is an offset anyways ] %% -> mwe-textbackground.pdf % \definetextbackground[excursusbg] [ % location=text, % background=color, % backgroundcolor=lightblue, % frame=on, % loffset=10cm, % seems t

[NTG-context] How to specify a default formatting for TABLE

2024-07-01 Thread Gerion Entrup
, offset=2pt] \setupTABLE[row][first][topframe=on, bottomframe=on, style=bf] \setupTABLE[row][last][bottomframe=on] \setupTABLE[row][even][background=color,backgroundcolor=red] \setupcolors[state=start] \starttext A table:\\ \bTABLE \bTR \bTD head1 \eTD \bTD head2 \eTD \eTR \bTR \bTD

[NTG-context] (any) link with document breaks Reader DC

2024-06-25 Thread Pablo Rodriguez via ntg-context
Reader for Windows and macOS with the US English version may not crash (I was told). The sample document contains only a link. It has generated from the following source: \setupinteraction[state=start] \starttext \startTEXpage[offset=1dk] \protected\define[1]\myurl% {{\tt\goto

[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
ckrule [width=4cm]} is it and the question is how > >> \stacking > >> [two] {\scale [s=2] {fancy}} we can go > >> > >> \startstacking[one] > >> \startformula > >> \sqrt{1+x} > >> \stopformula > >> \stopstacking > &g

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
\startstackingsteps[one,two,{one,two}] \startTEXpage[offset=1ts] \getbuffer \stopTEXpage \stopstackingsteps \startTEXpage[offset=1ts] \setupstacking[criterium={one}] \getbuffer \stopTEXpage \startTEXpage[offset=1ts] \setupstacking[criterium={two}] \getbuffer

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
ncy}} we can go > > > > \startstacking[one] > > \startformula > > \sqrt{1+x} > > \stopformula > > \stopstacking > > > > and how useful \stacking[two]{\inframed{it}} is. > > \stopbuffer > > > > \startstackingsteps[one,two,{

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
gt; \definestacking[one] > > \definestacking[two] > > > > \startstackingsteps[one,two,{one,two}] > > \startTEXpage[offset=1ts] > > \getbuffer > > \stopTEXpage > > \stopstackingsteps > > I have crude macros which provide this features (save stuff

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
and how useful \stacking[two]{\inframed{it}} is. > \stopbuffer > > \startstackingsteps[one,two,{one,two}] > \startTEXpage[offset=1ts] > \getbuffer > \stopTEXpage > \stopstackingsteps > > \startTEXpage[offset=1ts] \setupstacking[criterium={one}

[NTG-context] Re: weekend update

2024-06-21 Thread Aditya Mahajan
On Fri, 21 Jun 2024, Hans Hagen via ntg-context wrote: > Hi, > > -- support for stacking at the tex end (maybe for presentations) > > \starttext > > \definestacking[one] > \definestacking[two] > > \startstackingsteps[one,two,{one,two}] > \startTEXpage

[NTG-context] weekend update

2024-06-21 Thread Hans Hagen via ntg-context
g[two]{\inframed{it}} is. \stopbuffer \startstackingsteps[one,two,{one,two}] \startTEXpage[offset=1ts] \getbuffer \stopTEXpage \stopstackingsteps \startTEXpage[offset=1ts] \setupstacking[criterium={one}] \getbuffer \stopTEXpage \startTEXpage[offset=1ts] \setupstacking[criterium

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-21 Thread Hans Hagen via ntg-context
draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ; draw textext("one") withcolor darkgreen withstacking 11 ; draw textext("two") withcolor darkgreen withstacking 12 ; draw textext("three") withcolor darkgreen withstacking 13 ; \stopuseMP

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-21 Thread Gerion Entrup
mm ; > draw fullcircle scaled 3cm withcolor darkred withstacking 1 ; > draw fullcircle scaled 2cm withcolor darkblue withstacking 2 ; > draw textext("one") withcolor darkgreen withstacking 11 ; > draw textext("two") withcolor darkgreen withstacking

[NTG-context] (off-topic) hovering over links in Acrobat Reader

2024-06-19 Thread Pablo Rodriguez via ntg-context
\def\myhref#1#2% {\goto{\hyphenatedurl{#1}}[url(#2)]} \starttext \startTEXpage[pagestate=start, offset=1em, align=center] {\bfa Hovering Over Links} \blank[1st] \attachment[method=hidden, file={signed-a.pdf}] \goto{An embedded PDF document}[signed-a::] \blank[.5st

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-19 Thread Hans Hagen
color darkgreen withstacking 11 ; draw textext("two") withcolor darkgreen withstacking 12 ; draw textext("three") withcolor darkgreen withstacking 13 ; \stopuseMPgraphic \startTEXpage[offset=.25ts] \useMPgraphic{test}{stacking={1,11}} \stopTEXpage \startTEXpage[offset=.25t

[NTG-context] Re: digital signing in ConTeXt

2024-06-18 Thread Pablo Rodriguez via ntg-context
change that we also need to > change the verify offset (so two patches) I have just discovered that verify didn’t work with the binary. Figuring out now how to testing with the library. >> Signatures in PDF-2.0 loose their possibility of other ranges than the >> entire file. Their use

[NTG-context] Re: digital signing in ConTeXt

2024-06-18 Thread Hans Hagen via ntg-context
nd is value has been hashed. i know but when i tested with q and m that spaces was kind of fuzzy so i stuck with what seemed to work As far as I know, this has to be a reason for digest mismatch (or a huge hash collision). could be (depends on checker) but it we change that we also need to chang

[NTG-context] extensibles not rendered

2024-06-18 Thread Jacob Kauffmann via ntg-context
remember correctly extensibles were properly rendered in Acrobat Reader before the update. Best wishes, Jacob \setupbodyfont[8pt] \startTEXpage[offset=none] $\overbracket{\hbox to 1cm{}}$ \blank $\fenced[brace]{\vbox to 1cm{}}$ \stopTEXpage

[NTG-context] Re: digital signing in ConTeXt

2024-06-17 Thread Hans Hagen via ntg-context
signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred] {\fieldbody[signature][width=3cm,option=hidden]} \stopTEXpage \stoptext After compiling the sample, you need to run: mtxrun

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-17 Thread Hans Hagen
Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - \starttext \startTEXpage[offset=1pt] \colored[a=1,t=.5,r=

[NTG-context] digital signing in ConTeXt

2024-06-17 Thread Pablo Rodriguez via ntg-context
/ECSXLVMT3TMQBIHA2UZJPWJN7OVV5334/attachment/2/mycert.pfx (I sent it myself). Here is a sample document (actually provided by Hans): \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on

[NTG-context] Re: Combine \setupdelimitedtext with an author (define custom variable?)

2024-06-17 Thread Gerion Entrup
[extract] [renderingsetup=userdata:extract] \defineuserdata [extract] [style=italic, alternative=extract] \defineframed[chapter_frame][ width=\textwidth, align=flushright, offset=0pt, rulethickness=0pt ] \startsetups[my_chapte

[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
:Sunrise}] \defineoverlay[Sunset][\useMPgraphic{Sun::Sunset}] \defineoverlay[Light][\useMPgraphic{Sun::Light}] \defineframed [SunA] [strut=yes, height=\lineheight, width=\emwidth, frame=off, offset=0pt] \defineframed [SunB] [strut=yes, height=\lineheight, width=\emwidth, fram

[NTG-context] Re: Scale notation base on current font

2024-06-08 Thread Wolfgang Schuster
has same style all over the document. but i want it to have style base on current font and if the font changes, the style should change, while maintaining the ratio of sizes(i.e., at the half of current font). i attached the resulted pdf 1. You can use the \offset command to raise the footnote

[NTG-context] issue with signing

2024-06-03 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed[background=signature,framecolor=darkred

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
umber, title etc. > > begin example > \defineframed >[ChapterFrame] > [width=\textwidth, > align=flushright, > offset=0pt, > rulethickness=0pt] > > \startsetups [christian_dietrich] >\startlocalheadsetup > \startframed[ChapterFrame] &g

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Wolfgang Schuster
hange the font for each element disable the default settings with \setuphead[style=] and use \startfont (or \definedfont) to apply a different style for the number, title etc. begin example \defineframed [ChapterFrame] [width=\textwidth, align=flushright, offset=0pt, rulethic

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
to get the text bold. However, `#1` and `#2` does not seem to > > follow this. > > ``` > > \define[2]\MyChapter{% > > \bold #1 #2: \structureuservariable{subtitle} > > (\structureuservariable{intro}) > > } > > ``` > > > > ## Makeups > >

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
ixed alignment and it does not solve the font size > problem: > ``` > \definemakeup[chapter][align=left, top=] > \define[2]\MyChapter{% > \startmakeup[chapter] > #1 #2:\\ > \structureuservariable{subtitle}\\ > \stopmakeup > (\structureuservariable{in

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
; ``` > > ## Makeups > > The best solution, I had so far, was to define a makeup, but I don't get it > to work with text with mixed alignment and it does not solve the font size > problem: > ``` > \definemakeup[chapter][align=left, top=] > \define[2]\MyChapter{% &g

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
pmakeup (\structureuservariable{intro}) } ``` (see 5.pdf) ## Framed I also have tried this but it does not bring any linebreaks: ``` \define[2]\MyChapter{% \framed[frame=off, offset=0pt]{#1\\#2:\\ \structureuservariable{subtitle}\\ (\structureuservariable{intro})} } ``` (see 6.pdf)

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Pablo Rodriguez via ntg-context
On 5/28/24 20:06, Hans Hagen wrote: > On 5/28/2024 6:25 PM, Tomáš Hála wrote: >> Hi Pablo, >> >> unfortunately, that it is not possible: >> >> http://lua-users.org/wiki/PatternsTutorial, section Limitations. > > \starttext > \startTEXpage[pagestate=s

[NTG-context] Re: regular expression as lua pattern

2024-05-29 Thread Henning Hraban Ramm
Am 28.05.24 um 20:06 schrieb Hans Hagen: On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em]     \startluacode

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
amed >   [textcircled] >   [width=1.4em, >    height=1.4em, >    frame=off, >    background=textcircle, >    framecolor=colour_text, >    location=low, >    offset=none] >    >    \starttext >    Here are the numbers \textcircled{1}, \textc

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
{X} that uses as its background % the above overlay... \defineframed [textcircled] [width=1.4em, height=1.4em, frame=off, background=textcircle, framecolor=colour_text, location=low, offset=none] \starttext Here are the nu

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Hans Hagen
On 5/28/2024 6:25 PM, Tomáš Hála wrote: Hi Pablo, unfortunately, that it is not possible: http://lua-users.org/wiki/PatternsTutorial, section Limitations. \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local pat = (lpeg.Cmt(lpeg.P("

[NTG-context] Re: regular expression as lua pattern

2024-05-28 Thread Tomáš Hála
\starttext > \startTEXpage[pagestate=start, offset=1em] > \startluacode > local str = "this is that" > context(str:match("(this|these)")) > \stopluacode > \stopTEXpage > \stoptext > > In short, I w

[NTG-context] regular expression as lua pattern

2024-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \startTEXpage[pagestate=start, offset=1em] \startluacode local str = "this is that" context(str:match("(this|these)")) \stopluacode \stopTEXpage

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
=textcircle,   location=low,     offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you is how to set the colour of the circle to match the other text on my page

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
, > frame=off, >     background=textcircle, >   location=low, >     offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you again Wolfgang. This is very helpful and works well. One question I have for you i

[NTG-context] Re: Number in a circle

2024-05-27 Thread vm via ntg-context
if you make width and hwight 1.4en instead of 1.5em, the characters will align with the running text. \defineframed [textcircled] [ width=1.4em, height=1.4em, location=low, corner=round, %radius=.5fw, radius=\dimexpr\framedwidth/2\relax, offset=none

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
 = OverlayWidth,     y      = OverlayHeight/2,  ] ; \stopuniqueMPgraphic \defineoverlay   [svgback]   [\useMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext Hello Seyal, This does work

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
%radius=.5fw, >   radius=\dimexpr\framedwidth/2\relax, >   offset=none] > > \starttext > \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} > \stoptext Thank you kindly, Wolfgang. That worked perfectly. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.the

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
round,   radius=.5fw,   offset=none] \starttext \dostepwiserecurse{0}{9}{1}{#1 = \textcircled{#1}\blank} \stoptext Thanks Wolfgang. I gave it a try on https://context-on-web.eu/, but it failed: Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, bp, dk, or54sp; but yours

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
idth, >     y      = OverlayHeight/2,  ] ; > \stopuniqueMPgraphic > > \defineoverlay >   [svgback] >   [\useMPgraphic{centered_svg}] > > \defineframed[Sback][location=low,background=svgback,frame=off,offset > =8pt] > > \starttext > this is a sample \Sback{1} text

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 16:51 +0200, Wolfgang Schuster wrote: > I can't provide a circle but I can give you a box with rounded > corners. > > \defineframed >    [textcircled] >    [   width=1.5em, >   height=1.5em, >     location=low, >   corner=round, >

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
these commands. Any help appreciated. I can't provide a circle but I can give you a box with rounded corners. \defineframed [textcircled] [ width=1.5em, height=1.5em, location=low, corner=round, radius=.5fw, offset=none] \starttext \dostepwiserecurse{0}{9}{

[NTG-context] Re: Number in a circle

2024-05-27 Thread seyal zavira
[\useMPgraphic{centered_svg}] \defineframed[Sback][location=low,background=svgback,frame=off,offset=8pt] \starttext this is a sample \Sback{1} text \stoptext On Mon, May 27, 2024 at 12:38 AM Kip Warner wrote: > Hello list, > > I would like to typeset a number in a circle. Nothing fan

[NTG-context] Re: wrong font scaling in LMTX?

2024-05-26 Thread Wolfgang Schuster
] \starttext \startTEXpage[pagestate=start, offset=1em] \rm a\ss a\\ {\rm a\ssd a}\\ {\rm a\ssx a}\\ {\rm a\ssxx a} \stopTEXpage \stoptext Scaled \ssx and \ssxx are wrong in LMTX (not scaled at all). All font sizes are scaled fine in MkIV. In both

[NTG-context] wrong font scaling in LMTX?

2024-05-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][ss][TeX Gyre Heros] [scale=0.125] \setupbodyfont[mainface] \starttext \startTEXpage[pagestate=start, offset=1em

[NTG-context] update

2024-05-17 Thread Hans Hagen
nother fancy feature was added: \startTEXpage[offset=1ts] \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100]\blue\samplefile{tufte}\removeunwantedspaces\stopshadow\space \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100,dx

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
without sectioning, and after 2 pages by uncommenting the \startsection and \stopsection commands. \setupbodyfont [pagella, 8pt] \setupframed [frame=on, offset=0.000pt, rulethickness=0.000pt, location=top, align=normal, strut=yes, ] \setuplayout [grid=yes] \setupinteraction

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Mikael Sundqvist
0.3 local ymin = 0.4 local function f(x,y) local x = xstep*x - xmin local y = ystep*y - ymin local z = x + exp(-60*x) - y if z > 0 then return '1' else return '0' end end potrace.setbitmap("mybitmap", potrace.contourp

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
erstand. > > Thanks > > Fabrice > > > > \startMPpage[offset=1DK] > > > >numeric u; > >u = 6cm; > > > >interim linejoin := mitered; > >interim ahangle := 30; > > > >path xx,

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Hans Hagen
On 5/12/2024 3:57 PM, Fabrice Couvreur wrote: Hi, When I want to draw the curve which corresponds to n=60 (blue curve), it doesn't seem possible: I don't understand. Thanks Fabrice  \startMPpage[offset=1DK]           numeric u;           u = 6cm;           interim linejoin

[NTG-context] Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
Hi, When I want to draw the curve which corresponds to n=60 (blue curve), it doesn't seem possible: I don't understand. Thanks Fabrice \startMPpage[offset=1DK] numeric u; u = 6cm; interim linejoin := mitered; interim ahangle := 30; p

[NTG-context] Re: outlinetext broken?

2024-05-11 Thread Hans Hagen
od.nl - outlines-003.pdf Description: Adobe PDF document \continuewhenlmtxmode \starttext \startMPpage[offset=10pt] draw lmt_outline [ text = "\mathematics{\sqrt{2}-1}" ] ; draw lmt_outline [ text = "\mathe

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread seyal zavira
; \definefont [Ahang] [file:Ahang-Regular.otf*arabis at 18pt] > \setupalign[r2l] > \starttext > {\Ahang تَشْكِيل كَسْرَة} > \stoptext > > \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] > but there is an issue with widths, ill send you a patch to test > > >

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
يل كَسْرَة} \stoptext \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] but there is an issue with widths, ill send you a patch to test The provided "*arabic" featureset should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Reg

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hans Hagen
provided "*arabic" featureset should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ahang تَشْكِيل  كَسْرَة} \stopTEXpage In prehistoric ConTeXt version    2023

[NTG-context] Re: rendering arabic diacritics

2024-05-09 Thread Hamid,Idris
et should suffice for this font. Also TEXpage is useful for this kind of MWE: \definefont [Ahang] [file:Ahang-Regular.otf*arabic at 18pt] \setupalign[r2l] \startTEXpage[offset=1em] {\Ahang تَشْكِيل كَسْرَة} \stopTEXpage In prehistoric ConTeXt version 2023.09.26 18:19 the diacritics look fine in both C

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
r or before the dash, since I don't > like it to stick to some letters like "o"). Just consider that you should add an horizontal box (or pair both space and hyphen), otherwise you may get a line break between character and hyphen (instead of the hair space): \starttext \

[NTG-context] Re: Underbar

2024-03-28 Thread Willi Egger
;> this underbar is a fraction to near the text. So I wanted to use >> \setupbar[…] to change the offset. Unfortunately nothing happens whatever I >> try. >> >> MWE: >> >> \setupba

[NTG-context] Re: Underbar

2024-03-28 Thread Wolfgang Schuster
Willi Egger schrieb am 28.03.2024 um 17:23: Hello everybody, I have a text, where a couple of lines are typeset with \underbar. — To me this underbar is a fraction to near the text. So I wanted to use \setupbar[…] to change the offset. Unfortunately nothing happens whatever I try. MWE

[NTG-context] Underbar

2024-03-28 Thread Willi Egger
Hello everybody, I have a text, where a couple of lines are typeset with \underbar. — To me this underbar is a fraction to near the text. So I wanted to use \setupbar[…] to change the offset. Unfortunately nothing happens whatever I try. MWE: \setupbar[offset=-.5,dy=-.5] \starttext Hello

[NTG-context] Re: offset with \copypages

2024-03-21 Thread Wolfgang Schuster
\startlayout[page] \copypages[test-file.pdf] \stoplayout \stoptext How could I avoid this offset please? You have to change the layout for the pages where you include your images to get rid of the default margins. Wolfgang

[NTG-context] offset with \copypages

2024-03-21 Thread Peter Münster
avoid this offset please? TIA for any hints, -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3

[NTG-context] Re: Adjusted Chapter Headings

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

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

2024-03-16 Thread Jean-Pierre Delange
ans tricky drawing}] Now, see the results of Hans has given to \quote{metapost lovers}, here is some of the trickery used : \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (un

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

2024-03-15 Thread seyal zavira
ut format one has to specify every character with > possible abuse of a substitution feature that accesses it. So that is no > longer a real interesting option, unless of course one exports all text > as curves, just to be sure. > > (I will extend general text suport but it will alw

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

2024-03-15 Thread Hans Hagen via ntg-context
t to do some cleanup, ps. For metapost lovers, here is some of the trickery used: \startMPpage[offset=1ts] draw image ( fill (unitsquare xscaled 10cm yscaled 4cm) withcolor svgcolor(0.5,0,0) ; registerluminositygroup ("test") ( fill (

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Max Chernoff
> Indeed, no need to show of the obvious > > \definebar >[mybar] >[backgroundbar] > [height=\strutht,depth=\strutdp,offset=.250ex,color=red] > > [...] That looks perfect, thanks! -- Max _

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

2024-03-13 Thread Jean-Pierre Delange
ts (a MWE will do). > > Position options: > * relative placement as floats, i.e. \placefigure > * absolute placement on layers, i.e. \setlayer > * relative corrections with \offset (also within floats) > > Hraban > ___

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

2024-03-13 Thread Henning Hraban Ramm
ow (in private mail) how you make your documents (a MWE will do). Position options: * relative placement as floats, i.e. \placefigure * absolute placement on layers, i.e. \setlayer * relative corrections with \offset (also within f

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
ere and I'm just not seeing it in the example. Thanks again, -- Max I can confirm that it works over \alignhere. Hans is doing some black magic, but I guess he did not want to show off by including the whole line. Indeed, no need to show of the obvious \definebar [mybar] [backgroundba

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Hans Hagen
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - inter-001.pdf Description: Adobe PDF document \definebar[mybar][inlined][offset=.25ex,color=red] \starttext \startformula a \alignhere= b + c

[NTG-context] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
enting[yes, 3em] \setuphead[section][page=yes] \unprotect \newbox\intertext_tmp_box \newdimen\intertext_tmp_dimen \starttexdefinition protected newintertext #1 \texthere[left]{ \setbox\intertext_tmp_box=\hbox{ \startframedtext[ offset=none,

[NTG-context] weird character normalization in the wiki

2024-03-09 Thread Pablo Rodriguez via ntg-context
normalization on the way]): \definefontfamily[mainface][rm][EBGaramond] \setupbodyfont[mainface, 500pt] \definecolor [tred] [r=1,t=.5,a=1] \definecolor [tblue] [b=1,t=.25,a=1] \starttext \startTEXpage[offset=1ex] \startoverlay {\color[tred]{Ά}} {\color[tblue]{Ά}} \stopoverlay

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm
={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Wolfgang Schuster
={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Pablo Rodriguez via ntg-context
: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d\\ \stopTEXpage \stoptext LMTX gets b, c and d in slanted form. LuaTeX gets only

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With

[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
s [header:rightpage] \startframed [ frame=off, strut=no, height=\headerheight, offset=none, align=low, roffset=1em, ] \getmarking[subject] \stopframed \stopsetups \startsetups [header:leftpage] \startframed [ frame=off, strut=no, h

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
> in field 'verbose'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/math-tag.lmt:939: in field > 'gettextblob'\n > ...mtx/tex/texmf-context/tex/context/base/mkxl/lpdf-tag.lmt:391: in upvalue > 'makeelement'\n > ...mtx/tex/texmf-context/tex/context/base

  1   2   3   4   5   6   7   8   9   10   >