ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Alignment for narrower text
Date: Sat, 2 Apr 2016 23:42:30 +0200	[thread overview]
Message-ID: <27722.503958694$1459633387@news.gmane.org> (raw)
In-Reply-To: <56FF68B7.4010003@gmail.com>

On 2016-04-02 Wolfgang Schuster wrote:
> On 2016-04-01, Jan Tosovsky wrote:
> > On 2016-04-01 Hans Hagen wrote:
> > > On 2016-03-31, Jan Tosovsky wrote:
> > > >
> > > > http://tracker.luatex.org/view.php?id=884
> > > >
> > > > Use case:
> > > > - book uses global indentation
> > > > - there is poem typeset in narrower block
> > > > - there is punctuation in the first verse which disrupt
> > > >   optical margin alignment
> > >
> > > in your example you use indentation to get a narrower block 
> > > (and as each line is a paragraph each line gets an indent 
> > > box prepended) you should use leftskip (\startnarrower...) 
> > > in such cases
> >
> > I'm lost here (...example...)
>
> This is a bad example because there is no problem with \leftskip.
> 
> What he means is that protrusion at the left margin doesn’t 
> at the begin of a paragraph when you use indentation.

Thanks for examples. I'll finally use another approach - disabling indentation locally:

\definefontfeature[default][default][protrusion=quality]

\setupbodyfont[modern-designsize]

\setupalign[hanging]

\setupbackgrounds[text][leftframe=on]

\starttext

\setupindenting[yes,medium]

\input{tufte}

{\noindenting
\startnarrower
“line1\par
line2\par
line3\par
line4.
\stopnarrower
}

\input{tufte}

\stoptext

While protrusion in this case may look ugly, it is consistent with the rest.

I thought Hans could also mean something like example below, but while leftskip should 'indent' all lines inside paragraph, it works only for the first one. Moreover, protrusion is not applied as well. And \crlf doesn't seem to be soft linebreak as it behaves like normal \par command - which is most likely explanation for that indenting issue.

{\leftskip=2cm
“line1\crlf
line2\crlf
line3\crlf
line4.
}

Anyway, I found acceptable solution (noindenting).

Jan

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

  reply	other threads:[~2016-04-02 21:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <52eaa335.c3d00e0a.7dbf.ffffcaccSMTPIN_ADDED_BROKEN@mx.google.com>
2014-01-30 19:34 ` Wolfgang Schuster
2014-01-30 19:49   ` Jan Tosovsky
     [not found]   ` <00af01cf1df4$6c661990$45324cb0$@tosovsky@email.cz>
2016-03-30 18:55     ` Jan Tosovsky
     [not found]     ` <016701d18ab5$cb1723a0$61456ae0$@tosovsky@email.cz>
2016-03-30 22:32       ` Hans Hagen
2016-03-31 19:28         ` Jan Tosovsky
     [not found]         ` <020801d18b83$85bd5710$91380530$@tosovsky@email.cz>
2016-04-01  7:21           ` Hans Hagen
2016-04-01 20:04             ` Jan Tosovsky
2016-04-02  6:37             ` Wolfgang Schuster
2016-04-02 21:42               ` Jan Tosovsky [this message]
     [not found]               ` <57003cda.c8f2c20a.48efd.2050SMTPIN_ADDED_BROKEN@mx.google.com>
2016-04-03 16:19                 ` Wolfgang Schuster
2014-01-30 19:08 Jan Tosovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='27722.503958694$1459633387@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).