/usr/share/pyshared/plasTeX/Packages/ifthen.py is in python-plastex 0.9.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | """
This package is not properly implemented. The \ifthenelse command simply
returns the 'false' portion of the command. Hopefully, some day this will
be done properly.
"""
from plasTeX import Command
class ifthenelse(Command):
args = 'test:nox then:nox else'
class _not(Command):
macroName = 'not'
class _and(Command):
macroName = 'and'
class _or(Command):
macroName = 'or'
class NOT(Command):
pass
class AND(Command):
pass
class OR(Command):
pass
class openParen(Command):
macroName = '('
class closeParen(Command):
macroName = ')'
class isodd(Command):
args = 'number:int'
class isundefined(Command):
args = 'command:str'
class equal(Command):
args = 'first second'
class lengthtest(Command):
args = 'test'
class boolean(Command):
args = 'name:str'
class newboolean(Command):
args = 'name:str'
class provideboolean(Command):
args = 'name:str'
class setboolean(Command):
args = 'name:str value:str'
class whiledo(Command):
args = 'test:nox operations'
|