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

Re: [NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread Hans Hagen
; % unit length nb_vectors := 20; wd = .5; boolean intersect; pair random_origin; color random_color; path candidate, random_vector[]; % vardef bb(expr p) = save orig, extr; pair orig, extr; orig = point 0 of p; extr = point 1 of p; pair v,w; v = wd*unitvector(extr-orig)*u; w = v rotated 90; (orig

[NTG-context] Code that run in Metapost but not in starMPcode enviroment

2015-02-01 Thread DesdeChaves
://tex.stackexchange.com/questions/225864/metapost-error-related-with-context) because the freelabel() function. If I disable it the result is the expected. What is wrong with this code? \starttext \startMPcode numeric u, nb_vectors, wd; u := 1cm; % unit length nb_vectors := 20; wd = .5; boolean

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-19 Thread Hans Hagen
(pour 4 personnes) \startitemize[1] \startitem \unit{1 kg} de pommes de terre \stopitem \startitem \unit{60 g} de fromage râpé \stopitem \startitem \unit{25 Centiliter} de crème fraîche \stopitem \stopitemize \stopbuffer \placerecipe {} {\myframed{\getbuffer

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-18 Thread Fabrice
] \startitem \unit{1 kg} de pommes de terre \stopitem \startitem \unit{60 g} de fromage râpé \stopitem \startitem \unit{25 Centiliter} de crème fraîche \stopitem \stopitemize \stopbuffer \placerecipe {} {\myframed{\getbuffer}} \startitemize[n][stopper

Re: [NTG-context] Center two frames

2015-01-14 Thread Pablo Rodriguez
affichent en \unit{square meter}, puis en hectares, la superficie d'un terrain rectangulaire de longueur $L$ mètres et de largeur $l$ mètres, saisies en entrée. \stopxcell \startxcell \switchtobodyfont[7pt] \startMPcode numeric u; u=0.7cm; z0=(0,0) ; z1=(2.5u,0) ; z2=(2.5u,2.5u) ; z3

[NTG-context] Center two frames

2015-01-13 Thread Fabrice Couvreur
=(0,2.5u) ; z4=(-0.2u,0) ; z5=(-0.2u,2.5u) ; z6=(0,2.7u) ; z7=(2.5u,2.7u) ; z8=(1.25u,1.25u) ; drawdblarrow z4--z5 ; drawdblarrow z6--z7 ; fill z0--z1--z2--z3--cycle withcolor green ; draw z0--z1--z2--z3--cycle ; label.top(\unit{100 meter},0.5[z6,z7]) ; label.lft(\unit{100 meter},0.5[z4,z5

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-06 Thread Alan BRASLAU
]{}{ \startframedtext[ width=6cm, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] \switchtobodyfont[10pt] Ingrédients (pour 4 personnes) \startitemize[1] \item \unit{1 kg} de pommes de terre \item \unit{60 g} de fromage

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-05 Thread Hans Hagen
][stopper={.},style=bold] \placefigure[right,none]{}{ \startframedtext[ width=6cm, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] \switchtobodyfont[10pt] Ingrédients (pour 4 personnes) \startitemize[1] \item \unit{1 kg} de pommes de terre

Re: [NTG-context] Define a new command from the command \periods[n]

2015-01-05 Thread Fabrice
] \placefigure[right,none]{}{ \startframedtext[ width=6cm, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] \switchtobodyfont[10pt] Ingrédients (pour 4 personnes) \startitemize[1] \item \unit{1 kg} de pommes de terre \item \unit{60 g} de fromage râpé

[NTG-context] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
\bTD L'inverse de $\sin{\unit{30 degree}}$\eTD \bTD\eTD \bTD PGCD de 11\,760 et de 2\,574\eTD \eTR \bTR \bTD \eTD \bTD $\sqrt{25-9}$ \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD

Re: [NTG-context] synbol not beingoa

2014-07-28 Thread Wolfgang Schuster
Am 28.07.2014 um 08:27 schrieb Hwitloc hwit...@gmail.com: I want a degree sign so I use the other graniod. Below the \prime symbol getdires \starttext 77\degree ~4f4\prime \stoptext The prime character gets Are you looking for the unit command? %\setupbodyfont[cambria

[NTG-context] Problem with astronomicalunit in \unit

2014-06-01 Thread Romain Diss
Hi all, It seems that the \unit parser doesn't recognize the 'astronomicalunit'. Minimal exemple: \starttext \unit{100 astronomicalunit} \stoptext % Rendering gives 100 as.t % One expect 100 au Thanks for help. -- Romain Diss

Re: [NTG-context] Problem with astronomicalunit in \unit

2014-06-01 Thread Hans Hagen
On 6/1/2014 10:48 PM, Romain Diss wrote: Hi all, It seems that the \unit parser doesn't recognize the 'astronomicalunit'. Minimal exemple: \starttext \unit{100 astronomicalunit} \stoptext % Rendering gives 100 as.t % One expect 100 au so what should be rendered

Re: [NTG-context] Problem with astronomicalunit in \unit

2014-06-01 Thread Hans Hagen
On 6/1/2014 10:48 PM, Romain Diss wrote: Hi all, It seems that the \unit parser doesn't recognize the 'astronomicalunit'. Minimal exemple: \starttext \unit{100 astronomicalunit} \unit { 100 astronomical unit} works ok ... I'll add the nonspaced one \stoptext % Rendering gives 100 as.t

[NTG-context] Set two symbols in relative coordinates

2014-04-02 Thread H. Özoguz
or switching the line - like \vskip would do. Is there a method to bring it in position (relatively, using em as unit), without affecting the normal text? Maybe as overlay or something like that? Thanks. Huseyin

Re: [NTG-context] Adjusting overbar for a special font

2014-04-01 Thread H. Özoguz
http://www.ntg.nl/pipermail/ntg-context/2012/070738.html Wolfgang Thanks Wolfgang, but this solution is not independent from the size of the font, and so had to be adjust for each size again (bad for my project, where the font-size changes on nearly every page). Which unit has this offset

Re: [NTG-context] Adjusting overbar for a special font

2014-04-01 Thread Hans Hagen
every page). Which unit has this offset? \setupbars[overbar][offset=3] I tried the font-independent unit em \setupbars[overbar][offset=3em] but that does not work. as 'ex' is bad font that font, you can try 'em' : \setupbars[overbar][offset=1.2,unit=em,rulethickness=.05

[NTG-context] Draw eletrical circuits in ConTeXt (Circuitikz or mpcirc.mp)

2014-03-25 Thread DesdeChaves
int: english/english # with mpcirc.mp ## With this code: \startMPinclusions input mpcirc; \stopMPinclusions \starttext %\forceMPTEXgraphictrue %%% command don't work \startMPcode u:=10bp; % unit of length prepare(L,C,Vac); % mention your elements z0=(10u,10u); % lower right

[NTG-context] Problem with Module Units

2014-02-27 Thread Fabrice Couvreur
Zeus désire se désaltérer avec un jus de planète pressée. La planète qu'il va choisir dans le système solaire doit suffire à remplir à ras bord ses deux verres de forme conique. Le premier verre a un rayon de base de 6000 \Unit \Kilo \Meter pour une hauteur égale au rayon de la planète. Le

Re: [NTG-context] Problem with Module Units

2014-02-27 Thread Wolfgang Schuster
Am 27.02.2014 um 19:22 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Hi, I see that there is no space between the words pourand km. When you use the old units module you have to insert a control space with “\ ”, e.g. \usemodule[units] \starttext 6000 \Unit \Kilo \Meter \ or 2000

Re: [NTG-context] Problem with Module Units

2014-02-27 Thread Wolfgang Schuster
you use the new \unit command, you can only use one mechanism because both aren’t compatible. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] Language “deo” causes “TeX capacity exceeded” when units are used

2014-01-09 Thread Marco Patzer
Hi, the following example exceeds TeX's capacity: \mainlanguage [deo] \starttext \unit{10 square metre} \stoptext Marco signature.asc Description: Digital signature ___ If your question is of interest to others

Re: [NTG-context] Language “deo” causes “TeX capacity exceeded” when units are used

2014-01-09 Thread Hans Hagen
On 1/9/2014 12:59 PM, Marco Patzer wrote: Hi, the following example exceeds TeX's capacity: \mainlanguage [deo] \starttext \unit{10 square metre} \stoptext fixed in next beta (needs testing) but if you're in a hurry you can patch lang-lab.mkiv % \else\ifcsname\??language#4\s

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen
) It is actually a TTF font but the extension confuses ConTeXt (we discussed this very issue before). afaik it passes the right unit value so the backend gets confused ... okay, we could probably specify a font to be truetype when units ~= 1000 but still ... i have no problem with forcing

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Khaled Hosny
2048 units and gets scaled wrong (in luatex's backend probably) It is actually a TTF font but the extension confuses ConTeXt (we discussed this very issue before). afaik it passes the right unit value so the backend gets confused ... okay, we could probably specify a font to be truetype

Re: [NTG-context] No full Unicode-Support in ConTeXt?

2013-11-24 Thread Hans Hagen
the only issue i see is that this otf font has 2048 units and gets scaled wrong (in luatex's backend probably) It is actually a TTF font but the extension confuses ConTeXt (we discussed this very issue before). afaik it passes the right unit value so the backend gets confused ... okay, we could

Re: [NTG-context] Support for Bold Small Caps font alternative

2013-11-17 Thread Wolfgang Schuster
the \unit command: \starttext \unit{25 square meter} \stoptext jokeI suggest removing all font styles related descriptions in manuals, wiki pages to some special place marked as obsolete and replace it with this simple approach ending with a small note that if this is not applicable

Re: [NTG-context] Add new unit to \unit comand

2013-10-06 Thread Wolfgang Schuster
Am 03.10.2013 um 14:19 schrieb Giuseppe Fierro giuse...@fierro.org: Hi, I'm a civil engineer and I like to use ConTeXt to write my report etc. As engineer i use a lot of units in my writing and the \unit command works nice with this. What I need is a new unit, a quadratic unit like

[NTG-context] Add new unit to \unit comand

2013-10-04 Thread Giuseppe Fierro
Hi, I'm a civil engineer and I like to use ConTeXt to write my report etc. As engineer i use a lot of units in my writing and the \unit command works nice with this. What I need is a new unit, a quadratic unit like this: Area Moment of Inertia - Metric units mm4 cm4 m4 This kind of units

Re: [NTG-context] Add new unit to \unit comand

2013-10-04 Thread luigi scarso
On Thu, Oct 3, 2013 at 2:19 PM, Giuseppe Fierro giuse...@fierro.org wrote: Hi, I'm a civil engineer and I like to use ConTeXt to write my report etc. As engineer i use a lot of units in my writing and the \unit command works nice with this. What I need is a new unit, a quadratic unit like

Re: [NTG-context] Gray unit

2013-09-11 Thread Hans Hagen
On 9/10/2013 8:04 PM, Christian Prim wrote: Hello the physical unit Gray has Gy as symbol (see http://en.wikipedia.org/wiki/Gray_(unit) ). Context returns Gr. MWE: \starttext \unit{1 Gray} \stoptext Thanks for fixing this little bug. patched

[NTG-context] Gray unit

2013-09-10 Thread Christian Prim
Hello the physical unit Gray has Gy as symbol (see http://en.wikipedia.org/wiki/Gray_(unit) ). Context returns Gr. MWE: \starttext \unit{1 Gray} \stoptext Thanks for fixing this little bug. Christian ___ If your

[NTG-context] \startfloattext ... \stopfloattext

2013-09-09 Thread Christian Prim
der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,none]{}{ %\placetable[left,high,none]{}{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR

Re: [NTG-context] \startfloattext ... \stopfloattext

2013-09-09 Thread Hans Hagen
=)] \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,none]{}{ %\placetable[left,high,none]{}{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL

  1   2   3   4   5   6   >