示例#1
0
 def __init__(self, profile = None):
     _profile = {
         "mat_str" : "pmatrix",
         "mat_delim" : "",
         "mode": "inline",
     }
     if profile is not None:
         _profile.update(profile)
     LatexPrinter.__init__(self, _profile)
示例#2
0
 def __init__(self, profile=None):
     _profile = {
         "mat_str": "pmatrix",
         "mat_delim": "",
         "mode": "inline",
     }
     if profile is not None:
         _profile.update(profile)
     LatexPrinter.__init__(self, _profile)
示例#3
0
 def __init__(self, settings):
     defaults = {
         "decimales": 18,
         "mat_str": "pmatrix",
         "mat_delim": "",
         "mode": "inline",
         "fold_frac_powers": False,
         "fold_short_frac": False,
     }
     self._default_settings.update(defaults)
     LatexPrinter.__init__(self, settings)
示例#4
0
文件: printers.py 项目: wxgeo/geophar
 def __init__(self, settings):
     defaults = {'decimales': 18,
                 'mode_scientifique': False,
                 'decimales_sci': 2,
                 "mat_str" : "pmatrix",
                 "mat_delim" : "",
                 "mode": "inline",
                 "fold_frac_powers": False,
                 "fold_short_frac": False,
                 }
     self._default_settings.update(defaults)
     LatexPrinter.__init__(self, settings)
示例#5
0
文件: Latex.py 项目: gharib85/pyrate
    def __init__(self, LatexExport, symbDic, sort=False, cType=None, baseAdd=False, baseMul=False, incrementInds=False):
        self.latex = LatexExport

        self.sort = sort
        self.cType = cType
        self.baseAdd = baseAdd
        self.baseMul = baseMul
        self.incrementInds = incrementInds

        self.dic = symbDic

        LatexPrinter.__init__(self, {'symbol_names': symbDic})
示例#6
0
文件: latex.py 项目: johndpope/GeLaTo
    def __init__(self, settings=None):
        self._enable_fourier_args = settings.pop('enable_fourier_args', True)

        LatexPrinterSympy.__init__(self, settings=settings)