]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Fix functions that used functions but did not defined it
[lyx.git] / src / LaTeXFeatures.cpp
index 4a4385fc015a2ccf616e3cf9103c1493d0120bc2..74941459e60faca3b1fb943937d70f8438076e8c 100644 (file)
@@ -208,8 +208,8 @@ static docstring const lyxdot_def = from_ascii(
 
 static docstring const changetracking_xcolor_ulem_base_def = from_ascii(
        "%% Change tracking with ulem and xcolor: base macros\n"
-       "\\DeclareRobustCommand{\\mklyxadded}[1]{\\bgroup\\color{lyxadded}{}#1\\egroup}\n"
-       "\\DeclareRobustCommand{\\mklyxdeleted}[1]{\\bgroup\\color{lyxdeleted}\\mklyxsout{#1}\\egroup}\n"
+       "\\DeclareRobustCommand{\\mklyxadded}[1]{\\textcolor{lyxadded}\\bgroup#1\\egroup}\n"
+       "\\DeclareRobustCommand{\\mklyxdeleted}[1]{\\textcolor{lyxdeleted}\\bgroup\\mklyxsout{#1}\\egroup}\n"
        "\\DeclareRobustCommand{\\mklyxsout}[1]{\\ifx\\\\#1\\else\\sout{#1}\\fi}\n");
 
 static docstring const changetracking_xcolor_ulem_def = from_ascii(
@@ -471,19 +471,11 @@ static docstring const textschwa_def = from_ascii(
 static docstring const xfrac_def = from_ascii(
           "\\usepackage{xfrac}\n");
 
+// https://tex.stackexchange.com/questions/720579/do-i-need-to-replace-declarecollectioninstance-after-recent-package-change/
 static docstring const smallLetterFrac_def = from_ascii(
-       "\\DeclareCollectionInstance{smallLetterFrac}{xfrac}{default}{text}\n"
+       "\\EditTemplateDefaults{xfrac}{text}\n"
        "  {phantom=c, scale-factor=1.0, slash-left-kern=-.05em}\n"
-       "\\DeclareCollectionInstance{smallLetterFrac}{xfrac}{lmr}{text}\n"
-       "  {slash-symbol-font=ptm, phantom=c, scale-factor=1, slash-left-kern=-.05em}\n"
-       "\\DeclareCollectionInstance{smallLetterFrac}{xfrac}{lmss}{text}\n"
-       "  {slash-symbol-font=ptm, phantom=c, scale-factor=1, slash-left-kern=-.05em}\n"
-       "\\DeclareCollectionInstance{smallLetterFrac}{xfrac}{cmr}{text}\n"
-       "  {slash-symbol-font=ptm, phantom=c, scale-factor=1, slash-left-kern=-.05em}\n"
-       "\\DeclareCollectionInstance{smallLetterFrac}{xfrac}{cmss}{text}\n"
-       "  {slash-symbol-font=ptm, phantom=c, scale-factor=1, slash-left-kern=-.05em}\n"
-       "\\newcommand{\\smallLetterFrac}[2]{%\n"
-       "  {\\UseCollection{xfrac}{smallLetterFrac}\\sfrac{#1}{#2}}}\n");
+       "\\NewCommandCopy\\smallLetterFrac\\sfrac\n");
 
 static docstring const lyxref_def = from_ascii(
        "\\RS@ifundefined{subsecref}\n"