[NTG-context] Re: get measures as dimension in Lua

2024-06-13 Thread Hans Hagen via ntg-context
asure as a dimension, like \measured{Bleed}. As far as I tried, neither tex.measured nor context.measured worked (but I wouldn’t swear on it, maybe I had a different error). I understand now that a dimension in Lua is just a string. no, it is a number (scaled points or sp) but it can have a string

[NTG-context] Re: get measures as dimension in Lua

2024-06-13 Thread Henning Hraban Ramm
" else return value end So I needed just tex.getdimensionvalue(namespace..name) Not to be misunderstood, I couldn’t check yet, maybe I wasn’t clear: I need to process the measure as a dimension, like \measured{Bleed}. As far as I tried, neither tex.measured nor con

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-11 Thread Gerion Entrup
ronment for it but struggle to > > measure the correct font height. I found the > > "definemeasure/measure/measured" > > commands but they define a dimension and are not for doing measurements on > > rendered text. Is there a simple way to get the height a char as

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Wolfgang Schuster
Gerion Entrup schrieb am 10.06.2024 um 13:16: Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measure

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread seyal zavira
. I found the > "definemeasure/measure/measured" > commands but they define a dimension and are not for doing measurements on > rendered text. Is there a simple way to get the height a char as a > dimension? > > MWE: > ``` > \starttext > % Is it possible to replace

[NTG-context] Re: Scale content to height of the font, measure font height

2024-06-10 Thread Hans Hagen
On 6/10/2024 1:16 PM, Gerion Entrup wrote: Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measure

[NTG-context] Scale content to height of the font, measure font height

2024-06-10 Thread Gerion Entrup
Hi, I'd like to scale something (actually a symbol drawn in TikZ) to the exact high of the char 'M'. I found the scale environment for it but struggle to measure the correct font height. I found the "definemeasure/measure/measured" commands but they define a dimens

[NTG-context] Re: get measures as dimension in Lua

2024-06-10 Thread Henning Hraban Ramm
(namespace..name)     if asdimen then     return value .. "sp"     else     return value     end and when you want to avoid the namespace you can do:     function tex.getmeasure(name,asdimen)     local value = token.getexpansion("\\to

[NTG-context] Re: get measures as dimension in Lua

2024-06-10 Thread Hans Hagen via ntg-context
n) local value = tex.getdimensionvalue(namespace..name) if asdimen then return value .. "sp" else return value end and when you want to avoid the namespace you can do: function tex.getmeasure(name,asdimen) local value = t

[NTG-context] Re: Unknown units es and dk

2024-03-23 Thread Wolfgang Schuster
was still in feet we decided to adapt it accordingly so now in addition it reports different values, including Theodores little feet measured by Arthur as being roughly five Ediths. Here is the fitting error message when you pass a dimension too large for TeX: Dimension too large", I can

[NTG-context] Re: learning about the grid

2023-11-20 Thread Wolfgang Schuster
setupinterlinearspace[1.3ex] was the right way (I read somewhere that vertical spaces should be measured in ex and horizontal spaces in em; maybe it's not widely accepted). I tried setting my interlinearspace to 3ex and it looked much better, but I must compare it with a onehalfspaci

[NTG-context] Re: learning about the grid

2023-11-20 Thread Pablo Rodriguez via ntg-context
tting ConTeXt with setupinterlinearspace[1.3ex] was the right way. Hi Miguel, sorry, but I don’t have any idea what \linespread might mean for LaTeX in plain English. Some ConTeXt users may also use LaTeX too, but don’t rely on that. > (I read somewhere that vertical spaces should be measured i

[NTG-context] Re: learning about the grid

2023-11-19 Thread Henning Hraban Ramm
setupinterlinearspace[1.3ex] was the right way (I read somewhere that vertical spaces should be measured in ex and horizontal spaces in em; maybe it's not widely accepted). I tried setting my interlinearspace to 3ex and it looked much better, but I must compare it with a onehalfspaci

[NTG-context] Re: learning about the grid

2023-11-19 Thread madiazm . eoicc
somewhere that vertical spaces should be measured in ex and horizontal spaces in em; maybe it's not widely accepted). I tried setting my interlinearspace to 3ex and it looked much better, but I must compare it with a onehalfspacing of wordprocessors to be sure it is not such different. Sorr

Re: [NTG-context] new units

2023-05-06 Thread Hans Hagen via ntg-context
to a more realistic variant. (Actually, because tex has no foot unit, we could as well replace that with a more impressive little feet unit but we forgot to measure the smallest foot present which i guess was about 3 es so the limit is then some 75 bare theodores.) I measured the theodore at 13c

Re: [NTG-context] new units

2023-05-06 Thread Arthur Rosendahl via ntg-context
ex has no foot unit, we could as > well replace that with a more impressive little feet unit but we forgot to > measure the smallest foot present which i guess was about 3 es so the limit > is then some 75 bare theodores.) I measured the theodore at 13cm, so that puts the limit at

Re: [NTG-context] bottlenecks

2022-12-17 Thread Rik Kabel via ntg-context
se to the total runtime (in the second example, 14.774 seconds of 23.057 are accounted), so there are other unidentified processes involved. these stats are an indication because below a threshold (time accuracy) nothing is measured In any case, the processing time has been improving greatly

Re: [NTG-context] bottlenecks

2022-12-16 Thread Hans Hagen via ntg-context
of 23.057 are accounted), so there are other unidentified processes involved. these stats are an indication because below a threshold (time accuracy) nothing is measured In any case, the processing time has been improving greatly over the last couple of years, and LMTX is significantly fast

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-13 Thread Henning Hraban Ramm via ntg-context
;" Missing ) inserted for expression . \commalistcommand 2mm + (0.09mm * 1. 5 * \noffigurepages /2) \measured #1->\dimexpr \ifcsname \??measure #1\endcsname \lastnamedcs \else \zeropoint \fi \relax ... """ I also tried 1.5sp since sp should b

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Henning Hraban Ramm via ntg-context
Am 04.11.22 um 11:52 schrieb Herbert Voss via ntg-context: \definemeasure[FlapWidth][\measured{PageWidth} * 0.8] \definemeasure[FlapWidth][0.8\measured{PageWidth}] works Yes, thank you! That’s why I asked for the basics in my first post – which operators can I use how, in which order

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Herbert Voss via ntg-context
dimension calculations. Is there anything I can read about the possibilities and limitations? e.g. with \definemeasure[PageWidth][132mm] none of the following works: \definemeasure[FlapWidth][0.8 * \measure{PageWidth}] use \measured (with a "d" to get a dimension) Only in expressions li

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-04 Thread Henning Hraban Ramm via ntg-context
possibilities and limitations? e.g. with \definemeasure[PageWidth][132mm] none of the following works: \definemeasure[FlapWidth][0.8 * \measure{PageWidth}] use \measured (with a "d" to get a dimension) Only in expressions like that or always? In https://source.contextgarden.net/syst-aux.mki

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Henning Hraban Ramm via ntg-context
] none of the following works: \definemeasure[FlapWidth][0.8 * \measure{PageWidth}] use \measured (with a "d" to get a dimension) Only in expressions like that or always? In https://source.contextgarden.net/syst-aux.mkiv it looks like \measured returns a dimension, while \measure returns

Re: [NTG-context] \definemeasure / \dimexpr

2022-11-03 Thread Hans Hagen via ntg-context
* \measure{PageWidth}] use \measured (with a "d" to get a dimension) \definemeasure[FlapWidth][.8\measure{PageWidth}] \definemeasure[FlapWidth][\measure{PageWidth} * 0.8] \definemeasure[FlapWidth][\measure{PageWidth}*8/10] \definemeasure[FlapWidth][8\measure{PageWidth}/1

Re: [NTG-context] Two minor questions

2022-06-07 Thread Stefan Nedeljkovic via ntg-context
aring >> > >> > 1. I'd like to shift the text area down so that the red lines >> > align with the blue lines (I think this amount is called depth). How >> > would I do that? >> >> Quick and dirty: >> >> \setuplayout >>[..., &

Re: [NTG-context] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
o shift the text area down so that the red lines > > align with the blue lines (I think this amount is called depth). How > > would I do that? > > Quick and dirty: > > \setuplayout >[..., > topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax, > ...] >

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
wn so that the red lines align with the blue lines (I think this amount is called depth). How would I do that? Quick and dirty: \setuplayout   [...,    topspace=\dimexpr5\measured{base}+2bp+\strutdp\relax,    ...] 2. The font is such that exactly 2 characters fit into the grid cell, but I see

Re: [NTG-context] Two minor questions

2022-06-06 Thread Stefan Nedeljkovic via ntg-context
erely, Stefan On Mon, Jun 6, 2022 at 5:50 PM Aditya Mahajan wrote: > On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote: > > > Dear list, > > > > I have 2 small questions: > > > > 1. In \setuplayout if I try to set topspace=5\measured{base} + > &g

Re: [NTG-context] Two minor questions

2022-06-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Jun 2022, Stefan Nedeljkovic via ntg-context wrote: > Dear list, > > I have 2 small questions: > > 1. In \setuplayout if I try to set topspace=5\measured{base} + > \dimexpr2bp I get an error. How should I add these 2bp? (Untested) \dimexpr\measure{base}+2bp\re

Re: [NTG-context] Two minor questions

2022-06-06 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 06.06.2022 um 07:55: Dear list, I have 2 small questions: 1. In \setuplayout if I try to set topspace=5\measured{base} + \dimexpr2bp I get an error. How should I add these 2bp? \setuplayout   [topspace=\dimexpr 5\measured{base} + 2bp\relax] 2

[NTG-context] Two minor questions

2022-06-05 Thread Stefan Nedeljkovic via ntg-context
Dear list, I have 2 small questions: 1. In \setuplayout if I try to set topspace=5\measured{base} + \dimexpr2bp I get an error. How should I add these 2bp? 2. I have an mp graphic defined in the file "graphic.mp" which has the exact same dimensions as my page. I'd like to set th

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
Perfect, thank you very much Max! On Sat, May 28, 2022 at 10:40 AM Max Chernoff wrote: > On 2022-05-28 2:27 a.m., Stefan Nedeljkovic wrote: > > One slight problem is when I use 2\measured{xheight} as the font size I > > get an error. \measure works fine though. > > The

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Max Chernoff via ntg-context
On 2022-05-28 2:27 a.m., Stefan Nedeljkovic wrote: One slight problem is when I use 2\measured{xheight} as the font size I get an error. \measure works fine though. The old version expected direct input, not a \dimen. Try this: \starttexdefinition setxheight [#1][#2

Re: [NTG-context] Specifying font size as x-height

2022-05-28 Thread Stefan Nedeljkovic via ntg-context
One slight problem is when I use 2\measured{xheight} as the font size I get an error. \measure works fine though. On Sat, May 28, 2022 at 9:34 AM Stefan Nedeljkovic wrote: > Awesome, thank you very much Max! > > On Sat, May 28, 2022 at 8:49 AM Max Chernoff wrote: > >> >

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
; > \definemeasure[xheight][0.1in] > > \definemeasure[base][3\measured{xheight}] > > % Since all distances are in terms of base units, specify the paper size > in those > > % terms as well. > > \definepapersize[slide][width=26\measured{base},height=20\measured{base}] > &g

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Rik Kabel via ntg-context
text shifts downwards by two lines. My code: \definemeasure[xheight][0.1in] \definemeasure[base][3\measured{xheight}] % Since all distances are in terms of base units, specify the paper size in those % terms as well. \definepapersize[slide][width=26\measured{base},height=20\measured{base

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Stefan Nedeljkovic via ntg-context
Thank you very much Aditya for looking into this. But I still have the same baseline grid offset problem. Interestingly, when I remove the columns, the text shifts downwards by two lines. My code: \definemeasure[xheight][0.1in] \definemeasure[base][3\measured{xheight}] % Since all distances

Re: [NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-27 Thread Aditya Mahajan via ntg-context
st are 1 unit wide. I believe that columns has to be an integer. Why do you want fractional columns? Columns are useful because you can say: \setlayer[name][line=2,column=3]{} for absolute positioning of layers. So, you can always use: \setlayer[name][line=2,column=3,x=0.5\measured{base}]{..

[NTG-context] Offseting the baseline grid, and irregular columnsets

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
space at the bottom. 2. The number of columns is 21.5, that is the first column is 0.5 units wide and the rest are 1 unit wide. How would I achieve this? Here is what I got right now: \definemeasure[xheight][0.1in] \definemeasure[base][3\measured{xheight}] \definepapersize[slide][width=80

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
ns and similar things and only have a text area with >> > an offset of 0.2in all around the page (see slide_grid_overlay.pdf). >> > Here is my current attempt: >> >> You have to use the \measured (with a trailing s) command when you need >> multiples of a measure

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Stefan Nedeljkovic via ntg-context
have a text area with > > an offset of 0.2in all around the page (see slide_grid_overlay.pdf). > > Here is my current attempt: > > You have to use the \measured (with a trailing s) command when you need > multiples of a measure value. When you use something like 2\measure{...} > ConTeXt

Re: [NTG-context] Help needed with slide grid layout

2022-05-25 Thread Wolfgang Schuster via ntg-context
margins and similar things and only have a text area with an offset of 0.2in all around the page (see slide_grid_overlay.pdf). Here is my current attempt: You have to use the \measured (with a trailing s) command when you need multiples of a measure value. When you use something like 2\measure

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

2022-01-25 Thread Hans Hagen via ntg-context
. i think that napoleon sort of forced the netherlands to standardize times (clocks) were definitely different per city i remember reading that for instance when the car industry needed oarts and there were more suppliers needed it were the supliers who standardized measured (bolts and

Re: [NTG-context] background color, was: CMYK Color profile

2019-06-02 Thread Benjamin Koppe
color, backgroundcolor=blue, backgroundoffset=\measured{bleed} ] wonder if this would be handy in the DIN lang folder template in the wiki, as most such brochures will supposingly have a colored background...? Am Samstag, den 01.06.2019, 05:48 +0200 schrieb Benjamin

Re: [NTG-context] background color, was: CMYK Color profile

2019-05-31 Thread Benjamin Koppe
his is the pagesize of the final PDF. %% The bleed size is added two times to width and height. \definepapersize [A4-flyer] [width=\dimexpr297mm+2\measured{bleed}\relax, height=\dimexpr210mm+2\measured{bleed}\relax] %% The size of a normal page. \definepapersize [flyer-page] [w

Re: [NTG-context] DIN lang folder with crop marks

2019-04-10 Thread Wolfgang Schuster
al document. I added the whole file as I really do not knwo (yet) how to reduce things... When you increase the size of the printed paper \definepapersize     [A4-flyer]     [width=\dimexpr297mm+10\measured{bleed}\relax, height=\dimexpr210mm+10\measured{bleed}\relax] and center the

[NTG-context] DIN lang folder with crop marks

2019-04-10 Thread Benjamin Koppe
persize [A4-flyer] [width=\dimexpr297mm+2\measured{bleed}\relax, height=\dimexpr210mm+2\measured{bleed}\relax] %% The size of a normal page. \definepapersize [flyer-page] [width=100mm, height=210mm] %% The size of the folded page. \definepapersize [flyer-page-sm

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

2018-10-17 Thread Alan Braslau
On 17/10/2018 11:10, Alan Braslau wrote: On 17/10/2018 11:05, Hans Hagen wrote: And compare it to sizing dogs or so ... what do you measure? Its tail or its legs. Of course, horses are measured in "hands"

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-26 Thread Jan U. Hasecke
lax, >>\dimexpr\measure{bleed}/2\relax, >>\dimexpr\measure{bleed}/2\relax, >>\dimexpr\measure{bleed}/2+2\measured{shortfold}\relax, >>\dimexpr\measure{bleed}/2\relax, >>\dimexpr\measure{bleed}/2-\measure{shortfold}\relax] > > I don't get the s

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-26 Thread Jan U. Hasecke
x, >\dimexpr\measure{bleed}/2+2\measured{shortfold}\relax, >\dimexpr\measure{bleed}/2\relax, >\dimexpr\measure{bleed}/2-\measure{shortfold}\relax] I don't get the same values like before, when I calculate with these equations. And while the aligns of the pages look good

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-26 Thread Marco Patzer
On Tue, 25 Sep 2018 12:57:54 +0200 "Jan U. Hasecke" wrote: > \definemeasure > [bleed] > [3mm] > > I used this value to generalize the A4-flyer dimensions. > > \definepapersize > [A4-flyer] > [width=\dimexpr297mm+2\measured{bleed}\r

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-25 Thread Jan U. Hasecke
y grasp how pageshift works. \definemeasure [bleed] [3mm] I used this value to generalize the A4-flyer dimensions. \definepapersize [A4-flyer] [width=\dimexpr297mm+2\measured{bleed}\relax, height=\dimexpr210mm+2\measured{bleed}\relax] But horizontal pageshift is beyond

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-24 Thread Jan U. Hasecke
ge shift of page #6 needs to be adjusted if shortfold is adjusted, no %% clue why. \definepageshift [flyer] [horizontal] [\zeropoint, \measure{shortfold}, \measure{shortfold}, 3\measured{shortfold}, \measure{shortfold}, \zeropoint] \definepageshift [flyer] [vertical] [\measure{short

Re: [NTG-context] Creating flyers with ConTeXt

2018-09-21 Thread Marco Patzer
e why. \definepageshift [flyer] [horizontal] [\zeropoint, \measure{shortfold}, \measure{shortfold}, 3\measured{shortfold}, \measure{shortfold}, \zeropoint] \definepageshift [flyer] [vertical] [\measure{shortfold}] \setuppageshift [paper] [flyer] \definemeasure [small] [3mm] \definemea

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Hans Hagen
On 8/21/2018 4:46 PM, Aditya Mahajan wrote: Are the x and y values in pts (post script points or big points?) measured from the top-left corner? afaik bottom up base points the script will look into the synctex file and figure out where to go to. Basically all the viewer needs to do is

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Aditya Mahajan
s (post script points or big points?) measured from the top-left corner? the script will look into the synctex file and figure out where to go to. Basically all the viewer needs to do is react to a click/cursor/key combination and call mtxrun with the page and positions (basepoints in pdf coordin

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
gt; \framed[width=4cm]{Foobar} > > \framed[width=\measure{mymeasure}]{Foobar} > > \framed[width=2\mydim]{Foobar} > > \framed[width=2\measure{mymeasure}]{Foobar} > > \stoptext > You can use \measured That's what I was looking for. > or just create more named leng

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Wolfgang Schuster
ure [mymeasure] [4cm] \newdimen\mydim \mydim4cm \starttext \framed[width=4cm]{Foobar} \framed[width=\measure{mymeasure}]{Foobar} \framed[width=2\mydim]{Foobar} \framed[width=2\measure{mymeasure}]{Foobar} \stoptext You can use \measured or just create more named lengths. \definemeasure [onemeasure]

Re: [NTG-context] testing 32bit and 64bit versions in Win7 64bit

2015-04-26 Thread Hans Hagen
nt to process xml ... well, then mkiv is definitely faster.) If you think that there's a bottleneck somewhere that shouldn't be, I can look into it when I'm bored. A while ago I measured performance this way: \usemodule[art-01] \starttext \input tufte % simulate stupid one page

Re: [NTG-context] fluctuating baseline of header text

2014-12-27 Thread j. van den hoff
ion} bla \page[yes]} \stoptext I can't see that the header space is to small, no? or what am I missing? using `\showglyphs' (which I didn't know of: thanks), it still looks to me as if the problem is caused by the fact, that all positions are measured from the top and the header

