; > • 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
;
> > • 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
> &
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
>
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
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
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
(and different linebreaking).
> >
> > \showglyphs
> >
> > \startTEXpage[offset=1ex]
> > \ruledhbox{$\overline {OA} = \overbar {OA} = 4.2$}
> > \par
> > \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$}
> > \par
>
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
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
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
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
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
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
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
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
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
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
EXpage[offset=1dk]
\dontleavehmode\ruledhbox{\framed
[framecolor=red,
framecorner=#1,
frameradius=\zeropoint]
{TEST #1}}
\ruledhbox{\framed
[framecolor=red,
framecorner=#1,
frameradius=5pt]
{T
data = {
[ '¿' ] = { 0, 400 },
[ '¡' ] = { 0, 400 },
}
}
\stopluacode
\definefontfeature[ktest][gpos_test=yes]
\starttext
\startTEXpage[offset=1em]
\ruledhbox{¿? xx ¡!}
\addfeature{ktest}
\rule
\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
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
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
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
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
{.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
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
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
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
]
{\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
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
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}
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
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
{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
(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
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
{\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
{$
{\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
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
[...]
\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
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
\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
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
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
, 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
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
(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
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}
> >>
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
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
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
, 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
‘\'”.
\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
\ruledhbox with \ruledvbox).
\startxmlsetups xmlcommon
\xmlsetsetup{\xmldocument}{table|tbody|tr|td}{xmlcommon:*}
\stopxmlsetups
\xmlregistersetup{xmlcommon}
\startxmlsetups xmlcommon:table
% \removeunwantedspaces
\startembeddedxtable
\xmlflush{#1
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
% \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
=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
,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
\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
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
}{
שלום (אני) כותבשלום (אני) $ $ כותבשלום (אני) $x$ כותבשלום (אני)
\ruledhbox {hans כותבשלום}
(אני) כותבשלום (אני) כותבשלום (אני) כותבשלום (אני) כותבשלום
(אני) כותבשלום (אני) כותבשלום (אני) כותב
}
\par
}
\stopbuffer
\setupalign[r2l,verytolerant]
\start
\setupdirections[bidi
, 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
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
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
)
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
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
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
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
\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
=\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
[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
;
\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
$
\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
\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
[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
.*]
\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
.
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
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
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
+ 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
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
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
,
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
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
, 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
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
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
[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
]
\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
[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
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
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
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
. 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
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
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
= 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
\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
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
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 - 100 of 159 matches
Mail list logo