Re: [NTG-context] ligature exceptions

2017-09-28 Thread Pablo Rodriguez
om 2017.09.25 19:19), the following sample works: \starttext \blockligatures[fi,ff] \blockligatures[fl] \blockligatures[u:fl:age, u:fl:eg] \definefontfeature[default:b][default][blockligatures=yes] \setupbodyfont[times]\showfontkerns \startTEXpage[offset=1em]

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Henning Hraban Ramm
Am 2017-09-27 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>: > Anyway, in addition to Thomas answer ... we already have this > > \blockligatures[fi,ff] \blockligatures[fl] > \blockligatures[u:fl:age] > > \definefontfeature[default:nolig][default][blockligatures=yes] >

Re: [NTG-context] ligature exceptions

2017-09-27 Thread Hans Hagen
g][default][blockligatures=yes] \startTEXpage[offset=1em] \definedfont[Serif*default:nolig] fi ff fl auflage \definedfont[Serif*default] fi ff fl auflage \stopTEXpage The \blockligatures[u:fl:age] is new and something of a joke experiment ... I can probably come up with a rea

Re: [NTG-context] Fwd: Re: The binomial coefficients do not look optimal

2017-09-05 Thread Mikael P. Sundqvist
>> Hi, >> >> I stumbled upon this (see the attached file for the result): >> >> %%% Test file >> \setupbodyfont[10pt] >> \starttext >> \startTEXpage[offset=10pt] >> \type{\tbinom{n}{k}}: $\tbinom

[NTG-context] Fwd: Re: The binomial coefficients do not look optimal

2017-09-02 Thread Hans Hagen
Sep 1, 2017 at 7:49 PM, Hans Hagen <pra...@wxs.nl <mailto:pra...@wxs.nl>> wrote: On 9/1/2017 1:56 PM, Mikael P. Sundqvist wrote: Hi, I stumbled upon this (see the attached file for the result): %%% Test file \setupbodyfont[10pt] \startte

Re: [NTG-context] The binomial coefficients do not look optimal

2017-09-02 Thread Mikael P. Sundqvist
On Fri, Sep 1, 2017 at 7:49 PM, Hans Hagen <pra...@wxs.nl> wrote: > On 9/1/2017 1:56 PM, Mikael P. Sundqvist wrote: > >> Hi, >> >> I stumbled upon this (see the attached file for the result): >> >> %%% Test file >> \setupbodyfont[10pt] >> \st

Re: [NTG-context] The binomial coefficients do not look optimal

