ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \definestyle (urgent)
Date: Tue, 5 Mar 2013 15:15:31 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.02.1303051510460.14092@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <op.wthoakp8pw6hmh@ihamidnb.libarts.colostate.edu>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2163 bytes --]

On Tue, 5 Mar 2013, Idris Samawi Hamid ادريس   سماوي حامد wrote:

> Dear gang,
>
> Has the behavior of \definestyle changed? In my typescript I have e.g.
>
> \definestyle [semibold] [\sb] []

You are, perhaps, thinking of \definealternativestyle which has the syntax 
that you are using above.

> It worked for years but now I get
>
> =============
> ! Undefined control sequence.
>
> system          > tex > error on line 1 in file 
> C:/ConTeXt/tex/texmf-project/tex/generic/private/type-mpro.mkiv: Undefined 
> control sequence ...
>
> 1 >>  \definestyle [semibold]                                       [\sb] []
> 2     \definestyle [semibolditalic,italicsemibold]                  [\st] []
> 3
> 4     \definestyle [smallcapssemibold,      semiboldsmallcaps]      [\SB] []
> 5     \definestyle [smallcapsbold,          boldsmallcaps]          [\BF] []
> 6     \definestyle [smallcapsitalic,        italicsmallcaps]        [\IT] []
> 7     \definestyle [smallcapssemibolditalic,semibolditalicsmallcaps][\ST] []
> 8     \definestyle [smallcapsbolditalic,    bolditalicsmallcaps]    [\BI] []
> 9
> 10     \definestyle [light]                                          [\LI] []
> 11     \definestyle [lightitalic,italiclight]                        [\LT] []
>
> <argument> \sb
>
> \define_style ...yle \edef \currentstyleparent {#2
>                                                 }\expandafter \edef 
> \csnam...
> l.1 ...                                   [\sb] []
>
> ?
> I have to update my cv for a deadline today, so I need to get this typescript 
> working asap. Just in case I've attached the whole typescript (MinionPro 
> Opticals, so it's a nice example of a sophisticated typescript). But 
> maybe/hopefully it's just a small update in syntax that I'm missing.

The syntax of \definestyle is:

     \definestyle[important][style=bold, color=red]

which defines a command \important{...} that typesets the result in bold 
and there.

The result of \definestyle is lost when the document is exported to XML. 
For that case, you should use \definehighlight[...] which has the same 
syntax.

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
___________________________________________________________________________________

      parent reply	other threads:[~2013-03-05 20:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 19:55 Idris Samawi Hamid ادريس   سماوي حامد
2013-03-05 20:07 ` Wolfgang Schuster
2013-03-06  6:58   ` Idris Samawi Hamid ادريس   سماوي حامد
2013-03-05 20:15 ` Aditya Mahajan [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=alpine.LNX.2.02.1303051510460.14092@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).