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

2024-04-14 Thread garulfo
stofsynonyms 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 Command

[NTG-context] Re: Square right aligned

2024-02-09 Thread Wolfgang Schuster
in a description or enumeration environment. \definedescription [qedtest] [closesymbol=\symbol{qed}] \starttext \startqedtest \samplefile{lorem}\qed \stopqedtest \stoptext Wolfgang ___ If your question is of interest

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
Gerion Entrup schrieb am 25.01.2024 um 09:18: Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
able to > process it in Lua. I found something on StackOverflow [1] but that > breaks in enumeration _and_ when interaction is enabled and I do not > understand why? Can you give me some help here? > > I want to make commands like \foo{bla} and \foo[b]{bla} possible at the >

[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-25 Thread Gerion Entrup
Hi, I want to make a proper definition of a new command to be able to process it in Lua. I found something on StackOverflow [1] but that breaks in enumeration _and_ when interaction is enabled and I do not understand why? Can you give me some help here? I want to make commands like \foo{bla

[NTG-context] Text and Remark

2023-11-16 Thread Ursula Hermann
Dear List: I would like to have text next to the Remark Number \setupindenting[yes,small,first] \defineenumeration [remark] [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] \starttext \remark An enumeration (\tex{remark}, in this case

[NTG-context] command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
/bidi.pdf; "Flowcharts","charts-mkiv.pdf", Faking a command such as \cA, \cB and \cC (for contents of columns A, B or C) I would like to create a source document with an enumeration that contains: \doiftext{\cB} {\item {\em\cA}\attachment[file=\cB]% \doiftext{\cC}{

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
}{} % Add the enumeration \defineenumeration [Counter] [text=, alternative=empty, before={\FrameTitle{Counter \getnumber[Counter]} \startFunnyText}, after={\stopFunnyText}] \starttext \startCounter First example \stopCounter \startCounter Second example \stopCounter

[NTG-context] Re: Key distance with enumeration

2023-07-27 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 27.07.2023 um 20:56: Hi, I don't understand why the distance between the dot and the first letter of the text is not always the same (see with theorem). Add         stretch=0,         shrink=0, to your enumeration setup. Wolfgang

[NTG-context] Key distance with enumeration

2023-07-27 Thread Fabrice Couvreur
Hi, I don't understand why the distance between the dot and the first letter of the text is not always the same (see with theorem). Thanks Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=1cm, title=yes, titleleft=, titleright=,

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
b/mdframed/mdframed.pdf) > > > > I have searched in the wiki and found \defineenumeration: > > This is near of that what I need. However I explicitly does not need an > > enumeration (so no number or counter). Also I am not sure if I can set a > > background

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
s not need an enumeration (so no number or counter). Also I am not sure if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on,

[NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Gerion Entrup via ntg-context
omogeneous linear of the mdframed documentation: http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf) I have searched in the wiki and found \defineenumeration: This is near of that what I need. However I explicitly does not need an enumeration (so no number or counter). Also I am not sur

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,    background

Re: [NTG-context] something’s wrong with \definefontfallback

2022-10-30 Thread Henning Hraban Ramm via ntg-context
ack activated for math (since some enumeration symbols were missing), but I get an error also without math. Btw, 0x0-0xF is a bit over the top, Well, if I want to replace all missing characters without thinking too much which that might be? Hraban fontfallbacktest.tex Description:

[NTG-context] Formula has excess vertical spacing when in two column itemize

2022-10-21 Thread Gavin via ntg-context
Hi List, I am getting better at adjusting the space in enumerations, but I just put a formula inside an enumeration, and the formula’s vertical spacing became excessive. I’m not sure how the enumeration caused this problem. \starttext Evaluate the following derivatives. \startitemize[n

Re: [NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
e MP code for several custom enumeration. > > > > However I can't make the overall setup work, needless to say different > > border colors for each enumeration though setupMPvariables. What am I > > missing?\startuseMPgraphic{mp:textFrame} > begingroup; >

Re: [NTG-context] Issue with setupMPvariables

2022-09-03 Thread Hans Hagen via ntg-context
On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote: Dear all, I'm trying to reuse some MP code for several custom enumeration. However I can't make the overall setup work, needless to say different border colors for each enumeration though setupMPvariables. What am I missing

[NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Dear all, I'm trying to reuse some MP code for several custom enumeration. However I can't make the overall setup work, needless to say different border colors for each enumeration though setupMPvariables. What am I missing? MWE: see attachment testColorParagraphs.tex Description: TeX

Re: [NTG-context] item enumeration

2022-05-25 Thread Wolfgang Schuster via ntg-context
Jorge Manuel via ntg-context schrieb am 25.05.2022 um 12:22: Hi to All A have this piece of code that works in old ConText versions but with new versions (current version: 2022.04.19 19:53) don’t. \def\legalconversion#1{  \dorecurse{\numexpr\currentitemlevel-1}{%  

[NTG-context] item enumeration

2022-05-25 Thread Jorge Manuel via ntg-context
Hi to All A have this piece of code that works in old ConText versions but with new versions (current version: 2022.04.19 19:53) don’t. \def\legalconversion#1{  \dorecurse{\numexpr\currentitemlevel-1}{%  \rawcounter[itemgroup:\currentparentitemgroup][\recurselevel].}%  #1% }

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
ou are certain that the there will be no multi-line item (i.e. item text is short enough that it fits in slightly less than half of textwidth) you can use an enumeration, and put the contents inside a two-column layout: %%% start example-1 \define[1]\aitemcmd{\inframed[width=1cm,align=flushrigh

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-04 Thread Jan-Erik Hägglöf via ntg-context
Many thanks, that was very structured and helpful. /Jan-Erik > 3 jan. 2022 kl. 12:07 skrev kauśika : > > On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: >> If 'Exercises' and 'Answers to exercises' are some head structure (assuming >> unnumbered since they are so in your example): >>

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: > If 'Exercises' and 'Answers to exercises' are some head structure (assuming > unnumbered since they are so in your example): > \definehead[exercises][subject] > \definehead[answers][subject] > then you can simply do >

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
On Monday, January 3, 2022 4:21:27 PM IST Jan-Erik Hägglöf via ntg-context wrote: > I want a simple solution to reset the counter so it achieves the following > result: > > Exercises > > 1 First exercise > > 2 Second exercise > > Answers to exercises > > 1 Answers to first exercise > > 2

[NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread Jan-Erik Hägglöf via ntg-context
Hi! I’ve been doing this in my exams to define exercises in a structural way. \defineenumeration[uppgift] \setupenumerations[uppgift][alternative=left,width=1cm,text= ,after={\blank[2*big]}] \starttext \startuppgift Here comes the exercise \stopuppgift \stoptext I want a simple solution

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-31 Thread Mikael Sundqvist via ntg-context
021年12月31日 週五 > 上午4:55寫道: > >> Hi, >> >> I have two questions: >> >> 1) What is the correct way to indent the first line of a (serried) >> enumeration? In the example below, I can use headcommand, but then I >> do not know what I should replace "1e

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread fv leung via ntg-context
ns: > > 1) What is the correct way to indent the first line of a (serried) > enumeration? In the example below, I can use headcommand, but then I > do not know what I should replace "1em" below to fit the medium > indenting. > > 2) I miss a numberstyle. What is the cor

[NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread Mikael Sundqvist via ntg-context
Hi, I have two questions: 1) What is the correct way to indent the first line of a (serried) enumeration? In the example below, I can use headcommand, but then I do not know what I should replace "1em" below to fit the medium indenting. 2) I miss a numberstyle. What is the c

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 8:34:52 PM IST Wolfgang Schuster wrote: > Provide a complete minimal example to increase your chances for an answer. > > Wolfgang I was inspecting this just now and figured out that in one of the \defineenumeration I was inheriting another enumeration bl

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread Wolfgang Schuster via ntg-context
kauśika via ntg-context schrieb am 20.11.2021 um 14:28: On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: > Dear list, > > I have the following enumeration block. > > \defineenumeration[verse] > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=fit, >distance=1em, >wa

[NTG-context] Enumeration numbering in the left margin

2021-11-19 Thread kauśika via ntg-context
Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue

Re: [NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread juh via ntg-context
ll \startcell[align=flushright] @ "0.2f €" (A[row] * D[row]) \stopcell \stoprow \stopspreadsheettable \stoptext Anz. MwSt. And the comma separated enumeration under "Beschreibung". TIA juh -- Autoren-Homepage: . http://literatur.hasecke.com Satiren & Essays: .

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Rudolf Bahr via ntg-context
for a user to change the default to the above choice in his > > > document ? > > > > it is no problem to fix if you all can agree on what/how to fix ... > > The purpose of abbreviations is, well, to abbreviate. Even though ‘ème’ > is seen a lot, it’s wrong because

Re: [NTG-context] Create an enumeration style

2021-08-27 Thread Vincent Hennebert via ntg-context
ause it’s too long. Source (pretty official): https://www.academie-francaise.fr/abreviations-des-adjectifs-numeraux So for numbers starting from 3 the proper abbreviation is ‘e’. For 1 and 2 it’s more complicated, however, as it depends on the gender. For 1: * masculine: 1er * feminine: 1re In add

Re: [NTG-context] numbered exercises

2021-08-25 Thread Henning Hraban Ramm via ntg-context
Ramm via ntg-context schrieb am 24.08.2021 um 20:31: >>>> Hi, I’m typesetting a textbook that contains numbered and indented >>>> exercises. They must not float. >>>> >>>> Which structure should I use for them? There must be an easy answer, but I >

Re: [NTG-context] numbered exercises

2021-08-24 Thread Aditya Mahajan via ntg-context
at contains numbered and indented > >> exercises. They must not float. > >> > >> Which structure should I use for them? There must be an easy answer, but I > >> draw a blank. > > > > Use an enumeration. > > Thank you, but how can I define a ti

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
m via ntg-context schrieb am 24.08.2021 um 20:31: >>>> Hi, I’m typesetting a textbook that contains numbered and indented >>>> exercises. They must not float. >>>> >>>> Which structure should I use for them? There must be an easy answer, but I &g

Re: [NTG-context] numbered exercises

2021-08-24 Thread Gavin via ntg-context
at contains numbered and indented >>> exercises. They must not float. >>> >>> Which structure should I use for them? There must be an easy answer, but I >>> draw a blank. >> >> Use an enumeration. > > Thank you, but how can I define a title/capt

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
not float. Which structure should I use for them? There must be an easy answer, but I draw a blank. Use an enumeration. Thank you, but how can I define a title/caption for the enumeration and its reference? \defineenumeration [Exercise] [text=Exercise, title=yes, titleleft

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
hich structure should I use for them? There must be an easy answer, but I >> draw a blank. > > Use an enumeration. Thank you, but how can I define a title/caption for the enumeration and its reference? Hraban ___

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31: Hi, I’m typesetting a textbook that contains numbered and indented exercises. They must not float. Which structure should I use for them? There must be an easy answer, but I draw a blank. Use an enumeration. Wolfgang

Re: [NTG-context] Create an enumeration style

2021-08-13 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 11.08.2021 um 12:57: I forgot this : how to reduce the font size for the exponents "er", "e" ? The exponents are placed with \high and you can change the style with     \setuphigh[style=...] but this affects all texts which use \high. Wolfgang

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 11 Aug 2021, at 10:19, Thomas A. Schmitz via ntg-context > wrote: > > >> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context >> wrote: >> >> Thanks for the example and the fix, but I would rather think that the « >> french » part of ordinals should be >> >> french =

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
I forgot this : how to reduce the font size for the exponents "er", "e" ? Thanks Fabrice Le mer. 11 août 2021 à 12:41, Fabrice Couvreur a écrit : > Hi Wolfgang, > Many thanks > Fabrice > > Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context < > ntg-context@ntg.nl> a écrit : > >> On

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Fabrice Couvreur via ntg-context
Hi Wolfgang, Many thanks Fabrice Le mer. 11 août 2021 à 10:23, Hans Hagen via ntg-context a écrit : > On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: > > > > > >> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context < > ntg-context@ntg.nl> wrote: > >> (…) > >> core-con.lua

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Hans Hagen via ntg-context
On 8/11/2021 10:09 AM, Otared Kavian via ntg-context wrote: On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context wrote: (…) core-con.lua (line 1155): local ordinals = { [...] french = function(n) if n == 1 then return "er" + else +

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Thomas A. Schmitz via ntg-context
> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context > wrote: > > Thanks for the example and the fix, but I would rather think that the « > french » part of ordinals should be > > french = function(n) > if n == 1 then > return « er" >

Re: [NTG-context] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context > wrote: > (…) > core-con.lua (line 1155): > > local ordinals = { > [...] > french = function(n) > if n == 1 then > return "er" > + else > + return "e" > end > end, > } Hi

Re: [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur schrieb am 09.08.2021 um 14:16: Hi Wolfgang, Thank you for your suggestion. I tested the code and the result is not what I expected from the second item : "2 exemple" instead of "2^{e} exemple", "3 exemple" instead of "3^{e} exemple" ... core-con.lua (line 1155): local

Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47: Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple The conversion needs a fix but this is how you can do it. \defineenumeration   [test]   [text

[NTG-context] Create an enumeration style

2021-08-08 Thread Fabrice Couvreur via ntg-context
Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple Thanks Fabrice ___ If your question is of interest to others as well, please add an entry

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
Hi, Is it possible that the first item is on the baseline of the definition environment title ? Thank you. Fabrice \define\ItemCommand {\hskip\zeropoint\relax\autoinsertnextspace} \setupitemgroup [itemize] [color=darkred, style=bold, distance=\spaceamount] \setupitemgroup

Re: [NTG-context] Title in enumeration not working?

2020-12-30 Thread Mikael Sundqvist
Hi, Thanks for the fix, Hans (version 2020.12.30 16:45 looks fine!) /Mikael On Mon, Dec 21, 2020 at 3:11 PM Otared Kavian wrote: > Hi Mikael, > > Indeed you are right about the fact that > > \startexample[title={Title}] > ... > \stopexample > > > is more logical and also more convenient. >

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mikael, Indeed you are right about the fact that > \startexample[title={Title}] > ... > \stopexample is more logical and also more convenient. Sorry for not having checked your example in mkiv, where this structure works as intended. So it might be a small buglet in LMTX. Best regards:

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
Hi Otared, Thank you for your suggestion. I would say yes and no. I want the result one gets from what you write, but I prefer the syntax \startexample[title={Title}] ... \stopexample and that has been working before. Reading in setup-en.pdf, it also looks to me as if that should work. Best,

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mickael, Maybe this is what you want: \defineenumeration[example] [text=Example, title=yes, titleleft=, titleright={.}, ] \starttext \startexample{Title} This is a test. \stopexample \stoptext Of course is you say text=, then you get only «

[NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
Hi, Has anything changed with titles and enumerations? I expected a title "Title" with the following setup. \defineenumeration[example][ text=Example, title=yes, ] \starttext \startexample[title={Title}] This is a test. \stopexample \stoptext But it does not show up. /Mikael

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
ll be an additional empty line at the end of the typing. Same with the enumerations and when I surround it with a sidebar instead of a textbackground. Often there is even an additional line / additional space before the typing/enumeration. How to surround such things properly? I just want a bac

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
ssi > > > > Thank you! I have two more questions: > > > > 1. Where can I find a documentation for this command? Even Google finds > > nothing. > > I took it from the "Commands" manual. You can find it here: > > ./tex/texmf-contex

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
took it from the "Commands" manual. You can find it here: ./tex/texmf-context/doc/context/documents/general/qrcs/setup-en.pdf in your ConTeXt directory. 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` and `after` options of my enumeration messes up whitespace

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
olor = COLOR >>alternative= NUMBER >>topoffset = DIMENSION >>bottomoffset = DIMENSION >>distance = DIMENSION >>leftmargindistance = DIMENSION >>level = NUMBER >> >> Massi >

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
leftmargindistance = DIMENSION >    level  = NUMBER > > Massi Thank you! I have two more questions: 1. Where can I find a documentation for this command? Even Google finds nothing. 2. Unfortunately, adding \startsidebar and \stopsidebar into the `before` and `after` opt

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
). In my searching for solutions, I thought I'd found something helpful with \startframed but I can't figure any way to combine the framed and enumeration... Anyway, here's some code. It doesn't demonstrate the page-break problem but gives an idea of the different possible sizes of question/answer

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

2020-08-18 Thread Tim Steenvoorden
Hi Taco, Thanks! This works for me. It indeed seems at least inconsistent. Also, using \definecounter[enumeration][object] instead of \setupenumeration[enumeration][counter=object] Numbers figures correctly but forgets the object counter in enumerations, it numbers 1.1., 1.1

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

2020-08-14 Thread Taco Hoekwater
or … For the singular explicit \setupcaption[figure], I think this is a bug. The solution I found is to blatantly redefine the ‘figure’ counter, that works! Second, it seems that \setupenumerations does not modify the counter of an explicit defined enumeration, so you need to use the explicit

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

2020-08-14 Thread Tim Steenvoorden
Hi Taco, Thanks for your example and the pointer to make a MWE. Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and the first figure _also_ 1.1.1, which I’d like to be 1.1.2. This time, you’ll find the code and the output pdf in the attachment! Cheers, Tim P.S. I’m

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

2020-08-08 Thread Otared Kavian
Hi Wolfgang, Thanks for your explanations and the correct definition of the close symbol in an enumeration. Following up the discussions with Hans, in order to put a close sympbol at the end of a formula, I have the following for the definition of \qed: %% begin example-qed.tex \showframe

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

2020-08-05 Thread Wolfgang Schuster
you use the closesymbol for a enumeration ConTeXt uses also the argument of the closecommand to apply something to the symbol, by default the argument to the closecommand key is \wordright. This means you're putting \wordright (which itself is flushed as symbol) within \wordright which has

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

2020-07-06 Thread Jairo A. del Rio
stoptext > > > > works almost perfectly. However, the cross-reference does not work, even > if the number of the enumeration is displayed correctly. The example fails > both in LuaTeX and LuaMetaTeX. As I remember,

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

2020-07-06 Thread Otared Kavian
However, the cross-reference does not work, even if > the number of the enumeration is displayed correctly. The example fails both > in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early as > 2019, so not a matter of a bad

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

2020-07-05 Thread Jairo A. del Rio
}{\input ward} \stopproposition \in[prop:1] \stoptext works almost perfectly. However, the cross-reference does not work, even if the number of the enumeration is displayed correctly. The example fails both in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early as 2019, so not a matter

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

2020-06-12 Thread Mikael Sundqvist
On Fri, Jun 12, 2020 at 9:35 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Mikael Sundqvist schrieb am 12.06.2020 um 20:55: > > Hi, > > > > I noticed an extra space in an enumeration when > > using \setcharacterkerning in the \headstyle param

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

2020-06-12 Thread Wolfgang Schuster
Mikael Sundqvist schrieb am 12.06.2020 um 20:55: Hi, I noticed an extra space in an enumeration when using \setcharacterkerning in the \headstyle parameter. The extra space appears before the first word "Sats", and in my case it is unwanted (In the example I want the word Sat

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

2020-06-12 Thread Mikael Sundqvist
Hi, I noticed an extra space in an enumeration when using \setcharacterkerning in the \headstyle parameter. The extra space appears before the first word "Sats", and in my case it is unwanted (In the example I want the word Sats to align with a), b), ...). The space was not there

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

2020-04-19 Thread Aditya Mahajan
On Sun, 19 Apr 2020, Jairo A. del Rio wrote: I've seen the following solution in Stack Exchange to add referenceable enumeration labels to a framed enumeration environment: https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay

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

2020-04-18 Thread Jairo A. del Rio
Sorry, I resend my question because I forgot the subject -- Forwarded message - De: Jairo A. del Rio Date: sáb., 18 de abr. de 2020 a la(s) 23:53 Subject: To: mailing list for ConTeXt users I've seen the following solution in Stack Exchange to add referenceable enumeration

[NTG-context] (no subject)

2020-04-18 Thread Jairo A. del Rio
I've seen the following solution in Stack Exchange to add referenceable enumeration labels to a framed enumeration environment: https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay It uses \wrappedcurrentconstruction. However

Re: [NTG-context] Indentation problem inside enumeration

2020-01-02 Thread Mikael P. Sundqvist
On Tue, Dec 17, 2019 at 8:39 AM Mikael P. Sundqvist wrote: > Hi! > > I've met a strange problem with indentation in consecutive enumerations. > It seems to me that if > > 1) the first enumeration uses indentnext=no > AND > 2) the next enumeration uses a backgr

[NTG-context] Indentation problem inside enumeration

2019-12-16 Thread Mikael P. Sundqvist
Hi! I've met a strange problem with indentation in consecutive enumerations. It seems to me that if 1) the first enumeration uses indentnext=no AND 2) the next enumeration uses a background then the second(?) paragraph of the second enumeration is not indented. Here is a small example (see

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-17 Thread Otared Kavian
Hi Aditya,Thanks for your hint: I didn't know that subtelty about Lucida OT (and I don't know how to set it up when using Lucida OT).That being said, actually what I would like to use is the kind of script font which is the attached document (those script fonts were widely used in higher

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-17 Thread Aditya Mahajan
On Wed, 16 Oct 2019, Otared Kavian wrote: I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font: OT: Do you use this to get a less cursive script font? Lucida (like many opentype math fonts) comes with two

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Otared Kavian
Hi Fabrice, The Lucida OT family is indeed not free (it costs 110 US dollars from TUG), but tha Asana Math is included in the distribution of ConTeXt, LuaMetaTeX and, I think, TeXLive. Best regards: Otared > On 16 Oct 2019, at 23:38, Fabrice Couvreur > wrote: > > Hi Kavian, > It seems to

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Fabrice Couvreur
Hi Kavian, It seems to me that these fonts are not free. Thank you for your help. Fabrice Le mer. 16 oct. 2019 à 05:28, Otared Kavian a écrit : > Hi Fabrice, > > I use Lucida OT fonts for all my documents, but since I prefer the script > fonts from another font I have the following setups for

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
Hi Fabrice, I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font: %% %% Some Font Definitions \definefallbackfamily[myfont][math][Asana Math]

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
Hello, Thanks to you two. "Another solution is to define your own mixture of math fonts and text fonts." I thought you should not mix several fonts in one text. I know you're a teacher, what are you doing to write your documents ? Fabrice Le mar. 15 oct. 2019 à 19:11, Otared Kavian a écrit : >

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
Hi Fabrice, Wolfgang gave the right answer, but I wanted to point out that it is better not to use \setupbodyfont in the middle of your document, as you did in the excerpt below: in this case it is better to use \switchtobodyfont[xits] or even better define the character you want before

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 15.10.2019 um 18:39: Hello, Why items are numbered with a square instead of a bullet ? Because the bullets for the default sans serif font are rectangular. \starttext \symbol[bullet] {\ss\symbol[bullet]} \blank \setupsymbols[stylealternative=math]

[NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
Hello, Why items are numbered with a square instead of a bullet ? Thanks. Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color,

[NTG-context] Figure labels in combinations

2019-07-30 Thread Luca Mauri
on. I could not find anything along these lines in the documentation; also tried to concoct a "nonfloating" float or to use an enumeration, but was not able to come up with a solution. Luca ___ If your que

[NTG-context] noindent vs noindentation in strc-con

2019-07-12 Thread Aditya Mahajan
Hi, Why do all the rendering setups in strc-con.mkvi use \noindent? Can the \noindet be replaced by \noindentation? \noindent has some side effects. For example, consider this recent question on TeX.SE: https://tex.stackexchange.com/questions/499464/context-empty-line-in-enumeration which

Re: [NTG-context] Itemization formatting

2019-05-29 Thread Wolfgang Schuster
. Best wishes, Taco PS It seems that “indentnext=no” does not work for nested itemizations? You can use the "text" option and add \par at the end of each item but your requirements (hanging text, different margin and before/after ssettings) are easier to solve with a description or e

Re: [NTG-context] Filling the diamond in enumeration

2019-04-20 Thread Otared Kavian
Hi Fabrice, You can define your own symbol, as in the following: \starttext \definesymbol[mysymbol][{$\red\blacklozenge$}] \definesymbol[redtriangle][{$\red\blacktriangleright$}] \startitemize[mysymbol] \item foo \item bar \item baz \stopitemize \startitemize[redtriangle]

[NTG-context] Filling the diamond in enumeration

2019-04-20 Thread Fabrice Couvreur
Hi, Is it possible to fill the diamond ? Thank you. Fabrice \starttext \startitemize[4][color=red] \item One \item Two \stopitemize \stoptext ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Headings vs. enumerations

2019-02-01 Thread Clyde Johnston
, 2019 12:14 AM To: mailing list for ConTeXt users; Clyde Johnston Subject: Re: [NTG-context] Headings vs. enumerations Clyde Johnston schrieb am 31.01.19 um 21:07: > > I have a document that contains a numbered enumeration that spans 107 > pages – it’s a legal document where \items are cl

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

2019-02-01 Thread Otared Kavian
or Question \setupinteraction[state=start] % We define two counters which follow the numbers % appearing in Question and Answer \newcounter\QuestionCounter \newcounter\HintCounter \newcounter\AnswerCounter % We create two commands to be used in the % enumeration environments % Note that the check

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

2019-01-31 Thread Weber, Matthias
ers 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 [answer] > > \starttext

Re: [NTG-context] Headings vs. enumerations

2019-01-31 Thread Wolfgang Schuster
Clyde Johnston schrieb am 31.01.19 um 21:07: I have a document that contains a numbered enumeration that spans 107 pages – it’s a legal document where \items are clauses.  I would like to put level one of the enumeration in a table of contents. I have read the available documentation but I

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

  1   2   3   4   5   6   >