[NTG-context] Is there a bug in lmt_shade[...=...,...=...]

2020-07-29 Thread Keith McKay
Hi Has a bug appeared in the command lmt_shade[ ]? This used to work before I upgraded. \setuppapersize [A5, portrait][A4, landscape] \setuparranging[2UP] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; definecolor [ name = "MyColor

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

2020-07-09 Thread Gerben Wierda
page size should be 3 by 3 units in default user space; the maximum should be 14,400 by 14,400 units. In versions of PDF earlier than 1.6, the size of the default user space unit was fixed at 1⁄72 inch, yielding a minimum of approximately 0.04 by 0.04 inch and a maximum of 200 by 200 inches

Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Wolfgang Schuster
dimension (like em) but not with small. \blank[0.5*small] causes this "fatal error": ["lasttexerror"]="! Illegal unit of measure (pt inserted)", The number before the asterisk is a multiplier to repeat the value n times. I had tried em then pt, then mm. But i

Re: [NTG-context] something between packed and "small"??

2020-07-01 Thread Mike Cooper
> > Otherwise see https://wiki.contextgarden.net/Command/blank > > Hraban Thanks Hraban, These don't work though... It appears that a decimal will work with a dimension (like em) but not with small. \blank[0.5*small] causes this "fatal error": ["lasttexerror"

Re: [NTG-context] Bar within math (amended)

2020-06-15 Thread Henning Hraban Ramm
kground=color, >> backgroundcolor=yellow] >> >> \starttext >> >> \m{1 + 2 = \unit{3 kilo newton}} >> >> \m{1 + 2 = \Highlight{\unit{3 kilo newton}}} >> >> \stoptext >> >> Wolfgang >> > > Is there a way

[NTG-context] using annotations for extended print handling

2020-06-14 Thread Pablo Rodriguez
would need to recompile the document again for each new required /PrintPageRange. Another approach would be to add PDF annotations (outside page boundaries) to store the desired information. So I created text annotations (using \comment) with author information composed from unit number

Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread Axel Kielhorn
> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster > : > > Use a textbackground to highlight parts of your text. > > \definetextbackground > [Highlight] > [frame=off, > background=color, > backgroundcolor=yellow] > > \starttext > > \m{1

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar[MyBar]3~\text{kN}\stopbar$ % No background behind space $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ % OK! \stoptext In the sample 'kN' is a unit, which should be separated by space from

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
[MyBar]3~\text{kN}\stopbar$ % No background behind space $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ % OK! \stoptext In the sample 'kN' is a unit, which should be separated by space from the result (here: 3); I am used to put the unit

[NTG-context] Bar within math

2020-05-30 Thread context
]3~\text{kN}\stopbar$ \stoptext In the sample 'kN' is a unit, which should be separated by space from the result (here: 3); I am used to put the unit into the math environment and enclose it into \text{...}. Is there a way to make the bar be rendered in places of blanks within math, too

Re: [NTG-context] 'debug' version of METAPOST draw?

2020-05-28 Thread Keith McKay
. MWE%%% \setuppapersize [A4,landscape] \starttext \startMPpage[instance=doublefun] StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; path p ; path pat; pat := (5cm,5cm); for a = 1 step 1 until 10: x:= uniformdeviate(10) +10; y:= uniformdeviate(10) +10

[NTG-context] lmtx: rotation problem with float numbers

