ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: horizontal spacing
Date: Sat, 16 May 2015 11:39:52 +0200	[thread overview]
Message-ID: <6B1299C2-6DE0-44D1-921B-3C38124BF221@gmail.com> (raw)
In-Reply-To: <55570958.70505@gmail.com>


> Am 16.05.2015 um 11:09 schrieb henman <dhenman@gmail.com>:
> 
> In the below example, used with the latest standalone ConTeXt version, I can only get
> \hskip to work when the parameter is 1 dimension unit.  e.g. 1em or 1cm for example.
> 
> How can I get a larger horizontal space say 3em , rather that having to write
> \hskip 1em  \hskip 1em  \hskip  1em              three  times?


Your problem is the use of \crlf to force line breaks because the commands prevents
the indentation of the following line. The reason why the first line of each block is
intended is the empty line before it which ends the previous paragraph.

To ensure your indentation setting is taken into account use \par (or a empty line)
or the \\ command which does the same when used in the argument of \framed.

\starttext

\startframed[align=flushleft]
	                 Line 1\crlf
	\hskip 1em\relax Line 2\crlf
	\hskip 2em\relax Line 3
\stopframed

\startframed[align=flushleft]
	                 Line 1\par
	\hskip 1em\relax Line 2\par
	\hskip 2em\relax Line 3
\stopframed

\startframed[align=flushleft]
	                 Line 1\\
	\hskip 1em\relax Line 2\\
	\hskip 2em\relax Line 3
\stopframed

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

  reply	other threads:[~2015-05-16  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-16  9:09 henman
2015-05-16  9:39 ` Wolfgang Schuster [this message]
2022-11-21 15:27 Horizontal spacing Steffen Wolfrum via ntg-context
2022-11-21 21:54 ` Max Chernoff via ntg-context

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=6B1299C2-6DE0-44D1-921B-3C38124BF221@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).