Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
...@xs4all.nl) escribió: > On 8/9/2020 5:39 PM, Jairo A. del Rio wrote: > > Hi, list! I'm doing the following to scale squares and other stuff in > > MetaPost/MetaFun. Although the following kinda works (maybe I'm just > > lucky with this), I want to know how to do a better piece from

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Hans Hagen
On 8/9/2020 5:39 PM, Jairo A. del Rio wrote: Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua

[NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua and TeX to Metapost and better ways to do

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-09 Thread Hans Hagen
... Apparently, Adobe InDesign demands that in a hard way. Or maybe it just cannot handle zero's. The last time I ever ran into an issue was that a scale should not be zero (so we always have 0.1 at least). But I only have an old acrobat professional so I can't check the latest demands. Hans

Re: [NTG-context] Draft Watermark of Garden gives unexpected results

2020-06-11 Thread Wolfgang Schuster
[{\framed [frame=off, orientation=20, foregroundcolor=gray] {\scale[width=\textwidth]{Draft}}}] Also, if you set \rotate[rotation=0.0]{Draft} it will disappear... I see, there are still problems with decimal values for rotation.

[NTG-context] does font expansion break -char.width?

2020-05-17 Thread Pablo Rodriguez
score] [righthyphenchar="FE000] \setuphyphenation [method=traditional] \unexpanded\def\sha#1% {\begingroup\tt \sethyphenationfeatures[underscore]% #1% \endgroup} \definefontfeature[default][default][expansion=quality] \setup

[NTG-context] Would it be possible in LMTX to do something like variable font/lineheight to fit a fixed frame?

2020-05-10 Thread Gerben Wierda
()) If too high METAPOST: scale down so it fits in frame But the scaling wil scale both height and width so it doesn’t only go to the correct height, it also gets too narrow. Just scaling in the vertical direction squashes the text/font. What would be great is some way to have the font

Re: [NTG-context] How do I add cyrillic to my typescript/document?

2020-05-04 Thread Pablo Rodriguez
set it up to "yes", since otherwise if the main font (Optima in this case) has any glyph for the Cyrillic block, it would use that glyph in Optima, mixing it with the other ones from the fallback font. In my personal experience, this looks crappy. c. Relative scale to the main font:

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path (suggestion works)

2020-05-03 Thread Gerben Wierda
the copy that carries the text invisible? That’s what I would do in a >>>> graphical application, but I would be surprised if MP wouldn’t know a >>>> transformation for this purpose. >>> >>> No, that is what I did in the example, fiddling, but there is no >>

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-03 Thread Gerben Wierda
sformation for this purpose. >> >> No, that is what I did in the example, fiddling, but there is no >> transformation that will work in all cases. E.g. on the left side of the >> bump, I need to go to the upper left, on the right side to the upper right. >> Th

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-02 Thread ntg
I would do in a >> graphical application, but I would be surprised if MP wouldn’t know a >> transformation for this purpose. > > No, that is what I did in the example, fiddling, but there is no > transformation that will work in all cases. E.g. on the left side of the >

Re: [NTG-context] followtext, lmt_followtext and an offset of the glyphs typeset along the path

