mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Trust Andre'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25319 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c691839abe
commit
ab9a074f20
@ -337,7 +337,7 @@ MathData InsetMathNest::glue() const
|
||||
void InsetMathNest::write(WriteStream & os) const
|
||||
{
|
||||
ModeSpecifier specifier(os, currentMode());
|
||||
docstring const latex_name = name().c_str();
|
||||
docstring const latex_name = name();
|
||||
os << '\\' << latex_name;
|
||||
for (size_t i = 0; i < nargs(); ++i)
|
||||
os << '{' << cell(i) << '}';
|
||||
@ -352,7 +352,7 @@ void InsetMathNest::write(WriteStream & os) const
|
||||
|
||||
void InsetMathNest::normalize(NormalStream & os) const
|
||||
{
|
||||
os << '[' << name().c_str();
|
||||
os << '[' << name();
|
||||
for (size_t i = 0; i < nargs(); ++i)
|
||||
os << ' ' << cell(i);
|
||||
os << ']';
|
||||
|
@ -1141,7 +1141,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
|
||||
else
|
||||
os << "\\newcommandx";
|
||||
|
||||
os << "\\" << name().c_str()
|
||||
os << "\\" << name()
|
||||
<< "[" << numargs_ << "]"
|
||||
<< "[usedefault, addprefix=\\global";
|
||||
for (int i = 0; i < optionals_; ++i) {
|
||||
@ -1158,7 +1158,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
|
||||
} else {
|
||||
// macros without optionals use standard _global_ \def macros:
|
||||
// \global\def\foo#1#2{#1,#2}
|
||||
os << "\\global\\def\\" << name().c_str();
|
||||
os << "\\global\\def\\" << name();
|
||||
docstring param = from_ascii("#0");
|
||||
for (int i = 1; i <= numargs_; ++i) {
|
||||
param[1] = '0' + i;
|
||||
@ -1173,7 +1173,7 @@ void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) cons
|
||||
os << "\\renewcommand";
|
||||
else
|
||||
os << "\\newcommand";
|
||||
os << "{\\" << name().c_str() << '}';
|
||||
os << "{\\" << name() << '}';
|
||||
if (numargs_ > 0)
|
||||
os << '[' << numargs_ << ']';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user