[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
; > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3 > > > > You can use the lines key for \setuplayout to let ConTeXt calculate the > > necessary value for the text height. > > > > • protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6 &g

[NTG-context] Re: Japanese

2024-03-14 Thread Emanuel Han via ntg-context
; > > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30 > > > > See my attached gongitsune.tex example how you can squeeze text in a very > > narrow header/footer. > > > > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3 > &

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
t height. > > • protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6 > > You're getting this for free because ruby text doesn't take up vertical > space, in case vertical text is working it would now stick into the margins > as expected. > > \starttext >

[NTG-context] Re: Japanese

2024-03-10 Thread Jean-Pierre Delange
You're getting this for free because ruby text doesn't take up vertical space, in case vertical text is working it would now stick into the margins as expected. \starttext \ruledhbox{a \ruby{x}{y} b} \stoptext * In my previous mail, I wrote wrong

[NTG-context] Re: Japanese

2024-03-10 Thread Emanuel Han via ntg-context
vertical text is working it would now stick into the margins > as expected. > \starttext > \ruledhbox{a \ruby{x}{y} b} > \stoptext > > > > > > In my previous mail, I wrote wrong amounts of lines. They should be 46 > > lines on one page, while the actual example do

[NTG-context] Re: Japanese

2024-03-02 Thread Wolfgang Schuster
into the margins as expected. \starttext \ruledhbox{a \ruby{x}{y} b} \stoptext In my previous mail, I wrote wrong amounts of lines. They should be 46 lines on one page, while the actual example doesn't show the 46th line. It would be important to identify the reason why only 24 characters are used

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Mikael Sundqvist
(and different linebreaking). > > > > \showglyphs > > > > \startTEXpage[offset=1ex] > > \ruledhbox{$\overline {OA} = \overbar {OA} = 4.2$} > > \par > > \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$} > > \par >

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen via ntg-context
at tug meetings on YT. The output with Luametatex is correct but Luatex creates a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
So, Finally is it a bug in MKIV? It seems you fix some kind of bug in your messages. Is it true? > The output with Luametatex is correct but Luatex creates a raised bar > (and different linebreaking). > > \showglyphs > > \startTEXpage[offset=1ex] > \ruledh

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
More precise \rlaps for the previous MWE: \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalhamzah}c}}% \hskip-.075em \ruledhbox {\transparentred c\symbol{glottalhamzah}c}} \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalayn}c}}% \hskip-.075em

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
setups glyph:iTee % \dontleavehmode\hpack\bgroup % \setbox\scratchbox \ruledhbox \bgroup % \glyphxscale 400 % \glyphyscale 400 % \getglyphstyled{Serif}{T}% choose a font here % \egroup % \scratchheight 2.75\ht\scra

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
yesterday, not sure which one to focus on in this case -) \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}> choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \s

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ot; and map that one onto a > file (YourFont YourFontBold etc) > - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) > \startsetups glyph:iTee > \dontleavehmode\hpack\b

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
artsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}% choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \scratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchhe

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbo

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$} \par \ruledhbox{$\widetilde {OA} = \widebar {OA} = 4.2$} \par

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
callback features but only when it has no impact on performance. For now it's experimental. That said, I wonder how many users can predict the plainish tex result of: \ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} \ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrow

Re: [NTG-context] A corner case relating to corners!

