From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81065 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \definestyle (urgent) Date: Tue, 5 Mar 2013 15:15:31 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-249753842-1362514532=:14092" X-Trace: ger.gmane.org 1362514542 15968 80.91.229.3 (5 Mar 2013 20:15:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 20:15:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 05 21:16:04 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UCyHK-00035H-Gm for gctc-ntg-context-518@m.gmane.org; Tue, 05 Mar 2013 21:16:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B22BD101E3; Tue, 5 Mar 2013 21:15:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q3O4isCoJGwu; Tue, 5 Mar 2013 21:15:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5B777101E6; Tue, 5 Mar 2013 21:15:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E366F101E6 for ; Tue, 5 Mar 2013 21:15:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CymOMWgBGAEh for ; Tue, 5 Mar 2013 21:15:37 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id AC7D5101E3 for ; Tue, 5 Mar 2013 21:15:37 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r25KFYBO023385 for ; Tue, 5 Mar 2013 21:15:35 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 51365264.5C237.21236 ; Authuser adityam; 5 Mar 2013 15:15:32 EST In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04J7Ufye9 - 93510d381017 - 20130305 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81065 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-249753842-1362514532=:14092 Content-Type: TEXT/PLAIN; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 5 Mar 2013, Idris Samawi Hamid =C7=CF=D1=EA=D3 =D3=E5=C7=E8=EA = =CD=C7=E5=CF 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= =20 that you are using above. > It worked for years but now I get > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ! Undefined control sequence. > > system > tex > error on line 1 in file=20 > C:/ConTeXt/tex/texmf-project/tex/generic/private/type-mpro.mkiv: Undefine= d=20 > 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= ] [] > > \sb > > \define_style ...yle \edef \currentstyleparent {#2 > }\expandafter \edef=20 > \csnam... > l.1 ... [\sb] [] > > ? > I have to update my cv for a deadline today, so I need to get this typesc= ript=20 > working asap. Just in case I've attached the whole typescript (MinionPro= =20 > Opticals, so it's a nice example of a sophisticated typescript). But=20 > maybe/hopefully it's just a small update in syntax that I'm missing. The syntax of \definestyle is: \definestyle[important][style=3Dbold, color=3Dred] which defines a command \important{...} that typesets the result in bold=20 and there. The result of \definestyle is lost when the document is exported to XML.=20 For that case, you should use \definehighlight[...] which has the same=20 syntax. Aditya --8323328-249753842-1362514532=:14092 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-249753842-1362514532=:14092--