[NTG-context] \glueexpr in lmtx

2019-07-22 Thread Marcel Fabian Krüger
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 com

[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 appre

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

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 exampl

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 or

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 aut

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 separati

[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 vol

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

2018-10-18 Thread luigi scarso
of 946 on 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 tha

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-08 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
e calculations - choose better step values (Delta is about .8 so why not use 1) - (maybe no in and scale later, not tested) - partition the pseudo array - avoid redundant tests For sure it can be made faster (you know what your goal is so that is a challenge for you). \starttext \startMPpage

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
trouble... don't use t-simplefonts, use \selectfont instead (its replacement) \definefontfamily [Manuals] [rm] [Cambria] \definefontfamily [Manuals] [ss] [Calibri] \definefontfamily [Manuals] [tt] [Consolas] \definefontfamily [Manuals] [mm] [Cambria Math] \

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

2018-05-25 Thread Pablo Rodriguez
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 school (centuries ago :

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 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 surrounding the origi

Re: [NTG-context] \basegrid ignores color

2018-03-22 Thread Henri Menke
around but %D 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 {\getbuff

Re: [NTG-context] synctex and TeXShop problem

2017-11-22 Thread Ulrike Fischer
SyncTeX 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 enab

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

2017-09-10 Thread Henning Hraban Ramm
r((\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 measure (pt inserted)"

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

2017-09-08 Thread Meer, Hans van der
\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}. >\stopFramedText} > >

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

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

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 he

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

2017-08-30 Thread Fabrice Couvreur
t; background=color, >>> backgroundcolor=MyColorB, >>> ] >>> >>> \defineframedtext >>> [FramedText] >>> [ >>> offset=0.6em, >>> toffset=\lineheight, >>> background=color, >>>

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

2017-08-22 Thread Fabrice Couvreur
undstyle={\switchtobodyfont[10pt]}, >> align=verytolerant, >> frame=off, >> corner=01, >> ] >> >> >> \showframe >> \starttext >> >> \FrameTitle{Info}{\startFramedText[width=10cm] >> L'équivalent vingt pieds (E

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

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

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

2017-08-22 Thread Fabrice Couvreur
ackgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, > frame=off, > corner=01, > ] > > > \showframe > \starttext > > \FrameTitle{Info}{\startFramedText[width=10cm] > L'équivalent vingt pieds (EV

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

[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

[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-de

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

2017-02-23 Thread Stephen Gaito
nTeXt 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

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-07 Thread Florian Leupold
> On 06.10.16, at 10:32, Otared Kavian wrote: > > 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 s

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 with

[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
d 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 problematic, the same patch > goes there. But mtxrun doing its own guesswork on top of this might > be. Let's see.

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

2016-08-23 Thread Mojca Miklavec
patch the scripts, thank you very much. I was a bit 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 patc

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

2016-08-16 Thread Mojca Miklavec
016/texmf-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
[1] [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 (Gr

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

2016-06-16 Thread massifr
tups xml:text \indenting[{yes,first,12pt}] \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.

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? advTHANK

[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 \definefontfa

Re: [NTG-context] Underbar offset

2016-05-24 Thread Hans Hagen
quot;. just see how 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

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

2016-05-13 Thread Jean-Pierre Delange
rules} \maketitle \begin{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+\Xaft

[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); both beh

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim
n die 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-

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 i

[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 bett

[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
on line 570 in file /path/to/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\e

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'

Re: [NTG-context] horizontal spacing

2015-05-16 Thread Wolfgang Schuster
> Am 16.05.2015 um 11:09 schrieb 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 spa

[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

[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 t

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

2015-04-03 Thread Willi Egger
head{Head > A} > >> 2. I use a lot \Milli\Meter. When loading the module 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 th

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

2015-04-03 Thread Wolfgang Schuster
oading the module 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 uni

[NTG-context] Exporting highlights

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
*/ display : block ; margin-top: 1em ; margin-bottom : 1em ; margin-left : 2.5em ; } formulaset { /* todo */ display : block ; margin-top: 1em ; margin-bottom : 1em ; margin-left : 2.5em ; } formulacaption { /* todo */ display : block ; margin-top : 0.5em ; c

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 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

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

2015-03-03 Thread Andrea De Michele
Romain Diss 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. > >&

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

[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

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

2015-02-01 Thread Hans Hagen
ors, wd; u := 1cm; % 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;

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

2015-02-01 Thread Pablo Rodriguez
chieved 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$

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

2015-02-01 Thread Fabrice Couvreur
e[height=\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

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

2015-02-01 Thread DesdeChaves
a solution <http://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_vecto

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
es ci-dessous afin qu'ils 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) ;

[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 me

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

2015-01-06 Thread Alan BRASLAU
ext > >> \startitemize[n][stopper={.},style=bold] > >> \placefigure[right,none]{}{ > >> \startframedtext[ > >> width=6cm, > >> frame=on, > >> framecolor=H1prime, > >> location=middle, > >> background=color, &g

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

2015-01-05 Thread Hans Hagen
artitemize[n][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

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

2015-01-05 Thread Fabrice
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 \item \unit{60 g} de fr

[NTG-context] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
,261}{33\,957}$ \eTD \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 \bT

Re: [NTG-context] synbol not beingoa

2014-07-28 Thread Wolfgang Schuster
Am 28.07.2014 um 08:27 schrieb Hwitloc : > 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? %\setu

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 % Rend

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 sho

[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.

[NTG-context] Set two symbols in relative coordinates

2014-04-01 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 Hans Hagen
on nearly 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

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

[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

Re: [NTG-context] Problem with Module Units

2014-02-27 Thread Wolfgang Schuster
dule when 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 :

Re: [NTG-context] Problem with Module Units

2014-02-27 Thread Wolfgang Schuster
Am 27.02.2014 um 19:22 schrieb Fabrice Couvreur : > Hi, > I see that there is no space between the words "pour"and "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 \ o

[NTG-context] Problem with Module Units

2014-02-27 Thread Fabrice Couvreur
etupbodyfont[me,12pt] \starttext 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 a

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\??la

[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 o

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

2013-11-24 Thread Hans Hagen
e the word 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 ...

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

2013-11-24 Thread Khaled Hosny
; above the word > >> > >>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). &

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

2013-11-24 Thread Hans Hagen
'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 when units ~= 1000 but still ... i have no probl

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

2013-11-17 Thread Wolfgang Schuster
Am 17.11.2013 um 15:33 schrieb honyk : > Other OTF features needs to be declared though: > \definefontfeature[f:superscript][sups=yes] > > and then used as written above: > 25 m{\feature[+][f:superscript]2} > > But it is not so big deal. When you use this for units

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 : > 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

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 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

[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 unit

<    1   2   3   4   5   6   7   8   >