2020-05-01 Thread Gerben Wierda
ormation for this purpose. No, that is what I did in the example, fiddling, but there is no transformation that will work in all cases. E.g. on the left side of the bump, I need to go to the upper left, on the right side to the upper right. There is no single shift that helps me. Nor a scale rotation or shift combinatio

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
; \definetypeface[mainfont][rm][specserif][Linux Libertine O][default] >>> >> \definetypeface[mainfont][mm][math] [TeX Gyre Pagella Math][default] >>> >> \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] >>> [rscale=0.8, >>> >> feature

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
O][default] >> >> \definetypeface[mainfont][mm][math] [TeX Gyre Pagella Math][default] >> >> \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, >> >> features=none] >> >> \setupbodyfont[mainfont,11pt] >> >> \uses

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread kaddour kardio
th] [TeX Gyre Pagella Math][default] > >> \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, > >> features=none] > >> \setupbodyfont[mainfont,11pt] > >> \usesymbols[fontawesome] > >> > >> \define\FA{\dosingleargument\doFA} >

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Hans Hagen
] \definetypeface[mainfont][mm][math] [TeX Gyre Pagella Math][default] \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox    {\scale[height=1em]{\symbol

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Aditya Mahajan
Pagella Math][default] \definetypeface[mainfont][tt][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox {\scale[height=1em]{\symbol[fontawesome][#1]}}} \starttext Checked box \FA

[NTG-context] Fontawesome in lmtx

2020-04-10 Thread kaddour kardio
][mono] [Dejavu Mono][default] [rscale=0.8, features=none] \setupbodyfont[mainfont,11pt] \usesymbols[fontawesome] \define\FA{\dosingleargument\doFA} \def\doFA[#1]{\inlinedbox {\scale[height=1em]{\symbol[fontawesome][#1]}}} \starttext Checked box \FA[check-square-o] Unchecked box \FA[square-o

[NTG-context] Math font not embedded

2020-03-18 Thread Jan Willem Flamma
  [DejaVu Sans Mono] [feature=none]\definefontfamily [mainface] [math]  [TeX Gyre Termes Math] [scale=1.1] \setupbodyfont[mainface,sans,9pt] \starttext {\rm\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] {\ss\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] {\tt\input ward 1 2 3 4 5 6 7 8 9 10} \blank[big] \m

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Jan-Erik Hägglöf
ong direction > > > That one is because lmt_svg does not properly consider the > >> orient=“auto" > > in the marker definition. I played with setting it to actual angles, > and then the output is ok. > >> and is very tiny compared to the size it was meant t

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Taco Hoekwater
transform, and that seems to be ignored by lmt_svg. (I do not see how a scale of (-1.1,-1.1) would make it that much bigger, but I know that manually altering the values does nothing, so I guess that must be it). No solution,

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-15 Thread Floris van Manen
On 15-02-2020 12:25, Fabrice Couvreur wrote: > Hi Henri, > Why does the blue path not rotate 90 with the draw command but rotate > with the fill command? > Why not draw the match as a picture first, then rotate and shift that picture? Also, if you use a local scale unit, it wi

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-14 Thread Fabrice Couvreur
-- ++(-4,0) -- ++(-0.1,0.05); \shade[ball color=red] (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm); \draw (#1+4,#2+0.1) ellipse (0.25cm and 0.22cm); } \allumette{0.1}{0.2} \filldraw[orange,scale=0.5,shift={(8.2,1.2)}] (0,0) .. controls (-1.5,1.25) and (.5,2) .. (-.2,4) .. controls (1,2.5)

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
. \stopitem \placerecipe{}{ \hbox{ \starttikzpicture [extended line/.style={shorten >=-#1,shorten <=-#1}, scale=1, every node/.style={scale=0.8}, /pgf/declare function={f(\x)=\x^2 +1 - \x^3;}, /pgf/d

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
ndows): > > \installshipoutmethod{savepages} > {\dowithnextbox > {\invokepagehandler{normal}{\copy\nextbox}% > \putboxincache{savedpages}{\number\realpageno}\nextbox} >\hbox} > > \setuppaper[method=savepages] > > \starttext > >

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
\setuppaper[method=savepages] \starttext \scale[width=\textwidth]{a} \scale[width=\textwidth]{b} \doifmode{*first}{\executesystemcommand{rm zikaasd.abh}} \startnotmode[*first] \ifnum\lastpagenumber<2 \executesystemcommand{touch zikaasd.a

Re: [NTG-context] margintext and floats in the margin

2020-01-31 Thread Jan Willem Flamma
arkblue) > withpen pencircle scaled 2pt ; > \stopbuffer > > \starttext > > This is some text.\margintext{This is a remark in the margin.} > This is some more text.\margintext{This text is also in the margin.} > \startplacefigure[location=outerm

[NTG-context] margintext and floats in the margin

2020-01-29 Thread Otared Kavian
ome text.\margintext{This is a remark in the margin.} This is some more text.\margintext{This text is also in the margin.} \startplacefigure[location=outermargin,number=no] \scale[width=\rightmarginwidth]{\processMPbuffer[sine]} \stopplacefigure \stoptext % end

[NTG-context] [question] \clipping some data from a pdf

2020-01-28 Thread Floris van Manen
Does anyone know? Using the latest LMTX, i try to clip some portion of an external pdf page, then resize that portion on top a new page. i use the \clip command. \starttext \scale[width=100mm, hwight=100mm]{\clip[width=150mm, height=120mm, hoffset=30mm, voffset=40mm]{\externalfigure[drawing.pdf

[NTG-context] margintext and floats in the margin

2020-01-26 Thread Otared Kavian
ome text.\margintext{This is a remark in the margin.} This is some more text.\margintext{This text is also in the margin.} \startplacefigure[location=outermargin,number=no] \scale[width=\rightmarginwidth]{\processMPbuffer[sine]} \stopplacefigure \stoptext % end

Re: [NTG-context] Watermark is behind \externalfigure

2019-12-27 Thread Wolfgang Schuster
}{\overlaywidth}{\overlayheight}{\color[Watermark]{\CONTEXT}}}] \defineoverlay   [watermark]   [{\scale[factor=fit]{\color[Watermark]{\CONTEXT}}}] \setupexternalfigure[location=default] \starttext \externalfigure[mill][background={foreground,watermark}] \stoptext Wolfgang

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Henning Hraban Ramm
s Hagen : > >>>> Can I change their color, in particular into a CMYK black (0,0,0,1.0)? > > Just curious ... isn't gray (g G) equivalent enough? I assume that a cmyk > prepress document can have gray scale images too. Grayscale color space is device dependent, as well as CMYK an

Re: [NTG-context] setting the color of cropmarks

2019-12-19 Thread Hans Hagen
curious ... isn't gray (g G) equivalent enough? I assume that a cmyk prepress document can have gray scale images too. There’s no parameter, and I don’t understand how the markings are set in https://source.contextgarden.net/tex/context/base/mkiv/strc-mar.mkiv No, that's about markings

Re: [NTG-context] LMTX Tagging and overlay

2019-12-15 Thread Otared Kavian
height] >> % \setlayerframed[WatermarkOverlay] >> %[preset=center] >> %[foregroundcolor=red,frame=off] >> %{\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}} >> >> \defineoverl

Re: [NTG-context] LMTX Tagging and overlay

2019-12-15 Thread Rik Kabel
=center] %    [foregroundcolor=red,frame=off] % {\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}} \defineoverlay   [WatermarkOverlay] [{\framed[frame=off,    foregroundcolor=red

[NTG-context] Using lmtx and new metafun

2019-12-12 Thread Otared Kavian
\startMPdefinitions{GridAxis} def GridAxisPlot = applyparameters "GridAxisPlot" "do_GridAxisPlot" enddef ; presetparameters "GridAxisPlot" [ xmin = -2.5, xmax = 2.5, ymin = -2.5, ymax = 2.5, dx = 1, dy = 1, sx = 5mm

[NTG-context] LMTXL Tagging and overlay

2019-12-10 Thread Rik Kabel
, % width=\paperwidth, % height=\paperheight] % \setlayerframed    [WatermarkOverlay] %    [preset=center] %    [foregroundcolor=red,frame=off] % {\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}} \defineoverlay

Re: [NTG-context] Noto Emoji fonts

2019-12-08 Thread Pablo Rodriguez
om/mozilla/twemoji-colr/releases/latest/. But it has an issue with sizes, it doesn’t scale well: \definefontfamily[emoj][rm][TeX Gyre Pagella] \definefontfamily[emoj][cg][Twemoji Mozilla][features={color}] \setupbodyfont[emoj] \starttext Mx{\cg}\\ \tfa Mx{\cg}

Re: [NTG-context] ConTeXt as a service

2019-11-23 Thread mf
It's not a generic, all-purpose ConTeXt container, it's tailored on a very specific kind of documents. That way the only things i'm moving around are XHTML sources and typeset PDFs. Things get really complex if you want to use containers to scale up, having a whole battery of identical ConTeXt s

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Wolfgang Schuster
\startxcell \dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell \startxcell \dontleavehmode \externalfigure[cow.pdf

[NTG-context] issue splitting tables and horizontal mode

2019-10-18 Thread Pablo Rodriguez
\dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell \startxcell \dontleavehmode \externalfigure[cow.pdf] [scale=500] \stopxcell

Re: [NTG-context] issue with images in frames

2019-10-18 Thread Hans Hagen
\dontleavehmode\dorecurse{100}{ \externalfigure[cow.pdf][scale=50] } \stopxcell \startxcell \input zapf \stopxcell \stopxrow \stopxtable \stoptext Some time ago, there were no difference

Re: [NTG-context] issue with images in frames

2019-10-17 Thread Wolfgang Schuster
}{ \externalfigure[cow.pdf][scale=50] } \stopxcell \startxcell \input zapf \stopxcell \stopxrow \stopxtable \stoptext Some time ago, there were no difference between images and text remaining inside the frame

[NTG-context] issue with images in frames

2019-10-17 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupexternalfigures[location=default] \starttext \startxtable[option={stretch, width}] \startxrow \startxcell \dontleavehmode\dorecurse{100}{ \externalfigure[cow.pdf][scale=50

Re: [NTG-context] interactive link area and scale in LMTX

2019-05-19 Thread Pablo Rodriguez
On 5/18/19 11:00 PM, Hans Hagen wrote: > On 5/18/2019 7:12 PM, Pablo Rodriguez wrote: >> [...] >> Interactive link areas are fine in latest beta (2019.05.18 10:57) with >> LuaTeX-1.10, but with LuaTeX-2.0, they aren’t scaled. >> >> Could anyone confirm the issue? > fixed in next beta Hans, many

Re: [NTG-context] interactive link area and scale in LMTX

2019-05-18 Thread Hans Hagen
{\goto{#2} [url(#1)]} \starttext \mypersonalurl{wiki.contextgarden.net} \scale[width=.5\textwidth] {\mypersonalurl{wiki.contextgarden.net}} \stoptext Interactive link areas are fine in latest beta (2019.05.18 10:57) with LuaTeX-1.10, but with LuaTeX-2.0, they aren’t

[NTG-context] interactive link area and scale in LMTX

2019-05-18 Thread Pablo Rodriguez
\mypersonalurl{wiki.contextgarden.net} \scale[width=.5\textwidth] {\mypersonalurl{wiki.contextgarden.net}} \stoptext Interactive link areas are fine in latest beta (2019.05.18 10:57) with LuaTeX-1.10, but with LuaTeX-2.0, they aren’t scaled. Could anyone confirm the issue? Many thanks

[NTG-context] Question to floating figure and grid

2019-03-22 Thread Tomas Hala
] \placefigure[][#1]{#2}{\externalfigure[#3][#4]} \stopfloatcombination \stopplacefigure} \input knuth \myfig{fig1}{This is FIG1}{any.jpg}{scale=250} \input knuth \input knuth \stoptext ___ If your question

[NTG-context] Fwd: Meptapost Drawing not showing-up in Context Letter Style

2019-03-12 Thread Jeroen
\definelayer [logo] [repeat=no] \setlayer [logo] [hoffset=160mm,voffset=17mm] {\scale[width=25mm,height=25mm]{\useMPgraphic{mpglogo}}} \setupbackgrounds[paper][background=logo] % END MP LOGO SETUP, BEGIN LETTER SETUP \usemodule [letter] [style=dinb] \setupletterlayer [reference

Re: [NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-11 Thread Wolfgang Schuster
=dinb] \startuseMPgraphic{mpglogo} path p; p := (0,0)--(100,0)--(100,100)--(0,100)--cycle ; path q; q := p cornered 30pt; draw q withcolor black withpen pencircle scaled 7pt ; \stopuseMPgraphic \startsetups[letter:layer:lettermain] \scale[width=25mm,height=25mm]{\useMPgraphic{mpglogo

Re: [NTG-context] IBM Wordcloud with the Filter Module

2019-03-11 Thread Jeroen
gt; > > -i \externalfilterinputfile}, > > > > output=\externalfilterbasefile.png, > > > > readcommand=\ExternalFigure, > > > > continue=yes, > > > > purge=no,] > > > > \def\ExternalFigure#1{\externalfigure[#1]} > > > > \sta

Re: [NTG-context] IBM Wordcloud with the Filter Module

2019-03-11 Thread Aditya Mahajan
\starttext \startwordcloud %[width=100] Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ sig

[NTG-context] IBM Wordcloud with the Filter Module

2019-03-11 Thread Jeroen
ew system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of im

[NTG-context] Meptapost Drawing not showing-up in Context Letter Style

2019-03-10 Thread Context NTG
p; p := (0,0)--(100,0)--(100,100)--(0,100)--cycle; path q; q := p cornered 30pt; draw q withcolor black withpen pencircle scaled 7pt; \stopuseMPgraphic \definelayer [logo] [repeat=no] \setlayer [logo] [hoffset=160mm,voffset=17mm] {\scale[width=25mm,height=25mm]{\useMPgraphic

Re: [NTG-context] New logo proposal

2019-01-30 Thread Taco Hoekwater
replacing the favicon as well, but the image does not want to scale down that much, so the favicon is still Patrick’s tulips. > On 30 Jan 2019, at 10:15, Floris van Manen wrote: > > If TeX and Context are about typesetting beautiful readable typography, > the logos as presented do

Re: [NTG-context] definefont

2019-01-23 Thread Wolfgang Schuster
the font size factor. Of course, but how is it used? In my example, I scale the text to a specific width, so I really don't care what font size is selected and would assume that the design optimal or "natural" size would be selected, by default. In your case it isn’t needed but when you have

Re: [NTG-context] definefont (was: definefontfamily use)

2019-01-23 Thread Alan Braslau
res activated by default? (as the name might suggest...). Perhaps *no* features are selected, by default... (a misnomer, therefore). > sa 3 is the font size factor. Of course, but how is it used? In my example, I scale the text to a specific width, so I really don't care what font size is

Re: [NTG-context] definefont (was: definefontfamily use)

2019-01-23 Thread Henning Hraban Ramm
Alan Braslau : > On Tue, 22 Jan 2019 19:39:05 +0100 > Hans Hagen wrote: > >> one can do >> >> \definefont[MyTitleFont][file:myfont.ttf*default sa 3] >> >> \setuphead[chapter][style=\MyTitlefont] > > Thank you > > \definefont[MyFont][file:myf

Re: [NTG-context] definefontfamily use

2019-01-22 Thread Alan Braslau
On Tue, 22 Jan 2019 19:39:05 +0100 Hans Hagen wrote: > one can do > > \definefont[MyTitleFont][file:myfont.ttf*default sa 3] > > \setuphead[chapter][style=\MyTitlefont] Thank you \definefont[MyFont][file:myfont.ttf] \scale[width=.5\textwidth]{\MyFont My Font!} can be u

Re: [NTG-context] Scaling down symbols and emojis

2019-01-18 Thread User 19087
ote: > The default sizes (12pt, 14.4pt etc,) set the x and xx sizes to a fixed > size which leads > to differences and the scale factor. That's yet another reason to avoiding fixing the values of the 'm' and 'n' sizes. As of now, you have to first decide your font size, lookup the 'x' a

Re: [NTG-context] Scaling down symbols and emojis

2019-01-18 Thread Wolfgang Schuster
User 19087 schrieb am 17.01.19 um 14:30: On Wed, Jan 16, 2019 at 4:24 PM Wolfgang Schuster wrote: % Which factor should I use to match \tfxx? \symbol[ShortForty] \scale[factor=4]{\symbol[ShortForty]} x = 0.8 xx = 0.6 That's what the ConTeXt Reference Manual also says, but that doesn't seem

Re: [NTG-context] Scaling down symbols and emojis

2019-01-17 Thread User 19087
On Wed, Jan 16, 2019 at 4:24 PM Wolfgang Schuster wrote: > > % Which factor should I use to match \tfxx? > > \symbol[ShortForty] > > \scale[factor=4]{\symbol[ShortForty]} > x = 0.8 > xx = 0.6 That's what the ConTeXt Reference Manual also says, but that doesn't seem to

Re: [NTG-context] Scaling down symbols and emojis

2019-01-17 Thread User 19087
On Wed, Jan 16, 2019 at 4:24 PM Wolfgang Schuster wrote: > > User 19087 schrieb am 16.01.19 um 21:56: > > I'm having trouble scaling down symbols and emojis. For a while I > > assumed these don't scale with the current font size. Then I scoured > > the mailing list and rea

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
bodyfontenvironment{x}, n=\getcurrentbodyfontenvironment{xx}] > > % This also works but is less than ideal when matching surrounding > > font sizes. > > % Which factor should I use to match \tfxx? > > \symbol[ShortForty] > > \scale[factor=4]{\symbol[ShortForty]} > x = 0.8

Re: [NTG-context] Scaling down symbols and emojis

2019-01-16 Thread Wolfgang Schuster
User 19087 schrieb am 16.01.19 um 21:56: I'm having trouble scaling down symbols and emojis. For a while I assumed these don't scale with the current font size. Then I scoured the mailing list and realized that while scaling down seems broken, scaling up works as expected: \tx (or \tfx, \bfx

[NTG-context] Scaling down symbols and emojis

2019-01-16 Thread User 19087
I'm having trouble scaling down symbols and emojis. For a while I assumed these don't scale with the current font size. Then I scoured the mailing list and realized that while scaling down seems broken, scaling up works as expected: \usesymbols[mvs] \setupsymbolset[martinvogel 2

Re: [NTG-context] tikz pgfplots library problem

2019-01-15 Thread Aditya Mahajan
-.0} 2412 \tikzdvdeclarestylesheetcolorseries{shades of red}{hsb}{0,1.4,1}{0,-.4,-.0} 2413 \tikzdvdeclarestylesheetcolorseries{gray scale}{hsb}{0,0,-.34}{0,0,.34} 2414 2415 2416 which you can "fix" by adding: \def\definecolorseries{\gobblefourarguments} \def\resetcolorseries{\gobbleoneargu

Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font)

2018-12-30 Thread Joseph Canedo
t][mode=node, lang=heb, script=hebr] > > \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, > scale=1.0, features=hebrew] > > \definefontfamily[mainfont][serif][EBGaramond][features=base] > > \setupbodyfont[mainfont, 9pt] > > \def\He{\hebrewHe} > &g

Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font)

2018-12-30 Thread Joseph Canedo
owfontkerns > > \definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes] > > \definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr] > > \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, > scale=1.0, features=hebrew] > > \de

Re: [NTG-context] Issue with missing kerns when using fallback family (or KeterYG font)

2018-12-30 Thread Hans Hagen
] \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew] \definefontfamily[mainfont][serif][EBGaramond][features=base] \setupbodyfont[mainfont, 9pt] \def\He{\hebrewHe} \def\Tav{\hebrewTav} \def\Vav{\hebrewVav} \starttext VA c'est {\setupalign[r2l]\Tav\He\Vav} VA

[NTG-context] Issue with missing kerns when using fallback family (or KeterYG font)

2018-12-30 Thread Joseph Canedo
=range:hebrew, scale=1.0, features=hebrew] \definefontfamily[mainfont][serif][EBGaramond][features=base] \setupbodyfont[mainfont, 9pt] \def\He{\hebrewHe} \def\Tav{\hebrewTav} \def\Vav{\hebrewVav} \starttext VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A VA

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Wolfgang Schuster
is normally of a different design that a scaled down 2, so one then has to replace them all. Then there is the question of scale and move (up/down). This issue shows up with the STIX and STIX2 fonts, as the former has the superscript digits ¹ ² ³, but not the other which came to Unicode later

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg
ifferent design > that a scaled down 2, so one then has to replace them all. Then there is the > question of scale and move (up/down). This issue shows up with the STIX and STIX2 fonts, as the former has the superscript digits ¹ ² ³, but not the other which came to Unicode later in a different

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg
rscript 3 isn't, using a fake ^3 alongside that ^2 > quite certainly will look bad because the 2 is normally of a different design > that a scaled down 2, so one then has to replace them all. Then there is the > question of scale and move (up/down). It will look worse not having it at al

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Hagen
, using a fake ^3 alongside that ^2 quite certainly will look bad because the 2 is normally of a different design that a scaled down 2, so one then has to replace them all. Then there is the question of scale and move (up/down). Although I have some experiemntal (font) magic on my computer

[NTG-context] latest beta (october 18th): likely bug in \mirror

2018-11-23 Thread mf
z[j] endfor .. z1 & cycle ; \stopuseMPgraphic % braces are scaled to fit the box \defineoverlay[leftbrace] [\middlealigned{\scale[height=\overlayheight,width=\dimexpr 3pt+.015\dimexpr\overlayheight\relax\relax]{\useMPgraphic{accolade}}}] \defineoverlay[rightbrace][\middlealigned{\mirror{\scal

Re: [NTG-context] what defines the font size?

2018-10-18 Thread Hans Hagen
TeX Gyre Bonum at a somewhat larger size than the TeX Gyre Bonum designer intended and TeX Gyre Adventor at a somewhat larger size than the TeX Gyre Adventor designer intended" Nothing more, nothing less. A nice explanation. In context one can actually scale in two more ways than st

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread Hans Hagen
  \scale[sx=4,sy=4]{\sc RoLlErCoAsTeR TeXt.}\par   \blank   \scale[sx=4,sy=4]{\sc ÀàÉéÎîÖöÜü.}\par   \blank   \scale[sx=4,sy=4]{\sc ŁłĄąĞğŘřŻż.}\par \stoptext ___ If your question is of interest to others as well, please

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread mf
] \setupbodyfont[myriadpro,ss] \starttext % scaled up 4 times to appreciate the thickness equalization \scale[sx=4,sy=4]{\sc RoLlErCoAsTeR TeXt.}\par \blank \scale[sx=4,sy=4]{\sc ÀàÉéÎîÖöÜü.}\par \blank \scale[sx=4,sy=4]{\sc ŁłĄąĞğŘřŻż.}\par \stoptext fake-smallcaps.pdf Description: Adobe PDF

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread Hans Hagen
stoptypescriptcollection \usetypescript[myriadpro] \setupbodyfont[myriadpro,ss] \starttext    % scaled up 4 times to appreciate the thickness compensation    \scale[sx=4,sy=4]{\sc SoMe CaMeLcAsE TeXt.}\par \stoptext 'offset' offsets the original, i'll add 'target' so that you can d

Re: [NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread Hans Hagen
usetypescript[myriadpro] \setupbodyfont[myriadpro,ss] \starttext   % scaled up 4 times to appreciate the thickness compensation   \scale[sx=4,sy=4]{\sc SoMe CaMeLcAsE TeXt.}\par \stoptext 'offset' offsets the original, i'll add 'target' so that you can do \definefontfallback[FakeSansCaps]

[NTG-context] faking smallcaps font with font features and fallbacks

2018-10-03 Thread mf
text % scaled up 4 times to appreciate the thickness compensation \scale[sx=4,sy=4]{\sc SoMe CaMeLcAsE TeXt.}\par \stoptext ___ If your question is of interest to others as well, please add an entry to the Wik

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
scaling included pdf >files. >> My minimal file: >> >> \startMPpage >> draw externalfigure "cow.pdf" ; >> \stopMPpage >> >> The resulting pdf is, as the original, 97x70.6 mm, all ok. >> >> If I try to scale to the original siz

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Hans Hagen
On 10/2/2018 7:03 AM, Lutz Haseloff wrote: Hi Hans, hi all, I think, that recent context has a problem with scaling included pdf files. My minimal file: \startMPpage draw externalfigure "cow.pdf" ; \stopMPpage The resulting pdf is, as the original, 97x70.6 mm, all ok. If I tr

Re: [NTG-context] Metafun scaling problem

2018-10-02 Thread Lutz Haseloff
Hans, hi all, >> >> I think, that recent context has a problem with scaling included pdf >files. >> My minimal file: >> >> \startMPpage >> draw externalfigure "cow.pdf" ; >> \stopMPpage >> >> The resulting pdf is, as the origin

Re: [NTG-context] Metafun scaling problem

2018-10-01 Thread luigi scarso
is, as the original, 97x70.6 mm, all ok. > > If I try to scale to the original size, i get arithmetic overflow error. > > \startMPpage > draw externalfigure "cow.pdf" xscaled 97mm yscaled 70.6mm ; > \stopMPpage > > > Whe i scale it down, the pdf gets really big.

[NTG-context] Metafun scaling problem

2018-10-01 Thread Lutz Haseloff
Hi Hans, hi all, I think, that recent context has a problem with scaling included pdf files. My minimal file: \startMPpage draw externalfigure "cow.pdf" ; \stopMPpage The resulting pdf is, as the original, 97x70.6 mm, all ok. If I try to scale to the original size, i get arithmeti

Re: [NTG-context] Rendering of Burmese Script

2018-09-28 Thread Taco Hoekwater
problem. > > \documentclass{memoir} > \usepackage{fontspec} > \newfontfamily{\burmeseFamily}{NotoSerifMyanmar-Regular.ttf}[Scale=MatchLowercase] > \begin{document} > Test {\burmeseFamily{}တော်ကြီး} foo. > \end{document} > > Thank you very much for

[NTG-context] Rendering of Burmese Script

2018-09-28 Thread Campanignis
spot for my initial problem. Here is the initial problem: The following MWE renders correctly in XeLaTeX but not in LuaLaTeX and illustrates the problem. \documentclass{memoir} \usepackage{fontspec} \newfontfamily{\burmeseFamily}{NotoSerifMyanmar-Regular.ttf}[Scale=MatchLowercase] \begin

Re: [NTG-context] rscale with auto value

2018-09-26 Thread Aditya Mahajan
] \setupbodyfont[mainface, 22pt] \starttext \startmakeup[standard] This is available at {\tt https://contextarden.net}. \stopmakeup \stoptext The problem is how to explain to someone who never used anything similar to ConTeXt or TeX how she has to calculate the scale ratio. It is even not simple

[NTG-context] rscale with auto value

2018-09-26 Thread Pablo Rodriguez
\startmakeup[standard] This is available at {\tt https://contextarden.net}. \stopmakeup \stoptext The problem is how to explain to someone who never used anything similar to ConTeXt or TeX how she has to calculate the scale ratio. It is even not simple to myself. rscale is a useful option

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Hans Hagen
withcolor black randomized (.2,1.5);   for i=2 upto NObj :   Danger := 0; % Choose a position for the object :   ObjPos := (uniformdeviate(5)*1in,uniformdeviate(5)*1in) ;   % Choose a form :   Obj[i] := fullsquare randomized .01in ;   Obj[i] := curved ( Obj[i] );   % Choose a scale so the object doe

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Fabrice L
ullsquare randomized .01in ; Obj[i] := curved ( Obj[i] ); % Choose a scale so the object does not interact with any other object: for j=1 upto 50: MaxSize := (j*.01in) ; ObjTemp := Obj[i] scaled MaxSize shifted ObjPos ; %draw ObjTemp withcolor magenta ; % Check i

Re: [NTG-context] xtables multipage horizontally

2018-09-05 Thread luigi scarso
pping (linecorrection) % - maybe also some before/after commands % - maybe correction when non float usage % - tagging needs to be checked % - maybe only tag the box % - scale to fit % % - buffers permit verbatim but are not always handy -- luigi ___

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Fabrice Couvreur
use the correct margin width, i.e. \rightmarginwidth in the > right margin and vice versa in the left margin. You should also scale > the margins to fit in the backspace/cutspace because by default they > don't and run off the paper. > > \showframe > \useMPlibrary[dum] > \setupla

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
You have to use the correct margin width, i.e. \rightmarginwidth in the right margin and vice versa in the left margin. You should also scale the margins to fit in the backspace/cutspace because by default they don't and run off the paper. \showframe \useMPlibrary[dum] \setuplayout [height

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Alan Braslau
never wanted to add a ton of code for > images) so there externalfigure will scale proportionally too ConTeXt running on the luatex experimental branch under development indeed works with one-pass-MP calculations as opposed to the two-pass mechanism that is standard today. For documents with

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
.." ... That's what I was looking for. Thanks. the "externalfigure" variant is an old one that had to deal with dimensions in a way that avoids overflows in a future context (read luatex 1.09+) we go one-pass-mp so we can have a different approach (i never wanted to add a ton of co

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Marco Patzer
On Sun, 8 Jul 2018 10:39:52 +0200 Hans Hagen wrote: > On 7/8/2018 1:45 AM, Marco Patzer wrote: > > On Sat, 7 Jul 2018 14:27:38 -0600 > > Alan Braslau wrote: > > > >> For "historic" reasons, > >> draw externalfigure "cow" scaled 5cm ; > >> normalizes the figure to a square. This will not

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen
On 7/8/2018 1:45 AM, Marco Patzer wrote: On Sat, 7 Jul 2018 14:27:38 -0600 Alan Braslau wrote: For "historic" reasons, draw externalfigure "cow" scaled 5cm ; normalizes the figure to a square. This will not be changed as it is a very old feature of MetaFun. The solution is draw

  1   2   3   4   5   6   7   8   9   10   >