Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
d again. > > The following code works but I guess that must be some more sophisticated > ConTeXt way. > > Best wishes, > > Tomáš > > > %% > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframe

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} \def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1}\par\thinrule} \starttext

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Taco Hoekwater
re any way in ConTeXt how to set it by default? > # > > # > Best wishes, > # > > # > Tomáš > # > > # > %% MWE: > # > > # > \starttext\mainlanguage[cz] > # > > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\

Re: [NTG-context] How to repeat the hyphen?

2019-03-22 Thread Tomas Hala
ny way in ConTeXt how to set it by default? # > # > Best wishes, # > # > Tomáš # > # > %% MWE: # > # > \starttext\mainlanguage[cz] # > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} #

Re: [NTG-context] How to repeat the hyphen?

2019-03-21 Thread Taco Hoekwater
t by default? > > Best wishes, > > Tomáš > > %% MWE: > > \starttext\mainlanguage[cz] > \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} > \def\mybox#1{\myboxik{traditional}{#1}\m

[NTG-context] How to repeat the hyphen?

2019-03-21 Thread Tomas Hala
anguage[cz] \def\myboxik#1#2{\start\setuphyphenation[cz][method=#1]\startframedtext[width=1dd]\hbox{{\bf#1}}\crlf#2\stopframedtext\stop\par} \def\mybox#1{\myboxik{traditional}{#1}\myboxik{default}{#1}\myboxik{expanded}{#1}\myboxik{original}{#1}\myboxik{tex}{#1}\myboxik{hyphenate}{#1}\myboxik{none}{#1

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
Le 18/03/2019, Aditya Mahajan a �crit > On Mon, 18 Mar 2019, Romain Diss wrote: > > > Le 13/03/2019, Aditya Mahajan a �crit > > > > Is there a simple way to split a large \startframedtext environment over > > > > multiple pages. It doesn't

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
Le 18/03/2019, Alan Braslau a �crit > On Mon, 18 Mar 2019 14:15:10 -0400 (EDT) > Aditya Mahajan wrote: > > > On Mon, 18 Mar 2019, Romain Diss wrote: > > > > > Le 13/03/2019, Aditya Mahajan a �crit > > >> > Is there a simple way to split a larg

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Alan Braslau
On Mon, 18 Mar 2019 14:15:10 -0400 (EDT) Aditya Mahajan wrote: > On Mon, 18 Mar 2019, Romain Diss wrote: > > > Le 13/03/2019, Aditya Mahajan a �crit > >> > Is there a simple way to split a large \startframedtext environment over > >> > multiple pages.

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Aditya Mahajan
On Mon, 18 Mar 2019, Romain Diss wrote: Le 13/03/2019, Aditya Mahajan a �crit > Is there a simple way to split a large \startframedtext environment over > multiple pages. It doesn't work out of the box and I didn't find any > option make it work in the wiki nor in the d

Re: [NTG-context] Background under bibliography (like in mkiv-publications.pdf)

2019-03-18 Thread Romain Diss
Le 13/03/2019, Aditya Mahajan a �crit > > Is there a simple way to split a large \startframedtext environment over > > multiple pages. It doesn't work out of the box and I didn't find any > > option make it work in the wiki nor in the documentation I read. > >

Re: [NTG-context] Framed text split over multiple pages

2019-03-13 Thread Aditya Mahajan
Is there a simple way to split a large \startframedtext environment over multiple pages. It doesn't work out of the box and I didn't find any option make it work in the wiki nor in the documentation I read. Use backgrounds or textbackground

[NTG-context] Framed text split over multiple pages

2019-03-13 Thread Romain Diss
Hi, Is there a simple way to split a large \startframedtext environment over multiple pages. It doesn't work out of the box and I didn't find any option make it work in the wiki nor in the documentation I read. Thanks. -- R

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
1em, headcommand=\FrameTitle, alternative=serried] \starttext \startFramedText[width=\textwidth] \startInfo Cette suite d'appels sera notée Anissa--Boris--Gween et on dira qu'elle a pour longueur 2. \stopInfo \stopFramedText \startFramedText[width=\textwidth] \startInfo La matrice

