[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.51-16-g264d63e
Agustin Martin Domingo
agmartin at debian.org
Tue Jul 1 16:59:17 UTC 2008
The following commit has been merged in the master branch:
commit 2e9c8854edf0517d088066c820ad0fe7897380db
Author: Agustin Martin Domingo <agmartin at debian.org>
Date: Mon Jun 9 00:13:46 2008 +0200
Use article, report or book as textclass. Use LyX-Code. Support chapt.
No longer use linuxdoc as textclass, modern lyx does not support it.
Use plain article, report or book instead. Since none of them
support verbatim layout, use LyX-Code instead. Also add chapt to lyx
mapping file.
diff --git a/lib/dist/fmt_lyx.pl b/lib/dist/fmt_lyx.pl
index cd9886e..7ca7c76 100644
--- a/lib/dist/fmt_lyx.pl
+++ b/lib/dist/fmt_lyx.pl
@@ -125,8 +125,7 @@ $lyx->{postASP} = sub {
chomp;
if ( /^\@(article|book|report)\@/ ) {
- #my $class = $1;
- my $class = "linuxdoc";
+ my $class = $1;
$lyxout =~ s/\@textclass\@/$class/;
} # Itemize; Enumerate and Description. $indent_level counts the level
elsif( /^\@itemize\@/ ) { # --- Itemized list begins
@@ -195,7 +194,7 @@ $lyx->{postASP} = sub {
if ( $intag ) {
s/\s+/\n\\protected_separator\n/g unless m/^\\(family|series|shape)/;
} elsif ( $verbatim ) {
- $_ = "\\layout Verbatim\n$_";
+ $_ = "\\layout LyX-Code\n$_";
} elsif ( $inheading) {
s/\s+/ /g;
}
diff --git a/lib/dist/linuxdoc-tools/lyx/mapping b/lib/dist/linuxdoc-tools/lyx/mapping
index 617e342..8bc598c 100644
--- a/lib/dist/linuxdoc-tools/lyx/mapping
+++ b/lib/dist/linuxdoc-tools/lyx/mapping
@@ -57,6 +57,9 @@
"\\end_inset\n" +
</toc>
+<chapt> + "\\layout Chapter" +
+</chapt>
+
<sect> + "\\layout Section" +
</sect>
--
linuxdoc-tools package for Debian.
More information about the debian-xml-sgml-commit
mailing list