[NTG-context] Bugs in \framed

2019-09-06 Thread Henning Hraban Ramm
In ConTeXt ver: 2019.08.24 22:42 MKIV beta fmt: 2019.9.6 LuaTeX, Version 1.10.1 (i.e. today’s beta) * framecorner doesn’t work any more (all the same) * backgroundoffset is shifted downwards (used to be centered, but is wrong for a while) examples: \starttext {\setupframed[foregroundstyle

[NTG-context] Bug or not?

2019-05-16 Thread Hans van der Meer
the last two floats where [background=] changes the game.I wonder, is this intended behaviour? Or should one expect something different?\starttextTesting figure captions with \tex{setupframed[background="">\setupframed[background="">\placefigure[][]{\tex{setupframed[backgroun

Re: [NTG-context] Small pages and large framed texts

2019-03-21 Thread Willi Egger
poffset=10pt, > leftoffset=10pt, > location=paragraph, > frame=on] > > \startsetups [xml:setups:start] > \starttextbackground [SetupsParameter] > \stopsetups > > \startsetups [xml:setups:stop] > \stoptextbackground > \stopsetups > > \starttext > > \start

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Wolfgang Schuster
=paragraph, frame=on] \startsetups [xml:setups:start] \starttextbackground [SetupsParameter] \stopsetups \startsetups [xml:setups:stop] \stoptextbackground \stopsetups \starttext \startsection[title={Short Version of the Command}] \cmdshortsetup [setupframed] \cmdshortsetup

Re: [NTG-context] Small pages and large framed texts

2019-03-20 Thread Willi Egger
, that the framed pieces break over the page. \usemodule[x][set-11] \loadsetups[i-context] \setuppapersize[A6][A6] \setupbodyfont[pagella,rm,10pt] \starttext \startsection[title=hSort Version of the Command] \shortsetup{setupframed} \shortsetup{setupinteraction} \stopsection

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
command, say \defineframed \setupframed ... the concepts are the same (only a few commands for practical reasons behave different) And lately I often see here that setups are named like "foo:bar". What is the meaning of the double colon? variants (same command, different options) or

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

2018-10-18 Thread Hans Hagen
} \framed{\tfxx M} \framed{\tfd M} \stoptext where all the frames had the same size, but that’s only because you hardcoded it earlier in the file: \setupframed [offset=none, framecolor=red, rulethickness=0.01pt, width=12pt

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

2018-10-18 Thread Arthur Reutenauer
d M} \stoptext where all the frames had the same size, but that’s only because you hardcoded it earlier in the file: \setupframed [offset=none, framecolor=red, rulethickness=0.01pt, width=12pt, height=12pt] Notice how the width and hei

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

2018-10-17 Thread Arthur Reutenauer
glyph in the font has that length. It’s really a tautology, actually: if you take a font at size, say, 12pt, then the em space is 12pt wide. That’s the definition (at least in the TeX world). It’s less clear what you’re trying to do next: > \setupframed >

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

2018-10-16 Thread Pablo Rodriguez
out its size. Many thanks for your clear statement, Ulrike. Thomas Pinney explains why this might happen: http://www.thomasphinney.com/2011/03/point-size/. I cannot claim that I understand his explanation, but it seems that there is something about the em quad, which might be someth

Re: [NTG-context] general suggestion for ConTeXt documentation

2018-08-08 Thread Pablo Rodriguez
t;distance" in \setupnote does. > (Sometimes, when confronted with such information, I just play > around a bit with changing parameters and see what happens: sometimes > I discover the meanings, sometimes I don’t.) Lucky you, I have to play all the time to see what happens. I only l

Re: [NTG-context] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)

2018-08-08 Thread Robert Zydenbos
mation, I just play around a bit with changing parameters and see what happens: sometimes I discover the meanings, sometimes I don’t.) ‘\setupnote’ inherits from ‘\setupframed’. There one finds … profile = NAME empty = yes no … and similar questions arise: “what kind of profile?”, “what is

Re: [NTG-context] Table generator : Issues with borders and rotated cells

2018-06-27 Thread Wolfgang Schuster
{mp} {\useMPgraphic{mp_frame_right}} \installtopframerenderer{mp} {\useMPgraphic{mp_frame_top}} \installbottomframerenderer {mp} {\useMPgraphic{mp_frame_bottom}} \setupframed [ leftframecolor=\framedparameter{framecolor}, rightframecolor=\framedparameter{framecolor}, topfr

Re: [NTG-context] Fwd: Adding a parameter to a module

2018-03-23 Thread Henri Menke
t;> >> \roottitleparameter{foo} >> >> \titleparameter{foo} > > > What is there difference between these two \roottitleparameter{foo} and > \titleparameter{foo}? I searched through the source, but I'm still getting > acquainted with TeX and ConTeXt. :-D \framed[frame=off]{

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
amed inherits from \setupframed (as explained in tex/texmf-context/tex/context/interface/mkiv/i-context.pdf). \setupframedtext (which I don’t think is exactly the same as \setupframed) inherits from \setupplacement (which contains both keys before and after). That being said, I don’t know why before an

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread r . ermers
gt;> >> \startxmlsetups xlm:contact >> \setlayer[AddressBg] {\framed[width=55mm,height=30mm, >> align=right,background=color, >> backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} >> \strut >> ... >> \stopxmlsetups >> >> This works (see pd

Re: [NTG-context] letters in context mkiv

2017-08-01 Thread Schmitz Thomas A.
t,background=color, > backgroundcolor=lightgray]{\ss\xmlall{#1}{/address}}} > \strut > ... > \stopxmlsetups > > This works (see pdf), but there are probably other and better ways. > Have a look at the framed/setupframed command; they have foregroundstyle and foregroundcolor keys; that

Re: [NTG-context] problem with \startcolumns[distance=0pt]

2016-10-06 Thread Michael Witten
mkiv/page-mul.mkiv After a not-so-cursory review, it seems to me that the problem is a result of [probably erroneous] references [in various calculations] to the `offset' parameter, which is presumably a vestigial growth inherited from `\setupframed'. Fortunately, meddling by this `offset' parameter

Re: [NTG-context] (no subject)

2016-07-18 Thread Fabrice Couvreur
ced on the same baseline as the letter > A, in the example, then you have to tell ConTeXt to place a margin material > right after A, as in > > > A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > B \\ C > > and you can play with setupframed

Re: [NTG-context] (no subject)

2016-07-17 Thread Otared Kavian
with setupframed by choosing an option « low » or » high » according to your desire. Best regards: Otared > On 16 Jul 2016, at 23:23, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > Hi Kavian, > Okay, but I do not understand why the top of the framed can not

Re: [NTG-context] (no subject)

2016-07-16 Thread Fabrice Couvreur
etupfloat >[recipe] >[default={rightmargin,none,high}] > > \setupframed > [frame=on, >width=\rightmarginwidth, >align=justify, >offset=2pt, >location=low, >rulethickness=1pt, >framecolor=darkred, >corner=00] > > \showgrid > \show

Re: [NTG-context] (no subject)

2016-07-16 Thread Otared Kavian
] [figure] \setupfloat [recipe] [default={rightmargin,none,high}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \showgrid \showframe \starttext A\\ B \\ C \placerecipe

Re: [NTG-context] (no subject)

2016-07-15 Thread Fabrice Couvreur
[recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=justify, offset=2pt, location=low, rulethickness=1pt, framecolor=darkred, corner=00] \starttext \showframe A\\A\\A \placerecipe{}{\framed{La

Re: [NTG-context] (no subject)

2016-07-15 Thread Otared Kavian
xt in the boxes ? > Fabrice > > > \useMPlibrary [dum] > > \setuplayout > [width=13cm, >rightmargin=5cm] > > \setupbodyfont[pagella,11pt] > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe]

Re: [NTG-context] (no subject)

2016-07-15 Thread Fabrice Couvreur
, rightmargin=5cm] \setupbodyfont[pagella,11pt] \definefloat [recipe] [figure] \setupfloat [recipe] [default={rightmargin,none}] \setupframed [frame=on, width=\rightmarginwidth, align=flushleft, location=low, rulethickness=1pt, framecolor=blue, corner=00] \starttext

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
on right of the page. The numbering of the > chapters is fixed at 0, why ? > thank you, > Fabrice > > > ​ > \unexpanded\def\HeadTitle#1#2% > {\vbox \bgroup >\setupframed[offset=0.5em,frame=off] >\inframed[width=fit,align=right]{#1}% >\inframe

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
I wish the chapter title on right of the page. The numbering of the chapters is fixed at 0, why ? thank you, Fabrice ​ \unexpanded\def\HeadTitle#1#2% {\vbox \bgroup \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=right]{#1}% \inframed[width=fit,align=right]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Thank you Hans, the code would be : \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=left,frame=off]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Hans Hagen
On 7/6/2016 1:37 PM, Fabrice Couvreur wrote: Hello, In the manual, there is the macro below. Why theword "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1c

[NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Hello, In the manual, there is the macro below. Why the word "Matrice" is not on the same baseline as the number "1" ? thank you, Fabrice \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \setupframed[height=1cm,offset=0.5em,frame=on] \framed[width=fit,al

[NTG-context] Reviewing old messages

2016-05-16 Thread Meer, Hans van der
ut:\verbatim{\vbox{\hbox{abc}\hbox{xyz}}}\crlf \vbox{\hbox{abc}\hbox{xyz}}\blank \setupframed[width=0.7\textwidth] \leftaligned{these are in the command reference}\blank input:\verbatim{\framed[align=OPTION]{\hbox{abc}\hbox{xyz}}}\blank inner:\crlf \framed[align=inner]{\hbox{abc}\hbox{xyz}}\bla

Re: [NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Wolfgang Schuster
Bou Salim <mailto:salimcol...@gmail.com> 26. Februar 2016 um 12:44 I'm trying to learn `context`, and I'm satisfied with their capacities. I read in contextgarden <http://wiki.contextgarden.net/Command/setupbackgrounds> that options of `\setupbackgrounds` inherit from `\setupframe

[NTG-context] Is there “toffset” option for \setupbackgrounds in context

2016-02-26 Thread Bou Salim
I'm trying to learn `context`, and I'm satisfied with their capacities. I read in contextgarden <http://wiki.contextgarden.net/Command/setupbackgrounds> that options of `\setupbackgrounds` inherit from `\setupframed`, but if I setup `toffset=5mm` for `\setupbackgrounds[text][text]

[NTG-context] footnote coloring

2015-09-06 Thread dr. Hans van der Meer
in the text is the only element that gets colored because of the [textcolor=red] parameter setting.In the command reference it is [numbercommand=\rednumber]. Shouldn't that have made the color of the footnotenumber below?Since \setupfootnotes inherits from setupframed I expected [foregroundcolor=red

Re: [NTG-context] footnote coloring

2015-09-06 Thread Pablo Rodriguez
ber]. Shouldn't > that have made the color of the footnotenumber below? > > Since \setupfootnotes inherits from setupframed I expected > [foregroundcolor=red] to do the trick for the content of the footnote, > but it doesn't. > > How to? Hi Hans, this setup works fine in MkIV:

[NTG-context] footnotes in floating tables

2015-07-19 Thread Henry House
={\blank[0cm]},spaceafter=2ex,spacebefore=1ex,headstyle=\sc] \setupTABLE[frame=off,offset=0ex] \setupTABLE[c][distance=0.6em] \def\tableheadrulethickness{1.0pt} \defineframed[footnoteframed]\setupframed[footnoteframed][width=\hsize,frame=off,align=right,top=\hbox\bgroup,bottom=\egroup

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 16 Jul 2015 22:35:45 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Use the foregroundstyle key to change the interlinespace. Works like a charm. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed It has the equivalent

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد mailto:idris.ha...@colostate.edu 17. Juli 2015 19:56 On Thu, 16 Jul 2015 22:35:45 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Works like a charm. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed

Re: [NTG-context] What is a better way to do this macro?

2015-07-17 Thread Idris Samawi Hamid ادريس سماوي حامد
. Question: Should the wiki page be edited: http://wiki.contextgarden.net/Command/setupframed It has the equivalent of foregroundstyle = name Shouldn't that be changed to foregroundstyle = command Originally I looked for keys mapped to command so I tried bottom and top because and those are the only

Re: [NTG-context] How to implement a head like this?

2015-07-04 Thread 土卜皿
in titles http://pmrb.free.fr/contextref.pdf , there is a snippet, which seemly helps me, the following code: \setupcolors[state=start]\setuppagenumbering[location=footer, right]\unexpanded\def\HeadTitle#1#2%{\hbox to \hsize \bgroup\hfill\setupframed[height=5cm,offset=.5em,frame=off,backgroundcolor

[NTG-context] creating multiline paragraph in \tabulate

2015-05-19 Thread John Culleton
Classifications} \setupframed[framecorner=rectanglular,background=none] \tfx \placetable[force,none]{} \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|] \HL ... \NC Housewares \NC Gourmet pots and pans and other cookware, with some impulse\NC\NR \NC \null \NC and companion food items \NC\NR ... \HL

Re: [NTG-context] creating multiline paragraph in \tabulate

2015-05-19 Thread Aditya Mahajan
{\bf Figure 2.3: Specialty Food Store Classifications} \setupframed[framecorner=rectanglular,background=none] \tfx \placetable[force,none]{} \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|] Simply use p(.75\textwidth) \setupcaption[table][location=top] \starttext \startplacetable

Re: [NTG-context] slanting an intermezzo.

2015-03-26 Thread Otared Kavian
\input knuth.tex \stopframedtext} \input knuth.tex \input knuth.tex \input knuth.tex \stoptext end tilted-framed.tex Best regards: OK On 25 Mar 2015, at 22:36, John Culleton j...@wexfordpress.com wrote: \starttext \setupframed[background=screen,framecorner=rectangular

[NTG-context] slanting an intermezzo.

2015-03-25 Thread John Culleton
do I cause it to lean to the left about 3 degrees? -- \starttext \setupframed[background=screen,framecorner=rectangular,backgroundscreen=0.70] \placeintermezzo[right,none]{} \startframedtext[width=3in] \centerline {\bf RECIPE FOR SUCCESS

[NTG-context] setting columns in a text frame.

2015-03-22 Thread John Culleton
: --- \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \starttext \placeintermezzo[center,none]{} \starttext \startframedtext[] [width=\hsize] \centerline{\ss\tfb Interest in Green, Organic, and Local

Re: [NTG-context] setting columns in a text frame.

2015-03-22 Thread Wolfgang Schuster
is blank. here is my code: --- \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \starttext \placeintermezzo[center,none]{} \starttext

[NTG-context] Word wrap around framed text.

2015-03-19 Thread John Culleton
costs of approximately \$35,000 to \$100,000 and more each year for the first three to five years. This includes production, packaging, labeling, advertising, and promotion of one product. It does {\it not} \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70

[NTG-context] PLacing framed text.

2015-03-18 Thread John Culleton
I know how to place an intermezzo, e.g. \starttext \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \placeintermezzo[right]{} \startframedtext[width=3.2in

Re: [NTG-context] Get rid of caption on an intermezzo.

2015-03-04 Thread John Culleton
a title like intermezzo 1 at the bottom. How do I get rid of this title? For the curious here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em

Re: [NTG-context] Problem with framed text.--addendum

2015-02-25 Thread John Culleton
be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round

[NTG-context] Get rid of caption on an intermezzo.

2015-02-25 Thread John Culleton
here is my code segment to date: \setupframed[framecorner=round, frameradius=1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \definefloat[intermezzo]{ } \kern 5em\placeintermezzo[right]{} \startframedtext[width=3.2in

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread John Culleton
On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan adit...@umich.edu wrote: On Feb 21, 2015, at 12:35 PM, John Culleton j...@wexfordpress.com wrote: In several palces I want to set up framed text with a gray background and rounded corners. Here is my \setupframed description

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread Pablo Rodriguez
On 02/22/2015 01:55 PM, John Culleton wrote: On Sat, 21 Feb 2015 14:16:31 -0500 Aditya Mahajan wrote: [...] There should be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread John Culleton
. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius=0.1em, corner=round, radius=0.1em] Radius, framedradius and backgroundradius

Re: [NTG-context] Problem with framed text.

2015-02-22 Thread Wolfgang Schuster
be a comma after 0.1. With respect, I don't think so. Commas separate parameters. the last 0.1 is properly followed by a ]. Hi John, this should work: \setupframed[framecorner=round, frameradius=0.1em, background=screen, backgroundscreen=0.70, backgroundcorner=round, backgroundradius

Re: [NTG-context] Problem with framed text.

2015-02-21 Thread Aditya Mahajan
On Feb 21, 2015, at 12:35 PM, John Culleton j...@wexfordpress.com wrote: In several palces I want to set up framed text with a gray background and rounded corners. Here is my \setupframed description: \setupframed[ framecorner=round, frameradius=0.1, background=screen

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Wolfgang Schuster
) using the offset or perhaps backgroundoffset options of \setupframed). Use text backgrounds. \definetextbackground [SummaryBackground] [frame=off, background=color, backgroundcolor=gray] \definehead[summary][section] \setuphead [summary] [before=, beforesection={\blank

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
it (above,below,left,right) using the offset or perhaps backgroundoffset options of \setupframed). Greetings, Rob ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] framed and placefigure

2014-10-26 Thread DesdeChaves
why this happens: After a specification of the foregroundcolor the figures are behind a framed color. \setupframed[offset=2mm, corner=round, background=color, backgroundcolor=blue, foregroundcolor=yellow, frame=off, strut=no, align=normal, location=top

Re: [NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-16 Thread Hans Hagen
,width=277mm,distance=10mm,after={\blank[10mm]}] \setupframed[offset=1.0mm,background=color,rulethickness=0.25pt,backgroundcolor=white,framecolor=lightgray] \starttext \startsection [title={title text}] \placefigure[here][nonumber] {\vspace more text} {\startcombination

[NTG-context] Trying to emulate CSS object-fit behaviour...

2014-10-15 Thread Stuart Hungerford
]}] \setupframed[offset=1.0mm,background=color,rulethickness=0.25pt,backgroundcolor=white,framecolor=lightgray] \starttext \startsection [title={title text}] \placefigure[here][nonumber] {\vspace more text} {\startcombination {\framed[] {\externalfigure[1.pdf

Re: [NTG-context] Using TABLE in a definition etc.

2014-08-17 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear Knights, Solved (I think): \def\Glyphbox#1#2#3{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \csname gulistan#1\endcsname \fontchar{#2} \eTD \eTR \bTR \bTD \fontchar{#2} \eTD \eTR \bTR \bTD #1 \eTD \eTR \bTR \bTD #3 \eTD

Re: [NTG-context] Using TABLE in a definition etc.

2014-08-17 Thread Wolfgang Schuster
Am 17.08.2014 um 18:59 schrieb Idris Samawi Hamid ادريس سماوي حامد isha...@colostate.edu: Dear Knights, Solved (I think): \def\Glyphbox#1#2#3{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \csname gulistan#1

[NTG-context] Using TABLE in a definition etc.

2014-08-16 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, I'm trying to setup a definition that uses a natural table and could use some guru help. Here is what I have so far: === \def\Glyphbox{% \setupframed[frame=off,align=middle,offfset=none] \framed{\cbox{ \bTABLE[align=middle] \bTR \bTD \gulistan#1 \fontchar{#2} \eTD \eTR

Re: [NTG-context] Alignment, indenting and font inside floats

2014-07-28 Thread Rik Kabel
}] \setupindenting[yes, \the\baselineskip] %\definefontfamily [figurefamily] [serif] [Latin Modern Sans] %\setupfloats [align=middle, style={\switchtobodyfont[figurefamily]}, indenting=no] \setupcaptions [style=ss] \setupframed[style=it] \starttext \input knuth \startplacefigure[title

[NTG-context] \framed versus \inframed

2014-07-22 Thread Herbert Voss
I'd expect a double frame for a nested \inframed, too. And also fog in the last row always on the baseline fort \inframed. \starttext foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog \setupframed[strut=no] fog\framed{\framed{fog

Re: [NTG-context] \framed versus \inframed

2014-07-22 Thread Hans Hagen
\setupframed[strut=no] fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog \stoptext \inframed{\framed{fog}} inframed is in fact a locator option (location=low) (you can look at \installframedlocator in pack-rul.mkiv for more of them; in practice these manipulate ht/dp and shift up and down a bit

[NTG-context] frames, hrule, vfill and pagebreaks (was: Vertically stretched split table)

2014-04-08 Thread Joshua Krämer
this example: \setuplayout [backspace=10mm, width=middle, topspace=10mm, height=middle, header=0mm, headerdistance=0mm, footer=1mm, footerdistance=0mm] \setupframed[frame=on,framecolor=green,location=middle,align=right] \define [2] \Tabline { \hrule \page[no] \vfill

[NTG-context] narrowered columns on background image?

2014-02-12 Thread Rudolf Bahr
\stopnarrower } \starttext \vbox to .4\textheight{\externalfigure[moe]} \vskip-.35\textheight \txt %---2. example- \vskip.3\vsize \useexternalfigure[muh][cow.pdf][width=\overlaywidth, height=\overlayheight] \setupframed[height=.4\vsize, width=\hsize] \defineoverlay [muh

[NTG-context] Need help defining command.

2013-10-22 Thread Keith J. Schultz
}] %% % % %% NassiSimpleFrame %% %% Frame for putting a frame around it. %% Location is set so that they can be stack %% on top of each other. \defineframed[NassiSimpleFrame] \setupframed[NassiSimpleFrame] [width=5cm, frame=off, background=NassiSimpleFrameBox, rulethickness=1pt, framecolor=blue

[NTG-context] ConTeXt Manual Errata

2013-09-18 Thread Thangalin
, introduce all the items used in the logo a little earlier (e.g., setupframed). General Suggestions === Indent the ConTeXt code fragments Give ConTeXt code fragments numbers and refer to them by number. Having two different page numbers is confusing

Re: [NTG-context] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-26 Thread Pavneet Arora
, height=3.33in, header=0in, footer=0in] \setuparranging[XY] \setupframedtexts [width=\textwidth, height=\textheight, frame=off, location=lohi, offset=0pt] \setupframed [frame=off, width=\textwidth, height=\textheight

Re: [NTG-context] Using \setupinterlinespace with \setuparranging[XY], and more

2013-06-25 Thread Wolfgang Schuster
this alignment setting? The global settings for \framed are changed with the \setupframed command, the \setupframedtext commands changes the values for \startframedtext. 3. I cannot get interlinespacing to affect the line spacing even though the baselineskip variable is changed as shown in the MWE. You

Re: [NTG-context] Side-by-side framed text blocks

2013-06-07 Thread honyk
as on the referenced examples. Use a combination for that: \setuptolerance [verytolerant] \setupframed [offset=none, width=8cm, frame=off, background=screen] \definefontfeature [default] [default] [protrusion=pure] \starttext \startcombination \startcontent

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
On 2013–06–06 honyk wrote: I'd like to type two blocks of text with different 'align' settings side by side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input knuth\par\stopframed

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread honyk
Dear Marco, I'd like to type two blocks of text with different 'align' settings side by side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input knuth\par\stopframed

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Aditya Mahajan
On Fri, 7 Jun 2013, honyk wrote: Dear Marco, I'd like to type two blocks of text with different 'align' settings side by side. Here's one way to do it: \setupframed [offset=1ex, width=8cm, frame=off] \starttext \placesidebyside {\startframed[align={normal,left}] \input

Re: [NTG-context] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
a combination for that: \setuptolerance [verytolerant] \setupframed [offset=none, width=8cm, frame=off, background=screen] \definefontfeature [default] [default] [protrusion=pure] \starttext \startcombination \startcontent \startframed [align=normal] \input knuth

[NTG-context] Help understanding framed!

2013-05-20 Thread Keith J. Schultz
. Thanx for any help. regards Keith. MWE: \useMPlibrary [txt] \input {Nassi.tex} \defineframed[MyBoxit][framed] \setupframed[MyBoxit] [%background=Statement,% frame=none,% width=10cm,% align=right,% location=top,% framecolor=yellow,% rulethickness=2pt,% %backgroundcolor=white

Re: [NTG-context] width=local broken?

2013-03-12 Thread Hans Hagen
][A7,landscape] \setupbodyfont[8pt,ss] \setupcolors[state=start] \setupframed[framecolor=blue] \showframe \starttext \framed[width=\hsize,align=middle]{width=hsize} \startitemize \setlocalhsize \item \framed[width=\hsize,align=middle] {width=hsize} \item \framed[width=broad,align=middle] {width

[NTG-context] width=local broken?

2013-03-11 Thread reviczky
[state=start] \setupframed[framecolor=blue] \showframe \starttext \framed[width=\hsize,align=middle]{width=hsize} \startitemize \setlocalhsize \item \framed[width=\hsize,align=middle] {width=hsize} \item \framed[width=broad,align=middle] {width=broad} \item \framed[width=local,align=middle

[NTG-context] Arranging framed text without gaps

2013-02-28 Thread Matthias Weber
playing around without much success with the various tables, I came up with the following which is not exactly ConTeXt-like: \setupframed[ width=5cm, height=4cm, location={middle}, align={center,middle} ] \setupbodyfont[24pt

Re: [NTG-context] Arranging framed text without gaps

2013-02-28 Thread Aditya Mahajan
How do I -- achieve the desired layout (exact dimensions, frames, no gaps) the right way, -- without gaps between horizontal rows \setupframed [ overlay=none, ... ] -- with text centered in the frames also in MkIV? .. align={middle,middle}, Aditya

Re: [NTG-context] Arranging framed text without gaps

2013-02-28 Thread Matthias Weber
Thanks! Matthias On Feb 28, 2013, at 5:56 PM, Aditya Mahajan adit...@umich.edu wrote: How do I -- achieve the desired layout (exact dimensions, frames, no gaps) the right way, -- without gaps between horizontal rows \setupframed [ overlay=none, ... ] -- with text

[NTG-context] Tikz backgrounds (was Re: Highlight current chapter in list)

2012-11-08 Thread Aditya Mahajan
) -- (\overlaywidth,\overlayheight) -- (0,\overlayheight) -- cycle;} \stoptikzpicture} \defineoverlay[decoration][\TIKZdecorationoverlay] \setupframed [decoration=snake] \starttext \framed[frame=off, rulethickness=3bp, background=decoration, backgroundoffset=3mm, framecolor=red, align

Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen
reset, some not. One complication with externalfigures is that scaling can depend on combinations (width, maxwidth etc). This is not much different from \setupframed .. when someone uses that one global all kind of derived mechanisms get affected. (In fact, there are many such global settings

Re: [NTG-context] Struggling with ConTeXt

2012-08-21 Thread Aditya Mahajan
[...][offset=overlay]. See http://wiki.contextgarden.net/Command/setupframed for details. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] Need help

2012-07-18 Thread Shiv Shankar Dayal
Hi, Mu current chapter setup is as below: \def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=3cm,align=left]{#1}}% \tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}% \egroup} \setuphead [chapter] [color=green1, textstyle=, align

Re: [NTG-context] framed \\

2012-07-05 Thread Henning Hraban Ramm
2012/7/5 Aditya Mahajan adit...@umich.edu: Without align={normal|middle|left|right}, \framed is equal to \hbox. You cannot have line breaks in a \hbox. With align=something, \framed is a \vbox, so you can have line breaks. Thank you, it’s wikified. (Command reference on \setupframed

Re: [NTG-context] xtable

2012-06-22 Thread Meer, H. van der
{% \doifinset{t}{#1}{#3[topframe=#2]}% \doifinset{b}{#1}{#3[bottomframe=#2]}% \doifinset{l}{#1}{#3[leftframe=#2]}% \doifinset{r}{#1}{#3[rightframe=#2]}% } ..#2 being \setupxtable or \setupframed, just as needed \doifnot{\xmlatt{#1}{frameon}}{\empty}% {#2[frame=off]\setframeparts{\xmlatt{#1}{frameon

Re: [NTG-context] xtable

2012-06-22 Thread Wolfgang Schuster
also thead tr td and so on. \def\setframeparts#1#2#3{% \doifinset{t}{#1}{#3[topframe=#2]}% \doifinset{b}{#1}{#3[bottomframe=#2]}% \doifinset{l}{#1}{#3[leftframe=#2]}% \doifinset{r}{#1}{#3[rightframe=#2]}% } ..#2 being \setupxtable or \setupframed, just as needed \doifnot{\xmlatt{#1

Re: [NTG-context] xtable

2012-06-22 Thread Meer, H. van der
On 22 jun. 2012, at 12:48, Wolfgang Schuster wrote: You should also know that each xtable cell is a framed (it uses the \framed code) like natural tables and \setupxtable accepts the same arguments as \setupframed. I knew already, which is what me did develop the macros. No need to give

Re: [NTG-context] [dev-context] bTABLE in header and document give unexpected behavior

2012-06-11 Thread Wolfgang Schuster
\framed uses \linewidth for “rulethickness” and natural tables assign a different value to this length, this results in wrong rules in the header when you don’t change the value (see example below). Here is a better version for the header of your document. \startsetups[header] \setupframed[width

Re: [NTG-context] overscored or overlined text … (or whatever it should be called)

2012-01-25 Thread Hans Hagen
. \overbar{test} btw, never do a \setupframed globally as it will infect many derived frames components ... best do a \defineframed ... then Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] spaceskip in \framed bug

2011-12-29 Thread Idris Samawi Hamid ادريس سماوي حامد
: == \startsetups stretchline \spaceskip=0pt plus 2 fill \relax \stopsetups \setupframed[frame=on,width=\textwidth,setups=stretchline, offset=none,location=depth,align=l2r] \showframe \starttext \framed{This is a test.} \stoptext == Best wishes Idris

Re: [NTG-context] spaceskip in \framed bug

2011-12-29 Thread Idris Samawi Hamid ادريس سماوي حامد
\startsetups stretchline \spaceskip=0pt plus 2 fill \relax \stopsetups \setupframed[frame=on,width=\textwidth,setups=stretchline, offset=none,location=depth,align=l2r] \showframe \starttext \framed{This is a test.} \stoptext === This is LuaTeX, Version beta

[NTG-context] spaceskip in \framed bug

2011-12-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, The following used to work in mkiv, but no longer (works in mkii): === % stretchline.tex \startsetups stretchline \spaceskip=0pt plus 2 fill \relax \stopsetups \setupframed[frame=on,width=\textwidth,setups=stretchline, offset=none,location=depth

[NTG-context] Layout: partial width blocks

2011-11-23 Thread Peter Park Nelson
\ArticleTitle#1#2% {\hbox to \hsize\bgroup \setupframed[frame=off]% \tbox{\framed[offset=0pt,width=.8\makeupwidth,align=right]{#2}}% \hfill \egroup} \setuphead[title][% header=high, before={\hbox{}\blank[5mm]\vfill{}}, after={\hbox{}\blank[5mm]\vfill{}}, command=\ArticleTitle

Re: [NTG-context] stacking marginal notes

2011-11-04 Thread Idris Samawi Hamid ادريس سماوي حامد
project: = \setupmargindata[inmargin][stack=yes] \setupmarginframed[inmargin][stack=yes] I don’t have time to look at your problem but the stack parameter has to bet set with \setupmargindata, \setupmarginframed supports only options from \setupframed (because it’s

Re: [NTG-context] stacking marginal notes

2011-11-04 Thread Hans Hagen
supports only options from \setupframed (because it’s the command to change the values of the internal \localframed command). Sure, was just trying each to make sure I wasn't missing anything ... and I truly _appreciate_ the invaluable detailed explanations! Hans, can you say something about

  1   2   3   >