Two questions on enumerations/indentation
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 correct way to (in the example below) get Remark in italic and the number upright? /Mikael \defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] \starttext \samplefile{tufte} \startremark This line should be indented. The next line should not be indented. I wonder how we can fix that. This line is fine and is here for comparison. \stopremark \samplefile{tufte} \stoptext
Can solve with
\defineenumeration[remark][
alternative=serried,
width=fit,
text={{\it Remark}},
headstyle=\tf,
indenting={first,medium},
%headcommand=\groupedcommand{\hskip 1em}{},
]
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 correct way to (in the example below) get Remark in italic and the number upright?
/Mikael
\defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ]
\starttext
\samplefile{tufte}
\startremark This line should be indented. The next line should not be indented. I wonder how we can fix that.
This line is fine and is here for comparison. \stopremark
\samplefile{tufte}
\stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Thank you for that!
This certainly gives me an italic Remark and an upright 1. I feel a bit
uneasy about adding the style to the text key, but if there is no other way
out...
I do not get the head indented with your code.
/Mikael
Den fre 31 dec. 2021 00:26fv leung via ntg-context
Can solve with
\defineenumeration[remark][ alternative=serried, width=fit, text={{\it Remark}}, headstyle=\tf, indenting={first,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ]
Mikael Sundqvist via ntg-context
於 2021年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 "1em" below to fit the medium indenting.
2) I miss a numberstyle. What is the correct way to (in the example below) get Remark in italic and the number upright?
/Mikael
\defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ]
\starttext
\samplefile{tufte}
\startremark This line should be indented. The next line should not be indented. I wonder how we can fix that.
This line is fine and is here for comparison. \stopremark
\samplefile{tufte}
\stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Mikael Sundqvist via ntg-context schrieb am 31.12.2021 um 13:19:
Thank you for that!
This certainly gives me an italic Remark and an upright 1. I feel a bit uneasy about adding the style to the text key, but if there is no other way out...
Create a custom conversion set for the counter and apply a formatting to the counter with a processor.
I do not get the head indented with your code.
The serried alternative disables paragraph indentation before the title. You solution is one possible method, another one is to put the title in a \framed block and change the left margin in the block. Another possible method is to shift the title to the right with the \offset command and increase the distance between the title and the following text. \defineprocessor [upright] [style=normal] \defineconversionset [upright-n] [] [upright->n] \defineenumeration [remark] [ alternative=serried, width=fit, text=Remark, headstyle=italic, headcommand={\unframed[offset=0pt,location=low,loffset=1em]}, numberconversionset=upright-n, indenting={yes,medium}] Wolfgang
participants (3)
-
fv leung
-
Mikael Sundqvist
-
Wolfgang Schuster