[NTG-context] Re: increase vertical between underbrace and equation

2023-12-19 Thread Mikael Sundqvist
n wiki seems to be very limited, and I was not able to find any > user-supplied arguments for increasing this vertical distance. > > There are various solutions available for LaTex, and they require external > packages (e.g., BigStrut, vphantom) that redefine the strut height. >

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Dean Hung
t;>> > >>> There are various solutions available for LaTex, and they require > external > >>> packages (e.g., BigStrut, vphantom) that redefine the strut height. > >>> > >>> I hope I'm missing something simple... Any help would be greatly > &g

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Dean Hung
cal distance. > > > > There are various solutions available for LaTex, and they require > external > > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > > > I hope I'm missing something simple... Any help would be greatly > > apprecia

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Wolfgang Schuster
-supplied arguments for increasing this vertical distance. There are various solutions available for LaTex, and they require external packages (e.g., BigStrut, vphantom) that redefine the strut height. I hope I'm missing something simple... Any help would be greatly appreciated! Hey, this is context. We

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Aditya Mahajan
arguments for increasing this vertical distance. > > > > There are various solutions available for LaTex, and they require external > > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > > > I hope I'm missing something simple... Any help would be greatl

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Aditya Mahajan
y limited, and I was not able to find > any user-supplied arguments for increasing this vertical distance. > > There are various solutions available for LaTex, and they require external > packages (e.g., BigStrut, vphantom) that redefine the strut height. > > I hope I'm missing

[NTG-context] increase vertical between underbrace and equation

2023-12-18 Thread Dean Hung
. There are various solutions available for LaTex, and they require external packages (e.g., BigStrut, vphantom) that redefine the strut height. I hope I'm missing something simple... Any help would be greatly appreciated! DY Hung

Re: [NTG-context] Size of root symbol