2017-09-01 Thread Hans Hagen
On 9/1/2017 1:56 PM, Mikael P. Sundqvist wrote: Hi, I stumbled upon this (see the attached file for the result): %%% Test file \setupbodyfont[10pt] \starttext \startTEXpage[offset=10pt] \type{\tbinom{n}{k}}: $\tbinom{n}{k}$, (does not look good, the vertical space between $n$ and $k$ is too

[NTG-context] The binomial coefficients do not look optimal

2017-09-01 Thread Mikael P. Sundqvist
Hi, I stumbled upon this (see the attached file for the result): %%% Test file \setupbodyfont[10pt] \starttext \startTEXpage[offset=10pt] \type{\tbinom{n}{k}}: $\tbinom{n}{k}$, (does not look good, the vertical space between $n$ and $k$ is too big) \par \type{\binom{n}{k}}: $\binom{n}{k}$ (looks

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-22 Thread Brian Ballsun-Stanton
omething\postponenotes\footnote[x]{bla bla}\eTD\eTR >\bTR\bTD Foo\note[x] \eTD\eTR > \eTABLE > \flushnotes > \stopbuffer > \getbuffer > \startTEXpage[offset=1em] > \getbuffer > \stopTEXpage > \stoptext > > The second page is similar

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \stopbuffer \getbuffer \startTEXpage[offset=1em] \getbuffer \stopTEXpage \stoptext The second page is similar to the problem with the wiki.

[NTG-context] (again) issues with typing

2017-08-16 Thread Pablo Rodriguez
Dear list, sorry for insisting, but I need to solve this. I have to explain to newcomers (in my Spanish introduction to ConTeXt) what comments are and multiple lines don’t affect the final PDF document. I have the following sample: \setuptyping[lines=yes] \starttext \startTEXpage

[NTG-context] comment colors in \typebuffers

2017-08-08 Thread Pablo Rodriguez
Hans, I have the following sample: \starttext \startTEXpage[offset=1em] \startTEX This is text. % and this is a comment \stopTEX \startXML This is text. \stopXML \startLUA if code=="code" then --this is a comment --[[ and this is a

Re: [NTG-context] (again) \typebufferinline for XML inline code

2017-08-01 Thread Hans Hagen
On 7/31/2017 7:16 PM, Pablo Rodriguez wrote: Hans, sorry for asking for this again, but I really need it to write some documents about ConTeXt. I have the following sample: \startTEXpage[offset=1em] only \type{a b c} one line \stopTEXpage \stoptext \type

[NTG-context] (again) \typebufferinline for XML inline code

2017-07-31 Thread Pablo Rodriguez
Hans, sorry for asking for this again, but I really need it to write some documents about ConTeXt. I have the following sample: \startTEXpage[offset=1em] only \type{a b c} one line \stopTEXpage \stoptext \type Would it be possible to have a new \typebufferinline

Re: [NTG-context] (bug?) itlc removes liga

2017-07-29 Thread Jean-Pierre Delange
er[words]}\\ {\bi \getbuffer[words]}\\ {\getbuffer[words]}\\ {\bf \getbuffer[words]}\\ \stopbuffer \starttext \startTEXpage[offset=1em] \getbuffer[ligatures] \setupbodyfont[pagella] \getbuffer[ligatures] \setupbodyfont[mainfont] \getbuffer[ligatures

[NTG-context] (bug?) itlc removes liga

2017-07-28 Thread Pablo Rodriguez
] [EB Garamond] \startbuffer[words] office final floor affliction \stopbuffer \startbuffer[ligatures] {\em \getbuffer[words]}\\ {\bi \getbuffer[words]}\\ {\getbuffer[words]}\\ {\bf \getbuffer[words]}\\ \stopbuffer \starttext \startTEXpage[offset=1em

[NTG-context] inline code in XML

2017-07-28 Thread Pablo Rodriguez
Hans, many thanks for having added \xmlprettyprinttext to ConTeXt. I have now another problem with inline code: \definetype[TeX][option=TEX, lines=hyphenated] \starttext \startTEXpage[offset=1em] This is inline code: \TeX{\command[option=value]{final text}} \startXML Inline code: \TeX[option

Re: [NTG-context] Position of prime for derivatives

2017-06-07 Thread Mikael P. Sundqvist
___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.

Re: [NTG-context] Position of prime for derivatives

2017-06-07 Thread Mikael P. Sundqvist
others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net &g

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Mikael P. Sundqvist
them). > > /Mikael > > \setupbodyfont[lucidaot] > > \starttext > > \startTEXpage[offset=2pt] > \startformula > \sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}} > \stopformula > > %the default setting for mathradical seems to be "normal". We change > it to "normal&qu

[NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-05 Thread Mikael P. Sundqvist
hat normal should mean, but I think the alternative=default looks better. (The lucida fonts are loaded in this example, since the effect is more clear for them). /Mikael \setupbodyfont[lucidaot] \starttext \startTEXpage[offset=2pt] \startformula \sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}} \s

Re: [NTG-context] Position of prime for derivatives

2017-06-04 Thread Mikael P. Sundqvist
>>>> /Mikael >>>> >>>> \RequirePackage{luatex85} >>>> \documentclass[border=2pt]{standalone} >>>> >>>> \usepackage{unicode-math} >>>> \setmainfont{LucidaBrightOT} >&g

Re: [NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Mikael P. Sundqvist
mathematical italic small a and b >> [0x02032] = { [0x00028] = -150 }, -- prime and left parenthesis >> } >> } >> \stopluacode >> >> \definefontfeature[kerntest][kerntest=yes] >> >> \definefontfamily[lucidaopentype][rm][Lucida Bright OT] >>

Re: [NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Hans Hagen
{ [0x00028] = -150 }, -- prime and left parenthesis } } \stopluacode \definefontfeature[kerntest][kerntest=yes] \definefontfamily[lucidaopentype][rm][Lucida Bright OT] \definefontfamily[lucidaopentype][mm][Lucida Bright Math OT] \setupbodyfont[lucidaopentype,10pt] \startTEXpage[offset=3pt] abba

