[NTG-context] Database of translations (was: Simple question)

2022-05-10 Thread Marco Patzer via ntg-context
einput [foo] [\TRfoo] \assigntranslation [en=gamma, nl=delta]\to\TRbar \translateinput [bar] [\TRbar] \enableinputtranslation \starttext foo bar \stoptext It's not a good solution, but it's a start. There's also \translate [en=foo, nl=bar] But I don't know how to combine it with \translat

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

2022-05-02 Thread Denis Maier via ntg-context
Ok, in lua it's indeed simple: \startluacode list = {"foo", "bar", "baz"} \stopluacode \starttext \startluacode for i, v in ipairs(list) do if i == #list then tex.print("last:") tex.print(v) elseif i == 1 then tex.print

Re: [NTG-context] \getcommacommandsize not working in lmtx

2022-05-02 Thread Hans Hagen via ntg-context
More a feature as \define defines a protected macro. \starttext \define\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \defineexpandable\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commali

[NTG-context] \getcommacommandsize not working in lmtx

2022-05-02 Thread Denis Maier via ntg-context
. Best, Denis \define\somelist {foo, bar, baz} \starttext \getcommacommandsize[\somelist] \commalistsize % Expected : 3 % Actual : 1 \expandafter\getcommalistsize\expandafter[\somelist] \commalistsize % Expected : 3 % Actual : 3 \stoptext

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

2022-05-02 Thread Denis Maier via ntg-context
Hi, I need to process a comma separated list, and adapt the formatting according to the position of an item in the list (example below). Expected output would be: {\bf foo }, {\em bar} and baz. Is that possible? Can I somehow get the position of an item in the list? (My understanding

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread BPJ via ntg-context
g > stone » in Persian, was the average distance which a fantassin could walk > in a certain amount of time, and was marked by a large piece of stone on > the road (this is also reported by Herodotus). Each parasang was divided > into three « mil », which means « iron bar » in Persian, an

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread Jean-Pierre Delange via ntg-context
of time, and was marked by a large piece of stone on the road (this is also reported by Herodotus). Each parasang was divided into three « mil », which means « iron bar » in Persian, and was marked by planting an iron bar on the road side. A parasang is between 5400 and 6000 meters, and thus a « mil

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread Otared Kavian via ntg-context
dotus). Each parasang was divided into three « mil », which means « iron bar » in Persian, and was marked by planting an iron bar on the road side. A parasang is between 5400 and 6000 meters, and thus a « mil » is something about 1800 and 2000 meters. These units were used in many areas outside

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
ia ntg-context > wrote: > > What is the correct way to get the last line, "The last foo", > > to automatically be placed below the second table? > > There is only one table in your example. > > > I still want the first line of the table to align vertically with t

Re: [NTG-context] Align table (framed) top

2022-01-04 Thread kauśika via ntg-context
the table to align vertically with the text > Bar. If you don't need a table, the following achieves the same: \starttext Foofoo Bar \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par The last foo \s

[NTG-context] Align table (framed) top

2022-01-04 Thread Mikael Sundqvist via ntg-context
Hi, This is probably simple, but I cannot combine the right keys to get it to work. What is the correct way to get the last line, "The last foo", to automatically be placed below the second table? I still want the first line of the table to align vertically with the text Bar. /Mikael

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Mikael Sundqvist via ntg-context
d of that shift? MWE > > below. > > > > /Mikael > > > > \defineornament[MyOrn][ > >corner={right,bottom}, > >location={right,top}, > >alternative=b, > >][ > >frame=off, > >] > > > > \showframe > > >

Re: [NTG-context] Extra shift with ornament

