ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gobbling previous space
@ 2007-12-09  2:33 Idris Samawi Hamid
  2007-12-09  9:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Idris Samawi Hamid @ 2007-12-09  2:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear gang,

For some macro writing, I need a low-level command that will gobble the  
space before it so that

=========
Here is some text.%
\mycommand
=========

is equivalent to

=========
Here is some text.
\mycommand
=========

without the %. I'm sure there's a context command for this hidden  
somewhere...

Best
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: gobbling previous space
  2007-12-09  2:33 gobbling previous space Idris Samawi Hamid
@ 2007-12-09  9:04 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2007-12-09  9:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2007/12/9, Idris Samawi Hamid <ishamid@colostate.edu>:
> Dear gang,
>
> For some macro writing, I need a low-level command that will gobble the
> space before it so that
>
> =========
> Here is some text.%
> \mycommand
> =========
>
> is equivalent to
>
> =========
> Here is some text.
> \mycommand
> =========
>
> without the %. I'm sure there's a context command for this hidden
> somewhere...
>
> Best
> Idris

You can use \removeunwantedspaces, it use plain TeX's \unskip
primtive but only in horizontal mode.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-12-09  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-09  2:33 gobbling previous space Idris Samawi Hamid
2007-12-09  9:04 ` Wolfgang Schuster

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).