* Spaces in commands
@ 2012-11-20 14:21 "H. Özoguz"
2012-11-20 14:50 ` Hans Hagen
2012-11-20 15:02 ` Procházka Lukáš Ing. - Pontex s. r. o.
0 siblings, 2 replies; 6+ messages in thread
From: "H. Özoguz" @ 2012-11-20 14:21 UTC (permalink / raw)
To: ntg-context
Hi there,
how to define commands, which are simply short-cuts for some terms?
My attempt produces typographical mistakes:
%%%%%%%%%%%%%%%%%%
\def\testcmd{%
Testcommand%
}
\def\testcmdtwo{%
Testcommandtwo
}
\starttext
This is a \testcmd. Everything ok.
This \testcmd has no space after, but it should have.
This \testcmdtwo has a space after. Everything ok.
But this \testcmdtwo, produces one extra spaces after the comma.
\stoptext
%%%%%%%%%%%%%%%%%%
Thank you.
Huseyin
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Spaces in commands
2012-11-20 14:21 Spaces in commands "H. Özoguz"
@ 2012-11-20 14:50 ` Hans Hagen
2012-11-20 14:59 ` Aditya Mahajan
2012-11-20 15:02 ` Procházka Lukáš Ing. - Pontex s. r. o.
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2012-11-20 14:50 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: "H. Özoguz"
On 11/20/2012 3:21 PM, "H. Özoguz" wrote:
> This \testcmd has no space after, but it should have.
\testcmd{}
or (what I alway sdo in such case:)
\testcmd\
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Spaces in commands
2012-11-20 14:50 ` Hans Hagen
@ 2012-11-20 14:59 ` Aditya Mahajan
0 siblings, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2012-11-20 14:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 308 bytes --]
On Tue, 20 Nov 2012, Hans Hagen wrote:
> On 11/20/2012 3:21 PM, "H. Özoguz" wrote:
>
>> This \testcmd has no space after, but it should have.
>
> \testcmd{}
>
> or (what I alway sdo in such case:)
>
> \testcmd\
There is also, the not to be advertised command :), \autoinsertnextspace.
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Spaces in commands
2012-11-20 14:21 Spaces in commands "H. Özoguz"
2012-11-20 14:50 ` Hans Hagen
@ 2012-11-20 15:02 ` Procházka Lukáš Ing. - Pontex s. r. o.
1 sibling, 0 replies; 6+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-11-20 15:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Tue, 20 Nov 2012 15:21:08 +0100, H. Özoguz <h.oezoguz@mmnetz.de> wrote:
> Hi there,
>
> how to define commands, which are simply short-cuts for some terms?
For short-cuts, \let might be better:
\let\shortcmd=\theverylongcommand
Lukas
--
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Spaces in commands
2012-11-21 7:38 ` "H. Özoguz"
@ 2012-11-21 7:59 ` Wolfgang Schuster
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2012-11-21 7:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.11.2012 um 08:38 schrieb H. Özoguz <h.oezoguz@mmnetz.de>:
> Am 20.11.2012 16:02, schrieb ntg-context-request@ntg.nl:
>> There is also, the not to be advertised command:), \autoinsertnextspace.
>>
>> Aditya
> Thansk for this one!
There are cases where \autoinsertnextspace doesn’t work.
\definesynonyms[test][tests]
\setupsynonym[test][next=\autoinsertnextspace]
\test[ONE]{First}{First entry}
\test[TWO]{Second}{second entry}
\starttext
text \ONE text \TWO text
text \ONE \TWO text % fails
text \ONE\ \TWO text % manual space
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Spaces in commands
[not found] <mailman.268.1353423753.2161.ntg-context@ntg.nl>
@ 2012-11-21 7:38 ` "H. Özoguz"
2012-11-21 7:59 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: "H. Özoguz" @ 2012-11-21 7:38 UTC (permalink / raw)
To: ntg-context
Am 20.11.2012 16:02, schrieb ntg-context-request@ntg.nl:
> There is also, the not to be advertised command:), \autoinsertnextspace.
>
> Aditya
Thansk for this one!
Huseyin
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-21 7:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 14:21 Spaces in commands "H. Özoguz"
2012-11-20 14:50 ` Hans Hagen
2012-11-20 14:59 ` Aditya Mahajan
2012-11-20 15:02 ` Procházka Lukáš Ing. - Pontex s. r. o.
[not found] <mailman.268.1353423753.2161.ntg-context@ntg.nl>
2012-11-21 7:38 ` "H. Özoguz"
2012-11-21 7:59 ` 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).