2021-12-17 Thread Hans Hagen via ntg-context
}, alternative=b, ][ frame=off, ] \showframe \starttext \startframedtext[width=\textwidth,height=2cm]foo\stopframedtext \MyOrn{bar}{\startframedtext[width=\textwidth,height=2cm]foo\stopframedtext} \stoptext framedtext is more for text flow so you get some interferences \MyOrn {bar

[NTG-context] Extra shift with ornament

2021-12-16 Thread Mikael Sundqvist via ntg-context
\startframedtext[width=\textwidth,height=2cm]foo\stopframedtext \MyOrn{bar}{\startframedtext[width=\textwidth,height=2cm]foo\stopframedtext} \stoptext ___ If your question is of interest to others as well, please add

Re: [NTG-context] upload ... new feature

2021-12-10 Thread Hans Hagen via ntg-context
On 12/10/2021 6:04 PM, Pablo Rodriguez via ntg-context wrote: On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote: Hi, This time the lmtx upload has a (for some maybe) interesting new features: runtime pdf encryption. context --ownerpassword=foo [--userpassword=bar

Re: [NTG-context] Defining new float types fails in LMTX

2021-12-10 Thread Marco Patzer via ntg-context
ure [title=Foo] \framed{Foo} \stopplacefigure \startplacefoo [title=Bar] \framed{Bar} \stopplacefoo \stoptext Marco ___ If your question is of interest to others as well, please add an entry to the W

Re: [NTG-context] upload ... new feature

2021-12-10 Thread Pablo Rodriguez via ntg-context
On 12/10/21 11:46 AM, Hans Hagen via ntg-context wrote: > Hi, > > This time the lmtx upload has a (for some maybe) interesting new > features: runtime pdf encryption. > > context > --ownerpassword=foo >[--userpassword=bar] >[--permissions="see contex

[NTG-context] All Equations

2021-12-10 Thread Henning Hraban Ramm via ntg-context
Gauge Theory: \startformula S_g = \frac{-I}{2\bar{\epsilon}} i \delta \left( \xi_{\delta_0} \mathring{+} \rho_\epsilon \rho_v^{abc}\cdot\eta_0 \right) f_a^0 a\lambda(\rotate[rotation=180,location=high]{\xi})\Psi(O_a) \stopformula % ? I guess the first \delta should be crossed somehow? % ? Is it possib

[NTG-context] upload ... new feature

2021-12-10 Thread Hans Hagen via ntg-context
Hi, This time the lmtx upload has a (for some maybe) interesting new features: runtime pdf encryption. context --ownerpassword=foo [--userpassword=bar] [--permissions="see context --help --expert"] One can also use the document banner line, like: % ownerpassword="fo

Re: [NTG-context] new upload

2021-12-01 Thread Hans Hagen via ntg-context
] \placeRussian \stoptitle \stoptext Regarding the implementation: I've just tried it, and I wondered whether the stacking of bars should not happen the other way round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations

Re: [NTG-context] new upload

2021-12-01 Thread Denis Maier via ntg-context
round. As in \underbar{\underdot{asdf}} I would have expected the bar to be below the dot. But maybe that's wrong expectations... Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Hans Hagen > via ntg-context > Gesendet: Dienstag, 30. November 2021 19:56 &

Re: [NTG-context] double underbars

2021-11-30 Thread Hans Hagen via ntg-context
On 11/30/2021 2:52 PM, Taco Hoekwater via ntg-context wrote: But the problem is that you have to create an “underbardot" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underba

Re: [NTG-context] double underbars

2021-11-30 Thread Hans Hagen via ntg-context
" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underbar” (I tried something like that a while ago and basically gave up. I did not want to spend a whole of time on it so I just told the c

[NTG-context] Defining new float types fails in LMTX

2021-11-30 Thread Marco Patzer via ntg-context
: return code: 256 \setupfloat [figure] [default=bottom] %% fails %% [default=top] %% works \definefloat [foo] [foos] [figure] \starttext \startplacefigure [title=Foo] \framed{Foo} \stopplacefigure \startplacefoo [title=Bar] \framed{Bar} \stopplacefoo \stoptext Marco LMTX

Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
les:under:bardots] > > and play with the mp until you are happy with the output. > > But the problem is that you have to create an “underbardot" that contains > both the bar and the dots, to fix the non-nesting problem. It is then quite > hard to get that definition to

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context
t copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do \definebar[underbardot][undergraphic][mp=rules:under:bardots] and play with the mp until you are happy with the output. But the problem is that you have to create an “underbardot" that co

Re: [NTG-context] double underbars

2021-11-30 Thread Henning Hraban Ramm via ntg-context
Am 30.11.21 um 14:19 schrieb Taco Hoekwater via ntg-context: I would like to have this type of “complete” bar nesting as well. YES, #metoo As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations

Re: [NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
’ll need different variants of underbars. > > > > - A normal underbar > > - A dotted underbar > > - A combination of both > > > > Is there a way to combine them? I was hoping to have the dotted variant > above the normal bar. > > I would like to have

Re: [NTG-context] double underbars

2021-11-30 Thread Taco Hoekwater via ntg-context
hem? I was hoping to have the dotted variant above > the normal bar. I would like to have this type of “complete” bar nesting as well. As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations work.

[NTG-context] double underbars

2021-11-30 Thread Denis Maier via ntg-context
Hi, for a current project I'll need different variants of underbars. - A normal underbar - A dotted underbar - A combination of both Is there a way to combine them? I was hoping to have the dotted variant above the normal bar. This is not working

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-29 Thread Joey McCollum via ntg-context
> ... >> >> Maybe play with: >> >> \starttext >> >> \def\WhateverA{\removeunwantedspaces\removepunctuation\space ¶ 1.23} >> \def\WhateverB{¶ 1.23} >> >>

Re: [NTG-context] Math prime issues for some fonts

2021-11-29 Thread Jack Hill via ntg-context
es the tuning of goodie files. I have noticed that the top bar of square root signs don't seem to connect properly with the angled part. This is visible with multiple fonts (some make it more obvious than others) at various zoom levels (I'm using Okular on Linux but other pdf viewers show the same

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-29 Thread Joey McCollum via ntg-context
t; > I was afraid that might be the problem. I've described some of the > > intended purpose of this code near the end of the "Checking for a macro > > ... > > Maybe play with: > > \starttext > > \def\WhateverA{\removeunwantedspaces\removepunctuation\space

[NTG-context] Bad linebreak in figure caption

2021-11-29 Thread Marco Patzer via ntg-context
Hi! The caption "FOO" runs into the right figure's caption: \setuplayout [width=18.4cm] \setuptolerance [verytolerant, stretch] %% even with stretch \starttext \startplacefigure \startfloatcombination \startplacefigure [title=Unexpectedly unnecessary FOO-BA

Re: [NTG-context] Checking for a Unicode prefix of a Unicode string

2021-11-28 Thread Hans Hagen via ntg-context
23} \def\WhateverB{¶ 1.23} foo bar, \WhateverA\ test foo bar, \WhateverB\ test \stoptext so, wrap ¶ into a macro \def\MyParSymbol{\removeunwantedspaces\removepunctuation\space ¶} Hans - Ha

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-28 Thread Hans Hagen via ntg-context
\NC bar \NC\NR \stoptabulate % this does not work \starttabulate[|p|p|] \NS[1][c] Manuskript X \NC\NR \NC foo \NC bar \NC\NR \stoptabulate \stoptext % Changing the column definitions from l,c,r to p breaks it. indeed, i check if that can be handled but it's too

Re: [NTG-context] Have a cell span multiple columns with tabulate

2021-11-28 Thread Denis Maier via ntg-context
Ok, did some tests: Now I understand what was meant with the limitation that this only supports single line cells: % \starttext % this works \starttabulate[|l|l|] \NS[1][c] Manuskript X \NC\NR \NC foo \NC bar \NC\NR \stoptabulate % this does not work

[NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
\dostoptagged \egroup \pack_combinations_pop \egroup \stopalignment \goodbreak\blank[halfline]} \protect \starttext \startcombination [2*2] \startcontent foo \stopcontent \startcaption 1 \stopcaption \startcontent bar \stopcontent \startcaption 2 \stopcaption

[NTG-context] Generating HTML

2021-10-11 Thread Hans Åberg via ntg-context
cator=no] \startchapter[title={Introduction}] Foobar\index{foobar} out of working order. \startbodymatter Foo\index{foo} or bar\index{bar}. \startbackmatter \completeindex \stopbackmatter \stoptext — ___ If your que

