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.
parent 883ac6da
......@@ -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;
}
......
......@@ -57,6 +57,9 @@
"\\end_inset\n" +
</toc>
<chapt> + "\\layout Chapter" +
</chapt>
<sect> + "\\layout Section" +
</sect>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment