# Update for Koma Script Release >=2.8q
# Juergen Spitzmueller <j.spitzmueller@gmx.de>, 2003/2/08.
# Mapped List to Labeling
-# Guenter Milde <g.milde web.de>
+# Guenter Milde <milde users.berlios.de>, 2009-02-02
+# Labeling is now used also in non-KOMA classes
Format 30
End
Style Labeling
- CopyStyle List
LatexName labeling
# overwrite the preamble code definition
Preamble
EndPreamble
End
-Style List
- Obsoletedby Labeling
-End
-
Input stdsections.inc
Style Part
document.header[i] = "\\use_xetex " + val
+def revert_labeling(document):
+ koma = ("scrartcl", "scrarticle-beamer", "scrbook", "scrlettr",
+ "scrlttr2", "scrreprt")
+ if document.textclass in koma:
+ return
+ i = 0
+ while True:
+ i = find_token_exact(document.body, "\\begin_layout Labeling", i)
+ document.body[i] = "\\begin_layout List"
+
+
##
# Conversion hub
#
[406, [convert_passthru]],
[407, []],
[408, []],
- [409, [convert_use_xetex]]
+ [409, [convert_use_xetex]],
+ [410, []]
]
-revert = [[408, [revert_use_xetex]],
+revert = [[409, [revert_labeling]],
+ [408, [revert_use_xetex]],
[407, [revert_script]],
[406, [revert_multirowOffset]],
[405, [revert_passthru]],
// Do not remove the comment below, so we get merge conflict in
// independent branches. Instead add your own.
-int const LYX_FORMAT = 409; // spitz use_xetex -> use_non_tex_fonts
+int const LYX_FORMAT = 410; // rgh: dummy format for list->labeling
typedef map<string, bool> DepClean;
typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;