Re: [NTG-context] features of fallback font

2021-09-07 Thread Wolfgang Schuster via ntg-context
\bf 人 bar % bar is bold, the second 人 is not \stoptext Does anyone know how to define features for fallback font? \definefallbackfamily [sylvain] [serif] [SimSun]   [range=cjkunifiedideographs,    bf={style:regular,features:boldened}] \definefontfamily [sylvain] [serif] [Latin Modern Roman

[NTG-context] features of fallback font

2021-09-07 Thread Sylvain Hubert via ntg-context
] \definefontfallback [sunbffallback] [name:simsun] [cjkunifiedideographs][features=fakebold] \definefontsynonym [Serif] [modern] [fallbacks=sunfallback] \definefontsynonym [SerifBold] [modern] [fallbacks=sunbffallback] \starttext 人 foo \bf 人 bar % bar is bold, the second 人 is not \stoptext Does

[NTG-context] colors and contours in luametafun

2021-09-01 Thread Jacob Kauffmann via ntg-context
are useful in other use cases as well, such as bar charts, surface plots or shades. One rudimentary example is in the attached file. - number of levels in lmt_contour (potential bug) The number of levels is different from the user's input. Depending on the output range it can be lower or highe

Re: [NTG-context] Handling of negative values in the statistical-charts?

