Skip to content

Commit

Permalink
Translate the argument of \text. This is useful in the case where the
Browse files Browse the repository at this point in the history
text environment may still have text which needs to be translated. For
instance, numbers which won't be translated properly in ueb
otherwise. It's also possible to write 
\text{(1) $\times$ (2)}
  • Loading branch information
danieldalton10 committed Feb 23, 2012
1 parent 2b568f7 commit d36e3c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion latex_access/latex_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def text(self,input, start):
returns tuple.'''
arg=get_arg(input,start)
return (arg[0],arg[1])
translation = self.translate (arg[0])
return (translation,arg[1])

def displaystyle(self,input, start):
'''Removes the displaystile command but translates its argument.
Expand Down

0 comments on commit d36e3c8

Please sign in to comment.