2023-02-05 Thread Hans Hagen via ntg-context
EXpage[offset=1dk] \dontleavehmode\ruledhbox{\framed [framecolor=red, framecorner=#1, frameradius=\zeropoint] {TEST #1}} \ruledhbox{\framed [framecolor=red, framecorner=#1, frameradius=5pt] {T

Re: [NTG-context] move glyph vertically

2022-12-22 Thread Hans Hagen via ntg-context
data = { [ '¿' ] = { 0, 400 }, [ '¡' ] = { 0, 400 }, } } \stopluacode \definefontfeature[ktest][gpos_test=yes] \starttext \startTEXpage[offset=1em] \ruledhbox{¿? xx ¡!} \addfeature{ktest} \rule

Re: [NTG-context] \hpos in math - Half solved

2022-12-08 Thread Hans Hagen via ntg-context
\ruledhbox source 123 anchors 1 2 {one} \setbox 2 \ruledhbox target 123 {test 1} \dontleavehmode \box2 \box0 \setbox 0 \ruledhbox target 124 orientation 2 anchors 1 4 xoffset-10pt {two

Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
upexternalfigures[width=3em,height=2em,frame=on,] > > %\def\TXT{\ruledhbox{\bf(XyX)}} > \def\TXT{\externalfigure[pic]} > > \starttabulate[|l|l|l|l|l|l|] > \NC\NC normal\NC depth\NC fit\NC broad\NC high\NC\NR > \HL > \dostepwiserecurse{0}{359}{45}{% > %\exp

[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context
Hi, I was playing with the example from https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter and tried to put it in a tabulate: \useMPlibrary[dum] \setupexternalfigures[width=3em,height=2em,frame=on,] %\def\TXT{\ruledhbox{\bf(XyX)}} \def\TXT{\externalfigure

[NTG-context] new upload

2022-04-15 Thread Hans Hagen via ntg-context
for a while low level engine feature that we introduced as part of the math processing update: \dorecurse {1000} {test \uleaders\ruledhbox{\hss#1\hss}\hskip2em minus 1em\ } Next on the todo is to move some experimental graphic trickery related to math (matrices) into the core

Re: [NTG-context] new upload

2022-01-15 Thread Hans Hagen via ntg-context
after the first character in the exposant, but it is not printed). to get an idea about default and additional spacing in tex ... \starttext \startbuffer \dontleavehmode\ruledhbox{$x^2 + x$}\par \dontleavehmode\ruledhbox{$x_2 + x$}\par \dontleavehmode\ruledhbox{$x^^2 + x$}\par

[NTG-context] Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
{.625blue} \choice \mycolordot{.625green} \choice \mycolordot{.625magenta} \stopchoices A ruledhboxs show the extra space is in the itemize, but not in the item contents. \ruledhbox{\startchoices[columns, four] \choice \ruledhbox{\mycolordot{.625red}} \choice \mycolordot{.625blue} \choice

Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
ers and inject a node). Watch out: one needs > to use grouping in order not to bleed into other mechanisms. > > Also new is that we can query the content of these registers using \the, > as in: > > \dorecurse{10}{ > \showboxes > \localleftbox{\ruledhbox {\sm

[NTG-context] new upload, new trickery

2021-10-28 Thread Hans Hagen via ntg-context
to use grouping in order not to bleed into other mechanisms. Also new is that we can query the content of these registers using \the, as in: \dorecurse{10}{ \showboxes \localleftbox{\ruledhbox {\smallinfofont\setstrut\strut[L #1.0]}}% \localleftbox{\ruledhbox {\smallinfofont

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Pablo Rodriguez via ntg-context
kip4cm \dostepwiserecurse{0}{360}{10}{ \doloopoverlist{normal,default,depth,fit,broad,high,middle}{ \ruledhbox{\rotate[rotation=\recurselevel, location=\recursestring]{% \framed [width=\textheight, height=\textwidth, rulethickness=5pt, depth=0cm, foregroundstyle=\bfd] {\recurse

Re: [NTG-context] \rotate[rotation=270] adds extra vertical space

2021-10-22 Thread Hans Hagen via ntg-context
] {\externalfigure[\Doc][page=\recurselevel, width=\textheight]} \fi}} \stoptext I’m afraid that if rotation values are 270 or 180, the imposed page has an extra vertical space before. nicer demo: \showframe \starttext \topskip4cm \dostepwiserecurse{0}{360}{10}{ \ruledhbox{\rotate[rotation=#1

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
configured for inline usage (so we get depth and height) you can use the location parameter to do otherwise: % normal default depth fit broad high middle \starttext \topskip4cm \dostepwiserecurse{0}{360}{1}{ \ruledhbox{\rotate[rotation=#1,location=high]{\externalfigure[A3page.pdf][page=1

Re: [NTG-context] vertical offset with "i" in position-command

2021-02-12 Thread Wolfgang Schuster
on(1, 4){x} \position(2, 4){a} \stoppositioning \stoptext Why is it so, and how could I avoid that please? 1. Because the letters have different heights. \startTEXpage[offset=1ex] \processisolatedchars{aix}\ruledhbox \stopTEXpage 2. Add \strut, e.g. \position(1, 1){\strut i}

[NTG-context] new font trickery

2021-01-24 Thread Hans Hagen
tTEXpage[offset=10pt] \char\privatecharactercode{demo:whatever}% \stopTEXpage \startTEXpage%[offset=0pt] \ruledhbox{\char103} \ruledhbox{\char104} \ruledhbox{\char105} \ruledhbox{\char106} \stopTEXpage \dorecurse{1000}{ \char 103\relax \space \char 104\relax \space \c

Re: [NTG-context] efficiently scaling fonts

2020-12-24 Thread Pablo Rodriguez
1*2)/3\relax \glyphyscale#1\relax \samplefile{ward}% \par \stop \def\TEST{y = \sqrt{x^2 + 1}^3}% \dontleavehmode \ruledhbox{\glyphxscale #1 \glyphyscale #1 $\left{\TEST\right}$} \ruledhbox{\glyphxscale #1 \glyphyscal

[NTG-context] efficiently scaling fonts

2020-12-24 Thread Hans Hagen
{ward}% \glyphxscale\numexpr(#1*2)/3\relax \glyphyscale#1\relax \samplefile{ward}% \par \stop \def\TEST{y = \sqrt{x^2 + 1}^3}% \dontleavehmode \ruledhbox{\glyphxscale #1 \glyphyscale #1 $\left{\TEST\right}$} \ruledhbox{\glyphxscale #1

Re: [NTG-context] MkIV and LMTX difference in comma list expansion

2020-10-26 Thread Wolfgang Schuster
(first and second list). \def\CommalistEntry#1{\ruledhbox{\strut#1}} \starttext \dontleavehmode\processcommalist[{aaa}]\CommalistEntry \dontleavehmode\processcommalist[{aaa,bbb}]\CommalistEntry \dontleavehmode\processcommalist[{ccc,ddd},{eee,fff}]\CommalistEntry \stoptext Wolfgang

Re: [NTG-context] teaser

2020-08-06 Thread Jairo A. del Rio
ted line. > > BTW: Is it possible to have unbox command to get the width of the > content in the lines without the spaces at the begin end. This is useful > to get the width of first/last line in a box. > > %% begin example > \starttext > > \setbox0\vbox >{\hsize=4c

Re: [NTG-context] teaser

2020-08-06 Thread Wolfgang Schuster
{\hsize=4cm one\par two\par three\par four} \setbox2\ruledhbox{\copyboxline 0 2} \setbox4\ruledhbox{\boxline 0 3} %\setbox6 \boxline 0 5 % error [2] [\box2] \par [3] [\box4] \par [5] [\box6] \par \stoptext %% end example Wolfgang

[NTG-context] sunny friday afternoon update

2020-05-08 Thread Hans Hagen
{$ {\tf X}^1_2^^3__4 \quad {\tf X}^1 ^^3\quad {\tf X} _1 __4 \quad {\tf X}^^3\quad {\tf X} __4 \quad {\tf X}^^3__4 $} \blank or with the control sequence variants: \blank \hbox{ \ruledhbox{${\tf X}\Usuperscript{a} $} \ruledhbox{${\tf X

Re: [NTG-context] (bug?) wrong interline in \placelist[alternative=d] with Pagella italics

2020-03-15 Thread Wolfgang Schuster
of the problem, the \setstrut setting changes the height of the strut for the italic font. begin example \showstruts \setupbodyfont[pagella] \starttext \dontleavehmode\it \ruledhbox{\strut Section} \ruledhbox{\setstrut\strut Section} \stoptext end example Most fonts (I checked only

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-16 Thread Wolfgang Schuster
[...] \setupfooter[margin][strut=no] This has no effect because the strut for the pagenumber text effects all entries in the footer area. The following example to demonstrates this (line 2): \starttext \ruledhbox to \hsize{\hbox{A}\hss\hbox{B}} \ruledhbox to \hsize{\hbox{\strut A}\hss\hbox{B

Re: [NTG-context] integral symbol

2016-12-28 Thread Alan Braslau
would be easier. As in: > > > \starttext > > \setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2] > > \startlines > \ruledhbox{$\integral f\frac{1}{2}$} > \ruledhbox{$\integral[factor=1] f\frac{1}{2}$} > \ruledhbox{$\integral[factor=3] f

Re: [NTG-context] integral symbol

2016-12-28 Thread Hans Hagen
\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2] \startlines \ruledhbox{$\integral f\frac{1}{2}$} \ruledhbox{$\integral[factor=1] f\frac{1}{2}$} \ruledhbox{$\integral[factor=3] f\frac{1}{2}$} \stoplines \startformula a = \autointegral{t}{b}1 + \autointegral

Re: [NTG-context] Typing in natural width box

2016-11-09 Thread Hans Hagen
the frame is adjusted to natural width, the underlying box is still full width. Therefore I tried framed but there I obtain spurious vertical space out of nowhere. How can I place typing into a natural sized box? Cheers, Henri --- \starttext \ruledhbox{% \startframedtext[width=fit,offset=0pt

Re: [NTG-context] Typing in natural width box

2016-11-08 Thread Henri Menke
The solution is to use strut=no in the framed and clear the before and after keys of the typing environment. I found it by accident on the wiki: http://wiki.contextgarden.net/Verbatim_text#Making_a_tight_vertical_fit --- \starttext \ruledhbox{% \startframed[width=fit,align=right,strut

[NTG-context] Typing in natural width box

2016-11-08 Thread Henri Menke
, the underlying box is still full width. Therefore I tried framed but there I obtain spurious vertical space out of nowhere. How can I place typing into a natural sized box? Cheers, Henri --- \starttext \ruledhbox{% \startframedtext[width=fit,offset=0pt] \starttyping print("Hello

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread luigi scarso
the number are now on the same line, > but one of them - the number, I think - is offset and that looks > funny. Is there a trick that'd fix that? > > \bTD \ruledhbox{\externalfigure[box3mm] 1} \eTD the border around box3mm.pdf ? -- luigi

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-26 Thread Hans Hagen
(hsize - 3*indent) the fil is taken into account when calculating the best break points and then the XX is fixed but plus/minus can lead to if being less or more, all relative to other fill (distributed) so, XX plus (hsize - 3*indent) is not a fixed value, it's XX or more take this: \ruledhbox

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Jan Tosovsky
t;> being less or more, all relative to other fill (distributed) > >> > >> so, XX plus (hsize - 3*indent) is not a fixed value, it's XX or > >> more > >> > >> take this: > >> > >> \ruledhbox to 10cm {x\hskip0pt plus 1cm x} > >>

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Hans Hagen
break points and then the XX is fixed but plus/minus can lead to if being less or more, all relative to other fill (distributed) so, XX plus (hsize - 3*indent) is not a fixed value, it's XX or more take this: \ruledhbox to 10cm {x\hskip0pt plus 1cm x} the skip will stretch more than 1cm I can

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Hans Hagen
break points and then the XX is fixed but plus/minus can lead to if being less or more, all relative to other fill (distributed) so, XX plus (hsize - 3*indent) is not a fixed value, it's XX or more take this: \ruledhbox to 10cm {x\hskip0pt plus 1cm x} the skip will stretch more than 1cm I can

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-25 Thread Jan Tosovsky
into account when calculating the best break points > and then the XX is fixed but plus/minus can lead to if being less > or more, all relative to other fill (distributed) > > so, XX plus (hsize - 3*indent) is not a fixed value, it's XX or more > > take this: > > \ruledhbox

Re: [NTG-context] Length range control of the last line of paragraph

2016-03-24 Thread Hans Hagen
, it's XX or more take this: \ruledhbox to 10cm {x\hskip0pt plus 1cm x} the skip will stretch more than 1cm \ruledhbox to 10cm {x\hskip0pt plus 1cm\relax x% x\hskip0pt plus 2cm\relax x} now the glue gets distributed 1:2, so now you can guess \ruledhbox to 10cm {x\hskip1mm

Re: [NTG-context] Fieldstacks are broken

2016-01-21 Thread Hans Hagen
‘\'”. \dorecurse{20} {{\MyGraphics {\recurselevel}} \startluacode for i = 1, 20 do context(“{\\MyGraphics {i}}”) end \stopluacode \dorecurse{20} {\dontleavehmode\ruledhbox{\MyGraphics{#1}}\allowbreak} \page \startluacode for i = 1, 20 do context.dontleavehmode

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Wolfgang Schuster
\ruledhbox with \ruledvbox). \startxmlsetups xmlcommon \xmlsetsetup{\xmldocument}{table|tbody|tr|td}{xmlcommon:*} \stopxmlsetups \xmlregistersetup{xmlcommon} \startxmlsetups xmlcommon:table % \removeunwantedspaces \startembeddedxtable \xmlflush{#1

Re: [NTG-context] embeddedxtable

2015-05-25 Thread Meer, H. van der
commands and replacing \ruledhbox with \ruledvbox). Thanks for the suggestion of the \ruledvbox. This shows that the remaining whitespace originates in the \framed and not in the table code. Hans van der Meer

Re: [NTG-context] embeddedxtable

2015-05-24 Thread Wolfgang Schuster
% \ignorespaces \stopxmlsetups \starttext \startbuffer[a] ?xml version=1.0 encoding=UTF-8? root table tr tdA/td /tr /table /root \stopbuffer \startbuffer[b] ?xml version=1.0 encoding=UTF-8? root tabletrtdA/td/tr/table /root \stopbuffer \ruledhbox

Re: [NTG-context] Error with alternative (interactive) TOC

2014-10-10 Thread Wolfgang Schuster
=no] \define[3]\SectionTOC{\ruledhbox{#3 #2}} \setuplist [section] [alternative=interactive, command=\SectionTOC, before={\blank[2*line]}] \starttext \placecontent \chapter[title=Chapter] \dorecurse{4} {\section{Section} Level \recurselevel.} \stoptext This problem can be fixed

Re: [NTG-context] Using \startframedtext with \startcombination

2014-10-01 Thread Wolfgang Schuster
,framecolor=red,frameoffset=-1ex] \starttext \ruledhbox\bgroup \startframedtext[left] \input ward \stopframedtext \egroup \blank \ruledhbox\bgroup \startframedtext[middle] \input ward \stopframedtext \egroup \blank \ruledhbox\bgroup

Re: [NTG-context] Ubuntu Light font

2014-01-30 Thread Wolfgang Schuster
\offinterlineskip \ruledhbox{\definedfont[file:#1*nonesa 10]#2} \ruledhbox{\definedfont[file:#1*default sa 10]#2} \egroup \stopTEXpage} \starttext % TeX Gyre Termes Regular %\Test{texgyretermesregular}{fi} % Ubuntu Regular \Test{ubuntur}{ff} \Test{ubuntur}{fi} \Test{ubuntur}{fl

Re: [NTG-context] bug? gap appears in columnset

2013-09-17 Thread Hans Hagen
to be *part* of the distance between baselines, rather than an additional distance. But maybe that's not important to the main issue. \starttext \showstruts \strut test \par \strut test \showstruts \strut \ruledhbox{$\sqrt{test}$} \par \strut test \stoptext \lineskip (1pt by default) kicks in when

[NTG-context] beta

2013-09-09 Thread Hans Hagen
}{ שלום (אני) כותבשלום (אני) $ $ כותבשלום (אני) $x$ כותבשלום (אני) \ruledhbox {hans כותבשלום} (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותב } \par } \stopbuffer \setupalign[r2l,verytolerant] \start \setupdirections[bidi

Re: [NTG-context] documents inside documents

2013-06-26 Thread Wolfgang Schuster
, Wolfgang. From what I understand, the command is basically telling ConTeXt: “don’t make a new paragraph break after the inserted float”, isn‘t it? No, the command tells TeX to go into horizontal mode. \starttext \ruledvbox {\ruledhbox{One} \ruledhbox{Two}} \ruledvbox {\dontleavehmode

Re: [NTG-context] redifining font sizes

2013-06-10 Thread Hans Hagen
a} {\tfw a} \stoptext Why isn't the x font size set to 0.9? because the x sizes are defined for sizes \definefontsize [w] \setupbodyfontenvironment [12pt] [x=2pt] \setupbodyfontenvironment [default] [w=0.2] \starttext \ruledhbox{xxx {\tfx tfx} {\tx tx} {\txx txx} {\tfw tfw

[NTG-context] Database module and command key

2013-06-04 Thread Wolfgang Schuster
Hi Hans, why has the meaning of the command key changed in MkIV? In MkII you can define a command which has as many argument as entries in the list. % engine=pdftex \usemodule[database] \starttext \define[3]\TestCommand{\ruledhbox{#1:#2:#3}} \defineseparatedlist[test][command=\TestCommand

Re: [NTG-context] Database module and command key

2013-06-04 Thread Hans Hagen
) end In MkII you can define a command which has as many argument as entries in the list. % engine=pdftex \usemodule[database] \starttext \define[3]\TestCommand{\ruledhbox{#1:#2:#3}} \defineseparatedlist[test][command=\TestCommand] \starttest 1,2,3 \stoptest

[NTG-context] \smash broken (beta)

2013-05-22 Thread Peter Rolf
as the subject says... :-) \starttext \starttabulate[|l|l|] \NC w \NC \ruledhbox{\smash [w]{This is some great smashing, isn't it?}} \NC \NR \NC h \NC \ruledhbox{\smash [h]{This is some great smashing, isn't it?}} \NC \NR \NC d \NC \ruledhbox{\smash [d]{This is some great smashing

Re: [NTG-context] \smash broken (beta)

2013-05-22 Thread Wolfgang Schuster
Am 22.05.2013 um 18:00 schrieb Peter Rolf indi...@gmx.net: as the subject says... :-) \starttext \starttabulate[|l|l|] \NC w \NC \ruledhbox{\smash [w]{This is some great smashing, isn't it?}} \NC \NR \NC h \NC \ruledhbox{\smash [h]{This is some great smashing, isn't it?}} \NC

Re: [NTG-context] \smash broken (beta)

2013-05-22 Thread Peter Rolf
Am 22.05.2013 18:44, schrieb Wolfgang Schuster: Am 22.05.2013 um 18:00 schrieb Peter Rolf indi...@gmx.net: as the subject says... :-) \starttext \starttabulate[|l|l|] \NC w \NC \ruledhbox{\smash [w]{This is some great smashing, isn't it?}} \NC \NR \NC h \NC \ruledhbox{\smash [h

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Hans Hagen
\dontleavehmode\blackrule[width=\hsize] \par \dontleavehmode\blackrule[width=\localhsize] \par \dontleavehmode\blackrule[width=\textwidth] \par \dontleavehmode\blackrule[width=\makeupwidth] \par \dontleavehmode\ruledhbox to \hsize {x\hss x} \par \dontleavehmode\ruledhbox to \localhsize

Re: [NTG-context] \textwidth vs local

2013-05-17 Thread Idris Samawi Hamid ادريس سماوي حامد
=\localhsize] \par \dontleavehmode\blackrule[width=\textwidth] \par \dontleavehmode\blackrule[width=\makeupwidth] \par \dontleavehmode\ruledhbox to \hsize {x\hss x} \par \dontleavehmode\ruledhbox to \localhsize {x\hss x} \par \dontleavehmode\ruledhbox to \textwidth {x\hss x} \par

[NTG-context] MkIV problem+fix with \framed[location=depth / height / hanging]

2013-05-14 Thread Sietse Brouwer
[state=start] \setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red] \starttext \ruledhbox {A \framed[width=2cm,align=middle,location=] {location\\equals\\(nothing)}% \blackrule \framed[width=2cm,align=middle,location=depth] {location\\equals\\depth

Re: [NTG-context] square in Cambria font

2013-05-01 Thread Meer, H. van der
; \stopuseMPgraphic \def\mysquare{% \lower \dimexpr \bodyfontsize / 2083 * 234 \relax\hbox{\useMPgraphic{square}}% } try it out \starttext $\square+\mysquare\boxplus$ \crlf $\mysquare\boxplus$ \page[yes] $+ \ruledhbox{\boxplus}$ \crlf $+ \ruledhbox{\mysquare}$ \crlf $\ruledhbox

Re: [NTG-context] square in Cambria font

2013-05-01 Thread Sietse Brouwer
$ \page[yes] $+ \ruledhbox{\boxplus}$ \crlf $+ \ruledhbox{\mysquare}$ \crlf $\ruledhbox{\boxplus}$ \crlf $\ruledhbox{\mysquare}$ \stoptext ___ If your question is of interest to others as well, please add

[NTG-context] square in Cambria font

2013-04-30 Thread Sietse Brouwer
\boxplus$ \crlf $\mysquare\boxplus$ \page[yes] $+ \ruledhbox{\boxplus}$ \crlf $+ \ruledhbox{\mysquare}$ \crlf $\ruledhbox{\boxplus}$ \crlf $\ruledhbox{\mysquare}$ \stoptext ___ If your question is of interest to others

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Wolfgang Schuster
[iwona] after} \stoptext The problem the same as here: \starttext \ruledhbox{ \def\test{} A} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] [***SPAM***] \setscript blocking \hskip functionality

2013-04-13 Thread Hans Hagen
.*] \definefont[testfont][ipaexm.ttf][script=kana,language=jan] \startTEXpage \startformula test \stopformula \par \testfont \startscript[nihongo]\ruledhbox{漢字\hskip 2cm 文 書}\stopscript\par \testfont \startscript[nihongo]\ruledhbox to 7cm{漢字\hfill 文 書}\stopscript\par \testfont \startscript

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-05 Thread Hans Hagen
. I'm not sure if I understand the issue - lm has + and - touching with the + in the same position as the regular + - cambria has a gap between + and - and moves the + up and down Afaik context isn't doing any magic here as these are precomposed glyphs that directly map. $a \ruledhbox{$+$} b

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-05 Thread Hans Hagen
that directly map. $a \ruledhbox{$+$} b \ruledhbox{$-$} c$ $a \ruledhbox{$±$} b \ruledhbox{$∓$} c$ they are 'binary' in math mode, just like + and - The question is not about the shape of the glyph, but their location. But after looking at the output of latex for CM and Cambria, I am no longer

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-04 Thread Hans Hagen
Afaik context isn't doing any magic here as these are precomposed glyphs that directly map. $a \ruledhbox{$+$} b \ruledhbox{$-$} c$ $a \ruledhbox{$±$} b \ruledhbox{$∓$} c$ they are 'binary' in math mode, just like + and - Hans

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-04 Thread Aditya Mahajan
+ and - and moves the + up and down Afaik context isn't doing any magic here as these are precomposed glyphs that directly map. $a \ruledhbox{$+$} b \ruledhbox{$-$} c$ $a \ruledhbox{$±$} b \ruledhbox{$∓$} c$ they are 'binary' in math mode, just like + and - The question is not about

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-04 Thread Hans Hagen
as the regular + - cambria has a gap between + and - and moves the + up and down Afaik context isn't doing any magic here as these are precomposed glyphs that directly map. $a \ruledhbox{$+$} b \ruledhbox{$-$} c$ $a \ruledhbox{$±$} b \ruledhbox{$∓$} c$ they are 'binary' in math mode, just like

Re: [NTG-context] math: ± and ∓ are shifted

2013-04-04 Thread Khaled Hosny
the issue - lm has + and - touching with the + in the same position as the regular + - cambria has a gap between + and - and moves the + up and down Afaik context isn't doing any magic here as these are precomposed glyphs that directly map. $a \ruledhbox{$+$} b \ruledhbox{$-$} c

Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Wolfgang Schuster
, the width of the box is set with the first argument, the alignment with the second and the content with the third argument of the command. Example with all possible alignments: \starttext \ruledhbox{\simplealignedbox{3cm}{flushleft}{TEXT}} \ruledhbox{\simplealignedbox{3cm}{flushright}{TEXT

[NTG-context] new tricks in beta

2013-02-20 Thread Hans Hagen
Hi Aditya, I made a mathstyle mechanism ... used in fences first: \starttext \startTEXpage[offset=1ex] \def\TestMe#1% {\NC \ttbf #1 \NC \ruledhbox{$\setupmathstyle[#1]x + x_j^2 + x_i^{e^2} + \frac{1}{x}$} \NC \ruledhbox{$\setupmathstyle[#1,small]x + x_j^2 + x_i^{e^2} + \frac{1}{x

Re: [NTG-context] Creating TeX dimensions and counters registers directly in Lua

2012-08-22 Thread Hans Hagen
, else mkiv wouldn't work. \stoptext Here is the right code: \starttext \newdimen\mytexdimension \mytexdimension 100pt \ruledhbox to\mytexdimension{\the\mytexdimension} \ctxlua{document.myluadimension = 200pt} \ruledhbox to \cldcontext{document.myluadimension}{\cldcontext

Re: [NTG-context] Creating TeX dimensions and counters registers directly in Lua

2012-08-22 Thread Jaroslav Hajtmar
code: \starttext \newdimen\mytexdimension \mytexdimension 100pt \ruledhbox to\mytexdimension{\the\mytexdimension} \ctxlua{document.myluadimension = 200pt} \ruledhbox to \cldcontext{document.myluadimension}{\cldcontext{document.myluadimension}} \ctxlua{tex.dimen.mytexdimension = 300pt

Re: [NTG-context] Figured bass symbols in a text.

2012-08-12 Thread Robert Blackstone
On 10 aug. 2012, at 21:09, 19:59:36, Hans Hagen pra...@wxs.nl wrote The next beta has: \starttext \definelow [MyLow] [style=\txx] \definehigh [MyHigh] [style=\txx] \definelowhigh [MyLoHi] [style=\txx] \definelowmidhigh[MyLoMiHi][style=\txx] We have \ruledhbox

Re: [NTG-context] Figured bass symbols in a text.

2012-08-12 Thread Rogers, Michael K
[MyLoMiHi][style=\txx] We have \ruledhbox{\low {L}} and \ruledhbox{\MyLow {L}} and \ruledhbox{\high{H}} and \ruledhbox{\MyHigh{H}} and \ruledhbox{\lohi {L}{H}} and \ruledhbox{\MyLoHi {L}{H}} and \ruledhbox{\lomihi{L}{M}{H}} and \ruledhbox

Re: [NTG-context] Figured bass symbols in a text.

2012-08-10 Thread Hans Hagen
] \definelowhigh [MyLoHi] [style=\txx] \definelowmidhigh[MyLoMiHi][style=\txx] We have \ruledhbox{\low {L}} and \ruledhbox{\MyLow {L}} and \ruledhbox{\high{H}} and \ruledhbox{\MyHigh{H}} and \ruledhbox{\lohi {L}{H}} and \ruledhbox{\MyLoHi {L}{H

Re: [NTG-context] Figured bass symbols in a text.

2012-08-10 Thread Sietse Brouwer
[MyLoHi] [style=\txx] \definelowmidhigh[MyLoMiHi][style=\txx] We have \ruledhbox{\low {L}} and \ruledhbox{\MyLow {L}} and \ruledhbox{\high{H}} and \ruledhbox{\MyHigh{H}} and \ruledhbox{\lohi {L}{H}} and \ruledhbox{\MyLoHi {L}{H

Re: [NTG-context] \stretched

2012-07-08 Thread Willi Egger
provided. - What is wrong with the first line with the \hbox? This stretched text is as long as the second line and uses the whole text width. The third line has a width of 10cm as it seems. \ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use

Re: [NTG-context] \stretched

2012-07-05 Thread luigi scarso
width. The third line has a width of 10cm as it seems. \ruledhbox to 5cm{\stretched{to the limit}} means that the box has 5cm, but \stretched must use some horizontal size (i.e \hsize) to stretch the text. The twos are different lengths: it doesn't make much sense to strecth the text to the limit

[NTG-context] beta

2012-06-27 Thread Hans Hagen
into it). As they are often used for testing, \ruledhbox, \ruledvbox and \ruledvtop remained and all the others have been replaced by placeholders (and might go away). The \show* commands are mostly dummies (and will disappear) but these remain: \showmakeup \showallmakeup \showstruts \showglyphs Hopefully this doesn't

Re: [NTG-context] beta

2012-06-27 Thread Otared Kavian
. In the process of cleanup I kicked out some of the supp-* modules, most noticeably the visual debugger. That one has been replaced by another mechanism and a merge of some functionality already present in modules (and more might be moved into it). As they are often used for testing, \ruledhbox

Re: [NTG-context] [callbacks] proper registration, node subtypes

2012-06-26 Thread Hans Hagen
of glyphs,n) return head, done end nodes.tasks.appendaction (processors,before,thirddata.test.one) \stopluacode \ruledhbox to 10cm {\strut hello \ruledhbox{brave new} world \cleaders\hbox{!}\hfil} \stoptext

Re: [NTG-context] [callbacks] proper registration, node subtypes

2012-06-26 Thread Philipp Gesang
or { } thirddata.test.one = function(head) local head, done, n = processnestedlist(head,0) print(n of glyphs,n) return head, done end nodes.tasks.appendaction (processors,before,thirddata.test.one) \stopluacode \ruledhbox to 10cm {\strut hello \ruledhbox{brave new} world

Re: [NTG-context] [callbacks] proper registration, node subtypes

2012-06-26 Thread Hans Hagen
= thirddata.test or { } thirddata.test.one = function(head) local head, done, n = processnestedlist(head,0) print(n of glyphs,n) return head, done end nodes.tasks.appendaction (processors,before,thirddata.test.one) \stopluacode \ruledhbox to 10cm {\strut hello \ruledhbox{brave new} world

Re: [NTG-context] Math other issues for TL 2012

2012-06-05 Thread Hans Hagen
\setupbodyfont[xits] \starttext \setupmathematics[italics=1] x \ruledhbox{${\cal P}$} x \ruledhbox{${\cal P x}$} x\par % fontitalics \setupmathematics[italics=2] x \ruledhbox{${\cal P}$} x \ruledhbox{${\cal P x}$} x\par % fontdata \setupmathematics[italics=3] x \ruledhbox{${\cal P}$} x

[NTG-context] setupinterlinespace top and height relations

2012-04-02 Thread Eidenbenz Michael
zapf \endofshapebox \reshapebox{\hbox{\red\ruledhbox{\black\box\shapebox}}} \flushshapebox \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] [***SPAM***] How to remove white space?

2012-02-14 Thread Wolfgang Schuster
Am 14.02.2012 um 20:25 schrieb Peter Münster: Hello, Here you see some white space at the left and the right of .COM: \ss \framed[offset=overlay]{.COM} This space is part of the font. \setupbodyfont[sans] \starttext \dontleavehmode \ruledhbox{.}% \ruledhbox{C}% \ruledhbox{O}% \ruledhbox

  1   2   >