Changeset 1126 in lmdz_wrf for trunk/tools/generic_tools.py
- Timestamp:
- Sep 30, 2016, 6:51:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1125 r1126 9391 9391 WRF\_LMDZ$_{current}^{AR40}$ 9392 9392 """ 9393 f unction= 'latex_text'9393 fname = 'latex_text' 9394 9394 9395 9395 # Sesitive characters which might interfer with the mathematical environment 9396 symbs = {'sub': '_', 'sup':'^', 'slash':'\\' }9396 symbs = {'sub': '_', 'sup':'^', 'slash':'\\', 'and': '&'} 9397 9397 9398 9398 # Do not change that sensitive_math which are between $ (from mathematical notation) … … 9470 9470 # Only 1 mathematical sign 9471 9471 Ltxt = len(latextext) 9472 if l en(latexsymb['math']) == 1:9472 if latexsymb.has_key('math') and len(latexsymb['math']) == 1: 9473 9473 isymb = latexsymb['math'][0] 9474 9474 headtxt = latextext[0:isymb]
Note: See TracChangeset
for help on using the changeset viewer.