2021-08-22 Thread Bruce Horrocks via ntg-context
formula >> \sqrt[3]{4n} \ne \sqrt[3] {n} >> \stopformula >> \stoptext > > Make the quantities whose roots are being taken to be of the same size. > > \starttext > > % The simplest solution: > \startformula > \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n} > \stopf

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Hans Hagen via ntg-context
the quantities whose roots are being taken to be of the same size. \starttext % The simplest solution: \startformula \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n} \stopformula % More general % \strut = \vphantom{(}, which is too big \startformula \sqrt[3]{\strut 4n} \ne \sqrt[3] {\strut n} \stopformula % We

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Aditya Mahajan via ntg-context
ken to be of the same size. \starttext % The simplest solution: \startformula \sqrt[3]{4n} \ne \sqrt[3] {\vphantom{4} n} \stopformula % More general % \strut = \vphantom{(}, which is too big \startformula \sqrt[3]{\strut 4n} \ne \sqrt[3] {\strut n} \stopformula % We can define our own phanto

[NTG-context] math fractions

2015-11-04 Thread Alan BRASLAU
Hi, Does anyone have a suggestion to generate a better result for the symmetry specification: \starttext ${2\over a}{2\over b}{2\over m}$ \stoptext I tried: \starttext ${2\over \vphantom{b}a}{2\over \vphantom{b}b}{2\over \vphantom{b}m}$ \stoptext but this leaves too much vertical space

Re: [NTG-context] math fractions

2015-11-04 Thread Wolfgang Schuster
Alan BRASLAU <mailto:alan.bras...@cea.fr> 4. November 2015 um 17:50 Hi, Does anyone have a suggestion to generate a better result for the symmetry specification: \starttext ${2\over a}{2\over b}{2\over m}$ \stoptext I tried: \starttext ${2\over \vphantom{b}a}{2\over \vphantom{b}b}{

Re: [NTG-context] math fractions

2015-11-04 Thread Alan BRASLAU
Thank you, Wolfgang. I had stopped using the \frac command a while ago as it was *seriously broken*, previously. Why, however, does the TeX construction {a\over b} not work correctly, and more precisely, why does the TeX command \vphantom{b} not give the desired result? Alan On Wed, 4 Nov

Re: [NTG-context] big vertical distance

2013-01-13 Thread Hans Hagen
On 1/12/2013 10:37 PM, Wolfgang Werners-Lucchini wrote: Hallo, the following was ok with mkII: % coding: utf-8 \def\B{\vphantom{\bigg)}} \setupbodyfont[11pt,sans] \starttext \startitemize[a,columns,three,joinedup][grid=no,width=8mm,right=)] \item $\B 5b\cdot (3a+4b-5c)$ \item $\B 3xy\cdot (2x

[NTG-context] big vertical distance

2013-01-12 Thread Wolfgang Werners-Lucchini
Hallo, the following was ok with mkII: % coding: utf-8 \def\B{\vphantom{\bigg)}} \setupbodyfont[11pt,sans] \starttext \startitemize[a,columns,three,joinedup][grid=no,width=8mm,right=)] \item $\B 5b\cdot (3a+4b-5c)$ \item $\B 3xy\cdot (2x-6y-xy)$ \item $\B (-0{,}5x)\cdot (3y-5x)$ \item $\B (2z-3x

[NTG-context] \smash broken in mkiv

2012-08-19 Thread Dominik Leopold Forkert
Hi, In the following minimal example \startformula P = \left(\vphantom{\sum}\smash{\sum_{\startsubstack 1 \le i \le p \NR 1 \le j \le q \NR 1 \le k \le r \NR \stopsubstack}} a_{ij}b_{jk}c_{ki} \right) \stopformula \smash does not work properly in mkiv – in mkii it runs just fine! Best regards

Re: [NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Otared Kavian
…) is the following: add a \vphantom before the first occurence of the synonim, that is \vphantom{\abs} assuming that \abs is already defined: rewriting your example one gets: \definesynonyms[testAbbrev][testAbbrevs][\infull] %\setupsynonyms[testAbbrev][next=\autoinsertnextspace] \testAbbrev[abs]{\sc abs

Re: [NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
Thanks for the phantom hint! I made a macro that I'll put at the beginning of each component file, after the chapter header: \def\synCorr{\vphantom{all synonym macros go here}\vskip-\lineheight} I think this will do it for the moment. Thanks and Greetings Thomas Otared Kavian mailto:ota

Re: [NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Hans Hagen
Thomas Floeren wrote: Thanks for the phantom hint! I made a macro that I'll put at the beginning of each component file, after the chapter header: \def\synCorr{\vphantom{all synonym macros go here}\vskip-\lineheight} I think this will do it for the moment. it's fixed in the beta

Re: [NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
{\vphantom{all synonym macros go here}\vskip- \lineheight} I think this will do it for the moment. it's fixed in the beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
Tomas Thomas Floeren wrote: Thanks for the phantom hint! I made a macro that I'll put at the beginning of each component file, after the chapter header: \def\synCorr{\vphantom{all synonym macros go here}\vskip- \lineheight} I think this will do it for the moment. it's fixed in the beta

[NTG-context] math problems

2009-03-15 Thread Mohamed Bana
={\,\right\vert}] % double vertical bars \definemathmatrix [Vmatrix] [left={\left\Vert\,},right={\,\right\Vert}] \def\PD#1#2{\frac{\partial #1}{\partial #2}} \def\ann{\mathscr{Q}^{\vphantom{*}}} \def\mathscr#1{{\gothic #1}} \def\cre{\mathscr{Q}^*} \def\dirac{{\mathfrak{D}}} \def\pform{\mathfrak{p

[NTG-context] Math align with \startcases

2009-01-19 Thread Otared Kavian
Actually I used to have such alignments with the following structure (in good old plain TeX...): \starttext \startformula \cases{ \eqalign{ -\Delta u + g(u) = f \cr \displaystyle {\partial u \over \partial {\bf n} } = h(u) \cr } \quad \eqalign{ \hbox{in } \Omega \cr \vphantom{{\partial u \over

Re: [NTG-context] Math align with \startcases

2009-01-19 Thread Aditya Mahajan
\vphantom{{\partial u \over \partial {\bf n} }} \hbox{on } \partial\Omega \cr } } \stopformula \stoptext (which gives approximately the same result as the first example above, but clearly the math-alignment structure set up by Aditya and Hans is much more elegant. (Although I prefer

[NTG-context] Strange error in using backgrounds with enumerations

2008-07-13 Thread Aditya Mahajan
}} \def\SOME#1{\presuper{i}{#1}} \let\DEFINED=\colonequals \let\BYDEFINITION=\equalscolon \let\ESTIMATE=\hat \def\COST{{\cal J}} \def\presuper#1#2% {\mathop{}% \mathopen{\vphantom{#2}}^{#1}% \kern-\scriptspace% #2} \abbreviation {RHS} {right hand side} \def\DESIGN {\dosingleempty\doDESIGN

[NTG-context] ghosts in mpost?

2008-02-15 Thread Olivier
Hi everyone, I ran into trouble while trying to compile \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Is this a bug? Olivier ___ If your

Re: [NTG-context] ghosts in mpost?

2008-02-15 Thread Taco Hoekwater
Olivier wrote: Hi everyone, I ran into trouble while trying to compile \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Is this a bug? Well, the error message is not nice, and maybe an \unexpanded in front

Re: [NTG-context] ghosts in mpost?

2008-02-15 Thread Olivier
Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Feb 15, 2008 at 05:25:16PM -- \startreusableMPgraphic{try} label(textext{$x\vphantom{y}z$}, origin); \stopreusableMPgraphic \reuseMPgraphic{try} Well, the error message is not nice, and maybe an \unexpanded in front

Re: [NTG-context] itemize and math

2007-10-30 Thread Wolfgang Werners-Lucchini
Height of formula 2: \the\ht\scratchbox Ahhh! The HEIGHT (not the width) ist the problem!? So: \startcolumns \dontleavehmode \vphantom{$a_n=\frac{(-1)^n}{\sqrt{n}}-3$}$a_n=2+\frac{1}{n+1}$% $a_n=\frac{(-1)^n}{\sqrt{n}}-3$ \stopcolumns works too. Is there something like an \mathstrut macro

Re: [NTG-context] itemize and math

2007-10-30 Thread Aditya Mahajan
{\vphantom{\big)}} (replace \big by \bigg, \Big, to suit your need). If you really want something big you can try \def\bigmathstrut{\vphantom{\frac{\displaystyle\sum_{(}^{)}}{\displaystyle\sum_{)}^{(}}} Usually things do not grow bigger than this. Aditya

Re: [NTG-context] questions about math formula

2007-06-06 Thread Aditya Mahajan
\vphantom, something like \eqalign{ a = \left( expr 1 \vphantom{expr 2} \right. \left. \vphantom { expr 1} expr 2 \right) } but this quickly becomes unmanageable if you have more than two expressions. A more sophisticated approach is taken by nath package in latex, see its documentation

[NTG-context] hotkey and strut again

2007-05-04 Thread Peter Münster
=#1: bla \hotkey{Alt} bla \hotkey{Space} bla\blank} \starttext \Test{no} \Test{yes} \Test{global} \Test{local} \stoptext Any hint is appreciated! Cheers, Peter P.S.: My workaround: \def\hotkey#1{\inframed[background=screen,offset=overlay, height=\lineheight,corner=00]{~\vphantom{Sp}#1

Re: [NTG-context] Prescript in ConTeXt

2007-04-19 Thread Taco Hoekwater
Aditya Mahajan wrote: Actually, I only want a pre superscipt, so the following works for me \def\presuper#1#2% {\mathop{}% To prevent preceeding mathord atoms to approach \mathopen{\vphantom{#2}}^{#1}% To prevent space between prescript % and next

Re: [NTG-context] Prescript in ConTeXt

2007-04-18 Thread Aditya Mahajan
Actually, I only want a pre superscipt, so the following works for me \def\presuper#1#2% {\mathop{}% To prevent preceeding mathord atoms to approach \mathopen{\vphantom{#2}}^{#1}% To prevent space between prescript % and next atom. \kern-\scriptspace

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar a bit more. \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2 +5x-12}\,}. \placeformula \startformula \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread David Arnold
}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar a bit more. \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2 +5x-12}\,}. \placeformula \startformula \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3

Re: [NTG-context] Extend the fraction bar

2006-07-04 Thread Aditya Mahajan
a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom command as well to separate the fractions from the main bar a bit more. \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2

Re: [NTG-context] Extend the fraction bar

2006-07-02 Thread Taco Hoekwater
David Arnold wrote: All, How can I extend the main fraction bar in the following expression, making it a tad longer? Just add a bit of whitespace to the right and left: \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,} {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,} You may want to add a \vphantom

