Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
, background=color, backgroundcolor=white, ] %%% \defineenumeration[proclaim] [text=, before={\starttextbackground[leftbartext]}, after={\stoptextbackground}, style=slanted, title=yes, titleleft=, titleright

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
ions of my enumeration messes up whitespace at the end. Here is a screenshot: https://s12.directupload.net/images/201120/lfmwp5lh.png The theorem is a normal enumeration. Like this: \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] I would greatly appreciate your help. Thank you! Joh

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
Just about to have these homework files finished! My final problem (I hope) is keeping question/answer blocks together. The questions are currently defined via \defineenumeration with a \testpage (see below). I fiddled with the \testpage and found that \testpage[6] gave me the best results

Re: [NTG-context] Same counter for figures as theorems

2020-08-18 Thread Tim Steenvoorden
; > Here is what I believe is the required code for your desired effect > (re-indented for Hans' style): > > \setupcaptions > [way=bysection, > prefixsegments=chapter:section] > > \setupenumerations > [prefix=yes, > prefixsegments=chapter:section] > > \definee

Re: [NTG-context] Same counter for figures as theorems

2020-08-14 Thread Taco Hoekwater
, prefixsegments=chapter:section] \defineenumeration [enumeration] [text=Enumeration] \definecounter [object] [way=bysection] \setupenumeration [enumeration] [counter=object] \definecounter [figure] [object] Best wishes, Taco > On 14 Aug 2020, at 09:49, Tim Steenvoorden wr

[NTG-context] Defining \qed (was: Bug with \wordright...)

2020-08-08 Thread Otared Kavian
rlay]% > \dontleavehmode\wordright{#1}} > > \defineenumeration > [proof] > [ closesymbol={\symbol[square]}, > closecommand=\PlaceProofSymbol] > > \starttext > > \startproof > \startformula >

[NTG-context] About the numbering of theorems

2020-08-07 Thread Fabrice Couvreur
, prefix=yes, prefixsegments=chapter, titlestyle=bold, width=broad] \defineenumeration [theorem] [text=Théorème, number=yes, style=italic] \starttext \startchapter [title={First chapter}] \startsection [title={First section}] \startsubsection [title={First

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 05.08.2020 um 19:33: Hello, I also use a square to complete a demonstration. I tried this without success Thank you Fabrice \definesymbol[Fin][\mathematics{\square}] \def\qed{\strut\wordright{\symbol[Fin]}} \defineenumeration   [proof]   [...,    closesymbol

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Fabrice Couvreur
Hello, I also use a square to complete a demonstration. I tried this without success Thank you Fabrice \definesymbol[Fin][\mathematics{\square}] \def\qed{\strut\wordright{\symbol[Fin]}} \defineenumeration [proof] [text=Démonstration, alternative=serried, distance=\zeropoint, number

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Garulfo
ent • \em, \bf, \cap, • \startitemize, \startitem, \starthead, • \placefigure, \externalfigure, • \placetable, \starttable,\starttabulate, \setupTABLE, \bTABLE • \index, \completeindex • \setuplayout, \setupfootertexts et \setupheadertexts • \definedescription, \defineenumeration • \at, \in Anyway, t

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
> Thanks for your help. > Fabrice > > \setupenumerations > [before={\blank}, >after={\blank}, >alternative=serried, >title=yes, >titleleft=, >titleright=, >prefix=yes, >prefixsegments=chapter, >way=bychapter, >titlestyle=b

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
ve=serried, >title=yes, >titleleft=, >titleright=, >prefix=yes, >prefixsegments=chapter, >way=bychapter, >titlestyle=bold, >width=broad] > > \defineenumeration >[definition] >[text=Définition, > number=

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdefinition \blank \startxtable[align

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-07 Thread Otared Kavian
Thanks Wolfgang! Your patch seems to fix also another issue with the cross references in ConTeXt at least on MacOS and TeXShop. In principle a document typeset with TeXShop, in the resulting PDF when the pointer hovers above a link to a reference, TeXShop shows a small pop-up window where the

[NTG-context] Vertical space between label and title

2020-07-07 Thread Fabrice Couvreur
=\Title] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=yes, headcommand

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
; > > \setupinteraction[state=start,focus=standard,color=,contrastcolor=] > > \defineenumeration[proposition][referenceprefix=prop] > > \starttext > > \startproposition[1] > > \input ward\footnote{Only a footnote} > > \stopproposition > > \in[p

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Pablo Rodriguez
On 7/6/20 8:48 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 06.07.2020 um 20:04: >> [...] >> Hans, could you check this? (I’m afraid it doesn’t work with current >> latest [2020.07.06 19:30])? > > I'm not Hans but this fixed the problem for me (strc-con.mkiv): > >

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Hans Hagen
Jairo, "focus=standard" works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopp

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Wolfgang Schuster
works fine with footnotes. \setupinteraction[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample do

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Pablo Rodriguez
n[state=start,focus=standard,color=,contrastcolor=] \defineenumeration[proposition][referenceprefix=prop] \starttext \startproposition[1] \input ward\footnote{Only a footnote} \stopproposition \in[prop:1] \stoptext Your sample doesn’t work, because of the referenc

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
the interaction works fine. > > Best regards: Otared K. > > > On 6 Jul 2020, at 01:15, Jairo A. del Rio > wrote: > > > > The following: > > > > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > > > \defineenume

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Otared Kavian
Hi Jairo, If you remove focus=standard the interaction works fine. Best regards: Otared K. > On 6 Jul 2020, at 01:15, Jairo A. del Rio wrote: > > The following: > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > \defineenume

[NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-05 Thread Jairo A. del Rio
The following: \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] \starttext \startproposition[1] \dorecurse{10

Re: [NTG-context] spacing before items

2020-06-17 Thread Hans Hagen
. \defineenumeration [question] [text=, alternative=serried, distance=1em, width=fit, before={\testpage[4]\blank[3*big]}, after={\blank}] \starttext \dorecurse{10}{ \startquestion \input ward \stopquestion \startitemize[packed,a] \startitem \input ward \stopitem

[NTG-context] Extra space when \setcharacterkerning is used in enumeration

2020-06-12 Thread Mikael Sundqvist
e{myindent}#1.} \defineenumeration[sats][ text={Sats}, style={\em}, title=yes, titlestyle=, width=fit, headstyle={\smallcaps\setcharacterkerning[sats]}, headcommand={\vakuum}, number=yes, alternative=serried, indenting={yes,\measure{myindent}}, ] \defineenumeration[SATS][sats][ headstyle=

Re: [NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-19 Thread Aditya Mahajan
icture to OverlayBox ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext [FunnyFramedText] [ frame=off, background=FunnyFrame, offset=\bodyfontsize, width=\textwidth, ] \defineenumeration[Counter] [ title=yes, alternati

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
> forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration >[ex] >[text=, > width=fit, >numberconversionset=ACCONVERSION, >alternative=serried,

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
orgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration >[ex] >[text=, > width=fit, >numberconversionset=ACCONVERSION, >alternative=serried,

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, width=fit, numberconversionset=ACCONVERS

Re: [NTG-context] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
ound > > then the second(?) paragraph of the second enumeration is not indented. > > Here is a small example (see what lines to comment to avoid the problem). > > %%% > \defineenumeration[losning][ > text=Lösning, > title=yes, > alternative=serried, > width=fit, > number=no,

[NTG-context] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
what lines to comment to avoid the problem). %%% \defineenumeration[losning][ text=Lösning, title=yes, alternative=serried, width=fit, number=no, headstyle={\em}, titlestyle=, indentnext=no,% another way to get indentation is to comment this line indenting={yes,medium}, ] \defineframedtext

[NTG-context] LMTX issue with multple question blocks

2019-11-07 Thread Jan Willem Flamma
amma \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \input knuth \beginquestion \startquestion Question text \startitemize[a] \item Answer A \item Answer B \item Answer C \stopitemiz

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
ried, > inbetween=, > > Best wishes, > Taco > > > Thank you. > > Fabrice > > > > \setuptextrules[width=0.5cm] > > > > \define[1]\ProprieteHeadcommand > > {\textrule[top]{#1}} > > > > \defineenumeration > > [propriete]

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Taco Hoekwater
Headcommand > {\textrule[top]{#1}} > > \defineenumeration > [propriete] > [text=Propriété, >title=yes, >headstyle={bold}, >alternative=serried, >style=italic, >number=no, >headcommand=\ProprieteHeadcommand, >numbercomma

Re: [NTG-context] About \textrule [ ]

2019-10-01 Thread Otared Kavian
Hi Fabrice, Is this what you are looking for? Best regards: OK \setuptextrules[width=.5cm] \define[1]\ProprieteHeadcommand {\textrule[top]{Propriété}} \defineenumeration[propriete] [headstyle={bold}, style=italic, number=no, headcommand

[NTG-context] About \textrule [ ]

2019-10-01 Thread Fabrice Couvreur
Hello, The top line is in the text, how to fix this problem ? Thank you. Fabrice \setuptextrules[width=0.5cm] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, alternative=serried, style=italic

[NTG-context] Tagged blocks

2019-06-18 Thread Jan Willem Flamma
chapter and only appear in the second chapter. According to the wiki and reference manual it should be possible using either \useblocks or \selectblocks but I can't get it to work. Who can help me out? Best regards, Jan Willem Flamma \defineenumeration[question][location=margin,text=Question

Re: [NTG-context] Left frame on a block of text

2019-04-21 Thread Otared Kavian
, % topoffset=-2mm ] \defineenumeration[proclaim] [text=, before={\startsidebar[ProclaimSidebar]}, after={\stopsidebar}, style=slanted, title=yes, titleleft=, titleright={.}, % alternative=serried, alternative=hanging

[NTG-context] Fwd: Question and Answer Iteration

2019-03-13 Thread Jeroen
}} \defineenumeration [question] [text={\black Question}, titledistance=2em, width=fit, distance=0.5em, headstyle=bold, number=yes, prefix=yes, prefixsegments=chapter, alternative=serried, headcommand=\QuestionTextCommand] \defineenumeration [answer] [text={\black Answer

Re: [NTG-context] Question and Answer Iteration

2019-03-12 Thread Wolfgang Schuster
xtCommand {\doglobal\increment\AnswerCounter \pagereference[answer:\AnswerCounter]% \doifreferencefoundelse{question:\AnswerCounter} {\goto{#1}[question:\AnswerCounter]}   {#1}} \defineenumeration [question]    [text=Question, alternative=serried,     headcommand=\QuestionTextCommand] \defin

[NTG-context] Question and Answer Iteration

2019-03-12 Thread Jeroen
rement\AnswerCounter \pagereference[answer:\AnswerCounter]% \doifreferencefoundelse{question:\AnswerCounter} {\goto{#1}[question:\AnswerCounter]} {#1}} \defineenumeration [question] [text=Question, headcommand=\QuestionTextCommand] \defineenumeration [ans

Re: [NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-12 Thread Hans Hagen
On 2/11/2019 7:44 PM, Rik Kabel wrote: \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext sorry, i'll fix it (upload later today) Hans

Re: [NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
That is, it is OK if the command \setupenumeration… before the \defineenumeration[Exam], but if the command \setupenumeration… after the \defineenumeration[Exam] cause the problem. After change the order of appearance such a commnad in my environment file, the numbers of Exam are correct. Now, I have

Re: [NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-11 Thread Wolfgang Schuster
Rik Kabel schrieb am 11.02.19 um 19:44: The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem

[NTG-context] Compilation fails on 20190210 beta with Unidentified user defined whatsit

2019-02-11 Thread Rik Kabel
The following works well with previous versions and fails on the 20190210 beta. \defineenumeration[ID] [before=\dontleavehmode, alternative=inright] \starttext \ID[id1]This is only a test. \stoptext The problem appears to be associated with the inright alternative

[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
efineoverlay[MyFrame][\useMPgraphic{MyFrame}] \defineframedtext [MyText] [frame=off, background=MyFrame, before={\blank[line,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [alternative=empty, title=yes, titleleft=, titleri

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-02-01 Thread Otared Kavian
enumeration environments for % Questions and Answers \defineenumeration[question] [text=Question, headcommand=\QuestionTextCommand, number=yes, prefix=yes, prefixsegments=chapter, coupling=hint] \defineenumeration[hint] [text=Hint

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Mikael P. Sundqvist
=start,color=,contrastcolor=,style=] \define[1]\problemtextmakro {% \doifreferencefoundelse{losn:\currentconstructionreference} {\llap{\goto{{\WORD l}}[losn:\currentconstructionreference]}\,} {}% #1 } \defineenumeration[problem][ referenceprefix=problem, text=, width=fit

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Weber, Matthias
A while back I asked a similar question, and Hans pointed out the following which I still use: \defineenumeration [exercise] [way=bysection, text=Exercise, coupling=solution, location=hanging] \defineenumeration [solution] [text=Solution, way=bysection, coupling=exercise

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Wolfgang Schuster
Hi Sanjoy, when you have a equal number of questions ans answers you can create a enumeration for each and collect the answers with the block mechanism. At the end of the document you can flush the collected answers. \defineblock [answer] \defineenumeration [question] \defineenumeration

[NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Sanjoy Mahajan
tried the analogous context.getnumber({"problem"}), though without success. Does anyone see what I am missing? Many thanks! -Sanjoy \defineenumeration[problem] [title=yes, text=Problem, way=bychapter, prefix=chapter] \defineenumeration[solution][problem] \setupenumeration [solut

Re: [NTG-context] prevent page break when using blocks

2018-09-27 Thread Wolfgang Schuster
Jan Willem Flamma schrieb am 27.09.18 um 17:18: Dear list members, How can I prevent that a question block breaks across a page? Kind regards, Jan Willem Flamma MWE \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question

[NTG-context] prevent page break when using blocks

2018-09-27 Thread Jan Willem Flamma
Dear list members, How can I prevent that a question block breaks across a page? Kind regards, Jan Willem Flamma MWE \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text={Question}, after={\blank[2*big

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
hen mode BL is not >> enabled. >> >> When mode BL is enabled (using the toggle), the third column should of >> course appear again. >> >> How can I achieve this? >> >> Regards, >> Jan Willem >> >> >> MWE: >> &

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
can I achieve this? Regards, Jan Willem MWE: \starttext %Toggles %\enablemode[BL] \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text=Question, after={\blank[2*big]}, inbetween={\blank[nowhite

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
] \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text=Question, after={\blank[2*big]}, inbetween={\blank[nowhite]}, way=bychapter, prefixsegments=chapter, prefix=yes] \defineenumeration

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-28 Thread Jeong Dal
content ends with words. But it is not working if the item contents end with \stopformula. If I put \placeclosesymbol before \stopformula, then it is shown just after the last word. Anyway, it works in most cases. Thank you again. Best regards, Dalyoung % \defineenumeration[p

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-27 Thread Aditya Mahajan
On Mon, 27 Aug 2018, Jeong Dal wrote: Hi, The same thing happens after the itemization as in the following MWE. \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi

Re: [NTG-context] closesymbol on same line as displayed formula

2018-08-26 Thread Jeong Dal
MWE. Thank you for reading. Best regards, Dalyoung \defineenumeration[proof][text=Proof.] \setupenumeration[proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\ifmmode\eqno\else\wordright\fi] \starttext \startproof This is a simple proof. \stopproof

[NTG-context] Blocks in margin with overflow of text

2018-08-22 Thread Fabrice Couvreur
=broad] \defineenumeration [example] [text=Exemple, style=italic] \showframe \starttext \startchapter[title=First chapter] \placerecipe{}{ \startexample \input ward \stopexample} \stopchapter \startchapter[title=Second chapter] \placerecipe{}{ \startexample \input ward

Re: [NTG-context] Enumerations in an environment

2018-08-13 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 13.08.18 um 12:35: Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand

[NTG-context] Enumerations in an environment

2018-08-13 Thread Fabrice Couvreur
Hello, How to have : Démonstration --- 1.one 2.two 3.three Thanks Fabrice \defineenumeration [proof] [text=Démonstration, alternative=serried, number=no, headcommand=\groupedcommand{}{~---~}, headstyle=bolditalic, %headcommand=\groupedcommand{}{:\,}, width=broad

Re: [NTG-context] How to do an inline itemization?

2018-08-10 Thread Jeong Dal
well in my text. However, in the following example, there is no difference at all. strange! %%% \defineenumeration[Solution] [text={\ss\bf Solution}, number=no, after=\blank] \starttext \startSolution \startitemize[n,packed][stopper=)] \item This is a test for the referen

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Wolfgang Schuster
the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text={Exercice}, headstyle={\bf

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Alan Braslau
lign=flushleft, >location=low, >background=color, >backgroundcolor=lightgray] > > \defineenumeration > [exercice] > [text={Exercice}, >headstyle={\bf\feature[+][f:smallcaps]}, >headcommand=\ACFRAME, >numberconversionset=ACCONVERS

[NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Fabrice Couvreur
Hello, I find that the text is near the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text

Re: [NTG-context] Set up a theorem style

2018-07-26 Thread Fabrice Couvreur
=chapter, way=bysection, *numberstopper={. ---},* style=italic, ] \defineenumeration[theorem] Fabrice 2018-07-25 12:15 GMT+02:00 Fabrice Couvreur : > Hello, > I used LaTeX for a long time before converting (with difficulty !) to > ConteXt. For example, to defi

Re: [NTG-context] Set up a theorem style

2018-07-25 Thread Aditya Mahajan
umerations[ before={\blank}, after={\blank}, text=Théorème, alternative=serried, title=no, prefix=yes, prefixsegments=chapter, way=bysection, right=., titlestyle=bold, style=italic, width=broad, ] \defineenumeration[theorem]

[NTG-context] Set up a theorem style

2018-07-25 Thread Fabrice Couvreur
t=Théorème, alternative=serried, title=no, prefix=yes, prefixsegments=chapter, way=bysection, right=., titlestyle=bold, style=italic, width=broad, ] \defineenumeration[theorem] \starttext \startchapter[title={First Chapter}] \startsection[title={Fir

[NTG-context] Numbering properties in a chapter

2018-07-23 Thread Fabrice Couvreur
}} \setupenumerations[ text=Propriété , title=no, way=bychapter, titlestyle=bold, style=slanted, width=fit, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule ] \defineenumeration[propriete] \starttext

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
roundcolor=black, >> foregroundcolor=white, >> forgroundstyle=bold] >> >> >> \defineprocessor[ACPROCESSOR][command=\ACFRAME] >> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] >> >> \defineenumeration >>[ex] >

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=bold] > > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCON

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
bold] > > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration >[ex] >[text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried]

Re: [NTG-context] Strange behavior with font pagella

2018-07-15 Thread Rik Kabel
[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration    [ex]    [text=,     distance=0.3em,     width=fit,     numberconversionset=ACCONVERSION,     alternative=serried] \starttext \dorecurse{5}    {\startex     \input knuth     \stopex} \stopt

[NTG-context] Strange behavior with font pagella

2018-07-15 Thread Fabrice Couvreur
, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\ACFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=, distance=0.3em, width=fit, numberconversionset=ACCONVERSION, alternative=serried] \starttext \dorecurse{5} {\startex \in

[NTG-context] blank line at the beginning of the theorem or proof

2018-05-12 Thread Jeong Dal
of “Theorem 1” with the figure at the right? Thank you. Best regards, Dalyoung \defineenumeration[Theorem] [text={\translate[en=Theorem, kr=정리]}, style=, title=yes, prefix=yes, prefixsegments=chapter, way=bychapter, number=yes, before={\blank[big]}, after

Re: [NTG-context] Horizontal line after text in an environment

2018-04-26 Thread Fabrice Couvreur
e >> >> >> \setuptolerance[stretch,verytolerant] >> \useMPlibrary[dum] >> >> >> \define[1]\ProprieteHeadcommand >>{\textrule[top]{#1}} >> >> \defineenumeration >>[propriete] >>[text=Propriété, >> title=yes, >>

Re: [NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Hans Hagen
. \flushsidefloats Thanks Fabrice \setuptolerance[stretch,verytolerant] \useMPlibrary[dum] \define[1]\ProprieteHeadcommand   {\textrule[top]{#1}} \defineenumeration   [propriete]   [text=Propriété,    title=yes,    headstyle={bold},    style=italic,    headcommand=\ProprieteHeadcommand

[NTG-context] Horizontal line after text in an environment

2018-04-25 Thread Fabrice Couvreur
] \useMPlibrary[dum] \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \defineenumeration [propriete] [text=Propriété, title=yes, headstyle={bold}, style=italic, headcommand=\ProprieteHeadcommand, numbercommand=\groupedcommand{}{\nbsp}, after=\textrule] \starttext

Re: [NTG-context] Question about an environment

2018-02-04 Thread Fabrice Couvreur
n, we have this : > > 1. First > Second > Third > > Is it possible to have this : > > 1. First > Second > Third > > > Use inline items and add \par (or a empty line) after each line. > > \defineenumeration > [ex] > [alternative=se

Re: [NTG-context] Question about an environment

2018-02-03 Thread Wolfgang Schuster
y line) after each line. \defineenumeration [ex] [alternative=serried, width=2em, distance=0pt, text=] \starttext \startex \startitemize[text] \item First \par \item Second \par \item Third \par \stopitemize \stopex \stoptext Wo

Re: [NTG-context] Question about an environment

2018-02-03 Thread Fabrice Couvreur
abrice Couvreur <fabrice1.couvr...@gmail.com> > 28. Januar 2018 um 22:54 > Hello, > How to make the first item on the baseline of the numbering as in the > first exercise ? > > > You have put the item environment in a box. > > \defineenumeration > [ex] > [

Re: [NTG-context] Question about an environment

2018-02-02 Thread Wolfgang Schuster
Fabrice Couvreur <mailto:fabrice1.couvr...@gmail.com> 28. Januar 2018 um 22:54 Hello, How to make the first item on the baseline of the numbering as in the first exercise ? You have put the item environment in a box. \defineenumeration [ex] [alternative=serried, wid

Re: [NTG-context] Question about an environment

2018-01-31 Thread Fabrice Couvreur
background=color, >backgroundcolor=black, >foregroundcolor=white, >forgroundstyle=bold] > > \defineprocessor[ACPROCESSOR][command=\EXFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > \defineenumeration > [ex] > [text=, >width=fit, >

[NTG-context] Question about an environment

2018-01-28 Thread Fabrice Couvreur
] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white, forgroundstyle=bold] \defineprocessor[ACPROCESSOR][command=\EXFRAME] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [t

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Rik Kabel
} \defineenumeration   [Enu]   [alternative=mylabel,    display=no,    before=,    after=] \definelabel   [Lab]   [alternative=mylabel,    before=,    after=] \definenote   [endnote] \setupnotation   [endnote]   [way=bytext,    location=none

Re: [NTG-context] Labels and Enumerations

2018-01-15 Thread Hans Hagen
\stopsetups \defineenumeration[two][alternative=mylabel,display=no,before=,after=] \definelabel[foo][way=bychapter,prefix=chapter] \starttext     \startchapter[title=bar]     here \starttwo\stoptwo \input tufte     here \foo[xx] \input tufte     whatever \in{foo}[xx

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
[constructionrenderings:mylabel]   \dontleavehmode   \inright{\flushconstructionheadbox} \stopsetups \defineenumeration   [one]   [alternative=mylabel,    display=no,    before=,    after=] \definenote   [endnote] \setupnotation   [endnote]    [way=bytext,     location

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Rik Kabel
mechanism, this request can be rejected.) two options: \defineconstructionalternative   [mylabel]   [renderingsetup=constructionrenderings:mylabel,    width=] \startsetups[constructionrenderings:mylabel]     \dontleavehmode     \flushconstructionheadbox \stopsetups \defineenumeration[two

Re: [NTG-context] Labels and Enumerations

2018-01-14 Thread Hans Hagen
.) two options: \defineconstructionalternative [mylabel] [renderingsetup=constructionrenderings:mylabel, width=] \startsetups[constructionrenderings:mylabel] \dontleavehmode \flushconstructionheadbox \stopsetups \defineenumeration[two][alternative=mylabel,display=no,before=,after

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
On 2018-01-12 17:46, Hans Hagen wrote: On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
On 1/12/2018 10:31 PM, Rik Kabel wrote: maybe putting a \dontleavehmode in front helps Indeed. Thank you. Adding it to the before key of \defineenumeration appears to have no unwanted side effects. Can you think of a reason not to do that? something tex ... one starts a group at the start

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
indent when the label is at the beginning of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
of a paragraph and fails to print the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
the label or generate references with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID     \setupindenting[yes,small

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Hans Hagen
with alternative=inmargin (or inright, or inleft) when in a footnote. \defineenumeration fails to work in a footnote. use \ID ... \par as it has to know where it ends which is a paragraph end or use \startID ... \stopID \setupindenting[yes,small] \definelabel   [ID][ %\defineenumeration[ID

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
expected and one at the beginning of the framed text which I don’t want. One more thing, is there no way to show the number of the Definition? you can download a beta and try \defineenumeration[Theorem] [alternative=empty, before=\startMyText, after=\stopMyText] \defineframed

Re: [NTG-context] Problem with definelabel and footnotes

2018-01-12 Thread Rik Kabel
with the notes as traditional footnotes. When the notes with labels appear in footnotes, the labels are not printed. The MWE below demonstrates the problem. I would expect to see a red 2 at the end of the first line of the footnote. I have tried to use \defineenumeration instead of \definelabel

Re: [NTG-context] Label problems with \definelabel and \defineenumeration, in and out of footnotes

2018-01-12 Thread Rik Kabel
in a footnote. \defineenumeration fails to work in a footnote. \setupindenting[yes,small] \definelabel   [ID][ %\defineenumeration[ID][    text=,    after=,    before=,    headcolor=red,    alternative=inright,   ] \starttext \starttitle[title={Label

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
e,halfline]}, after={\blank[line]}, offset=\bodyfontsize, width=\textwidth] \defineenumeration[Theorem] [title=no, text={\translate[en=Theorem, kr=정리]}, prefix=yes, prefixsegments=chapter, way=bychapter, alternative=command, %% headcommand=\gobbleoneargument,

<    1   2   3   4   5   6   7   8   9   >