TeXCommand

TeXCommand["name"]
represents TeX command \name .
TeXCommand["name", {arg1, arg2, ...}]
represents TeX command with arguments \name {arg1}{arg2}....
TeXCommand["name", {{opt1val1, opt2, opt3val3, ...}, arg1, arg2, ...}]
represents TeX command with optional arguments \name [opt1=val1,opt2,opt3=val3]{arg1}{arg2}....
  • The following options can be given:
"ArgumentConverter"ToString[#1, TeXForm] & function used to convert command arguments, optional argument names and values, to TAdjustmentBox[E, BoxBaselineShift -> 0.5, BoxMargins -> {{-0.3, 0}, {0, 0}}]X. This function should accept one argument and return a string
Command without arguments:
Command with arguments:
Command with optional arguments:
TeXCommand can be nested:
With "ArgumentConverter" set to ToString[#1, TeXForm]& (default value) arguments are converted to TAdjustmentBox[E, BoxBaselineShift -> 0.5, BoxMargins -> {{-0.3, 0}, {0, 0}}]X:
With "ArgumentConverter" set to any function, arguments are passed to this function before joining with other strings building TAdjustmentBox[E, BoxBaselineShift -> 0.5, BoxMargins -> {{-0.3, 0}, {0, 0}}]X form of expression:
TeXCommand can be used to define formatting using Format:
Assign TAdjustmentBox[E, BoxBaselineShift -> 0.5, BoxMargins -> {{-0.3, 0}, {0, 0}}]X formatting for a function:
Formatting is used when function is converted to TAdjustmentBox[E, BoxBaselineShift -> 0.5, BoxMargins -> {{-0.3, 0}, {0, 0}}]X: