LyX file-format changes
-----------------------
+2009-05-05 Pavel Sanda, Enrico Forestieri
+ * Format incremented to 357: Change of the latex output for underline
+ from \underbar to ulem's \uline. This point also corresponds to
+ the introduction of \lyxuline etc. macros to avoid clash with \cite.
+
2009-05-05 Pavel Sanda <sanda@lyx.org>
* Format incremented to 356: support for double and wave underline character
styles via ulem's \uuline and \uwave
def revert_uulinewave(document):
- " Reverts \\uline, \\uuline, and \\uwave character styles "
+ " Reverts \\uuline, and \\uwave character styles "
while True:
i = find_token(document.body, '\\uuline', 0)
if i == -1:
while True:
i = find_token(document.body, '\\uwave', 0)
if i == -1:
- break
+ return
del document.body[i]
+
+def revert_ulinelatex(document):
+ " Reverts \\uline character style "
i = find_token(document.body, '\\bar under', 0)
if i == -1:
return
[353, []],
[354, []],
[355, []],
- [356, []]
+ [356, []],
+ [357, []]
]
-revert = [[355, [revert_uulinewave]],
+revert = [[356, [revert_ulinelatex]],
+ [355, [revert_uulinewave]],
[354, [revert_strikeout]],
[353, [revert_printindexall]],
[352, [revert_subindex]],
// Do not remove the comment below, so we get merge conflict in
// independent branches. Instead add your own.
-int const LYX_FORMAT = 356; // sanda: support for \\uuline
+int const LYX_FORMAT = 357; // sanda: change latex output for various underline commands
typedef map<string, bool> DepClean;
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;