mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not output LaTeX for a macro if the LaTeX part is empty.
This commit is contained in:
parent
3be39de1f7
commit
c33f2f50a0
@ -1188,6 +1188,9 @@ int InsetMathMacroTemplate::write(TeXMathStream & os, bool overwriteRedefinition
|
||||
int num_lines = 0;
|
||||
|
||||
if (os.latex()) {
|
||||
if (definition().empty())
|
||||
return num_lines;
|
||||
|
||||
if (optionals_ > 0) {
|
||||
// macros with optionals use the xargs package, e.g.:
|
||||
// \newcommandx{\foo}[2][usedefault, addprefix=\global,1=default]{#1,#2}
|
||||
|
Loading…
Reference in New Issue
Block a user