2020-05-27 Thread Peter Rolf
ond stage) fonts > 'fallback modern-designsize rm 12pt' is loaded tex error > tex error on line 2 in file ./rotation.tex: ! Illegal unit of measure (pt inserted) \relax \grph_rotate_finish_yes ...f

Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay
round this Arithmetic Overflow error? Thanks Best Wishes Keith McKay %MWE%%% \setuppapersize [A4,landscape] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; path p; p := unitsquare scaled .1cm ; path pat; pat := (0.0*cm

[NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay
that should be set or a better way of getting round this Arithmetic Overflow error? Thanks Best Wishes Keith McKay %MWE%%% \setuppapersize [A4,landscape] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; path p; p := unitsquare

Re: [NTG-context] Use \unit for value and uncertainty

2020-05-09 Thread Otared Kavian
min Buchmuller > wrote: > > I know this is quite an old thread, but here is a minimal parser (\units with > an “s”) that wraps around \digits and \unit to produce an acceptable output. > > As I frequently need to write ranges (or measures of uncertainty), I find it > co

Re: [NTG-context] Use \unit for value and uncertainty

2020-05-09 Thread Benjamin Buchmuller
I know this is quite an old thread, but here is a minimal parser (\units with an “s”) that wraps around \digits and \unit to produce an acceptable output. As I frequently need to write ranges (or measures of uncertainty), I find it convenient to able to type \units{4.0 to 5.0 centi meter

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Pablo Rodriguez
second-level chapters. I mean, they have a page break before. It is a huge book, divided in parts, which contains units. Each unit contains the standard explanation, different explanation approaches, and other additional information in some units. Each unit is a chapter. The explanation, the exercis

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-12 Thread Jeong Dal
]],n,r,whatever(n,r)) > end > > -- or in latest lmtx: > -- > -- function MP.lmt_WhateverShape(n,r) > -- mp.inject( > -- string.format( > -- [[\WhateverShape{%.0f}{%.0f}{%.0f}]], > -- n, > -- r, > -- whatever(n,r)

Re: [NTG-context] running lua in metafun and in ConTeXt

2020-04-12 Thread Hans Hagen
[ options = "labels", angle = 30, unit= 2cm, color = "black", ] ; def WhateverShape = applyparameters "WhateverShape" "lmt_WhateverShape" enddef ; vardef lmt_WhateverShape = image ( pushparameters "WhateverShape" ;

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] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Hans Hagen
)} $=\cldcontext{document.myfunction(2,355/113)} \sim 0$. \startplacefigure[title={Nothing works\dots}] \startMPcode{GridAxis} numeric gu ; gu = 5mm ; % gu = graph unit draw image ( draw function (1,"x","document.myfunction(2,x)", % <-- this does not wor

[NTG-context] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Otared Kavian
)} \sim 0$. \startplacefigure[title={Nothing works\dots}] \startMPcode{GridAxis} numeric gu ; gu = 5mm ; % gu = graph unit draw image ( draw function (1,"x","document.myfunction(2,x)", % <-- this does not work % draw function (1,"x&q

[NTG-context] Bad cooperation between \unit and TABLE

2019-11-03 Thread Tomas Hala
Hi all, I came across the problem with bad aligment of cells in natural tables (longer MWE below): When I use \unit for better typesetting of units, lines 6, 6a, 8 and 9 are sloppy-aligned -- first, the alignmentcharacter is ignored, secondly the very huge space appears between e.g. m and 2

Re: [NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Geert Verhaag
On 20-10-19 16:38, Thomas A. Schmitz wrote: On 20. Oct 2019, at 16:05, Geert Verhaag wrote: The \xmlfirst{#1}{distance} yields 20, but how can the unit attribute value km be accessed? Gerard \xmlattribute{#1}{/distance}{unit} (probably, you need to make a real example. See xml-mkiv.pdf

Re: [NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Thomas A. Schmitz
> On 20. Oct 2019, at 16:05, Geert Verhaag wrote: > > The \xmlfirst{#1}{distance} yields 20, but how can the unit attribute value > km be accessed? > > Gerard > > \xmlattribute{#1}{/distance}{unit} (probably, you need to make a real example. See xml-mkiv.p

[NTG-context] How to get attribute value from xml tag?

2019-10-20 Thread Geert Verhaag
Hi, Struggling with XML in ConTeXt. I'have the following tag in my xml file: ...       20   ... \startxmlsetups xml:invoice:travel   \xmlfirst{#1}{distance} \stopxmlsetups The \xmlfirst{#1}{distance} yields /20/, but how can the unit attribute value /km/ be accessed? Gerard

Re: [NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-10-11 Thread Thomas Welter
userdata = userdata or {} userdata.listofsymbols = {} -- hash table with all symbols of the form keyword:{symbol, {unit=... , description=...}} function userdata.addsym(keyword, symbol, option) -- parses the input and adds an entry to the hash table keywords = utilities.parsers.settings_to_array

Re: [NTG-context] issue with JavaScript in Acrobat

2019-10-07 Thread Pablo Rodriguez
call it “milliseconds”), the time unit variable “msecs” has milliseconds only when app.setInterval is set to 1. I don’t know how to use a system clock in JS (or in Acrobat). But this is only a test to check how it works. Many thanks for the advice on setting the interval to 10 ms. I realized that I

[NTG-context] placefigure right or left error in ver: 2018.04.04 00:51 MKIV

2019-09-27 Thread Philippe Oechslin
open source > level 3, order 4, name '/usr/share/texmf/tex/context/sample/common/ward.tex' close source> level 3, order 4, name '/usr/share/texmf/tex/context/sample/common/ward.tex' floatblocks > '1' placed (left) tex error > tex error on line 6 in

Re: [NTG-context] \glueexpr in lmtx

2019-07-24 Thread Marcel Fabian Krüger
the\glueexpr 0.0pt \relax > > \newskip\myskip > > \myskip=\glueexpr 0.0pt \relax > > \stoptext > > > > Without lmtx this works fine. Under lmtx, the *first* use of > > `\glueexpr`, after `\the`, works fine too. On the other hand, the other > > `\glueexpr`, a

Re: [NTG-context] \glueexpr in lmtx

2019-07-23 Thread Hans Hagen
of `\glueexpr`, after `\the`, works fine too. On the other hand, the other `\glueexpr`, after `\myskip=`, complains about a "Illegal unit of measure (pt inserted)". It does not seem to accept the fractional part, everything works again if I use \starttext \the\glueexpr 0.0pt \relax \news

[NTG-context] \glueexpr in lmtx

2019-07-23 Thread Marcel Fabian Krüger
. On the other hand, the other `\glueexpr`, after `\myskip=`, complains about a "Illegal unit of measure (pt inserted)". It does not seem to accept the fractional part, everything works again if I use \starttext \the\glueexpr 0.0pt \relax \newskip\myskip \myskip=\glueexpr 0pt \relax \stoptext Am

[NTG-context] List of Symbols/Abbreviations/Glosses with more then two entries

2019-06-12 Thread Thomas Welter
The synonym "sym" defined by \definesynonyms[sym][syms][\symdesc] can take 2 entries by default: \sym[]{}{} For theses and whitepapers in the natural sciences and in engineering it is needed to introduce another entry for the unit: \sym[]{}{}{} (<-- This does of course not

[NTG-context] ancestors in lpath

2019-06-09 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] Unit 1 text Unit 1 Summary summary Synopsis synopsis Unit 2 text

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-09 Thread Marco Patzer
On Tue, 5 Feb 2019 12:22:29 +0100 Marco Patzer wrote: > Is there a way to hook the \spaceddigits into \unit somehow? I tried to add \spaceddigits to the \unit command, but it didn't work. If someone has an idea how to do that, I'd greatly appreciate. Ma

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-05 Thread Marco Patzer
On Thu, 31 Jan 2019 13:43:13 +0100 Otared Kavian wrote: Sorry for the late response. > Can this give what you wish? > > \define[2]\myunit{\spaceddigits{#1}\unit{#2}} > \starttext > \myunit{123456789}{volt} > \stoptext That's a way to solve it, yes. But I'd prefer i

Re: [NTG-context] Automatic thousands separation in \unit

2019-02-02 Thread Axel Kielhorn
> Am 31.01.2019 um 15:00 schrieb Clyde Johnston : > > Maybe this should be a language specific parameter. How would you achieve a > similar result with the Indian numbering system, for instance? > > Also, decimal and thousands separators vary from country to country. In > France, for

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Hans Åberg
> On 31 Jan 2019, at 15:00, Clyde Johnston wrote: > > Maybe this should be a language specific parameter. How would you achieve a > similar result with the Indian numbering system, for instance? It is an additional feature that may or may not be linked to language. For example, in Swedish

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Clyde Johnston
omatic thousands separation in \unit Hi Marco, Can this give what you wish? \define[2]\myunit{\spaceddigits{#1}\unit{#2}} \starttext \myunit{123456789}{volt} \stoptext On 31 Jan 2019, at 13:28, Marco Patzer wrote: Hi! I'm wondering if there's a way to have automatic tho

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Otared Kavian
Hi Marco, Can this give what you wish? \define[2]\myunit{\spaceddigits{#1}\unit{#2}} \starttext \myunit{123456789}{volt} \stoptext > On 31 Jan 2019, at 13:28, Marco Patzer wrote: > > Hi! > > I'm wondering if there's a way to have automatic thousands separation in the

[NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Marco Patzer
Hi! I'm wondering if there's a way to have automatic thousands separation in the \unit command? \spaceddigits does that, but it doesn't work inside \unit. And using both would be quite verbose to write. Example: \starttext %% no thousands separation \unit{123456789 volt} %% manual

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

2018-10-19 Thread luigi scarso
n 1000 units, in texgyrepagella-regular-500.ttx, M has a "width" of 946 on 500 that looks like 2x the width of M in regular in texgyrepagella-regular-2000.ttx, M has a "width" of 946 on 2000 that looks like 0.5x the width of M in regular --- under the assumption that we have

Re: [NTG-context] Formulas in TABLE with character alignment

2018-10-09 Thread Hans Hagen
{NH_3} \eTD \bTD R407C \eTD \bTD R134a \eTD \eTR \bTR \bTD \math{t_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s}\eTD \bTD \math{p_s} \eTD \eTR \bTR \bTD \unit{Celsius} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar}\eTD \bTD \unit{bar} \eTD \eTR

[NTG-context] Formulas in TABLE with character alignment

2018-10-09 Thread Axel Kielhorn
\eTD \eTR \bTR \bTD \math{t_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s} \eTD \bTD \math{p_s} \eTD \eTR \bTR \bTD \unit{Celsius} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar} \eTD \bTD \unit{bar} \eTD \eTR \bTR \bTD \unit{+35} \eTD \bTD 13,50 \eTD

Re: [NTG-context] Variable instance identifiers exhausted

2018-09-21 Thread Hans Hagen
ndant tests For sure it can be made faster (you know what your goal is so that is a challenge for you). \starttext \startMPpage path foo[][][][] ; def fooslot(expr c) = foo[c div 1000][c div 100][c div 10][c] enddef ; path Obj, ObjTemp ; pair ObjPos , Inter ;

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
t; > \bTABLE [setups=tablesetups] > \bTR > \bTD Well depth \eTD > \bTD 10100 ft \eTD > \startmode [BL] \bTD \unit{3100 meter} \eTD \stopmode > \eTR > \bTR > \bTD Fluid density \eTD > \bTD 9.0 ppg \eTD > \s

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
\bTABLE [setups=tablesetups]     \bTR         \bTD Well depth \eTD         \bTD 10100 ft \eTD         \startmode [BL] \bTD \unit{3100 meter} \eTD \stopmode     \eTR     \bTR         \bTD Fluid density \eTD         \bTD 9.0 ppg \eTD         \startmode [BL] \bTD \unit{1.08 kilogram per liter} \eTD

Re: [NTG-context] Problem with simplefonts

2018-08-30 Thread Wolfgang Schuster
\definefontfamily [Manuals] [rm] [Cambria] \definefontfamily [Manuals] [ss] [Calibri] \definefontfamily [Manuals] [tt] [Consolas] \definefontfamily [Manuals] [mm] [Cambria Math] \setupbodyfont[Manuals,10pt] \starttext Cambria {\ss Calibri} {\tt Consolas} \unit{

Re: [NTG-context] question about MP drawing with dir

2018-05-25 Thread Pablo Rodriguez
drawings have an origin (0,0). I thought origin had to be explicitly set. > (dir angle) returns a pair on a unit circle surrounding the origin, i.e. > (cosd angle,sind angle) where cosd is the cosine function operating on > an angle in degrees. Well, I need to refresh my math from high s

Re: [NTG-context] question about MP drawing with dir

2018-05-24 Thread Alan Braslau
On Thu, 24 May 2018 21:01:59 +0200 Pablo Rodriguez <oi...@gmx.es> wrote: > dir seems magic to me. I don’t understand how it works, not even how > it can be used for drawing not having an origin. All MP drawings have an origin (0,0). (dir angle) returns a pair on a unit circle

Re: [NTG-context] \basegrid ignores color

2018-03-22 Thread Henri Menke
in a more modern way. %D %D \startbuffer %D \basegrid %D [nx=8,ny=5, %Ddx=.5,dy=.25, %Dunit=cm,scale=2,factor=1, %Doffset=1ex,xstep=2,ystep=1, %Dalign=middle,style=\tt\tx] %D \stopbuffer %D %D \typebuffer %D %D \placefigure %D {An example of a grid.} %D {\getbuffer} \startuseM

Re: [NTG-context] synctex and TeXShop problem

2017-11-22 Thread Ulrike Fischer
TeX Version:1 Input:1:G:/Z-Test/test-utf8.tex Output:pdf Magnification:1000 Unit:1 X Offset:0 Y Offset:0 Content: !118 {1 [0,0:0,0:0,0,0 v0,0:0,55380990:39158276,55380990,0 ) ] !63 }1 !7 Postamble: Count:2 !22 Post scriptum: and the log-file says: system > synctex functionality is enabled,

Re: [NTG-context] automatically splitting big images (calculation problem)

2017-09-10 Thread Henning Hraban Ramm
>> But "\dimexpr((\recurselevel -1) * \textheight)" for the vertical offset is >> wrong. >> How can I do this calculation? > > You are missing a comma at the end of the voffset line Thank you, but that’s not the core problem. I get "Illegal unit of m

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
t; \starttext > > \FrameTitle{Info}{\startFramedText[width=10cm] > L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs > (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). > > 1 EVP représente environ \unit{38,5 cubic meter}. >\

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
[recipe] > [default={right,none}] > > \showframe > > \starttext > \placerecipe{} >{\FrameTitle{Info}{\startFramedText[width=10cm] > L'équivalent vingt pieds (EVP) est une unité de mesure de > conteneurs (de longueur cou

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). 1 EVP représente environ \unit{38,5 cubic meter}. \stopFramedText}} \input zapf \stoptext Just in case it helps,

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
t;>> toffset=\lineheight, >>> background=color, >>> backgroundcolor=MyColorA, >>> foregroundstyle={\switchtobodyfont[10pt]}, >>> align=verytolerant, >>> frame=off, >>> corner=01, >>> ] >>> >>

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
=color, >> backgroundcolor=MyColorA, >> foregroundstyle={\switchtobodyfont[10pt]}, >> align=verytolerant, >> frame=off, >> corner=01, >> ] >> >> >> \showframe >> \sta

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
=color, >> backgroundcolor=MyColorA, >> foregroundstyle={\switchtobodyfont[10pt]}, >> align=verytolerant, >> frame=off, >> corner=01, >> ] >> >> >> \showframe >> \sta

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
background=color, > backgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, > frame=off, > corner=01, > ] > > > \showframe > \starttext > > \FrameTitle{Info}{\startFramedText[width=10cm] > L'équiva

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
, frame=off, corner=01, ] \showframe \starttext \FrameTitle{Info}{\startFramedText[width=10cm] L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). 1 EVP représente environ \unit{38,5 cubic meter

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
\showframe \starttext \placerecipe{} {\startMyFrame[Title=Info,width=10cm] L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). 1 EVP représente environ \unit{38,5 cubic meter}. \stopMyFrame } \i

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
lacerecipe{} {\startMyFrame[Title=Info,width=5cm] L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). 1 EVP représente environ \unit{38,5 cubic meter}. \stopMyFrame } Le tableau ci-dessous

[NTG-context] Purpose/use of loadsetup interface *.xml files

2017-02-23 Thread Stephen Gaito
installation with only luatex(mkiv) and all modules (updated yesterday). I intend to write a number of ConTeXt modules to assist in my work. My first module is ConTests a simple wrapper around lua's lunatest framework. ( GitHub: stephengaito/ConTests ) As I work I like to write unit-tests

Re: [NTG-context] Use \unit for value and uncertainty

2016-11-02 Thread Henri Menke
On 10/31/2016 05:30 PM, Florian Leupold wrote: > Hello! > > There does not seem to be a simple solution to using \unit with > uncertainties, see below. > > Could someone maybe point me to the relevant source code for the parser for > \unit in MKIV? Then I would try to mo

Re: [NTG-context] Use \unit for value and uncertainty

2016-10-31 Thread Florian Leupold
Hello! There does not seem to be a simple solution to using \unit with uncertainties, see below. Could someone maybe point me to the relevant source code for the parser for \unit in MKIV? Then I would try to modify/improve the code myself. Thanks a lot and best regards, Florian

Re: [NTG-context] Underlining formulas and units

2016-10-06 Thread Otared Kavian
Hi, Maybe you should use rather $\underbar{F_C=\unit{1e2 newton}}$ or \underbar{\unit{1e2 newton}} since otherwise \underbar considers each character in the math formula as a word, which should be underlined separately. Best regards: OK > On 5 Oct 2016, at 22:01, Florian Leup

[NTG-context] Underlining formulas and units

2016-10-05 Thread Florian Leupold
Dear list, underbar behaves weirdly when it comes to indexes, exponents, and units: \starttext \underbar{$F_C=\unit{1e2 newton}$} or \underbar{\unit{1e2 newton}} \stoptext Am I doing something wrong? Is there maybe a setting to correct for this? Thanks, Florian signature.asc Description

[NTG-context] Use \unit for value and uncertainty

2016-09-25 Thread Florian Leupold
Dear list Is it possible to use the units module (in MKIV) for value plusminus uncertainty in a way similar to the \SI command in LaTeX, like \unit{(1.59\pm2)e-19 coulomb} or \unit{1.59(2)e-19 coulomb}? Thanks and best regards, Florian signature.asc Description: Message signed

[NTG-context] Bug: \registerunit is not case sensitive

2016-09-14 Thread Florian Leupold
Dear list, I would like to point out the following bug: \registerunit is not case sensitive. This means that if I register “N” for Newton, “n” for nano is overwritten. MWE: \registerunit[unit][N=newton] \starttext Newton: \unit{1N}, nano meter: \unit{1nm} \stoptext Best regards, Florian

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Philipp Gesang
t; > > i'll let mojca decide that ... (i just ship what she patches in setuptex) > > I'll apply the patch. Now, setuptex is not problematic, the same patch > goes there. But mtxrun doing its own guesswork on top of this might > be. Let's see. > > And then th

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Mojca Miklavec
it frustrated by the inability to support both platforms properly. I'm now waiting for the code for the 64-bit arm binaries :) I have one in my drawer that I still need to set up. > i'll let mojca decide that ... (i just ship what she patches in setuptex) I'll apply the patch. Now, setuptex is not

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Mojca Miklavec
dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex: ! Illegal unit of measure (pt inserted) , 0.000, 0.100 \pgfutil@emu@@unpack ...pt\pgf@xb =#2pt\pgf@xc =#3 pt \pgfutil@emu@mix ... \string \color@ #1\endcsname

Re: [NTG-context] Orphans and widows for specific paragraph groups

2016-06-17 Thread Pavneet Arora
[width=.3\textwidth] \starttext \blank[8*big, force] \dorecurse{10}{ \blank[2*big] \noindentation \startsubjectpar {\ss\tfc ENG4U} \subjectpar %% Need to keep the following together as a unit. {\ss\tfc English (Grade 12)}

[NTG-context] passing the \starttabulate format in XML typesetting

2016-06-16 Thread massifr
\xmlflush{#1} \stopxmlsetups \setuptabulation[rulethickness=1pt,unit=2pt] \ctxlua{ function xml.functions.divTabulate(t) local format = xml.attribute(t, "", "format") context.starttabulate( { format } ) lxml.flush(t) context.stoptabulate() end } \startxmlsetup

Re: [NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Wolfgang Schuster
Pavneet Arora <mailto:pavneet_ar...@waroc.com> 9. Juni 2016 um 22:21 Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables. I'd like to keep two rows together as a unit, and not have the table split between them. Is that po

Re: [NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Aditya Mahajan
On Thu, 9 Jun 2016, Pavneet Arora wrote: Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables. I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how? advTHANKSance

[NTG-context] Orphans and widows for specific paragraph groups

2016-06-09 Thread Pavneet Arora
stripped away most of the details as well as the application fonts, but the issue that I am facing is related to keeping the course header (done as a paragraph environment), \hairline, and the teacher's comment for that course together as a unit. At a minimum, I would like the three elements

[NTG-context] Orphans and widows in Natural Tables

2016-06-09 Thread Pavneet Arora
Related to my previous enquiry, I have the same issue with another part of the report card that uses Natural Tables. I'd like to keep two rows together as a unit, and not have the table split between them. Is that possible, and how? advTHANKSance >>>> MWE \definefontfamily[

Re: [NTG-context] Underbar offset

2016-05-24 Thread Hans Hagen
w underbar is defined ... if you want fixed dimensions you should used a fixed unit (not one derived from the current font) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27

Re: [NTG-context] LaTeX reledmac : what about ConTeXt ?

2016-05-13 Thread Jean-Pierre Delange
{abstract} This file sets spaces around footnote rules, to have a uniform \unit{3}{\milli\meter} before and after. There are three levels of paragraphed notes. Before the first series of notes, we have \unit{0.5}{\centi\meter}. We use \verb+\Xbeforenotes+ and \verb+\Xafterrule+. There is, anyway

[NTG-context] MetaPost and externalfigure() REQUEST FOR COMMENTS

2016-01-10 Thread Alan BRASLAU
nitsquare. Notice also that I used the xsized transformation rather than scaled since the textext("\externalfigure[cow]") variant returns the "natural" dimension of the figure, not a unit-scaled box. The origin of the two images also differs (lower-left corner vs. center)

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim
resultierende Kraft $\vec{F}_{\rm res}$ Null ist.}\NC\AR \MR \NC Drehmoment \NC\Use2[lM]{M=Fr} \NC [M]=\unit{1 Newton meter}\NC\AR \NC \NC F \NC Kraft ($\perp$\ zur DA) \NC [F]=\unit{1 Newton}\NC\AR \NC \NC r \NC Kraftarm (Abstand DA – Wirkungslinie) \NC [r]=\unit{1 meter}\NC\AR \MR \NC Momenten-\crlf

Re: [NTG-context] Splitting natural table fails with xtable in footer

2015-10-06 Thread Andreas Schneider
int: english/english ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! You can't use `\prevdepth' in restricted horizontal mode ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! Illegal unit of measure (pt in

[NTG-context] Splitting natural table fails with xtable in footer

2015-10-01 Thread Andreas Schneider
emp/ctx/split.tex: ! You can't use `\prevdepth' in restricted horizontal mode ... tex error > tex error on line 25 in file /Users/aese/Temp/ctx/split.tex: ! Illegal unit of measure (pt inserted) In reality my footer is lot more complex (huge table :-)) and I see no better way to

[NTG-context] Struggling with alignment inside tabulate...

2015-08-06 Thread Willi Egger
\NC Höhe Mittelteil \NC -- \NC \unit{12 milli meter}\NC\NR \NC Höhe bei den Enden \NC -- \NC Vor dem Einleimen: \par

[NTG-context] TikZ colors in cmyk mode broken

2015-06-11 Thread Mojca Miklavec
570 in file /path/to/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex: ! Illegal unit of measure (pt inserted) to be read again , argument 0.000, 0.100 \pgfutil@emu@@unpack ...pt\pgf@xb =#2pt\pgf@xc =#3 pt \pgfutil@emu@mix ... \string \color@ #1

[NTG-context] horizontal spacing

2015-05-16 Thread henman
In the below example, used with the latest standalone ConTeXt version, I can only get \hskip to work when the parameter is 1 dimension unit. e.g. 1em or 1cm for example. How can I get a larger horizontal space say 3em , rather that having to write \hskip 1em \hskip 1em \hskip 1em

Re: [NTG-context] 2 issues in phys-dim.mkiv

2015-05-16 Thread Hans Hagen
On 5/15/2015 9:43 PM, Maggyero wrote: I've tried the unit interface today, and I've noticed two issues with the following example: \setupunits[alternative=text] \starttext $\unit{-4.6e-3 km s^-1}$ \stoptext 1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine) are converted

Re: [NTG-context] horizontal spacing

2015-05-16 Thread Wolfgang Schuster
Am 16.05.2015 um 11:09 schrieb henman dhen...@gmail.com: In the below example, used with the latest standalone ConTeXt version, I can only get \hskip to work when the parameter is 1 dimension unit. e.g. 1em or 1cm for example. How can I get a larger horizontal space say 3em , rather

[NTG-context] 2 issues in phys-dim.mkiv

2015-05-15 Thread Maggyero
I've tried the unit interface today, and I've noticed two issues with the following example: \setupunits[alternative=text] \starttext $\unit{-4.6e-3 km s^-1}$ \stoptext 1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine) are converted to hyphens with the 'text' unit

Re: [NTG-context] Unexpected results...

2015-04-03 Thread Wolfgang Schuster
[units] it works fine. But in the log there is a message that this is an obsolete module. - This is unfortunately not true, because when not loading the module the compilation stops with an error of an undefined control sequence. The built-in unit mechanism uses a different syntax and has more

Re: [NTG-context] Unexpected results...

2015-04-03 Thread Willi Egger
with \usemodule[units] it works fine. But in the log there is a message that this is an obsolete module. - This is unfortunately not true, because when not loading the module the compilation stops with an error of an undefined control sequence. The built-in unit mechanism uses a different

[NTG-context] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
*/ /* mroot : display */ /* msqrt : display */ /* mfenced: display */ /* maction: display */ /* mtable : display */ /* mtr: display */ /* mtd: display */ /* quantity : inline */ /* unit : inline */ /* number : inline */ quantity { } quantityunit

Re: [NTG-context] siunitx feature in unit module

2015-03-03 Thread Hans Hagen
On 3/3/2015 6:47 PM, Andrea De Michele wrote: Romain Diss romain.d...@yahoo.fr writes: Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \unit{10 meter inverse second

Re: [NTG-context] siunitx feature in unit module

2015-03-03 Thread Andrea De Michele
Romain Diss romain.d...@yahoo.fr writes: Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \unit{10 meter inverse second} Thank you. \si[per-mode=symbol]{\metre\per

Re: [NTG-context] siunitx feature in unit module

2015-03-01 Thread Romain Diss
Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \unit{10 meter inverse second} \si[per-mode=symbol]{\metre\per\second} produce m/s \unit{10 meter per second} \si[per-mode

[NTG-context] siunitx feature in unit module

2015-02-28 Thread Andrea De Michele
Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \si[per-mode=symbol]{\metre\per\second} produce m/s \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} have the unit

[NTG-context] How to place text to the right of a brace

2015-02-01 Thread Fabrice Couvreur
=\overlayheight]{\useMPgraphic{accolade}}}] \defineoverlay[rightbrace][\rightaligned{\mirror{\scale[height=\overlayheight]{\useMPgraphic{accolade] \starttext \framedtext[frame=off,loffset=1em,roffset=1em,background={rightbrace}]{ La longueur est \unit{4 centimeter} ; on donne à $L$ la valeur

Re: [NTG-context] How to place text to the right of a brace

2015-02-01 Thread Pablo Rodriguez
with a table or something similar [I’m in a hurry right now]): \starttext \dontleavehmode\framedtext[frame=on,loffset=1em,roffset=1em,background={rightbrace}]{ La longueur est \unit{4 centimeter} ; on donne à $L$ la valeur $4$. La largeur est \unit{3 centimeter} ; on donne à $l$ la valeur $3

  1   2   3   4   5   6   >