\description - indenting lines from the 2nd
Hello, what option(s) to use with \definedescription if I'd like to get the following shape (attempt to ACSII art): XXXXXX blablabla blablabla bla blabla. | | |-| A constant of indenting - to be specified by the user. | | |<------------>| Text width. I inspired by wiki (the code bellow) but shapes I got could be illustrated: \A: XXXXXX blablabla blablabla bla blab- la. | | |<--->| Indenting given by the width of the head - unwanted. \B=\C: XXXXXX blablabla blablabla bla blab- la. | | |<--->| Indenting given by the width of the head - unwanted. | | |-] The "margin" option affects indenting of the whole description - unwanted, I want to indent only lines from the 2nd. I tried some combinations of options - location, width, margin - nothing leads to the desired form. My trials e.g.: ---- \definedescription[A][headstyle=bold,location=hanging,width=fit,] \definedescription[B][headstyle=bold,location=hanging,width=fit,margin=1cm,] \definedescription[C][headstyle=bold,location=hanging,width=fit,margin=1cm,command=\hskip-1cm] \starttext \input tufte \A{Short} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \A{Rather longer label} This is a longer item label. As you can see, the text is not started a specified distance in -- unlike with other lists -- but is spaced a fixed distance from the end of the label. \input tufte \B{Short} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \B{Rather longer label} This is a longer item label. As you can see, the text is not started a specified distance in -- unlike with other lists -- but is spaced a fixed distance from the end of the label. \input tufte \C{Short} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. \C{Rather longer label} This is a longer item label. As you can see, the text is not started a specified distance in -- unlike with other lists -- but is spaced a fixed distance from the end of the label. \stoptext ---- Any idea how to obtain the form described above? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 04.04.2012 um 10:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
what option(s) to use with \definedescription if I'd like to get the following shape (attempt to ACSII art):
XXXXXX blablabla blablabla bla blabla.
| | |-| A constant of indenting - to be specified by the user.
| | |<------------>| Text width.
I inspired by wiki (the code bellow) but shapes I got could be illustrated:
\A:
XXXXXX blablabla blablabla bla blab- la.
| | |<--->| Indenting given by the width of the head - unwanted.
\B=\C:
XXXXXX blablabla blablabla bla blab- la.
| | |<--->| Indenting given by the width of the head - unwanted.
| | |-] The "margin" option affects indenting of the whole description - unwanted, I want to indent only lines from the 2nd.
I tried some combinations of options - location, width, margin - nothing leads to the desired form.
My trials e.g.:
---- \definedescription[A][headstyle=bold,location=hanging,width=fit,] \definedescription[B][headstyle=bold,location=hanging,width=fit,margin=1cm,] \definedescription[C][headstyle=bold,location=hanging,width=fit,margin=1cm,command=\hskip-1cm]
\definedescription[A][headstyle=bold,alternative=hanging,width=fit,margin=1cm] \definedescription[B][headstyle=bold,alternative=hanging,width=fit,margin=2cm] \definedescription[C][headstyle=bold,alternative=hanging,width=fit,margin=3cm] When you don’t want any indentation you need “alternative=serried” because when you set “margin=0pt” (for hanging) context don’t use this value but 1.5em instead. Wolfgang
... Thank you, now it's perfect.
So option "alternative=" is to be used instead of "location=".
Does "location" still have any meaning or is it deprecated and replaced by "alternative"?
- On wiki, "location" is still frequently noticed...
Best regards,
Lukas
On Wed, 04 Apr 2012 14:28:31 +0200, Wolfgang Schuster
Am 04.04.2012 um 10:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
what option(s) to use with \definedescription if I'd like to get the following shape (attempt to ACSII art):
XXXXXX blablabla blablabla bla blabla.
| | |-| A constant of indenting - to be specified by the user.
| | |<------------>| Text width.
I inspired by wiki (the code bellow) but shapes I got could be illustrated:
\A:
XXXXXX blablabla blablabla bla blab- la.
| | |<--->| Indenting given by the width of the head - unwanted.
\B=\C:
XXXXXX blablabla blablabla bla blab- la.
| | |<--->| Indenting given by the width of the head - unwanted.
| | |-] The "margin" option affects indenting of the whole description - unwanted, I want to indent only lines from the 2nd.
I tried some combinations of options - location, width, margin - nothing leads to the desired form.
My trials e.g.:
---- \definedescription[A][headstyle=bold,location=hanging,width=fit,] \definedescription[B][headstyle=bold,location=hanging,width=fit,margin=1cm,] \definedescription[C][headstyle=bold,location=hanging,width=fit,margin=1cm,command=\hskip-1cm]
\definedescription[A][headstyle=bold,alternative=hanging,width=fit,margin=1cm] \definedescription[B][headstyle=bold,alternative=hanging,width=fit,margin=2cm] \definedescription[C][headstyle=bold,alternative=hanging,width=fit,margin=3cm]
When you don’t want any indentation you need “alternative=serried” because when you set “margin=0pt” (for hanging) context don’t use this value but 1.5em instead.
Wolfgang ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 04.04.2012 um 16:03 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
... Thank you, now it's perfect.
So option "alternative=" is to be used instead of "location=".
Does "location" still have any meaning or is it deprecated and replaced by "alternative"?
For MkIV not because the alternative key has replaced the location key. Wolfgang
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster