The commands that set them up as syntax should also set up the standard TeX
override map to do this.  For example, boolScript.sml includes the following
lines to set up if-then-else:

    val _ = TeX_notation {hol = "if",   TeX = ("\\HOLKeyword{if}", 2)}
    val _ = TeX_notation {hol = "then", TeX = ("\\HOLKeyword{then}", 4)}
    val _ = TeX_notation {hol = "else", TeX = ("\\HOLKeyword{else}", 4)}

Michael

On 11/10/14 20:11, Ramana Kumar wrote:
> When I make a munger with monadsyntax and use it to typeset some monadic
> functions, the "do" and "od" delimiters of a list of binds are emitted as-is. 
> I
> would like them to be annotated as HOLKeywords.

> I know I could probably use the override map for that, but it seems like there
> ought to be a more proper way of doing it. How do keywords (like "if") 
> normally
> get annotated, and can we do the same for "do" and "od"?


> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://p.sf.net/sfu/Zoho



> _______________________________________________
> hol-info mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hol-info

________________________________

The information in this e-mail may be confidential and subject to legal 
professional privilege and/or copyright. National ICT Australia Limited accepts 
no liability for any damage caused by this email or its attachments.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
hol-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hol-info

Reply via email to