ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
Subject: Re: \obeyspaces
Date: Tue, 02 Aug 2005 19:42:38 +0200	[thread overview]
Message-ID: <42EFB08E.4020700@gmx.net> (raw)
In-Reply-To: <42EF70F8.4010507@wxs.nl>

Hans Hagen wrote:
> Taco Hoekwater wrote:
> 
>>
>>
>> Peter Rolf wrote:
>>
>>> Hi all,
>>>
>>> I need to pass a short text as parameter to a defintion. My problem is,
>>> that the significant spaces are removed in this process. Hmm.....no
>>> clue.
>>>
>>>
>>> % interface=en output=pdftex
>>> \starttext
>>>
>>> \def\TextWithSpaces#1{\framed{\obeyspaces#1}}%
>>
>>
>>
>> A two-part solution is needed:
>>
>>   \def\TextWithSpaces{\bgroup\obeyspaces\doTextWithSpaces}
>>   \def\doTextWithSpaces#1{\framed{#1}\egroup}
> 
> 
> i suggest that rolf adds en entry to the wiki, with the posted
> solutions, maybe we need a "how tex treats arguments" corner or so
> Hans
done. And my (first) name is Peter. Thank god I have no middle name....

Greetings,

Peter

> 
> -----------------------------------------------------------------
>                                          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
> -----------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

  reply	other threads:[~2005-08-02 17:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 10:32 \obeyspaces Peter Rolf
2005-08-02 10:40 ` \obeyspaces Taco Hoekwater
2005-08-02 10:51   ` \obeyspaces Peter Rolf
2005-08-02 13:11   ` \obeyspaces Hans Hagen
2005-08-02 17:42     ` Peter Rolf [this message]
2005-08-02 13:09 ` \obeyspaces Hans Hagen
2011-04-08 11:08 \obeyspaces Herbert Voss

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=42EFB08E.4020700@gmx.net \
    --to=indiego@gmx.net \
    --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).