2021-08-28 Thread Ramkumar KB via ntg-context
Hi, I have added an 'advanced' type for line & bar graphs to handle the use case for -ve y-values / 4th quadrant graphs. It works similar to 'basic' but works for -ve y-values (i.e. for the 4th quadrant). PFA the amended lua file (zip file) and sample of line graph. \def\edudataone{-10,3

[NTG-context] Handling of negative values in the statistical-charts?

2021-08-21 Thread Ramkumar KB via ntg-context
df), the y-axis labels and the grids do not seem to be working on the -ve side (also, able to flip labels above x-axis for -ve values). This seems to be the case of column charts and bar charts (and I will test this for the other types of charts also). If this is a more generic issue across all

Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context
[lecturenumber] \doiftext{\getmarking[lecture]}{: \getmarking[lecture]} \stopsetups \setupfootertexts [\directsetup{footer:left}] [] \starttext \completecontent \startlecture [title={Foo}] Foo bar baz \stoplecture \page \startlecture Foo bar baz \stoplecture \stoptext Wolfgang

[NTG-context] Using Lua to format lecture titles

2021-08-17 Thread noib3 via ntg-context
] [ alternative=c, command=\Lecture, % this seems to have no effect? ] \starttext \completecontent % Both title and left footer should be 'Lecture 1: Foo' \startlecture [title={Foo}] Foo bar baz \stoplecture \page % Both title and left footer should be 'Lecture 2' \startlecture [] Foo

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Wolfgang Schuster
lmtx (better) Apparently not only author. Also title, subtitle, … \starttext \unprotect \setupinteraction [\c!author=\detokenize{Foo & Bar}] \protect That works as well. but why unprotect and not just \setupinteraction [author={Foo & Bar}] That's just an MWE to demonstrate

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
not only author. Also title, subtitle, … > \starttext > > \unprotect >\setupinteraction > [\c!author=\detokenize{Foo & Bar}] > \protect That works as well. > but why unprotect and not just > > \setupinteraction >[author={Foo & Bar}] That's jus

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Hans Hagen
On 7/9/2021 12:56 PM, Marco Patzer wrote: Hi! the following example compiles with MkIV but fails in LMTX: \unprotect \setupinteraction [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX \protect \starttext\null\stoptext LMTX: 1 \unprot

[NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
Hi! the following example compiles with MkIV but fails in LMTX: \unprotect \setupinteraction [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX \protect \starttext\null\stoptext LMTX: 1 \unprotect 2 \setupinteraction 3 [\c!author={Foo &am

Re: [NTG-context] hyphenate nothyphenated

2021-07-01 Thread Alan Braslau
On Thu, 1 Jul 2021 17:57:28 +0200 Steffen Wolfrum wrote: > > Am 01.07.2021 um 17:54 schrieb Alan Braslau > > : > > > > On Thu, 1 Jul 2021 00:12:40 +0200 > > Hans Hagen wrote: > > > >>>> \= macron accent (bar) should not be changed. >

Re: [NTG-context] hyphenate nothyphenated

2021-07-01 Thread Steffen Wolfrum
> Am 01.07.2021 um 17:54 schrieb Alan Braslau : > > On Thu, 1 Jul 2021 00:12:40 +0200 > Hans Hagen wrote: > >>>> \= macron accent (bar) should not be changed. >>>> >>>> \-- is a good suggestion, like insisting, and should not get >&g

Re: [NTG-context] hyphenate nothyphenated

2021-07-01 Thread Alan Braslau
On Thu, 1 Jul 2021 00:12:40 +0200 Hans Hagen wrote: > >> \= macron accent (bar) should not be changed. > >> > >> \-- is a good suggestion, like insisting, and should not get > >> confused with -- (en dash). > > > > Is t

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Hans Hagen
{\doifelsenextcharcs-\lang_explicit_discretionary_yes\lang_explicit_discretionary_nop} \protect \popoverloadmode \nohyphens \hsize 1mm test\-test \par test\--test \stoptext \= macron accent (bar) should not be changed. \-- is a good suggestion, like insisting, and should not get confused with -- (en da

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Wolfgang Schuster
it_discretionary_nop} \protect \popoverloadmode \nohyphens \hsize 1mm test\-test \par test\--test \stoptext \= macron accent (bar) should not be changed. \-- is a good suggestion, like insisting, and should not get confused with -- (en dash). Is there some problem to make it

Re: [NTG-context] hyphenate nothyphenated

2021-06-30 Thread Alan Braslau
ect \popoverloadmode     \nohyphens \hsize 1mm     test\-test \par test\--test \stoptext \= macron accent (bar) should not be changed. \-- is a good suggestion, like insisting, and should not get confused with -- (

Re: [NTG-context] PDF forms not creating proper children

2021-06-09 Thread Taco Hoekwater
and it can save a signed pdf as well as re-open it, including showing that verification bar that says it is a signed pdf. mupdf-gl ‘sees’ the original field also, but mine is compiled without openssl so it cannot actually sign. It happily correctly opens the signed version from AR DC, of course.

Re: [NTG-context] LMTX problem with doifmode in \setuplayout

2021-06-08 Thread Wolfgang Schuster
. \starttext \def\one{first} \def\two{second}   \def\foo{one} \protected\def\bar{two} \csname\foo\endcsname \csname\bar\endcsname \stoptext Wolfgang ___ If your question is of interest to others as well

[NTG-context] new upload

2021-05-31 Thread Hans Hagen
t;blue" withtransparency (1,.75) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[whatever-1][\useMPgraphic{whatever-1}] \defineoverlay[whatever-2][\useMPgraphic{whatever-2}] \framed [synchronize=yes, align=normal, offset=10pt, frame=off, backgroun

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-27 Thread Nicola
r rather, it is a side-effect of the intended >> >> behavior. >> >> >> >> If you add an editor ("editor={Baz, Bar}") you will get something >> >> like: >> >> >> >> Foo, B. (1983). Title of the paper. In B. Baz (Ed.),

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-25 Thread Alan Braslau
On Mon, 24 May 2021 23:10:34 -0400 Rik Kabel wrote: > > On 5/24/2021 22:12, Alan Braslau wrote: > > On Mon, 24 May 2021 17:53:49 -0400 > > Rik Kabel wrote: > > > >> This is intended. Or rather, it is a side-effect of the intended > >> behavior. > &g

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Rik Kabel
On 5/24/2021 22:12, Alan Braslau wrote: On Mon, 24 May 2021 17:53:49 -0400 Rik Kabel wrote: This is intended. Or rather, it is a side-effect of the intended behavior. If you add an editor ("editor={Baz, Bar}") you will get something like: Foo, B. (1983). Title of the paper.

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Alan Braslau
On Mon, 24 May 2021 17:53:49 -0400 Rik Kabel wrote: > This is intended. Or rather, it is a side-effect of the intended > behavior. > > If you add an editor ("editor={Baz, Bar}") you will get something > like: > > Foo, B. (1983). Title of the pap

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Rik Kabel
On 5/24/2021 16:28, Nicola wrote: I don't know if this is restricted to inproceedings entries, but consider the following test.bib: @inproceedings{Foo:1983, author = {Foo, Bar}, booktitle = {Booktitle}, pages = {34--39}, title = {Title of the paper

[NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-24 Thread Nicola
I don't know if this is restricted to inproceedings entries, but consider the following test.bib: @inproceedings{Foo:1983, author = {Foo, Bar}, booktitle = {Booktitle}, pages = {34--39}, title = {Title of the paper}, year = {1983} } When this is typeset

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread Otared Kavian
s. >>> >>> To make fancy, zig zag bars I defined a macro, draw_pattern_bar, that draws >>> a bar repeating a pattern which is a path connecting (0,0) and (1,0). >>> >>> The macro has 3 parameters (actually it has more params, but the remainder >>&

Re: [NTG-context] custom zig zag sidebars

2021-04-29 Thread mf
alternatives. To make fancy, zig zag bars I defined a macro, draw_pattern_bar, that draws a bar repeating a pattern which is a path connecting (0,0) and (1,0). The macro has 3 parameters (actually it has more params, but the remainder are anch_sidebars_draw params): - a pattern, which is a path

Re: [NTG-context] custom zig zag sidebars

2021-04-28 Thread Hans Hagen
defined a macro, draw_pattern_bar, that draws a bar repeating a pattern which is a path connecting (0,0) and (1,0). The macro has 3 parameters (actually it has more params, but the remainder are anch_sidebars_draw params): - a pattern, which is a path from (0,0) to (1,0) that should have

[NTG-context] custom zig zag sidebars

2021-04-28 Thread mf
, that draws a bar repeating a pattern which is a path connecting (0,0) and (1,0). The macro has 3 parameters (actually it has more params, but the remainder are anch_sidebars_draw params): - a pattern, which is a path from (0,0) to (1,0) that should have a vertical size = 1; it's a sort

Re: [NTG-context] Ligature suppression word list

2021-04-06 Thread denis.maier
ollows : > > > > 1. L.25-l.35: This specifies words where automatic pattern matching is > > more difficult than usually because the words contain multiple > > ligatures, some of which must be suppressed while others must be > > preserved. In the case

Re: [NTG-context] Ligature suppression word list

2021-04-06 Thread denis.maier
ollows : > > > > 1. L.25-l.35: This specifies words where automatic pattern matching is > > more difficult than usually because the words contain multiple > > ligatures, some of which must be suppressed while others must be > > preserved. In the case

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
ords contain multiple ligatures, some of which must be suppressed while others must be preserved. In the case of « Auflagefläche » it’s even the same combination of letters. So here, we use the bar | to manually indicate points where no ligature must occur. 2. L. 36ff.: The vast amo

[NTG-context] Ligature suppression word list

2021-04-03 Thread denis.maier
words where automatic pattern matching is more difficult than usually because the words contain multiple ligatures, some of which must be suppressed while others must be preserved. In the case of « Auflagefläche » it's even the same combination of letters. So here, we use the bar | to manually

Re: [NTG-context] \binom has fraction line

2021-03-16 Thread Hans Hagen
On 3/16/2021 3:11 PM, Jacob Kauffmann wrote: Dear list, lmtx draws a fraction line in \binom{n}{k}, ConTeXt ver: 2021.02.23 17:47 LMTX fmt: 2021.2.26 int: english/english The same happens with {n \choose k}. The other version I tested draws it correctly (without the bar

[NTG-context] \binom has fraction line

2021-03-16 Thread Jacob Kauffmann
Dear list, lmtx draws a fraction line in \binom{n}{k}, ConTeXt ver: 2021.02.23 17:47 LMTX fmt: 2021.2.26 int: english/english The same happens with {n \choose k}. The other version I tested draws it correctly (without the bar): ConTeXt ver: 2019.03.21 21:39 MKII fmt: 2019.11.14

Re: [NTG-context] tlig feature sometimes does not work

2021-03-13 Thread Mohammad Hossein Bateni
allbacks=fall] > > \definefontfeature[tf][arabic][tlig=yes] > > \definedfont[Test*tf] > > foo--bar > > [\char"2013] > > [\char"2014] > > \stoptext > ... or a misunderdstanding: > > \starttext > > > \

Re: [NTG-context] tlig feature sometimes does not work

2021-03-13 Thread Hans Hagen
][check=yes,force=no]      \definefontsynonym[Test][file:Mikhak-Medium.ttf][fallbacks=fall]      \definefontfeature[tf][arabic][tlig=yes]      \definedfont[Test*tf]      foo--bar      [\char"2013]      [\char"2014] \stoptext ... or a misunderdstanding: \starttext \definefo

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
-Medium.ttf][fallbacks=fall] \definefontfeature[tf][arabic][tlig=yes] \definedfont[Test*tf] foo--bar [\char"2013] [\char"2014] \stoptext On Fri, Mar 12, 2021 at 7:13 PM Mohammad Hossein Bateni wrote: > Any idea why the ligature {U+647 and U+654 => U+6C

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
font is not standard, but >> > TrueType/OpenType standard is sometimes up for interpretation. >> > >> > I see two strange symptoms here: >> > >> > \showotfcomposition displays the tlig feature differently for the last >> > font. It appears in the &q

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Mohammad Hossein Bateni
in the "extra" list, not in "basic". Why is that? > > What does this mean anyway? > > The font doesn't have endash and emdash so there is nothing to construct > from th

Re: [NTG-context] tlig feature sometimes does not work

2021-03-12 Thread Hans Hagen
h and emdash so there is nothing to construct from the double - \starttext \definedfont[file:Mikhak-Medium.ttf*default] foo--bar [\char"2013] [\char"2014] \stoptext Just ask the author to a

Re: [NTG-context] \underbar and co. not working properly in MkIV

2021-03-10 Thread Hans Hagen
On 3/10/2021 2:06 PM, Jairo A. del Rio wrote: Hi, list. The following works well in LMTX, but it applies underlining to the next dash sign when compiled with MkIV: \starttext %\overbar{foo}-bar \underbar{foo}-bar \stoptext I've found a workaround for it, but I want to know about

[NTG-context] \underbar and co. not working properly in MkIV

2021-03-10 Thread Jairo A. del Rio
Hi, list. The following works well in LMTX, but it applies underlining to the next dash sign when compiled with MkIV: \starttext %\overbar{foo}-bar \underbar{foo}-bar \stoptext I've found a workaround for it, but I want to know about the reason for such a strange behavior. Thanks beforehand

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Otared Kavian
Hi Jack,I tested your example both with Pagella and Lucida OT: indeed typesetting with the latest LMTX, with Pagella the math italic « f » runs into the right bar of « |f| ».However the result with mkiv is correct.I am attaching the PDF output with LMTX.Best regards: Otared bar-distance-f.pdf

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm
> Am 24.11.2020 um 22:38 schrieb Wolfgang Schuster > : > > Jannik Voges schrieb am 24.11.2020 um 22:24: >> Hello, >> as the title suggested, I get an error when using spaces in the argument of >> \startproduct. For example typesetting >> \startproduct{f

[NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Jannik Voges
Hello, as the title suggested, I get an error when using spaces in the argument of \startproduct. For example typesetting \startproduct{foo bar} \starttext foo \stoptext \stopproduct results in an error: tex error > tex error on line 2 in file ./foo bar.tex: Too many

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Wolfgang Schuster
Jannik Voges schrieb am 24.11.2020 um 22:24: Hello, as the title suggested, I get an error when using spaces in the argument of \startproduct. For example typesetting \startproduct{foo bar} You can have a filename with a space use \startproduct [foo bar] but you don't even need

Re: [NTG-context] Adding Custom PDF Property

2020-11-23 Thread Ramkumar KB
rs> > > > > But I would like to add my own custom Name-Value properties (similar to > > what ConTeXt, by default, adds like `ConTeXt.Url=www.pragma-ade.com > > <http://www.pragm

Re: [NTG-context] Adding Custom PDF Property

2020-11-23 Thread Hans Hagen
ckendsetinfo{foo}{bar} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.p

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Rik Kabel
\protected\def to keep always the current meaning of \foo when you print the content of \bar. \starttext \def\foo{foo} \edef\bar{\foo} \def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \blank \protected\def\foo{foo} \edef\bar{\foo} \protected\def\foo{bar} \startlines bar=\bar foo=\foo

Re: [NTG-context] LMTX MkIV difference in expansion

2020-11-21 Thread Wolfgang Schuster
of \foo when you print the content of \bar. \starttext \def\foo{foo} \edef\bar{\foo} \def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \blank \protected\def\foo{foo} \edef\bar{\foo} \protected\def\foo{bar} \startlines bar=\bar foo=\foo \stoplines \stoptext A problem in older TeX

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
t/doc/context/documents/general/qrcs/setup-en.pdf > > in your ConTeXt directory. > > > 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` > > and > > `after` options of my enumeration messes up whitespace at the end. Here is a > > screenshot: > > &g

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
nt to mark in the margin only a part of a paragraph. In that case the bar would extend from the start of the marked text until its end. The default behavior of the bar is extending from the top of the first line to the bottom of the last one. Once you ended a paragraph with \par, you're in

[NTG-context] Section head placement wrong when the after key is used

2020-11-19 Thread Marco Patzer
this? \setuphead [section] [after=\blackrule] %% works as desired when commenting this one out \starttext \startsection [title=Foo] \samplefile{knuth} \stopsection \startsection [title=Bar] \framed[height=15cm]{} \samplefile{knuth} \stopsection \stoptext Marco

[NTG-context] Macro \spaceorpar seems gone in latest upload

2020-11-17 Thread Joseph
Dear list, I use occasionally \spaceorpar and it looks like this macro is no longer defined, is this expected ? If so, is there a replacement please ?Thanks \starttextfoo \spaceorpar bar.\stoptext Gives error : system  > ConTeXt  ver: 2020.11.17 12:42 LMTX  fmt: 2020.11.17  int: engl

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
> say I have three sections in the document: > > > > \section{foo} ... \section{bar} ... \section{baz} ... > > > > Now I would like to auto generate a heavily customized table of contents > > like the following text, which cannot be done by the stock \place

Re: [NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:32 PM, Sylvain Hubert wrote: > Dear List, > > say I have three sections in the document: > >     \section{foo} ... \section{bar} ... \section{baz} ... > > Now I would like to auto generate a heavily customized table of contents > like the following te

[NTG-context] How to quote the section names in advance like the table of contents?

2020-11-07 Thread Sylvain Hubert
Dear List, say I have three sections in the document: \section{foo} ... \section{bar} ... \section{baz} ... Now I would like to auto generate a heavily customized table of contents like the following text, which cannot be done by the stock \placecontent in general, and put

[NTG-context] Line numbering skips lines

2020-10-30 Thread Felix Krause
,frame=off,background=color,backgroundcolor=nonsigpart] \starttext \startcode lorem ipsum @[ @] @[foo@] @[\nonsig{bar}@] dolor sit amet \stopcode \stoptext This will number * the first and last lines, containing normal text * the third line containing

Re: [NTG-context] content of xml node (element) in lua

2020-10-17 Thread Jano Kula
into the lua tables representing the > > xml elements in the xml tree. > > > > Which is what \xmlfunction does, so I wouldn't expect any performance > gain. > > actually one has the same function at the lua end, so once you passed > the node id you can use > > xml

  1   2   3   4   5   6   7   8   9   10   >