Re: [NTG-context] Calculating with variables

2013-11-26 Thread H. Özoguz
which is why the next is better: \definemeasure[fontsize:big] [17pt] \definemeasure[fontsize:small][0.7\measured{fontsize:big}] \definefont[big] [name:arial at \measure{fontsize:big}] \definefont[small][name:arial at \measure{fontsize:small}] \starttext \big Dies ist ein großer Text

Re: [NTG-context] Calculating with variables

2013-11-26 Thread Hans Hagen
why the next is better: \definemeasure[fontsize:big] [17pt] \definemeasure[fontsize:small][0.7\measured{fontsize:big}] \definefont[big] [name:arial at \measure{fontsize:big}] \definefont[small][name:arial at \measure{fontsize:small}] \starttext \big Dies ist ein großer Text. \blank \small Di

Re: [NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-19 Thread Hans Hagen
On 11/19/2013 11:20 AM, Géry Ogam wrote: > \definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] then use \dimexpr\measure{w2}\relax \measured gives me this error (/Undefined control sequence/): old context H

Re: [NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-19 Thread Géry Ogam
> \definemeasure[h1][1.2\measured{w1}+26mm] > \definemeasure[h2][1.2\measured{w2}+26mm] \measured gives me this error (*Undefined control sequence*): *\17>>h1 ^^@-1.2\measured* * {w1}+26mm* *\measure ...sname \csname \??measure

Re: [NTG-context] How to use local layout parameters (instead of global ones)?

2013-11-18 Thread Hans Hagen
ect: \definemeasure[w1][0.7500\paperwidth] \definemeasure[w2][0.6667\paperwidth] \definemeasure[h1][1.2\measured{w1}+26mm] \definemeasure[h2][1.2\measured{w2}+26mm] \setuplayout [width=\measure{w1}, height=\measure{h1}] \definelayout [luxury] [width=\measure{w2}, height=\measure

Re: [NTG-context] [font-syn.lua] remove call to fontloader.to_table()

2013-11-09 Thread Philipp Gesang
· > · > > > On 11/9/2013 6:45 PM, Philipp Gesang wrote: > > > Hi all, > > > > > > calling fontloader.to_table() appears to be redundant when > > > extracting font names, see the attached patch. On my system I > > > measure

Re: [NTG-context] [font-syn.lua] remove call to fontloader.to_table()

2013-11-09 Thread Philipp Gesang
· > On 11/9/2013 6:45 PM, Philipp Gesang wrote: > > Hi all, > > > > calling fontloader.to_table() appears to be redundant when > > extracting font names, see the attached patch. On my system I > > measured 42 (patched) vs 59 (vanilla) seconds fo

Re: [NTG-context] [font-syn.lua] remove call to fontloader.to_table()

2013-11-09 Thread Hans Hagen
On 11/9/2013 6:45 PM, Philipp Gesang wrote: Hi all, calling fontloader.to_table() appears to be redundant when extracting font names, see the attached patch. On my system I measured 42 (patched) vs 59 (vanilla) seconds for rebuilding the entire index: mtxrun --script fonts --reload --force

[NTG-context] [font-syn.lua] remove call to fontloader.to_table()

2013-11-09 Thread Philipp Gesang
Hi all, calling fontloader.to_table() appears to be redundant when extracting font names, see the attached patch. On my system I measured 42 (patched) vs 59 (vanilla) seconds for rebuilding the entire index: mtxrun --script fonts --reload --force The resulting index is -- except for the uuid

Re: [NTG-context] wrong interlinespace or wrong font?

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 10:26, Sietse Brouwer wrote: > Hi Pablo, > > I think this is a problem with the Unifraktur Maguntia font. I just > downloaded it [1], and measured it using \blackrule -- and the > x-height is indeed ridiculously low. > > [1] from here: http://unifraktur.sourcefo

Re: [NTG-context] wrong interlinespace or wrong font?

2013-06-24 Thread Sietse Brouwer
Hi Pablo, I think this is a problem with the Unifraktur Maguntia font. I just downloaded it [1], and measured it using \blackrule -- and the x-height is indeed ridiculously low. [1] from here: http://unifraktur.sourceforge.net/maguntia.html \setupinterlinespace[line=3.2ex] \usemodule

Re: [NTG-context] calculating with dimension unit

2013-04-22 Thread Aditya Mahajan
On 2013-04-22, at 6:43 AM, Wolfgang Schuster wrote: > >> (I've been wondering if we should make measured \the\dimexpr..\relax >> internally which can save dimexpr at the user end.) > > +1 +1 from me as well. Having to use \dimexpr...\relax in definemeasure I

Re: [NTG-context] calculating with dimension unit

2013-04-22 Thread Wolfgang Schuster
the\dimexpr(\measure{ColumnA}+\measure{ColumnB})] > > FYI: \the\dimexpr... will look ahead till there's something nonexpandable, > and contrary to what one expects > > \dimexpr(...) > > will not stop at the ) so, although with measures it normally goes okay, > p

Re: [NTG-context] calculating with dimension unit

2013-04-22 Thread Hans Hagen
p so there is no interference but it guarantees to stop scanning. (I've been wondering if we should make measured \the\dimexpr..\relax internally which can save dimexpr at the user end.) A \ColumnA% ok B \ColumnB% ok % I sadly get only errors when I delete the comments: %ColumnABi:

Re: [NTG-context] new beta

2013-03-11 Thread Sietse Brouwer
> > This has several benefits. First of all it's in most cases faster (I > measured upto 3 times) but it also permits us to support some more: > > integer %...i number > integer %...d number > unsigned %...u number > utf character%

[NTG-context] new beta

2013-03-10 Thread Hans Hagen
Hi, I uploaded a beta. The most important change is that the 'context' function now uses the formatters mechanism instead of Lua's format. This has several benefits. First of all it's in most cases faster (I measured upto 3 times) but it also permits us to support

Re: [NTG-context] Stretching width in natural TABLEs

2012-09-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 04 Sep 2012 05:02:01 +0200, Rogers, Michael K wrote: That's what I was afraid. It's just I had the same problem last week, and a deadline made me settle for the ad hoc approach. I was trying to solve the same situation several week ago. Finally, I measured wha

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Vnpenguin
On Wed, Feb 16, 2011 at 18:47, Paul Menzel wrote: > Dear ConTeXt folks, > > > could you please share your experiences with or point me to a resource > dealing with the following issue. > > I need to evaluate some physics experiments where I have some values > which got mea

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Hans Hagen
On 16-2-2011 6:47, Paul Menzel wrote: Dear ConTeXt folks, could you please share your experiences with or point me to a resource dealing with the following issue. I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX

Re: [NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Wolfgang Schuster
Am 16.02.2011 um 18:47 schrieb Paul Menzel: > Dear ConTeXt folks, > > could you please share your experiences with or point me to a resource > dealing with the following issue. > > I need to evaluate some physics experiments where I have some values > which got measured.

[NTG-context] using ConTeXt/LuaTeX instead of a spreadsheet program

2011-02-16 Thread Paul Menzel
Dear ConTeXt folks, could you please share your experiences with or point me to a resource dealing with the following issue. I need to evaluate some physics experiments where I have some values which got measured. I thought I could use ConTeXt with LuaTeX to do all the calculations instead of

Re: [NTG-context] Head: why different distances?

2011-01-29 Thread Wolfgang Schuster
> \setuphead > [subsectionX] > [align=middle] > > \starttext > \subsection{Model} > \subsectionX{Model} > \stoptext > --- > > The problem is that the space between the subsection number and the text > differs (and it doesn't depend on whether 'distance&

Re: [NTG-context] Comment on new "Page Design" Chapter for new manual.

2011-01-28 Thread Hans Hagen
ended and a new one is started. hsize and vsize are more general and depend on where one accesses them, setting them will seldom work out well as they get set (and synchronized) depending on \setuplayout asignments The actual page size of the finished document is measured with \pdfpagewidth and

[NTG-context] Comment on new "Page Design" Chapter for new manual.

2011-01-27 Thread John Culleton
actual page size of the finished document is measured with \pdfpagewidth and \pdfpageheight. For most documents this is the last set of dimensions needed. In a few cases "camera ready copy" is required which means that the final printed page image is centered on a larger piece of paper st

Re: [NTG-context] letter module, backaddress placement

2010-11-03 Thread Jonas Stein
27;t they be able to read it in the > Post office in case the addressee is wrong? i measured one envelope DIN Lang +Top | | | 50mm | | + | | 45mm Window | + | | 15mm | +Bottom That fits perfect with Koma scrltr2. I have not (yet) tried it in Cont

Re: [NTG-context] Where to put a module?

2010-03-07 Thread Philipp Gesang
'm not yet sure how this will look like exactly. > * I expect the substitutions themselves can be sped up a little with no > effort, by using the normal string.gsub. That function is 8bit clean, so > there is no need for the added complication of utf8 processing. You're right again,

Re: [NTG-context] Letter: address field

2008-07-08 Thread Wolfgang Schuster
ally? At the moment the address is typeset with a constant >> vertical offset (measured from the top) which causes lengthy address >> data to look slightly off balance … > > Try the following settings. The names can change. > > \setupletterstyle > [address][dispatch] >

Re: [NTG-context] Letter: address field

2008-07-08 Thread Wolfgang Schuster
On Tue, Jul 8, 2008 at 2:49 PM, Oliver Buerschaper <[EMAIL PROTECTED]> wrote: > Dear Wolfgang, > > is it possible to centre the text block in the address field > vertically? At the moment the address is typeset with a constant > vertical offset (measured from the top) which c

[NTG-context] Letter: address field

2008-07-08 Thread Oliver Buerschaper
Dear Wolfgang, is it possible to centre the text block in the address field vertically? At the moment the address is typeset with a constant vertical offset (measured from the top) which causes lengthy address data to look slightly off balance … Thanks, Oliver

Re: [NTG-context] letter

2008-04-29 Thread Wolfgang Schuster
t to small. A > > > laserprinter often is not able to print 5mm or more from paperedge. > > > So the foldmarks are invisibel. > > > > I never measured the real values and it should be simple whitespace > > problem somewhere in the code. > > Have you found tha

Re: [NTG-context] letter

2008-04-29 Thread Wolfgang Werners-Lucchini
o big (A4 paper). The foldmark for example should be > > 105mm from papertop. It is 110mm from top. > > The horizontal offset (3.5mm) of foldmarks ist to small. A > > laserprinter often is not able to print 5mm or more from > paperedge. > > So the foldmarks are invisibel. >

Re: [NTG-context] letter

2008-04-28 Thread Wolfgang Schuster
is not able to print 5mm or more from paperedge. > So the foldmarks are invisibel. I never measured the real values and it should be simple whitespace problem somewhere in the code. The address field was wrong placed and I corrected it, the place for the referenece line should work but I change the

Re: [NTG-context] Powerit Holdings, Inc., The Leader in Energy-Demand Management Systems, Completes Series A Financing Round - Joe Merlo

2007-07-03 Thread Hamid Kamrani
ings. "Powerit systems reduce > demand charges on an ongoing basis between 10- and 40-percent and can allow > those previously savings-challenged industrial manufacturing companies to > participate in demand response programs," he said. "Do the math. The > financial benefits,

[NTG-context] Powerit Holdings, Inc., The Leader in Energy-Demand Management Systems, Completes Series A Financing Round - Joe Merlo

2007-07-03 Thread paul.kholer paul.kholer
ms reduce demand charges on an ongoing basis between 10- and 40-percent and can allow those previously savings-challenged industrial manufacturing companies to participate in demand response programs," he said. "Do the math. The financial benefits, measured by dramatically reduced demand

Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Hans Hagen
;> >>> Can someone suggest how to define this? >> >> \def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}} > > Thanks Peter, > > I ended up using > > \def\doifoneelse#1{\doifelse{#1}{1}} > > which saves a few keystrokes :) \def\doifoneelse{\doifelse{1}}

Re: [NTG-context] m-bib module

2006-08-09 Thread Sanjoy Mahajan
lication \starttext An incredibly tiny effect! To find out how it was measured, see their paper: \cite[Pound-Rebka:1959]. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] presentations in ConTeXt

2005-05-24 Thread Vit Zyka
where the center of circle should be. One possibility is to create a new metapost figure and draw the circle on it using the measured coordinates: (This circles the blue tulip on http://contextgarden.net/images/6/65/Kochloewe_c.jpg.) \setupcolors[state=start] \starttext \startuseMPgraphic{CircleBlu

Re: [NTG-context] presentations in ConTeXt

2005-05-24 Thread Mojca Miklavec
ixel where the center of circle should be. One possibility is to create a new metapost figure and draw the circle on it using the measured coordinates: (This circles the blue tulip on http://contextgarden.net/images/6/65/Kochloewe_c.jpg.) \setupcolors[state=start] \starttext \startuseM

AW: [NTG-context] Line break after unit or \cite command

2005-03-10 Thread Michael Fuchs
w can I create a space after the unit and have correct > >line breaking at the same time? > > Hallo, Michael. > > This is a standard TeX thing. Follow the macro with "\ ". > (backslash-space). So: > > ... energies up to 3 \EVolt\ were

Re: [NTG-context] Line break after unit or \cite command

2005-03-10 Thread Adam Lindsay
o 3 \EVolt\ were measured The TeXBook (look in your local library) gives a pretty lucid description of how this works... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514

  1   2   >