[NTG-context] Re: collector advice

2024-09-12 Thread jbf
][width=5cm,frame=off]} \setcollector [example] [corner={right,bottom},location={right,top}] {\rotate[rotation=90]{\framed[frame=off]{\tfxx Taken by Kathy Luck, used with permission}}} \leftaligned{\composedcollector{example}} Julian On 13/9/24 02:26, Wolfgang Schuster wrote: jbf schrieb am

[NTG-context] Re: collector advice

2024-09-12 Thread Wolfgang Schuster
,frame=off]}} Remove \leftaligned. \setcollector [example] [corner={right,bottom},location={left,top}] {\rotate[rotation=90]{\framed[frame=off]{\tfx Taken by Kathy Luck, used with permission}}} \placefigure [] [] {} {\composedcollector{example}} \placefigure {} {\leftaligned{composedcollect

[NTG-context] collector advice

2024-09-11 Thread jbf
e] [corner={right,bottom},location={left,top}] {\rotate[rotation=90]{\framed[frame=off]{\tfx Taken by Kathy Luck, used with permission}}} \placefigure [] [] {} {\composedcollector{example}} The pic goes beneath a poem which is left aligned, so I want the photo to be left aligned, and relatively sm

[NTG-context] Re: understanding units / dimensions

2024-08-25 Thread Henning Hraban Ramm
alue. * lw hs lw stands for \linewidth which is the default value for rulethickness in \framed etc. I mixed up \linewidth with \textwidth, thought the one was LaTeX and the other \ConTeXt, since we’re talking about rulewidth otherwise. hs is just \hsize. Then it makes sense. * ph vh ph

[NTG-context] Re: understanding units / dimensions

2024-08-25 Thread Wolfgang Schuster
getbuffer[dimensions] \stoptext * lw hs lw stands for \linewidth which is the default value for rulethickness in \framed etc. hs is just \hsize. * ph vh ph is \paperheight. vh doesn't exist. Wolfgang _

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
Hi, Finally got it working with:; \setupcolors[state=start] \definecolor [maincolor] [r=, g=.5, b=.7] \define[2]\MyChapterCommand {\framed[align=flushright, width=\textwidth, frame=off]{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} \framed[backgroundcolor=maincolor, background=color

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
Hi, My final version is below: \setupcolors[state=start] \definecolor [maincolor] [r=, g=.5, b=.7] \define[2]\MyChapterCommand {\framed[align=flushright, frame=off]{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} \framed[backgroundcolor=maincolor, background=color, frame=off

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Shiv Shankar Dayal
}} \framed[backgroundcolor=maincolor, background=color, frame=off, foregroundcolor=white, foreground=color, style=\bfd]{#1} \blank#2} \setuphead[chapter][command=\MyChapterCommand] \setupheadtext[chapter=Chapter] \starttext \chapter{Hello world} \stoptext The size of chapter no. is too small and I would

[NTG-context] Re: Customizing chapter titles

2024-08-06 Thread Henning Hraban Ramm
\framed and \rotate with \offset. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl

[NTG-context] Re: Alignments of margin notes

2024-08-02 Thread Wolfgang Schuster
use of \framed? Hi Gerion, there is an \ifinframed conditional, such as in: ... This may help to achieve what you want. Just in case it helps, Thanks for the answer, but we misunderstood. I'll try to formulate it clearer: If I get it right, to set margin notes, you need to sp

[NTG-context] Re: Customizing chapter and page no. styles

2024-08-02 Thread Duncan Hothersall
yscaled 1cm ; \stopuseMPgraphic \defineoverlay[circled][\useMPgraphic{circled}] \def\Circled#1% {\framed [background=circled,frame=off,offset=overlay] {\color[darkred]{#1}}} \setuppagenumbering[location=] \setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}] and for

[NTG-context] Re: Alignments of margin notes

2024-08-02 Thread Gerion Entrup
Am Freitag, 2. August 2024, 07:42:29 MESZ schrieb Pablo Rodriguez via ntg- context: > On 8/2/24 01:13, Gerion Entrup wrote: > > Ok, I think I understand that in principal. Thanks for the explanation. > > Can I somehow know in advance that a margin note makes use of \framed?

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Pablo Rodriguez via ntg-context
On 8/2/24 01:13, Gerion Entrup wrote: > Ok, I think I understand that in principal. Thanks for the explanation. > Can I somehow know in advance that a margin note makes use of \framed? Hi Gerion, there is an \ifinframed conditional, such as in: \starttext \framed{\ifinframed a\els

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Gerion Entrup
rates: > > > > significant in­ > > credible com­ > > ponents > > > > In general: > > Does the "align" argument in setupmargindata has a meaning at all? > > The align key works and the output is correct but the problem in this > case is a

[NTG-context] Re: Alignments of margin notes

2024-08-01 Thread Wolfgang Schuster
controlled with the margindata mechanism has style and align options. 2. In addition to the placement mechanism some of the margin texts make use of \framed for the content. Because not all margin texts should make use \framed this is optional and controlled with an extra setup-command. The sepa

[NTG-context] Re: roman numerals frontpart

2024-06-25 Thread jbf
=] \setupfooter [style=normal] \setupfootertexts [{\framed[width=max,frame=off,boffset=2mm]{\pagenumber}}] \stopsetups How can I continue to use the setup but still get my roman numerals in the frontpart? Julian On 26/6/24 10:52, jbf wrote: Something that has worked for me in the past

[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
ust" works: > > ``` > > \startbuffer > > This is a test \stacking [1] {and a proof} of \stacking [2] {concept} > > indeed. > > \stopbuffer > > ... > > \setupstacking[criterium={1-}] > > ``` > > > > I also wondered,

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
{1:2,201},{1:3,301},{1,2,4},{1-5},{1-6},{1-7}] %D \startTEXpage %D \startstacking[1] \framed{ONE}\stopstacking %D \startstacking[2] \framed{TWO}\stopstacking %D \startstacking[201] \framed{MORE} \stopstacking %D \startstacking[3] \framed{

[NTG-context] Re: Transparency in external PDFs does not work

2024-06-17 Thread Hans Hagen
Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - \starttext \startTEXpage[offset=1pt] \colored[a=1,t=.5,r=

[NTG-context] Re: Pocket Diary Photo Calendar: how to specify on which day the week begins?

2024-06-15 Thread Michael Guravage
MPgraphic{Moon::Growing_moon}] \defineoverlay[newmoon][\useMPgraphic{Moon::Newmoon}] \defineoverlay[fullmoon][\useMPgraphic{Moon::Fullmoon}] \defineframed [Moon] [height=\bodyfontsize, width=\bodyfontsize, frame=off] % \starttext % Results with \type{framed} % % \blank % % Heute ist abnehmender Mond {

[NTG-context] Re: background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
On Thu, 6 Jun 2024, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 06.06.2024 um 14:48: > > Hi, > > > > I am testing some of my old styles on latest context and find that the > > background key of \startbackground and \starttextbackground doesn't work >

[NTG-context] Re: background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 06.06.2024 um 14:48: Hi, I am testing some of my old styles on latest context and find that the background key of \startbackground and \starttextbackground doesn't work (\framed is working as expected). Here is a MWE: 1. \starttextbackground isn't based

[NTG-context] background= key not working in \startbackground and \starttextbackground

2024-06-06 Thread Aditya Mahajan
Hi, I am testing some of my old styles on latest context and find that the background key of \startbackground and \starttextbackground doesn't work (\framed is working as expected). Here is a MWE: \startuseMPgraphic{background:test} fill OverlayBox withcolor 0.75[red,white];

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread Kip Warner
; > \setuptexttexts  [margin] [] > > [\marginframe{\hbox orientation 1 > > {DRAFT}}] > > [\marginframe{\hbox orientation 1 > > {DRAFT}}] > > There is no need for low level option when you use \rotate, e.g. > > [\ma

[NTG-context] Re: Draft vertical text in margins

2024-06-03 Thread Wolfgang Schuster
is no need for low level option when you use \rotate, e.g. [\marginframe{\rotate[rotation=270]{DRAFT}}] \framed has a orientation key but it's not so easy to use in this case because you have to set length for width and height, e.g. \defineframed [marginframe] [width

[NTG-context] Re: framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
Forget this question: location=top did the trick. Should have found earlier. Rest of the day contemplating over the fact it took me so long to find out 🥲 yours sincerely dr. Hans van der Meer > On 31 May 2024, at 12:13, Hans van der Meer via ntg-context > wrote: > > I have no problem of ali

[NTG-context] framed boxes top aligned howto?

2024-05-31 Thread Hans van der Meer via ntg-context
I have no problem of aligning two or more \framedtext boxes bottomwise on the baseline, nor centering them vertically within a \vcenter. But I do not succeed in placing them with their top aligned without the following trick: typeset them in a box, determine largestheight and then typeset again

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
for one the the argument? All in all, the correct documentation would be: > Command to use for typesetting the title. First argument is the number, > second the title text. Styling of these parameters can be achieved only by > specifying style=. > > ## Line breaks + ## Framed > > Ho

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Tomáš Hála
Hi Gebrion, > ## Font size + ## Bold text for font size etc., you can use \setuphead [chapter] [style={\setupbodyfont[11pt]}] or \setuphead [chapter] [style=\tf] \setuphead [chapter] [style=\bf] > ## Line breaks + ## Framed > How can I achieve line breaks? \define[2]\

[NTG-context] Re: setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
; ``` > > ## Makeups > > The best solution, I had so far, was to define a makeup, but I don't get it > to work with text with mixed alignment and it does not solve the font size > problem: > ``` > \definemakeup[chapter][align=left, top=] > \define[2]\MyChapter{% &g

[NTG-context] setuphead in connection with the command argument

2024-05-30 Thread Gerion Entrup
pmakeup (\structureuservariable{intro}) } ``` (see 5.pdf) ## Framed I also have tried this but it does not bring any linebreaks: ``` \define[2]\MyChapter{% \framed[frame=off, offset=0pt]{#1\\#2:\\ \structureuservariable{subtitle}\\ (\structureuservariable{intro})} } ``` (see 6.pdf)

[NTG-context] Re: Number in a circle

2024-05-28 Thread Wolfgang Schuster
Kip Warner schrieb am 28.05.2024 um 06:29: On Mon, 2024-05-27 at 19:44 +0200, Wolfgang Schuster wrote: You can use the \framed solution and modify it to use a metapost graphic as background, it also easy to replace the circle with a hexagon etc. \startuseMPgraphic{textcircle} draw

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 19:44 +0200, Wolfgang Schuster wrote: > You can use the \framed solution and modify it to use a metapost > graphic as background, it also easy to replace the circle with a > hexagon etc. > > \startuseMPgraphic{textcircle} > draw fullcircle

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
but it's a bit annoying that I have to create an SVG of just a circle and store it somewhere. I'm fine with using MetaPost, especially if it makes this easier, but I just don't know how. You can use the \framed solution and modify it to use a metapost graphic as background, it also eas

[NTG-context] Re: Number in a circle

2024-05-27 Thread Kip Warner
On Mon, 2024-05-27 at 19:28 +0200, Wolfgang Schuster wrote: > TeX complains about the value ".5fw" for the radius key. Hans added > last year the function to add new units to ConTeXt and I used it to > set the radius to half of the width of the framed box. > > Use the

[NTG-context] Re: Number in a circle

2024-05-27 Thread Wolfgang Schuster
set the radius to half of the width of the framed box. Use the following version of the setup for the frame which works with older ConTeXt installations because it doesn't use the feature. \defineframed [textcircled] [ width=1.5em, height=1.5em, location=low, corner=r

[NTG-context] build_parshape and \getshapetext - need for a deeper understanding

2024-05-19 Thread garulfo
topspace+\headerheight+\headerdistance\relax},] {\framed[background=myoverlay,frame=off]{\strut\getshapetext}} \startshapetext[mymetafunpath, mymetafunpath] % <= WITH \startsubsection #2 \startsubsection[title={Title for section #1}] %\MySubSectionCommand{1}{Title for section #1} \input knu

[NTG-context] compatibility between \startshapetext and \startsection ?

2024-05-14 Thread garulfo
} \reference[myref2]{MyRef2} Here is the second reference.\par See reference \in[myref1] on \at{page}[myref1]\par \stopshapetext \definelayer[testA] \setlayer[testA][x=-1cm,y=3cm]{\framed[background=ol1]{\strut\getshapetext}} \setlayer[testA][x=9cm,y=3cm] {\framed[background=ol1]{\strut

[NTG-context] Re: intercolumn pull quotes typesetting

2024-05-07 Thread Garulfo
Hi all, I am happy to share one way to get "pull quotes between two columns" (in a three columns layout). https://wiki.contextgarden.net/images/5/50/context_3columns_layout.pdf It's not based on Columns / ColumnSet / Page Columns. It just combines \startuseMPgraphic + build_par

[NTG-context] Re: transparent color

2024-05-06 Thread Wolfgang Schuster
fairly obvious format. \definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1] \starttext %\showcolorcomponents [yellow] \framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow} \framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley} \st

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ommands provide a way to inherit their options but the "framed" and "counter" mechanism supports it. To use the framed mechanism with your own command replace \installcommandhandler with \installframedcommandhandler. This creates a command named \inherited...framed which ca

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
etelistofsynonyms Command/ completeregister Command/ copylabeltext Command/ ctxfunction Command/ ctxfunctiondefinition Command/ currentlabel Command/ delimitedtext Command/ description Command/ enumeration Command/ fence Command/ fraction Command/ framed Command/ framedtext Command/ getbuffer Command/ hbox Co

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread Hans Hagen
k. did you mean you will add > this feature for next updates? we're talking outlines so that is paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText]      \definedfont[name:texgyrepag

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-09 Thread seyal zavira
output pdf > > the third example currently does not work. did you mean you will add > > this feature for next updates? > we're talking outlines so that is paths which implies no search but you > can do this (Keith and/or Hraban will explain and/or wikify it) > > \starttext > >

[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-08 Thread Hans Hagen
s paths which implies no search but you can do this (Keith and/or Hraban will explain and/or wikify it) \starttext \startbuffer[MyText] \definedfont[name:texgyrepagellabold*default]foo f o o% \stopbuffer \startbuffer[MyText] \framed[align=normal,frame=off]{\input{tufte}}% \stopbuf

[NTG-context] Re: what about "textdisplay"?

2024-04-02 Thread Hans Hagen via ntg-context
around them so not meant for e.g. section heads or whatever text; it's for images, framed stuff, maybe bTABLE etc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 80

[NTG-context] Re: Unknown units es and dk

2024-03-24 Thread Hans Hagen
In German, I call these "Spaßeinheiten" (units of measurement = "Maßeinheiten"; Spaß = fun; "units of leisurement" might be a good translation). Apart from being fun they are also useful, for instance the "ts" (and dk) make good framed offsets when ma

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
bodyfont[modern, 12.50pt] If these lines are irrelevant for the issue you are experiencing, please don’t include them. > \definemargindata [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but you

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
I have been able to achieve it as following, but the first frame width is fixed so will cause problems with other chapter numbers such as VIII \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=22mm,align=right]{#1}}% \tbox

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
elevant for the issue you are experiencing, please don’t include them. > \definemargindata  [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] You define this margin framed, but your sample makes no use of it. Sorr

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
Chinese are introduced into a document written in French. With footnotes and a few framed lines. I submit this example for your perusal and ask you whether it could possibly appear on a wiki page devoted to the combination of non-European languages in the same text. In English translation, of

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
actor (old) dashfactor (new) \NC test \NC test and test and test and done \NC \NR \ML[1,1] \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \NC test \NC test and test and test and done \NC \NR \LL[1,10] \stoptabulate \frame

[NTG-context] Re: using an end of line as parameter

2024-02-19 Thread Hans Hagen
. For the example, I use this macro definition (which does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad  a) #2\\ \qquad  b) {\bf #3}\\ \qquad  c) #4 } I get: tex error on line 493 in file

[NTG-context] using an end of line as parameter

2024-02-19 Thread Miguel Diaz
does no work!) \long\def\prueba #1\par#2\par#3\par#4ñ{\framed[frame=off,width=0.8\textwidth,corner=round,offset=1em,align=flushleft]% {{\bf Beispiel}: #1\\ \qquad a) #2\\ \qquad b) {\bf #3}\\ \qquad c) #4 } I get: tex error on line 493 in file ./prueba.tex: The file ended when scanning an

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
dtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How do it get the same spacing as in the framedtext case? Is there a solution to this? Or an explanation why the spacing differs? these are fundamentally different mechanisms .. you can play

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
[location=paragraph, >%% offset=overlay, %% does nothing >%% backgroundoffset=overlay, %% does nothing >%% depthcorrection=off, %% does nothing >%% topoffset=3mm,%% works, but only for positive values >background=, >frame=on] &

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
th >> frame=on) but I didn't get the frame to play nicely (see example below). I >> can get the frame where I want it if instead I do >> \framed[frame=on,...]{\externalfigure...} >> but this leaves me wondering whether >> (1) I am misinterpreting the wik

[NTG-context] Re: \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Pablo Rodriguez via ntg-context
s which keys and values \setupexternalfigure allows. > I tried to put a frame around a picture (using \externalfigure with > frame=on) but I didn't get the frame to play nicely (see example below). I > can get the frame where I want it if instead I do > \framed[frame=on,..

[NTG-context] \framed{\externalfigure} vs \externalfigure[frame=on]

2024-01-27 Thread Jim
where I want it if instead I do \framed[frame=on,...]{\externalfigure...} but this leaves me wondering whether (1) I am misinterpreting the wiki pages, (2) The wiki pages are misleading/wrong, or (3) There is a bug in some code. If anyone would care to enlighten me, I would appreciate it. In

[NTG-context] Re: \starttable questions

2024-01-26 Thread Jim
for some more reading. > You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2 > (or the other way around ... always forget). In the worst case, you can > always do > ... > \NC .. \NC[options] ... \NC \NR > > Each cell is just a \framed[...]

[NTG-context] Re: \starttable questions

2024-01-26 Thread Aditya Mahajan
row 3 and column 2 (or the other way around ... always forget). In the worst case, you can always do ... \NC .. \NC[options] ... \NC \NR Each cell is just a \framed[...]; so all options for \framed[...] work for Natural Tables.

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
page which use vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > a

[NTG-context] Re: \starttable questions

2024-01-25 Thread Wolfgang Schuster
or extreme tables. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable]   \setupTABLE [frame=off,ali

[NTG-context] Re: After Compiling the Context test, there was no PDF.

2024-01-24 Thread Shiv Shankar Dayal
> > \startMPcode > > draw textext("hello") rotated 45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopmode > > > > \startnotmode[mkiv] > > > > \startMPcode > > draw textext("hello

[NTG-context] Re: After Compiling the Context test, there was no PDF.

2024-01-24 Thread Ursula Hermann
draw textext("hello") rotated 45 ; \stopMPcode \framed{hello} \stopmode \startnotmode[mkiv] \startMPcode draw textext("hello") rotated -45 ; \stopMPcode \framed{hello} \stopnotmode \stoptext After compiling in the folder: Is this becaus

[NTG-context] Re: old style factorial symbol and theorems

2023-12-30 Thread Shiv Shankar Dayal
I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? On Wed, Dec 27, 2023 at 6:18 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > > > A simple alternative to tikz is the usage of \framed. >>

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Mikael Sundqvist
Hi! Not by computer, and I'm sure Hans (or Wolfgang) has already shown a way to do the old factorial with the actuarian mechanism when I'm back to the computer... /Mikael Den ons 27 dec. 2023 13:49Shiv Shankar Dayal skrev: > > > A simple alternative to tikz is t

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work n

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31: What do you expect here to pass as argument to the oldfact command? I will pass something like n, 5, 10 etc. A simple alternative to tikz is the usage of \framed. \define[1]\oldfact   {\inmframed[frame=off,strut=no,leftframe=on

[NTG-context] framed: rounded corner oddity

2023-12-05 Thread Henning Hraban Ramm
Hi, in my ConTeXt book, some examples for \framed with rounded corners look odd, as if the MetaPost calculation of rounded corners fails. I can’t find a minimal example that shows the problem, and I can’t imagine which of the settings in my extensive environment would cause it. Find below

[NTG-context] textbackground spacing offset

2023-11-16 Thread Marco Patzer
does nothing %% depthcorrection=off, %% does nothing %% topoffset=3mm,%% works, but only for positive values background=, frame=on] \starttext \startframedtext \framed{Foo} \stopframedtext \starttextbackground \framed{Foo} \stoptextbackground \stoptext How

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Pablo Rodriguez via ntg-context
xyscaled (OverlayWidth-OverlayLineWidth,OverlayHeight-OverlayLineWidth) withpen pencircle scaled OverlayLineWidth withcolor OverlayColor ; \stopusableMPgraphic \defineoverlay[MetaCirc][\useMPgraphic{MetaCirc}] a\dontleavehmode\framed [background=MetaCirc, bac

[NTG-context] Re: How to encircle text?

2023-11-05 Thread Hans Hagen via ntg-context
On 11/5/2023 7:23 AM, anton.chig...@mail.com wrote: I want to use \bigcirc to encircle text. Is there a way to do it. if you're wiling to compensate for its depth: \defineoverlay [BigCirc] [{\scale [width=\overlaywidth] {\setbox0\hpack{\bigcirc}\raise\dp0\box0}}] \f

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
upTypeArea[bcor=0mm,alphabets=3.1] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} \stoptext I got: texmf-dist/tex/context/third/typearea/t-typearea.tex' loading > Something like KOMA-TypeArea tex error   

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
\starttext \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} \stoptext I got: texmf-dist/tex/context/third/typearea/t-typearea.tex' loading > Something like KOMA-TypeArea tex error   > tex error on line 89 in file /usr/local/texlive/2023/texmf-dist/tex/con

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
Csikos Bela schrieb am 20.10.2023 um 14:53: > Hello: > > Protrusioin doesn't work in framed environment. > > This is a short code: > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupalign[hz,hanging] > > \sho

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Csikos Bela
I forgot to attach the pdf. Eredeti levél Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,loc

[NTG-context] Re: protrusion in framed

2023-10-20 Thread Wolfgang Schuster
Csikos Bela schrieb am 20.10.2023 um 14:53: Hello: Protrusioin doesn't work in framed environment. This is a short code: \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \showframe \starttext \input tufte \blank \framed[fram

[NTG-context] protrusion in framed

2023-10-20 Thread Csikos Bela
Hello:Protrusioin doesn't work in framed environment.This is a short code:\definefontfeature[default][default][expansion=quality,protrusion=quality]\setupalign[hz,hanging]\showframe\starttext\input tufte\blank\framed[frame=off,location=top,align=normal,offset=0pt]{\input tufte }\

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
\stopCode \stopchapter \stoptext Op zo 17 sep 2023 om 17:31 schreef Bruce Horrocks : > > > > On 16 Sep 2023, at 21:28, Jeroen wrote: > > > > This MWE has a framed text for some verbatim text (code) with as title > ref. a counter 1, 2, etc.. Is there a way to change this

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and the ti

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title

[NTG-context] Re: Reduce space between lines in Natural Tables

2023-09-11 Thread Wolfgang Schuster
Jeroen schrieb am 10.09.2023 um 22:05: Is there an easy way to reduce the line space between rows in a natural table so the table takes less vertical space. Natural tables and extreme tables take extra vertical space because the table cell use the framed-mechanism which add a small margin on

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
; \ifmmode > \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% > \else% > \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}% > \fi% > } > > Maybe something else is available nowadays. > > A. Christe > Le 22 août 2023 à 12:22 +0200

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
; \stopuniqueMPgraphic \defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}] \define[1]\cancel{%  \ifmmode  \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \else%  \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%  \fi% } Maybe something else is available nowadays. A

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote: > [...] > A different approach is to use \dontleavehmode In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread vm via ntg-context
thanks! On 15/08/2023 21:26, Hans Hagen via ntg-context wrote: you're missing \startcaption \stopcaption after each content section indeed, adding \startcaption\stopcaption at each line will make the spacing equal. A different approach is to use \dontleavehmode \dontleavehmode \f

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
ly after the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} >TEST}] > >

[NTG-context] upload

2023-08-09 Thread Hans Hagen
} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user to

[NTG-context] Re: Ukrainian hyphenation?

2023-07-18 Thread Hans Hagen
=style:oblique, force=yes, rscale=1.0] \definefontfamily [archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
[archimate] [ss] [Helvetica] \setupbodyfont[archimate] \starttext \setuplanguage[en][patterns={ru}]\mainlanguage[ru] {\framed[frame=on,align=flushleft,width=7cm]{Техніка здатна до фізичної поведінки (на відміну від інформаційної поведінки). Наприклад `Металургійний комбінат'.}}\\ \setuplangua

[NTG-context] Re: depth of framed

2023-07-16 Thread Wolfgang Schuster
Hans van der Meer via ntg-context schrieb am 16.07.2023 um 12:14: I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps. What am I doing wrong? Or is something in \framed not working in the way I expected? 1. Include your

[NTG-context] depth of framed

2023-07-16 Thread Hans van der Meer via ntg-context
I cannot get rid of some depth in framed. Used various combinations of the depth and backgrounddepth setting, nothing helps.What am I doing wrong? Or is something in \framed not working in the way I expected?See the accompanying MWE. yours sincerelydr. Hans van der Meer framedepth.pdf

[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context
r[Gebuesch] Hier versteckt sich ein Wolf... \stopviewerlayer Bäume, Bäume, Bäume... \viewerlayer[Gebuesch]{... und ein Rotkehlchen} \startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer \defineoverlay[MitVersteck] [{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}] \framed[

[NTG-context] upload

2023-05-27 Thread Hans Hagen via ntg-context
Hi, I uploaded a new lmtx. Apart from the modules installer (that Hraban has to check) and subtle improvements in math (we're now in tweaking penalties mode) there are a few changes: - The endstrut in framed got lost but is back again; there is now alao a location=inline option. - S

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
I found a MWE that shows the problem: """ \setuppapersize[C5] \showframe \starttext \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.75\textheight]{TEST} \stopplacefigure \dorecurse{4}{\section{Tufte \recurselevel} \samplefile{tufte}} \s

Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
it in a simple example like this: """ \starttext \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could

[NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context
t \dorecurse{2}{\samplefile{tufte}} \startplacefigure[location=page,title={Pagefloat}] \framed[width=\textwidth,height=.5\textheight]{TEST} \stopplacefigure \dorecurse{5}{\samplefile{knuth}} \stoptext """ What could cause this behavior? For what shoul

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote: > Many thanks. Is there a proper way to add some space (a couple of pt or em) > to the left and the right of the text itself so the frame does not get so > close to the text? \framed[loffset=0.2ex, roffset=0.2ex]{...} Also s

  1   2   3   4   5   6   7   8   9   10   >