From c17df2980b7ab86ba493793f5987b68e02201207 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Mon, 10 Mar 2008 12:54:00 +0000 Subject: [PATCH] * cosmetic and comment git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23624 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacroTemplate.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 876f8856d4..a0259b0181 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -1268,10 +1268,11 @@ bool MathMacroTemplate::fixNameAndCheckIfValid() void MathMacroTemplate::validate(LaTeXFeatures & features) const { - if (optionals_ > 0) { - //features.require("newlyxcommand"); + // we need global optional macro arguments. They are not available + // with \def, and \newcommand does not support global macros. So we + // are bound to xargs also for the single-optional-parameter case. + if (optionals_ > 0) features.require("xargs"); - } } void MathMacroTemplate::getDefaults(vector & defaults) const -- 2.39.2