From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Otared Kavian <otared@gmail.com>
Subject: Re: Q about hangaround commands
Date: Thu, 6 Dec 2012 18:23:57 +0100 [thread overview]
Message-ID: <3324E78C-2464-4150-B3DA-185545666BBD@gmail.com> (raw)
In-Reply-To: <716B08DF-6EBB-49E9-A0A8-A8B9E6F42CFB@gmail.com>
Am 06.12.2012 um 11:44 schrieb Otared Kavian <otared@gmail.com>:
> Hi Mikael,
>
> The example given by Wolfgang works fine for me with mkii, but not in mkiv: probably something has changed in mkiv, for example the way [scale=500] must be used in mkiv.
The definitions of commands/environments have changed in MkIV, as you can see in the following example there are differences between the MkII and MkIV version of the same command.
\starttexcode
\def\mkiiemphasized
{\dosingleempty\domkiiemphasized}
\def\domkiiemphasized[#1]#2%
{\getrawparameters[mkiiemphasized][style=,color=,#1]
\doattributes{mkiiemphasized}{style}{color}{#2}}
\def\mkivemphasized
{\dosingleempty\mkivemphasized_direct}
\def\mkivemphasized_direct[#1]#2%
{\begingroup
\getdummyparameters[#1]%
\usedummystyleandcolor\c!style\c!color
#2%
\endgroup}
\stoptexcode
\starttext
\mkiiemphasized[style=bold,color=green]{\MKII}
\mkivemphasized[style=italic,color=red]{\MKIV}
\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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-12-06 17:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-26 6:26 Vladimir Lomov
2010-11-03 4:47 ` Vladimir Lomov
2010-11-03 6:51 ` Wolfgang Schuster
2010-11-03 7:28 ` Vladimir Lomov
2012-12-06 9:58 ` Mikael P. Sundqvist
2012-12-06 10:44 ` Otared Kavian
2012-12-06 16:53 ` Mikael P. Sundqvist
2012-12-06 17:23 ` Wolfgang Schuster [this message]
2012-12-06 16:57 ` Hans Hagen
2012-12-06 17:49 ` Hans Hagen
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=3324E78C-2464-4150-B3DA-185545666BBD@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=otared@gmail.com \
/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).