Re: [NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Mikael P. Sundqvist
-150 }, -- a and b in text >>> [0x1d44e] = { [0x1d44f] = -150 }, -- mathematical italic small a and b >>> [0x02032] = { [0x00028] = -150 }, -- prime and left parenthesis >>> } >>> } >>> \stopluacode >>> >>> \definefontfeature[kerntest][kerntest

Re: [NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Mikael P. Sundqvist
t;> data = { >> [0x61] = { [0x62] = -150 }, -- a and b in text >> [0x1d44e] = { [0x1d44f] = -150 }, -- mathematical italic small a and b >> [0x02032] = { [0x00028] = -150 }, -- prime and left parenthesis >> } >> } >> \stopluacode >> >> \definefontfeature[ker

Re: [NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Mathias Schickel
t; \stopluacode > > \definefontfeature[kerntest][kerntest=yes] > > \definefontfamily[lucidaopentype][rm][Lucida Bright OT] > \definefontfamily[lucidaopentype][mm][Lucida Bright Math OT] > > \setupbodyfont[lucidaopentype,10pt] > > > \startTEXpage[offset=

[NTG-context] Change kerning between math characters (prime and left parenthesis)

2017-06-02 Thread Mikael P. Sundqvist
rntest][kerntest=yes] \definefontfamily[lucidaopentype][rm][Lucida Bright OT] \definefontfamily[lucidaopentype][mm][Lucida Bright Math OT] \setupbodyfont[lucidaopentype,10pt] \startTEXpage[offset=3pt] abba $abba f'(x)$ \addff{kerntest} abba $abba f'(x)$ I prefer $f'\mkern-3mu(x)$ \sto

Re: [NTG-context] Position of prime for derivatives

2017-05-25 Thread Mathias Schickel
>> ___ >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/

Re: [NTG-context] Position of prime for derivatives

2017-05-25 Thread Mikael P. Sundqvist
anhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ___ >> >> >> ______

[NTG-context] issue with annotation flags

2017-05-25 Thread Pablo Rodriguez
Dear list, I have the following code: \setupinteraction[state=start, color=] \enabledirectives[references.border] \starttext \startTEXpage[offset=1em] \useURL[url1][http://some-url.com]\from[url1] \stopTEXpage \stoptext The annotation code in the PDF file reads

Re: [NTG-context] Position of prime for derivatives

2017-05-23 Thread Mikael P. Sundqvist
ntry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net >

Re: [NTG-context] Position of prime for derivatives

2017-05-23 Thread Mathias Schickel
/ http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> ___ >> >> Otared, thank you for confirmation.

Re: [NTG-context] Position of prime for derivatives

2017-05-22 Thread Otared Kavian
___ > > Otared, thank you for confirmation. I also hope there will be a fix soon. > > In the meantime, I put yet another test file. The location of the > primes depends on the next character (I use, at the moment current > version: 2017.05.15 21:4

Re: [NTG-context] Position of prime for derivatives

2017-05-22 Thread Mikael P. Sundqvist
Otared, thank you for confirmation. I also hope there will be a fix soon. In the meantime, I put yet another test file. The location of the primes depends on the next character (I use, at the moment current version: 2017.05.15 21:48) /M

Re: [NTG-context] Position of prime for derivatives

2017-05-21 Thread Mikael P. Sundqvist
cific way >>> to write it. I have absolutely nothing against that, but I would like us >>> (me?) to document it, since I think future users might have use of it. Is >>> the math page in the wiki the right place? >>> >>> (It will take some time before I will be able to a

Re: [NTG-context] Position of prime for derivatives

2017-05-20 Thread Mikael P. Sundqvist
[Xits > Math][range={2660,2661,2662,2663,2664,2665,2666,2667}] > \definefontfamily[lucidaopentype][rm][Lucida Bright OT] > \definefontfamily[lucidaopentype][ss][Lucida Sans OT] > \definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT] > \definefontfamily[lucidaopentype][mm][Luci

Re: [NTG-context] bug with en and em dashes

2017-05-15 Thread Hans Hagen
-context | current version: 2017.05.09 10:14 Hi Mikael, sorry for not being accurate enough before (I have just realized it). It is about copying from the generated document (it also happens with your attached PDF file): \starttext \startTEXpage[offset=1em

Re: [NTG-context] bug with en and em dashes

2017-05-14 Thread Mikael P. Sundqvist
from the generated document (it also happens with > your attached PDF file): > > \starttext > \startTEXpage[offset=1em] > -- --- > > – — > \stopTEXpage > \stoptext > > Select all, copy and paste it on a pure-text editor. You will get two > and four

Re: [NTG-context] bug with en and em dashes

2017-05-14 Thread Pablo Rodriguez
xt | current version: 2017.05.09 10:14 Hi Mikael, sorry for not being accurate enough before (I have just realized it). It is about copying from the generated document (it also happens with your attached PDF file): \starttext \startTEXpage[offset=1em] -- --- – — \s

Re: [NTG-context] bug with en and em dashes

2017-05-11 Thread Thomas Floeren
> On 9. May 2017, at 21:10, Pablo Rodriguez <oi...@gmx.es> wrote: > > Dear list, > > using latest beta from 2017.05.09 10:14 with the following sample: > >\starttext >\startTEXpage[offset=1em] >-- --- > >– — >\stopT

[NTG-context] bug with en and em dashes

2017-05-09 Thread Pablo Rodriguez
Dear list, using latest beta from 2017.05.09 10:14 with the following sample: \starttext \startTEXpage[offset=1em] -- --- – — \stopTEXpage \stoptext I get as result: -- -- Ligatures aren’t converted and even real en and em dashes are converted

Re: [NTG-context] (again) index sorting of accented characters

2017-04-29 Thread Pablo Rodriguez
ge[es] \setupregister[language=es, method={zm, zc}] \starttext \startTEXpage[offset=2em] \index{cómodo} \index{comodos} \index{cómoda} \placeindex \stopTEXpage \stoptext I know that "comodos" isn’t a word in Spanish. But it should be the last word in the sorting.

Re: [NTG-context] (again) index sorting of accented characters

2017-04-28 Thread Florian Grammel
edefined methods I don’t really think it is working completely as expected, even though the problem might just occur in very special cases: \setupregister[method={zm, zc}] \starttext \startTEXpage[offset=2em] \index{káv} \index{kav} \index{káva} \index{kava} \index{káf} \index{kaf} \index{káfa}

[NTG-context] (again) index sorting of accented characters

2017-04-27 Thread Pablo Rodriguez
Dear list, sorry for bothering again with this issue, but I need to have indices in my documents. I have the following sample: \mainlanguage[es] \setupregister[method=default] \starttext \startTEXpage[offset=1em] \index{ámame}\index{arisco}\index{ándrago} \index{antonia

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
hic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun manual. HTH Thomas ___ If your question is of interest to others as

Re: [NTG-context] MP & text transparency

2017-04-24 Thread Thomas A. Schmitz
; label(textext("\setupbodyfont[sans,35mm] \color[tred]{Test}"), (80mm, 50mm)) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage See ch. 8.2 of the metafun

[NTG-context] MP & text transparency

2017-04-24 Thread Procházka Lukáš Ing .
); draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm)) withcolor %col transparent(1, .4, col) ; \stopuseMPgraphic \defineoverlay[T][\useMPgraphic{T}] \setupbackgrounds[page][background={foreground,T}] \startTEXpage[width=200mm,height=200mm] \stopTEXpage

Re: [NTG-context] Manually scaling math fences

2017-03-24 Thread Hans Hagen
] \starttext \startTEXpage \startformula \MEAN[factor=1]{\sum_{i = 1}^n A_i x_i } \hbox{ vs. } \MEAN{ \sum_{i = 1}^n A_i x_i } \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle \stopformula \stopTEXpage \stoptext Thanks. If I understand the code correctly (sorry, haven't

Re: [NTG-context] Manually scaling math fences

2017-03-24 Thread Aditya Mahajan
mapped to choosemathbig). actually we will hook into a new feature of luatex for specifying the size of delimiters (so no vbox hack) .. factors are multipliers of bodyfontsize \definemathfence [MEAN] [angle] [command=yes, color=blue, factor=2.5] \starttext \startTEXpage \startformula

Re: [NTG-context] Manually scaling math fences

2017-03-23 Thread Hans Hagen
will hook into a new feature of luatex for specifying the size of delimiters (so no vbox hack) .. factors are multipliers of bodyfontsize \definemathfence [MEAN] [angle] [command=yes, color=blue, factor=2.5] \starttext \startTEXpage \startformula \MEAN[factor=1]{\sum_{i = 1}^n A_i x_i

Re: [NTG-context] bug in \definefontfamily?

2017-03-20 Thread Hans Hagen
re as side effect .. define featuresets and use those *featureset \setupbodyfont[mainface] \starttext \startTEXpage[offset=5ex] 1110 {\hw 1110} \directFont 1110 \stopTEXpage \stoptext BTW, Neo Euler has "Neo-Euler" as PostScript name (accordin

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
ult][default][onum=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][hw][Neo Euler] \definefont[directFont][euler.otf:+onum] \setupbodyfont[mainface] \starttext \startTEXpage[offset=5ex] 1110 {\hw 1110} \directFont 1110 \stopTEXpage \stoptext BTW, Neo Euler has "Ne

[NTG-context] bug in \definefontfamily? (was: Re: OT salt feature not working?)

2017-03-19 Thread Pablo Rodriguez
family. See the sample: \definefontfeature[default][default][onum=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][hw][Neo Euler] \definefont[directFont][euler.otf:+onum] \setupbodyfont[mainface] \starttext \startTEXpage[offset=5ex]

Re: [NTG-context] OT salt feature not working?

2017-03-19 Thread Pablo Rodriguez
e issue is with the font: \definefontfeature[default][default][onum=yes] \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily[mainface][hw][Neo Euler] \setupbodyfont[mainface] \starttext \startTEXpage[offset=5ex] 1110 \hw 1110 \stopTEXpage \stoptex

[NTG-context] OT salt feature not working?

2017-03-18 Thread Pablo Rodriguez
Dear list, I have the following sample: \definefontfeature[default][default][salt=yes] \definefontfamily[mainface][rm][Neo Euler] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] 1110 \type{1110} \stopTEXpage \stoptext I get the same results

Re: [NTG-context] Manually scaling math fences

2017-03-07 Thread Hans Hagen
\right is not ideal and one has to use manual scaling. For example: \starttext \startTEXpage \startformula \left\langle \sum_{i=1}^n A_i x_i \right\rangle \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg\rangle \stopformula \stopTEXpage \stoptext Currently, math fences always default to using

Re: [NTG-context] Manually scaling math fences

2017-03-06 Thread Otared Kavian
; > Hi Hans, > > There are instances where the automatic scaling provided by \left and \right > is not ideal and one has to use manual scaling. For example: > > \starttext > \startTEXpage \startformula > \left\langle \sum_{i=1}^n A_i x_i \right\rangle > \hbox{ vs.

[NTG-context] Manually scaling math fences

2017-03-06 Thread Aditya Mahajan
Hi Hans, There are instances where the automatic scaling provided by \left and \right is not ideal and one has to use manual scaling. For example: \starttext \startTEXpage \startformula \left\langle \sum_{i=1}^n A_i x_i \right\rangle \hbox{ vs. } \bigg\langle \sum_{i=1}^n A_i x_i \bigg

Re: [NTG-context] issue with OT feature lfbd

2017-02-25 Thread Hans Hagen
On 2/25/2017 5:14 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \showframe \definefontfeature[leftbounds][lfbd=yes] \definefontfamily[mainface][rm][Linux Libertine O] \setupbodyfont[mainface, 150pt] \starttext \startTEXpage[offset=1ex] Wer War

[NTG-context] issue with OT feature lfbd

2017-02-25 Thread Pablo Rodriguez
Dear list, I have the following sample: \showframe \definefontfeature[leftbounds][lfbd=yes] \definefontfamily[mainface][rm][Linux Libertine O] \setupbodyfont[mainface, 150pt] \starttext \startTEXpage[offset=1ex] Wer War? \addff{leftbounds} Wer War? Wer

Re: [NTG-context] specifying body fonts

2017-02-12 Thread Pablo Rodriguez
\starttext \startTEXpage[offset=1em] Roman font {\em italic} {\sl slanted} \bf Bold font \em bold italic \stopTEXpage \stoptext Let me know if you miss something in the sample. Pablo -- http

Re: [NTG-context] Comical error..

2017-02-12 Thread josephcanedo
Termes-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] Roman font {\em italic} \bf Bold font \em bold italic \stopTEXpage \stoptext --- and a

Re: [NTG-context] Comical error..

2017-02-11 Thread John Culleton
-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] Roman font {\em italic} \bf Bold font \em bold italic \stopTEXpage \stoptext --- and another

Re: [NTG-context] Overriding a font face in a typescript

2017-02-07 Thread Pablo Rodriguez
bf={TeX Gyre Adventor-Bold}, bi={TeX Gyre Termes-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] Roman font {\em italic} \bf Bold font \em bold italic \st

Re: [NTG-context] keep interaction with \insertpages and \filterpages

2017-01-18 Thread Hans Hagen
\placelist[chapter] \chapter{one} \chapter{two} \stoptext 2.tex: \setupinteraction[state=start] \starttext % \startTEXpage \externalfigure[1.pdf][page=1,interaction=all]\stopTEXpage % \startTEXpage \externalfigure[1.pdf][page=2,interaction=all]\stopTEXpage % \startTEXpage \externalfigure

Re: [NTG-context] rotating some pages of a pdf

2017-01-04 Thread Hans Hagen
} {\startTEXpage \externalfigure [\getdocumentargument{input}] [page=\recurselevel, orientation=\getdocumentargument{rotation}] \stopTEXpage} \stoptext How could I use this code to rotate, say, the page five, 7º clockwise, and the page twenty, 15º counterclockwise

[NTG-context] rotating some pages of a pdf

2017-01-04 Thread Cesar Romani
I'm using the following code, rotate.tex, to rotate all the pages of file.pdf, using: context --input=file.pdf --rotation=45 rotate.pdf rotate.tex == \getfiguredimensions [\getdocumentargument{input}] \starttext \dorecurse{\noffigurepages} {\startTEXpage \externalfigure

Re: [NTG-context] font size switching

2016-10-17 Thread Pablo Rodriguez
On 10/17/2016 08:28 PM, Hans Hagen wrote: > On 10/17/2016 8:14 PM, Pablo Rodriguez wrote: >> [...] >> I must confess, I haven’t checked the manual. But why doesn’t it happen >> the same with other commands? >> >> \starttext >> \startTEXpage[offset=

Re: [NTG-context] font size switching

2016-10-17 Thread Hans Hagen
hy doesn’t it happen the same with other commands? \starttext \startTEXpage[offset=1em] Default {\tfb Larger} {\tfd Larger 1} \\ Default \tfb Larger \tfd Larger 2 \stopTEXpage \stoptext looks quite ok to me ... grouping works as expected \starttext \startTEXpage[offset=1em]

Re: [NTG-context] font size switching

2016-10-17 Thread Pablo Rodriguez
al. But why doesn’t it happen the same with other commands? \starttext \startTEXpage[offset=1em] Default {\tfb Larger} {\tfd Larger 1} \\ Default \tfb Larger \tfd Larger 2 \stopTEXpage \stoptext Pablo -- http://www.ousia.tk ___

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
>> >> The below MWE represent my MetaFun drawings file. >> The idea is that by uncommenting the \enablemode[makepdf] I can create the >> pdf file with drawings. It seems however that startMPpage does not accept >> buffers (I also tried processbuffer and process

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Wolfgang Schuster
ou can use \startTEXpage \processMPbuffer[…] \stopTEXpage but loading a buffer in MPpage doesn’t work because the content of the environment is just passed to MetaPost and buffers can’t be loaded inside MetaPost code unless Hans adds a function for this, e.g. \start

Re: [NTG-context] Size of the last shipped page by Lua?

2016-09-23 Thread Hans Hagen
\starttext A \ctxlua{pgsz()} \startpapersize[A3,landscape] B \ctxlua{pgsz()} \stoppapersize \startTEXpage[width=200mm,height=100mm] C % 3rd page \ctxlua{pgsz()} \stopTEXpage the papersize of a TEXpage is known when that page is flushed and when you ask for it the way

Re: [NTG-context] Size of the last shipped page by Lua?

2016-09-23 Thread Procházka Lukáš Ing .
persize[A3,landscape] B \ctxlua{pgsz()} \stoppapersize \startTEXpage[width=200mm,height=100mm] C % 3rd page \ctxlua{pgsz()} \stopTEXpage \stoptext In the case of 3rd page (with text "C"), page size "w=210.0, h=297.0" is printed instead of "w=200.0, h=1

Re: [NTG-context] Vertical padding in tables

2016-09-11 Thread Wolfgang Schuster
Jose Luis Arellano <mailto:jose.4rell...@gmail.com> 11. September 2016 um 11:58 Dear list. How can I control vertical padding in natural tables? You can use offset the control the padding on all four sides and loffset etc. for the individual sides. \startTEXpage[offset=1cm] \bTABLE[

[NTG-context] Size of the last shipped page by Lua?

2016-09-07 Thread Procházka Lukáš Ing .
end \stopluacode \starttext \startluacode local w, h = LastPageSize() context("w="..w .. ", h=" ..h) -- Should give "w=210mm, h=297mm" (or other units) \stopluacode \startTEXpage[with=10cm,height=15cm] \stopTEXpage \startluacode

[NTG-context] Header background off with \page?

2016-08-08 Thread Procházka Lukáš Ing .
Hello, the following code: \setupheadertexts[Le][Ri] \setupbackgrounds[header][text][bottomframe=on] \starttext \startTEXpage \externalfigure[dummy] \stopTEXpage \page[yes,header,footer,odd] % Empty page to come here Blabla \stoptext should generate an empty page

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
to my document the gray shows up fine. So that's for sure a >>>>>>> feasible >>>>>>> workaround. >>>>>>> >>>>>>> Can you comment on the phrase »no need for x colors (users can >>>>>>> load it >>&

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen
is creating incompatibilities (your case is the reverse and a-typical) However, without such redefinitions, tikz does not understand ConTeXt colors. I use a similar workaround in my documents as well. I have no clue what you mean. \definecolor[red][g=1] \startTEXpage \starttikzpicture

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Henri Menke
sure a feasible >>>>> workaround. >>>>> >>>>> Can you comment on the phrase »no need for x colors (users can load it >>>>> if needed)«? I'm not quite sure what it means and it suggests that >>>>> there exists a proper solution

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Aditya Mahajan
is the reverse and a-typical) However, without such redefinitions, tikz does not understand ConTeXt colors. I use a similar workaround in my documents as well. I have no clue what you mean. \definecolor[red][g=1] \startTEXpage \starttikzpicture \fill[red] (0,0) circle (1cm

Re: [NTG-context] Different colors in LaTeX and ConTeXt

2016-07-12 Thread Hans Hagen
, without such redefinitions, tikz does not understand ConTeXt colors. I use a similar workaround in my documents as well. I have no clue what you mean. \definecolor[red][g=1] \startTEXpage \starttikzpicture \fill[red] (0,0) circle (1cm); \stoptikzpicture \stopTEXpage works ok here

[NTG-context] beta

2016-06-08 Thread Hans Hagen
] % \definefont[Emoj][file:seguiemj.ttf*default,colored] \definesymbol[bug1][\getglyphdirect{file:emojionecolor-svginot.ttf*svg}{\char"1F41B}] \definesymbol[bug2][\getglyphdirect{file:seguiemj.ttf*colored} {\char"1F41B}] \startTEXpage [width=10em,align=middle,offset=1em] There a

Re: [NTG-context] Incorrect math kerning

2016-05-30 Thread Hans Hagen
n the font, or with the fontloader? \setupbodyfont[cambria] \starttext \startTEXpage[offset=2mm] $W_i^i$ \stopTEXpage \stoptext The next beta fixes the scaler but of course that leaves fonts untouched. However, as a test I added some more lfg files that implement the V and W cutins for some fonts. Beware: the

Re: [NTG-context] Incorrect math kerning

2016-05-30 Thread Hans Hagen
way from W). Is this a bug in the font, or with the fontloader? \setupbodyfont[cambria] \starttext \startTEXpage[offset=2mm] $W_i^i$ \stopTEXpage \stoptext In traditional TeX fonts italic correction is used as a kind of kerning. This happens in combination with cheating with the width of glyphs. This i

[NTG-context] Incorrect math kerning

2016-05-29 Thread Aditya Mahajan
fontloader? \setupbodyfont[cambria] \starttext \startTEXpage[offset=2mm] $W_i^i$ \stopTEXpage \stoptext Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! mail

Re: [NTG-context] what does rscale=auto achieve?

2016-05-15 Thread Wolfgang Schuster
family [mainface] [rm] [TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] аaα \stopTEXpage \stoptext I thought that "rscale=auto" would scale the typeface so that its x-height would match the x-height from the main typeface. Since I don’t see any scali

[NTG-context] what does rscale=auto achieve?

2016-05-15 Thread Pablo Rodriguez
] \definefontfamily [mainface] [rm] [TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] аaα \stopTEXpage \stoptext I thought that "rscale=auto" would scale the typeface so that its x-height would match the x-h

[NTG-context] uppercase, small caps, numerals and German capital sharp s

2016-05-06 Thread Thomas Fehige
[mono] [TeX Gyre Cursor] \setupbodyfont [myfamily] \startTEXpage[offset=10pt] \starttabulate[|l|l|l|] \NC \it Command \NC \it Calluna \NC \it Linux Biolinum \NC\NR \NC\type{\WORD{Gruß134}}: \NC\WORD{Gruß134} \NC {\ss\WORD{Gruß134}} \NC\NR \NC\type{\uppercase{Gr

[NTG-context] Test Suite Fonts "extensions-001"

2016-04-29 Thread Thomas Fehige
;stest", type = "substitution", data = { a = "X", b = "P", } } \stopluacode \definefontfeature[stest][stest=yes] \starttext \startTEXpage \definedfont[file:DejaVuSerif.ttf*default]% abracadabra\par {\addff{stest}abracadabra\par} \stopTEXpage \stoptext _

[NTG-context] uppercase, small caps, numerals and German capital sharp s

2016-04-19 Thread Thomas Fehige
case \definefontfeature[fcalluna][default][] % I tried all the font features built into Calluna, to no avail. \definefontfamily [myfamily] [serif][Calluna][features=fcalluna] \definefontfamily [myfamily] [sans] [Linux Biolinum O][features=fcalluna] \definefontfamily [myfamily] [mono] [TeX Gyre

Re: [NTG-context] \startuseMPgraphic

2016-04-11 Thread Alan BRASLAU
myred][r=1] > > \startMPpage > fill fullcircle scaled 3cm withcolor \MPcolor{myred} ; > \stopMPpage > %% end example > > > The second part of the questions concerns metapost variables. > > %% begin example > \startuseMPgraphic{mycircle}{diameter,color}

Re: [NTG-context] defining a comamnd as variable which behaves as constant

2016-04-10 Thread Wolfgang Schuster
Pablo Rodriguez <mailto:oi...@gmx.es> 10. April 2016 um 00:00 Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber{a}{\recurselevel} }\par} \stopT

Re: [NTG-context] defining a comamnd as variable which behaves as constant

2016-04-09 Thread Aditya Mahajan
On Sun, 10 Apr 2016, Pablo Rodriguez wrote: Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber

[NTG-context] defining a comamnd as variable which behaves as constant

2016-04-09 Thread Pablo Rodriguez
Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber{a}{\recurselevel} }\par} \stopTEXpage

