Changeset 1126 in lmdz_wrf for trunk/tools/generic_tools.py


Ignore:
Timestamp:
Sep 30, 2016, 6:51:18 PM (8 years ago)
Author:
lfita
Message:

Adding `&' to 'latex_text' and fixing it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1125 r1126  
    93919391      WRF\_LMDZ$_{current}^{AR40}$
    93929392    """
    9393     function = 'latex_text'
     9393    fname = 'latex_text'
    93949394
    93959395    # Sesitive characters which might interfer with the mathematical environment
    9396     symbs = {'sub': '_', 'sup':'^', 'slash':'\\'}
     9396    symbs = {'sub': '_', 'sup':'^', 'slash':'\\', 'and': '&'}
    93979397
    93989398    # Do not change that sensitive_math which are between $ (from mathematical notation)
     
    94709470    # Only 1 mathematical sign
    94719471    Ltxt = len(latextext)
    9472     if len(latexsymb['math']) == 1:
     9472    if latexsymb.has_key('math') and len(latexsymb['math']) == 1:
    94739473        isymb = latexsymb['math'][0]
    94749474        headtxt = latextext[0:isymb]
Note: See TracChangeset for help on using the changeset viewer.