Re: [NTG-context] alignment in cells without alignmentcharacter

2005-11-13 Thread Peter Münster
Hello, concerning this subject, I have another feature request: \unexpanded\def\HideV#1{\vphantom{#1}} \starttext \chardef\characteralignmentmode=5 % align on left side of the character \setupTABLE[aligncharacter=yes] \bTABLE \bTR\bTD 1,23\%\eTD\eTR \bTR\bTD 12,3\%\eTD\eTR \bTR\bTD 123\HideV

Re: [NTG-context] alignment in cells without alignmentcharacter

2005-11-13 Thread Taco Hoekwater
Hi Peter, I am not sure what you want achieve here. Can you create a fake table that shows what you have in mind? Taco (Also, I assume you meant \hphantom not \v...?) Peter Münster wrote: Hello, concerning this subject, I have another feature request: \unexpanded\def\HideV#1{\vphantom{#1

[NTG-context] Filling forms

2005-09-06 Thread luigi.scarso
[EMAIL PROTECTED] collect para attributes \ruledvbox to \!!h{\hsize=\!!w % \vss [EMAIL PROTECTED] single line [EMAIL PROTECTED] \hbox to \!!w {\getvalue\s!dummy \vphantom{K}\getvalue\!!name \hss}% }% [EMAIL PROTECTED] \hbox to \!!w {\getvalue\s!dummy \vphantom{K} \getvalue\!!name \hss}% }% [EMAIL

Re: [NTG-context] \mathstrut in \underbrace and nath

2004-11-18 Thread Nikolai Weibull
, being \vphantom(, is being misinterpreted as a delimiter (as '(' is active in nath), but that's just a layman's guess. Bingo. In nath this is now fixed by letting \mathstrut use | instead of (. :-) I'll try to get the new amsl and nath modules out today. Thanks, great work. I don't want

[NTG-context] \mathstrut in \underbrace and nath

2004-11-17 Thread Nikolai Weibull
\nextbox [EMAIL PROTECTED] [EMAIL PROTECTED] #1{#2 }$} ... l.4 ...race{\mathstrut rr\dots r}_{n \text{times}} ? My guess is that the expansion of \mathstrut, being \vphantom(, is being misinterpreted as a delimiter (as '(' is active in nath), but that's

[NTG-context] EPS/PDF import and \underbrace in metaplay

2004-08-04 Thread Mojca Miklavec
width#1 height 0bp}}_{\hbox{\strut #2}}$} \def\rightbracedescription#1#2{$\displaystyle{\left.\vphantom{\hbox{\vrule width0bp height#1 depth#1}}\right\}\hbox{\strut #2}}$} However, the width has to be given manually - it doesn't care about the actual size of the object it has to be applied to. How

Re: [NTG-context] EPS/PDF import and \underbrace in metaplay

2004-08-04 Thread Vit Zyka
#1#2{$\underbrace{\hbox{\vrule width#1 height 0bp}}_{\hbox{\strut #2}}$} \def\rightbracedescription#1#2{$\displaystyle{\left.\vphantom{\hbox{\vrule width0bp height#1 depth#1}}\right\}\hbox{\strut #2}}$} However, the width has to be given manually - it doesn't care about the I do not understand what