Re: [NTG-context] A document composed only of TEXpages

2016-03-04 Thread Hans Hagen
] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage \startsection[title={My Section}] \placecontent \stopTEXpage

[NTG-context] A document composed only of TEXpages

2016-03-04 Thread Chicho Pep
]. Here is my document: *** \setupinteraction[state=start] \startsetups[myTEXpagesetup] \setupwhitespace[line] \setuptolerance[space] \stopsetups \setupfittingpage[TEXpage] [command=\texsetup{myTEXpagesetup}, height=fit, width=210mm, offset=10mm] \starttext \startTEXpage

Re: [NTG-context] font switches: bold, slanted, etc.

2016-02-12 Thread Pablo Rodriguez
in bold. What > if the title contains a word, say, in slanted (or, worse, some > mathematics)? Sorry, Alan, but I don’t see the point you’re trying to make. I guess \em is your friend here: \starttext \startTEXpage[offset=1em] {\bf Heading {\em One}} {\bf Heading {\em One {\em

[NTG-context] issue with typeface definition order

2016-02-10 Thread Pablo Rodriguez
Dear list, I have the following code: \definefontfamily[mainface][ss][TeX Gyre Heros] \definefontfamily[mainface][rm][TeX Gyre Termes] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] this is a simple sentence \ss this is a simple sentence

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