ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* itemize margins,
@ 2021-06-01  8:46 denis.maier
  2021-06-01  9:05 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: denis.maier @ 2021-06-01  8:46 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 571 bytes --]

Hi,

in the following example the second line of the quote is not lined up with the first line.

=========================
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==========================

I've played with different options, but I couldn't get the indents and margins right. What am I missing ? Any hints ?

Thanks for you help,
Denis

[-- Attachment #1.2: Type: text/html, Size: 3291 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: itemize margins,
  2021-06-01  8:46 itemize margins, denis.maier
@ 2021-06-01  9:05 ` Wolfgang Schuster
  2021-06-01  9:14   ` denis.maier
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2021-06-01  9:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 949 bytes --]

denis.maier@ub.unibe.ch schrieb am 01.06.2021 um 10:46:
>
> Hi,
>
> in the following example the second line of the quote is not lined up 
> with the first line.
>
> =========================
>
> \starttext
>
> \startitemize[n]
>
> [
>
> %right=),
>
> %stopper=,
>
> %width=2em,
>
> %alternative=fit,
>
> %alternative=left,
>
> %alternative=intext,
>
> %distance=1em,
>
> %leftmargin=1em,
>
> %itemalign=flushleft,
>
> ]
>
> \startitem
>
> \setupindenting[no]
>
> \input knuth
>
> \stopitem
>
> \stoptext
>
> ==========================
>
> I’ve played with different options, but I couldn’t get the indents and 
> margins right. What am I missing ? Any hints ?
>

You are adding a extra space in the first line at the end of the 
\setupindenting line.

To get rid of the space add % after the setup (i.e. 
\setupindenting[no]%) or even better use the indenting key with 
\startitemize or \setupitemize (i.e. \startitemize[indneting=no]).

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 3380 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: itemize margins,
  2021-06-01  9:05 ` Wolfgang Schuster
@ 2021-06-01  9:14   ` denis.maier
  0 siblings, 0 replies; 3+ messages in thread
From: denis.maier @ 2021-06-01  9:14 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1218 bytes --]

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang Schuster
Gesendet: Dienstag, 1. Juni 2021 11:05
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Betreff: Re: [NTG-context] itemize margins,

denis.maier@ub.unibe.ch<mailto:denis.maier@ub.unibe.ch> schrieb am 01.06.2021 um 10:46:

Hi,

in the following example the second line of the quote is not lined up with the first line.

=========================
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==========================

I've played with different options, but I couldn't get the indents and margins right. What am I missing ? Any hints ?

You are adding a extra space in the first line at the end of the \setupindenting line.
Ah, of course. Thanks!


To get rid of the space add % after the setup (i.e. \setupindenting[no]%) or even better use the indenting key with \startitemize or \setupitemize (i.e. \startitemize[indneting=no]).


\startitemize[indenting=no] works perfectly.

Denis


[-- Attachment #1.2: Type: text/html, Size: 5360 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-01  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  8:46 itemize margins, denis.maier
2021-06-01  9:05 ` Wolfgang Schuster
2021-06-01  9:14   ` denis.maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).