summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml')
-rw-r--r--Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml29
1 files changed, 19 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml b/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml
index b29c789eafd..92d9f75f5bc 100644
--- a/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml
+++ b/Master/texmf-dist/tex/latex/stex/omtext/omtext.sty.ltxml
@@ -53,6 +53,7 @@ DefKeyVal('omtext','for','Semiverbatim');
DefKeyVal('omtext','from','Semiverbatim');
DefKeyVal('omtext','type','Semiverbatim');
DefKeyVal('omtext','title','Plain'); #Math mode in titles.
+DefKeyVal('omtext','start','Plain'); #Math mode in start phrases
DefKeyVal('omtext','theory','Semiverbatim');
DefKeyVal('omtext','continues','Semiverbatim');
DefKeyVal('omtext','verbalizes','Semiverbatim');
@@ -65,7 +66,8 @@ DefCMPEnvironment('{omtext} OptionalKeyVals:omtext',
. "?&KeyVal(#1,'title')(<dc:title>&KeyVal(#1,'title')</dc:title>)()"
. "<omdoc:CMP>"
. "<omdoc:p>"
- . "#body");
+ . "?&KeyVal(#1,'start')(<omdoc:phrase type='startemph'>&KeyVal(#1,'start')</omdoc:phrase>)()"
+ . "#body");
sub DefCMPEnvironment {
my ($proto, $replacement, %options) = @_;
my @before = $options{beforeDigest} ? ($options{beforeDigest}) : ();
@@ -82,7 +84,7 @@ sub DefCMPConstructor {
push(@before, \&useCMPItemizations);
$options{beforeDigest} = \@before;
DefConstructor($proto, $replacement, %options);
-}
+}#$
DefKeyVal('phrase','id','Semiverbatim');
DefKeyVal('phrase','style','Semiverbatim');
DefKeyVal('phrase','class','Semiverbatim');
@@ -101,10 +103,11 @@ DefConstructor('\sinlinequote [] {}',
. "#2"
. "</omdoc:phrase>");
DefEnvironment('{sblockquote} []',
- "<omdoc:omgroup type='quote'"
- . "?#1(<dc:source>#1</dc:source>\n)()"
- . "#body"
- . "</omdoc:omgroup>");
+ "?#1(<omdoc:omtext type='quote'>"
+ . "<dc:source>#1</dc:source>"
+ . "#body"
+ . " </omdoc:omtext>)"
+ . "(<omdoc:p class='quote'>#body</omdoc:p>)");
DefConstructor('\lec{}',
"\n<omdoc:note type='line-end-comment'>#1</omdoc:note>");
RawTeX('
@@ -161,9 +164,7 @@ DefConstructor('\atwinalt[]{}{}{}{}',
. "<omdoc:idp>#4</omdoc:idp>"
. "</omdoc:ide>"
."</omdoc:idx>");
-DefConstructor('\printindex','<omdoc:index/>');
-DefConstructor('\par',sub { $_[0]->maybeCloseElement('omdoc:p'); },
- alias=>"\\par\n");
+DefConstructor('\par',sub { $_[0]->maybeCloseElement('omdoc:p'); },alias=>"\\par\n");
Tag('omdoc:p', autoClose=>1, autoOpen=>1);
Tag('omdoc:CMP', autoClose=>1, autoOpen=>1);
Tag('omdoc:omtext', autoClose=>1, autoOpen=>1);
@@ -171,7 +172,15 @@ DefConstructor('\omspace{}','');
DefConstructor('\emph{}',"<omdoc:phrase class='emphasis'>#1</omdoc:phrase>");
DefConstructor('\em',"<omdoc:phrase class='emphasis'>");
DefConstructor('\texttt{}',"<omdoc:phrase class='code'>#1</omdoc:phrase>");
+DefConstructor('\tt',"<omdoc:phrase class='code'>");
DefConstructor('\textbf{}',"<omdoc:phrase class='bold'>#1</omdoc:phrase>");
+DefConstructor('\bf',"<omdoc:phrase class='bold'>");
+DefConstructor('\textsf{}',"<omdoc:phrase class='sans-serif'>#1</omdoc:phrase>");
+DefConstructor('\sf',"<omdoc:phrase class='sans-serif'>");
+DefConstructor('\textsl{}',"<omdoc:phrase class='slanted'>#1</omdoc:phrase>");
+DefConstructor('\sl',"<omdoc:phrase class='slanted'>");
+DefConstructor('\textit{}',"<omdoc:phrase class='italic'>#1</omdoc:phrase>");
+DefConstructor('\it',"<omdoc:phrase class='italic'>");
Tag('omdoc:phrase', autoClose=>1);
DefEnvironment('{center}','#body');
DefEnvironment('{flushleft}','#body');
@@ -201,7 +210,7 @@ DefConstructor('\scriptsize','');
DefConstructor('\tiny','');
DefConstructor('\fbox{}','#1');
DefConstructor('\footnote[]{}',
- "<omdoc:note class='foot' ?#1(mark='#1')>#2</omdoc:note>");
+ "<omdoc:note type='foot' ?#1(mark='#1')>#2</omdoc:note>");
DefConstructor('\footnotemark[]',"");
DefConstructor('\footnotetext[]{}',
"<omdoc:note class='foot' ?#1(mark='#1')>#2</omdoc:note>");