Re: [NTG-context] A ConTeXt Guide in Italian

2018-12-02 Thread Wolfgang Schuster
]     \startxrow [corner=round,align=normal]       \startxcell         \typebuffer [userdata] [option=tex]       \stopxcell     \stopxrow   \stopembeddedxtable   \blank \stopsetups \startsetups [userdata:purecode] \blank \startframedtext [width=max,offset=1ex,corner=round,framecolor=black

Re: [NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Wolfgang Schuster
your examples in the document. \starttext \startbuffer \startframedtext \samplefile{klein} \stopframedtext \stopbuffer \typebuffer[option=tex] \getbuffer \stoptext You can use this to write your own environment for the examples (or use the userdata environment when you’re lazy :) \defineuse

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Fabrice Couvreur
broad}, > frame=off, > corner=round, > radius=1.5em, > width=10cm] > > \definedescription >[Info] >[before=, > after=, > text=Info, > title=no, > width=fit, > distance=1em, > h

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Hans Hagen
after=, text=Info, title=no, width=fit, distance=1em, headcommand=\FrameTitle, alternative=hanging] \showframe \starttext \startFramedText \startInfo \input zapf \stopInfo \stop

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Fabrice Couvreur
backgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align={right, broad}, > frame=off, > corner=round, > radius=1.5em, > width=10cm, > ] > > \showfra

Re: [NTG-context] Text wrapped with an ornement

2018-08-18 Thread Pablo Rodriguez
ht, broad}, frame=off, corner=round, radius=1.5em, width=10cm, ] \showframe \starttext \FrameTitle{Info}{% \startFramedText% \input zapf \stopFramedText} \stoptext The width opt

Re: [NTG-context] Text wrapped with an ornement

2018-08-17 Thread Wolfgang Schuster
wrapped frame=off, corner=round, ] \showframe \starttext \FrameTitle{Info}{\startFramedText[width=\textwidth] \dorecurse{100}{blabla} \stopFramedText} \stoptext ___ If your question is

[NTG-context] Text wrapped with an ornement

2018-08-17 Thread Fabrice Couvreur
\FrameTitle{Info}{\startFramedText[width=\textwidth] \dorecurse{100}{blabla} \stopFramedText} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

[NTG-context] Shading and transparency

