itemize: how to get the first level items indented?
I’d like to get \startitemize\stopitemize to indent the first level items already with the equal amount of indentation as the start of a paragraph (which is indented). Is there a way to do that? mkii G
Am 19.08.2014 um 16:27 schrieb Gerben Wierda
I’d like to get \startitemize\stopitemize to indent the first level items already with the equal amount of indentation as the start of a paragraph (which is indented). Is there a way to do that?
\setupindenting[yes,medium] \starttext \input knuth \startitemize[margin=standard] \item \input ward \stopitemize \input tufte \stoptext Wolfgang
On 19 Aug 2014, at 16:33, Wolfgang Schuster
Am 19.08.2014 um 16:27 schrieb Gerben Wierda
: I’d like to get \startitemize\stopitemize to indent the first level items already with the equal amount of indentation as the start of a paragraph (which is indented). Is there a way to do that?
\setupindenting[yes,medium]
\starttext
\input knuth
\startitemize[margin=standard]
Does the margin thing, but incapacitates packed and joinedup, which are ignored if the margin statement is there. So, I get indented items, but at the price of losing joinedup and packed. \setupindenting[yes,medium] \starttext Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed] \item Foo bar \item Foo bar \stopitemize Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed,margin=standard] \item Foo bar \item Foo bar \stopitemize Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \stoptext G
\item \input ward \stopitemize
\input tufte
\stoptext
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 ___________________________________________________________________________________
On Wed, 20 Aug 2014, Gerben Wierda wrote:
On 19 Aug 2014, at 16:33, Wolfgang Schuster
wrote: Am 19.08.2014 um 16:27 schrieb Gerben Wierda
: I’d like to get \startitemize\stopitemize to indent the first level items already with the equal amount of indentation as the start of a paragraph (which is indented). Is there a way to do that?
\setupindenting[yes,medium]
\starttext
\input knuth
\startitemize[margin=standard]
Does the margin thing, but incapacitates packed and joinedup, which are ignored if the margin statement is there. So, I get indented items, but at the price of losing joinedup and packed.
\setupindenting[yes,medium]
\starttext Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed] \item Foo bar \item Foo bar \stopitemize Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed,margin=standard]
You need to separate keywords with assignments: \startitemize[joinedup, packed][margin=standard] Aditya
On 20 Aug 2014, at 01:22, Aditya Mahajan
On Wed, 20 Aug 2014, Gerben Wierda wrote:
On 19 Aug 2014, at 16:33, Wolfgang Schuster
wrote: Am 19.08.2014 um 16:27 schrieb Gerben Wierda
: I’d like to get \startitemize\stopitemize to indent the first level items already with the equal amount of indentation as the start of a paragraph (which is indented). Is there a way to do that?
\setupindenting[yes,medium]
\starttext
\input knuth
\startitemize[margin=standard]
Does the margin thing, but incapacitates packed and joinedup, which are ignored if the margin statement is there. So, I get indented items, but at the price of losing joinedup and packed.
\setupindenting[yes,medium]
\starttext Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed] \item Foo bar \item Foo bar \stopitemize Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. \startitemize[joinedup,packed,margin=standard]
You need to separate keywords with assignments:
\startitemize[joinedup, packed][margin=standard]
Thanks. I used \setupitemize[each][margin=standard] and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that? G
Aditya___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 20.08.2014 um 16:07 schrieb Gerben Wierda
Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure? \setupindenting[yes,medium] \definelayer[check][width=\paperwidth,height=\paperheight] \setlayer[check][x=\dimexpr\backspace+1.5em\relax]{\blackrule[width=\linewidth,height=\paperheight]} \setupbackgrounds[page][background=check] \starttext \input knuth \startitemize[margin=standard] \item \input ward \stopitemize \input tufte \stoptext Wolfgang
On 20 Aug 2014, at 17:23, Wolfgang Schuster
Am 20.08.2014 um 16:07 schrieb Gerben Wierda
: Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure?
Yes: https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at... Your example works out fine. G
Am 20.08.2014 um 17:32 schrieb Gerben Wierda
On 20 Aug 2014, at 17:23, Wolfgang Schuster
wrote: Am 20.08.2014 um 16:07 schrieb Gerben Wierda
: Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure?
Yes:
https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at...
Make a *working* minimal example. Wolfgang
On 20 Aug 2014, at 17:34, Wolfgang Schuster
Am 20.08.2014 um 17:32 schrieb Gerben Wierda
: On 20 Aug 2014, at 17:23, Wolfgang Schuster
wrote: Am 20.08.2014 um 16:07 schrieb Gerben Wierda
: Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure?
Yes:
https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at...
Make a *working* minimal example.
Having that part in a smaller bodyfont is what triggers it: \starttext \setupbodyfont[12pt] \setupindenting[small] \indenting[yes] \setupitemize[each][margin=standard] \start \switchtobodyfont[8pt] Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. (PSA) becomes the Project Architecture (PA). As of that moment: \startitemize[joinedup,packed] \item Foo \item Foo \item Foo \item Foo \stopitemize Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. \stop \stoptext
Am 20.08.2014 um 17:53 schrieb Gerben Wierda
On 20 Aug 2014, at 17:34, Wolfgang Schuster
wrote: Am 20.08.2014 um 17:32 schrieb Gerben Wierda
: On 20 Aug 2014, at 17:23, Wolfgang Schuster
wrote: Am 20.08.2014 um 16:07 schrieb Gerben Wierda
: Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure?
Yes:
https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at...
Make a *working* minimal example.
Having that part in a smaller bodyfont is what triggers it:
\starttext \setupbodyfont[12pt]
\setupindenting[small] \indenting[yes]
Don’t use \indenting, it’s a old command with the same meaning as \setupindenting.
\setupitemize[each][margin=standard]
You ned absolute values for indentation and margin, e.g. \setupindenting[yes,5mm] \setupitemize[each][margin=5mm] Wolfgang
On 20 Aug 2014, at 18:01, Wolfgang Schuster
Am 20.08.2014 um 17:53 schrieb Gerben Wierda
: On 20 Aug 2014, at 17:34, Wolfgang Schuster
wrote: Am 20.08.2014 um 17:32 schrieb Gerben Wierda
: On 20 Aug 2014, at 17:23, Wolfgang Schuster
wrote: Am 20.08.2014 um 16:07 schrieb Gerben Wierda
: Thanks. I used
\setupitemize[each][margin=standard]
and this works. However, I've noticed that the normal pararaph indent is just a little bit more than the itemize margin. The bullets of the list are not aligned perfectly with the indented line. They are indented slightly less. Anything I can do about that?
Are you sure?
Yes:
https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at...
Make a *working* minimal example.
Having that part in a smaller bodyfont is what triggers it:
\starttext \setupbodyfont[12pt]
\setupindenting[small] \indenting[yes]
Don’t use \indenting, it’s a old command with the same meaning as \setupindenting.
\setupitemize[each][margin=standard]
You ned absolute values for indentation and margin, e.g.
\setupindenting[yes,5mm] \setupitemize[each][margin=5mm]
Works ok at first level. Second level doesn't exactly align. But there is some startstopnarrower in play too. I'l try to create a minimal example.
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 ___________________________________________________________________________________
Am 20.08.2014 um 19:01 schrieb Gerben Wierda
Works ok at first level. Second level doesn't exactly align. But there is some startstopnarrower in play too. I'l try to create a minimal example.
The narrower environment does also use font dependent values for the left and right margins. A good method to set a global value for all environments is to set the dimension with the \definemeasure command and access it with the \measure command. % engine=pdftex \definemeasure[myindent][12pt] \setupindenting[yes,\measure{myindent}] \setupnarrower [ left=\measure{myindent}, right=\measure{myindent}, middle=\measure{myindent}] \setupitemize[each][margin=\measure{myindent}]%,width=\measure{myindent}] \starttext \input knuth \startitemize \item \input ward \stopitemize \startnarrower \input zapf \stopnarrower \stoptext Wolfgang
participants (3)
-
Aditya Mahajan
-
Gerben Wierda
-
Wolfgang Schuster