ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: line wrap marker
Date: Tue, 29 Mar 2005 01:22:40 +0200	[thread overview]
Message-ID: <424891C0.1090400@wxs.nl> (raw)
In-Reply-To: <1111611031.10057.15.camel@vision>

Stuart Jansen wrote:
> We have lines of text that shouldn't be wrapped. If one line must be
> wrapped onto the next, we'd like to insert a visual mark at the end of
> the line and (hopefully) indent the next line slightly. Obviously,
> there's the potential for wrapping over multiple lines.
> 
> I've dug around TeX, LaTeX and ConTeXt, and none appear to support this
> yet. So far, ConTeXt has been the most enjoyable to work with, so I'm
> okay with a ConTeXt only answer.
> 
> How hard will this be to implement? Where should I start looking to
> figure out how to do this? I'm hoping  for an answer along the lines of
> "this set of macros will probably be helpful".

just to get you some (wikiable) ideas:

\startreusableMPgraphic{return}
    drawarrow
      (0,0)--
      (1EmWidth,0)--
      (1EmWidth,-.5ExHeight)--
      (.5EmWidth,-.5ExHeight) ;
\stopreusableMPgraphic

\definesymbol[return][\reuseMPgraphic{return}]

\setupcolors[state=start]

\starttext

\def\vcrlf{\symbol[return]\crlf\strut\kern1em\strut\ignorespaces}

\setuptyping[option=commands]

\starttyping
test test test /vcrlf test test
\stoptyping

\setuptyping[option=color]

\installnewpretty r \vcrlf

\starttyping
test \test{test} %%\ r test test
\stoptyping

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2005-03-28 23:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-23 20:50 Stuart Jansen
2005-03-28 23:22 ` Hans Hagen [this message]

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=424891C0.1090400@wxs.nl \
    --to=pragma@wxs.nl \
    --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).