2018-07-11 Thread Marco Patzer
quires external file gradient-t.pdf \defineoverlay [gradient-img] [{\externalfigure[gradient-t][width=\overlaywidth,height=\overlayheight]}] \starttext using external image: \startframedtext [background={foreground, gradient-img}] \input knuth \stopframedtext metapost: \startframedtext [

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 25 Mar 2018 09:29:01 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. März 2018 um 17:04 Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnot

Re: [NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. März 2018 um 17:04 Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnotes[n=2] \startlocalfootnotes \input ward \startfootnote \inpu

[NTG-context] How to setup the footnote number in local footnotes

2018-03-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Consider the following: == \starttext \startframedtext[width=fit,frame=off,offset=0pt] % \startlocalfootnotes[n=2] \startlocalfootnotes \input ward \startfootnote \input ward \stopfootnote \placelocalfootnotes \stoplocalfootnotes \stopframedtext \stoptext

Re: [NTG-context] Setting the footnote symbol

2017-11-17 Thread Pablo Rodriguez
e=2in] \setupnotation[footnote][style={\PagellaRegularSmall}, numbercommand=\PagellaRegularSmall] \setupnote [footnote] [textcommand={\setupbodyfont[nonexisting]\high}] \noheaderandfooterlines \starttext \startframedtext[width=4.5in,offset=0pt

[NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد
titlestyle={\PagellaRegularSmall}] % Why is this necessary? \setupnote[footnote][textcommand={\PagellaRegularSmall}] % symbol-font style in the main text \noheaderandfooterlines \starttext \PagellaRegular \startframedtext[width=4.5in,offset=0pt] \startlocalfootnotes

Re: [NTG-context] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der
Text] > [ >offset=0.6em, >toffset=\lineheight, >background=color, >backgroundcolor=MyColorA, >foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, >frame=off, >corner=01, > ] > > > \showframe > \starttext > >

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
> [figure] > > \setupfloat > [recipe] > [default={right,none}] > > \showframe > > \starttext > \placerecipe{} >{\FrameTitle{Info}{\startFramedText[width=10cm] > L'équivalent vingt pieds (EVP) est une unité de mesure

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Pablo Rodriguez
rnative=serried, % text wrapped frame=off, corner=round, ] \definefloat [recipe] [figure] \setupfloat [recipe] [default={right,none}] \showframe \starttext \placerecipe{} {\FrameTitle{Info}{\startFramedText[width=10cm]

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
t; background=color, >>> backgroundcolor=MyColorB, >>> ] >>> >>> \defineframedtext >>> [FramedText] >>> [ >>> offset=0.6em, >>> toffset=\lineheight, >>> background=color, >>>

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
background=color, >> backgroundcolor=MyColorB, >> ] >> >> \defineframedtext >> [FramedText] >> [ >> offset=0.6em, >> toffset=\lineheight, >> background=color, >> backgroundcolor=MyColorA, >> foregro

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
t;> background=color, >> backgroundcolor=MyColorB, >> ] >> >> \defineframedtext >> [FramedText] >> [ >> offset=0.6em, >> toffset=\lineheight, >> background=color, >> backgroundcolor=MyColorA, >>

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
ackgroundcolor=MyColorA, > foregroundstyle={\switchtobodyfont[10pt]}, > align=verytolerant, > frame=off, > corner=01, > ] > > > \showframe > \starttext > > \FrameTitle{Info}{\startFramedText[width=10cm] > L'équivalent vingt pieds (EV

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Aditya Mahajan
, frame=off, corner=01, ] \showframe \starttext \FrameTitle{Info}{\startFramedText[width=10cm] L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs (de longueur courante 20 pieds, soit environ \unit{6,1 meter}). 1 EVP représente environ \unit{38,5 cubic

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Mathias Schickel
s existed in ConTeXt.Framed texts does the trick with your sample:  \setupframedtext [width=\textwidth,  frame=on,  rulethickness=1pt,  corner=0,  offset=12pt]  \starttext  \startframedtext  If you typeset text with background,  the footnote workaround does not work.  \p

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-10 Thread Mathias Schickel
ounds existed in ConTeXt. > > Framed texts does the trick with your sample: > >\setupframedtext > [width=\textwidth, >frame=on, >rulethickness=1pt, >corner=0, >offset=12pt] > >\starttext >\startfram

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-10 Thread Pablo Rodriguez
dth, frame=on, rulethickness=1pt, corner=0, offset=12pt] \starttext \startframedtext If you typeset text with background, the footnote workaround does not work. \postponenotes\footnote{So what could I do to get this footnote d

[NTG-context] two framed item lists side by side

2017-02-09 Thread Csikos Bela
ttext \startcombination[2] {\startframedtext \startitemize \item In The Flesh? 3:19 \item The Thin Ice 2:29 \item Another Brick In The Wall (Part 1)3:09 \item The Happiest Days Of Our Lives1:50 \stopitemize \stopframedtext }{}{ \startframedtext \startitemize \item Hey You 4:41 \it

Re: [NTG-context] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
hanks, that worked indeed (I had to skip the style of the chapter, and put the \definedfont and \setupinterlinespace inside the macro). For 2) I noted that a grid=no as option to \startframedtext results in the frame starting from the top. Maybe there is a

[NTG-context] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
color darkred; setbounds currentpicture to unitsquare xyscaled (OverlayWidth,OverlayHeight); \stopuseMPgraphic } \defineoverlay[chapnum][\useMPgraphic{chapnum}] \define[1]\mychaptext{% \startcolumnsetspan[intro] \startframedtext[align={middle,lohi},background=chapnum,frame=on,framecolor=darky

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

2016-11-09 Thread Hans Hagen
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

[NTG-context] indenting and whitespace in framedtext

2016-11-09 Thread Meer, Hans van der
Quoting from the command reference: \startframedtext inherits \setupframedtext and \setupframedtext ... indenting = inherits \setupindenting I interprete this as \setupindenting is carried to the inside of the framedtext but this thus not happen. Instead one explicitely sets it on the call of

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

2016-11-08 Thread Henri Menke
ain 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 World!") &g

[NTG-context] Typing in natural width box

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

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Mohammad Hossein Bateni
ock. > > > Two questions: > > * How can I get line numbers inside floating block? > > You can’t use them in floats unless you add a frame around the content, > e.g. > > \startplacealgorithm > \startframedtext > \startlinenumbering > ... >

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-26 Thread Wolfgang Schuster
the floating block. Two questions: * How can I get line numbers inside floating block? You can’t use them in floats unless you add a frame around the content, e.g. \startplacealgorithm \startframedtext \startlinenumbering ... \stoplinenumbering \stopframedtex

Re: [NTG-context] placelocalfootnotes breaks center alignment

2016-08-15 Thread Aditya Mahajan
\starttext \startplacetable[title={some table}] \startframedtext[width=fit,align=middle,frame=off] \startlocalfootnotes \startTABLE \NC Content\footnote{Footnote} \NC\NR \stopTABLE \placelocalfootnotes \stoplocalfootnotes \stopframedtext \stopplacetabl

Re: [NTG-context] Flushleft formula

2016-06-18 Thread Hans Hagen
\setupformula [before={\startframedtext[background=color,backgroundcolor=lightblue]}, after={\stopframedtext}] One typically wants to have a bounding box around the displayed math, but not the white space or the equation number. For example, see the attached image. experimental framed support in

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Aditya Mahajan
On Thu, 16 Jun 2016, Alan BRASLAU wrote: On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan wrote: And some stage, it will be nice to discuss the possiblility of adding background to formulas, especially aligned formulas. something like a \setupformula [before={\startframedtext[background

Re: [NTG-context] Flushleft formula

2016-06-16 Thread Alan BRASLAU
On Thu, 16 Jun 2016 18:18:58 -0400 Aditya Mahajan wrote: > And some stage, it will be nice to discuss the possiblility of adding > background to formulas, especially aligned formulas. something like a \setupformula [before={\startframedtext[background=color,backgroundcolor=lig

Re: [NTG-context] orphan headline

2016-05-27 Thread Andrea Valle
\headshownumber > \scratchdimenone\dimexpr\headnumberwidth+\headnumberdistance\relax > \scratchdimentwo\dimexpr\headnumberdistance\relax > \else > \scratchdimenone\zeropoint > \scratchdimentwo\zeropoint > \fi > > \startframedtext[offset=0.2

Re: [NTG-context] orphan headline

2016-05-26 Thread Wolfgang Schuster
http://wiki.contextgarden.net/Widows_and_orphans_control but I wasn’t able to solve. I guess it could depend on the formatting of my headlines. Here they are: \setuphead[section] [style=\ss\tfa, before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black, rulethickness=0.01cm, frame=off, topfra

Re: [NTG-context] orphan headline

2016-05-26 Thread Pablo Rodriguez
oked at > > http://wiki.contextgarden.net/Widows_and_orphans_control > > but I wasn’t able to solve. > > I guess it could depend on the formatting of my headlines. Here they are: > > \setuphead[section] > [style=\ss\tfa, > before={\blank[0.5cm]\startframedtext[offset=0.25cm,fra

[NTG-context] orphan headline

2016-05-26 Thread Andrea Valle
. I guess it could depend on the formatting of my headlines. Here they are: \setuphead[section] [style=\ss\tfa, before={\blank[0.5cm]\startframedtext[offset=0.25cm,framecolor=black, rulethickness=0.01cm, frame=off, topframe=off, bottomframe=on]\crlf},after={\stopframedtext\noindentation\blank

Re: [NTG-context] headline and no indent

2016-05-09 Thread Andrea Valle
gt; Hmm, how to get this? >> >> >> For chapter/section/subsection >> I have e.g. >> >> \setuphead[chapter] >> [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, >> foregroundcolor=black, background=color, backgroundcolor=bgGrey1, >>

Re: [NTG-context] headline and no indent

2016-05-09 Thread Wolfgang Schuster
s that the first line of chapter/section/subsection should have no indent. Hmm, how to get this? For chapter/section/subsection I have e.g. \setuphead[chapter] [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, foregroundcolor=black, background=color, backgroundcolor=b

Re: [NTG-context] headline and no indent

2016-05-09 Thread Marco Patzer
results in your text, please create an MWE. > \setuphead[chapter] > [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, > foregroundcolor=black, background=color, backgroundcolor=bgGrey1, > framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off, > topfram

[NTG-context] headline and no indent

2016-05-09 Thread Andrea Valle
indent. Hmm, how to get this? For chapter/section/subsection I have e.g. \setuphead[chapter] [style=\ss\tfc, before={\blank[1cm]\startframedtext[width=local, foregroundcolor=black, background=color, backgroundcolor=bgGrey1, framecolor=bgGrey2,offset=0.25cm, rulethickness=0.05cm, frame=off

Re: [NTG-context] framedtext

2016-04-11 Thread Hans Hagen
On 4/11/2016 6:49 PM, Meer, Hans van der wrote: On 11 Apr 2016, at 18:13, Alan BRASLAU mailto:alan.bras...@cea.fr>> wrote: Would it not be better to use ConTeXt alignment, rather than the TeX primitives \hfil and \hfill? \startframedtext[left][frame=on,offset=0pt,width=broad,align=flu

Re: [NTG-context] framedtext

2016-04-11 Thread Meer, Hans van der
On 11 Apr 2016, at 18:13, Alan BRASLAU mailto:alan.bras...@cea.fr>> wrote: Would it not be better to use ConTeXt alignment, rather than the TeX primitives \hfil and \hfill? \startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft] left \stopframedtext Could be of course. B

Re: [NTG-context] framedtext

2016-04-11 Thread Alan BRASLAU
Would it not be better to use ConTeXt alignment, rather than the TeX primitives \hfil and \hfill? \starttext \startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft] left \stopframedtext \startframedtext[middle][frame=on,offset=0pt,width=broad,align=middle] centered

Re: [NTG-context] framedtext

2016-04-11 Thread Meer, Hans van der
> On 11 Apr 2016, at 12:28, Mari Voipio wrote: > > On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der > wrote: > >> \startframedtext[middle][frame=on,offset=0pt,width=broad] >> \hfil centered\hfil >> \stopframedtext >> \startframedtext[middle][fra

Re: [NTG-context] framedtext

2016-04-11 Thread Mari Voipio
On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der wrote: > \startframedtext[middle][frame=on,offset=0pt,width=broad] > \hfil centered\hfil > \stopframedtext > \startframedtext[middle][frame=on,offset=0pt,width=broad] > \hfill centered\hfill > \stopframedtext One has \hfil

[NTG-context] framedtext

2016-04-11 Thread Meer, Hans van der
I am getting an unexpected results with framedtexts.Why is the second "centered" not centered? \starttext \startframedtext[left][frame=on,offset=0pt,width=broad] left\hfill \stopframedtext \startframedtext[middle][frame=on,offset=0pt,width=broad] \hfil centered\hfil \stop

[NTG-context] Placing an image on a portion of a frame

2015-11-23 Thread Fabrice Couvreur
]{\externalfigure[vipere.jpg][width=6cm]}} \startframedtext[width=fit,background=color,backgroundcolor=FondTableaux] \input knuth \stopframedtext \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Fabrice Couvreur
? > > You have to use \starthanging instead of \placefgure when you’re in a > frame. > > \starttext > > \startframedtext[width=max] > \starthanging[location=right] > {\startMPcode > draw unitsquare scaled 2cm ; > \stopMPcode} >

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Wolfgang Schuster
Jeong Dal <mailto:hak...@me.com> 8. August 2015 15:49 Dear Wolfgang, Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfigu

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Otared Kavian
. then the text is wrapped around the figure when using \starthanging. Best regards: OK > On 08 Aug 2015, at 15:49, Jeong Dal wrote: > > Dear Wolfgang, > >> You have to use \starthanging instead of \placefgure when you’re in a frame. >> >> \starttext >

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Jeong Dal
Dear Wolfgang, > You have to use \starthanging instead of \placefgure when you’re in a frame. > > \starttext > > \startframedtext[width=max] > \starthanging[location=right] > {\startMPcode > draw unitsquare scaled 2cm ; > \sto

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 8. August 2015 00:49 Hi, Why the text does not move in the first framedtext like the second framedtext? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starth

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Fabrice Couvreur
btain the same result (by > the way, you have to say also \stopframedtext in your source file): > > \startframedtext[width=\textwidth]{ > \placefigure[right,none]{}{% > \startMPcode > draw unitsquare scaled 2cm ; > \stopMPcode} > \input knuth.tex } > \stopframedtext

Re: [NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Otared Kavian
Hi, You should use the same width if you want to obtain the same result (by the way, you have to say also \stopframedtext in your source file): \startframedtext[width=\textwidth]{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth.tex

[NTG-context] Text around a figure in a framedtext

2015-08-07 Thread Fabrice Couvreur
scaled 2cm ; \stopMPcode} \input knuth \stopMyText \startframedtext{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth} \stoptext ___ If your question is of interest to

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Hans Hagen
inbetween=\startframedtext,after=\stopframedtext in the \setupdescriptions but this lead to an error "Missing } inserted" search for textbackgrounds - Hans Hagen |

Re: [NTG-context] Colored descriptions

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
possible ? there was a similar discussion - see http://www.ntg.nl/pipermail/ntg-context/2015/081528.html Best regards, Lukas I tried inbetween=\startframedtext,after=\stopframedtext in the \setupdescriptions but this lead to an error "Missing } inserted" -- Ing. Lukáš

[NTG-context] Colored descriptions

2015-08-03 Thread Eric Détrez
I wish to write a text where there are definitions, theorems, ... I wish to get a table of definitions at the end so I think the right tool is description. But I want the head or/and the main text have colored background. Is it possible ? I tried inbetween=\startframedtext,after

Re: [NTG-context] Small problems with my columns

2015-07-30 Thread Pablo Rodriguez
le=bold] > \item > \item > \item \'Emettre une conjecture sur la nature de la transformation > correspondant à l'enchaînement de ces deux translations. > \startframedtext[frame=on,background=color,backgroundcolor=lightgray,width=local] > On notera $\vec{u} + \vec{v}$ les caract

[NTG-context] Small problems with my columns

2015-07-30 Thread Fabrice Couvreur
de la transformation correspondant à l'enchaînement de ces deux translations. \startframedtext[frame=on,background=color,backgroundcolor=lightgray,width=local] On notera $\vec{u} + \vec{v}$ les caractéristiques de cette nouvelle transformation. \stopframedtext \stopitemize \column \item \star

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
different head alternatives where you set the differences with the \defineheadalternative command. % HeadA \defineheadplacement[HeadA][vertical]#1#2% {\startframedtext #1\quad #2% \stopframedtext} \definehead[HeadA][section][alternative=HeadA] % HeadB \defineheadaltern

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Wolfgang Schuster
the \defineheadalternative command. % HeadA \defineheadplacement[HeadA][vertical]#1#2% {\startframedtext #1\quad #2% \stopframedtext} \definehead[HeadA][section][alternative=HeadA] % HeadB \defineheadalternative[HeadB][renderingsetup=HeadB] % alternative=vertical \startsetups[HeadB]

Re: [NTG-context] TikZ and wrong drawing order

2015-06-14 Thread Mojca Miklavec
e >>>> [tikz] >>>> >>>> \definesymbol[1] >>>> [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] >>>> >>>> \definecolor >>>> [backcol] >>>> [s=1,a=1,t=0.1] >>>> >&g

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Hans Hagen
t=0.1] \starttext \startframedtext[width=4cm,background=color,backgroundcolor=backcol] \startitemize \item one \item two \item three \stopitemize \stopframedtext \stoptext Workaround (though I have no idea why this should work). Does it also work if you use the following? \definecolor [ba

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
ball color=blue] (0,0) circle (.2cm);}] >> >> \definecolor >>[backcol] >>[s=1,a=1,t=0.1] >> >> \starttext >> >> \startframedtext[width=4cm,background=color,backgroundcolor=backcol] >> \startitemize >> \item one >> \item two &

Re: [NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Aditya Mahajan
the background. Here's an example: \usemodule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm,background=color,backgroundcolor=backcol] \startitemize \ite

[NTG-context] TikZ and wrong drawing order

2015-06-11 Thread Mojca Miklavec
odule [tikz] \definesymbol[1] [{\tikz\shade[shading=ball,ball color=blue] (0,0) circle (.2cm);}] \definecolor [backcol] [s=1,a=1,t=0.1] \starttext \startframedtext[width=4cm,background=color,backgroundcolor=backcol] \startitemize \item one \item two \item three \stopit

Re: [NTG-context] Color in an environment

2015-03-29 Thread Wolfgang Schuster
> Am 29.03.2015 um 22:05 schrieb Fabrice Couvreur : > > Hi, > > 1. In the following code, the color is not included in the \startframedtext > \stopframedtext environment Remove the \MPcolor command, it is only needed for meatiest graphics. You can also remove \setup

[NTG-context] Color in an environment

2015-03-29 Thread Fabrice Couvreur
Hi, 1. In the following code, the color is not included in the \startframedtext \stopframedtext environment 2. How can the height of the red square adapts to the height of the text ? 3. Can we improve the code ? Best regards, Fabrice \setupcolors[state=start] \definecolor[mycolor][c=0.00, m

Re: [NTG-context] slanting an intermezzo.

2015-03-26 Thread Otared Kavian
Hi John, Maybe playing with something like what follows will help: begin tilted-framed.tex \starttext \placeintermezzo[right,none]{} \rotate[rotation=-10]{\startframedtext[width=3in] \midaligned{\bf RECIPE FOR SUCCESS} \par \noindent

[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

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

2015-03-22 Thread Wolfgang Schuster
ttext > \placeintermezzo[center,none]{} > \starttext > \startframedtext[] [width=\hsize] > \centerline{\ss\tfb Interest in Green, Organic, > and Local Foods Is Exploding} > \definecolumns[example][n=2] > \startcolumns[example] Organic foods, locally > sourced foods, and sustainable liv

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

2015-03-22 Thread John Culleton
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 \startframedtext[] [width=\hsize] \centerline{\ss\tfb Interest in Green, Organic,

[NTG-context] Word wrap around framed text.

2015-03-19 Thread John Culleton
=0.70, backgroundcorner=round, backgroundradius=1em, corner=round, radius=1em] \startframedtext[right][width=3.2in] \centerline{\ss\tfb Life Before Specialty} \centerline{\ss\tfb Food Marketing} What food entrepeneurs did before starting a specialty food firm (in order of prevalence): \startitemize[1]

[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] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Emmanuel Asante
> > You can add a framedtext environment around the verbatim text and use > “location=middle” to center it. > > \setuptyping > [TEX] > [before={\startframedtext[location=middle]}, >after=\stopframedtext] >

Re: [NTG-context] How to Centre Multi-line Verbatim Text

2015-03-14 Thread Wolfgang Schuster
> > \setuptyping[TEX] > > \startTEX >RSpec.describe Post, :type => :model do > end > \stopTEX You can add a framedtext environment around the verbatim text and use “location=middle” to center it. \setuptyping [TEX] [before={\startframedtext[location=middle]},

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

2015-03-04 Thread John Culleton
> backgroundradius=1em, > corner=round, > radius=1em] > \definefloat[intermezzo]{ } > > \kern 5em\placeintermezzo[right]{} > \startframedtext[width=3.2in] > > \centerline{\ss\tfb Life Before Specialty} > \centerline{\ss\tfb Food Marketing} > \tfx > > What food entrepe

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

2015-02-25 Thread John Culleton
? 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] \definefloat[intermezzo]{ } \kern 5em\placeintermezzo[right]{} \startframedtext[w

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

2015-02-22 Thread Wolfgang Schuster
. > > I built a sample and then played with the em > value. Lacking precise guidance I thought that > the value was one of those 0 to 1 ranges. Not so. > setting at 1.0 em gives me what I was looking > for. The setting 0.1 em gave me rounding that was > imperceptible without ma

<    1   2   3   4   5   6   >