From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 support/rtflatex/rtflatex.sty | 182 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 182 insertions(+)
 create mode 100644 support/rtflatex/rtflatex.sty

(limited to 'support/rtflatex/rtflatex.sty')

diff --git a/support/rtflatex/rtflatex.sty b/support/rtflatex/rtflatex.sty
new file mode 100644
index 0000000000..7bcbc3609d
--- /dev/null
+++ b/support/rtflatex/rtflatex.sty
@@ -0,0 +1,182 @@
+\def\NFdeft{\rm}
+\def\bfit{\bf\itshape}
+\def\ttit{\tt\slshape}
+\def\ttsl{\tt\slshape}
+\def\ttbf{\tt\bfseries}
+\def\sfit{\sf\itshape}
+\def\bfsl{\bf\slshape}
+\def\sfsl{\sf\slshape}
+\def\sfbf{\sf\bfseries}
+\def\sfbfit{\sf\bfseries\itshape}
+\def\sfbfsl{\sf\bfseries\slshape}
+
+\def\RTFf#1{}
+\def\RTFrtf#1{\immediate\write15{RTFLaTeX by D. Taupin, your version #1}}
+\def\RTFdeff#1{}
+\def\RTFcolortbl#1{}
+\def\RTFfonttbl#1{}
+\def\RTFstylesheet#1{}
+\def\RTFinfo#1{}
+
+\def\RTFbox{}\def\RTFbrsp#1{}\def\RTFpicscalex#1{}\def\RTFpicscaley#1{}
+\def\RTFbrdrs{}\def\RTFbrdrsh{}\def\RTFflddirty{}\def\RTFobjemb{}
+\def\RTFobjclass{}\def\RTFobjdata{}\def\RTFresult{}
+\def\RTF@picwgoal#1{}\def\RTF@pichgoal#1{}
+\def\RTFbrdrw#1{}\def\RTFbfsp#1{}
+\def\RTFmacpict{\def\RTFpicwgoal{\RTF@picwgoal}%
+                \def\RTFpichgoal{\RTF@pichgoal}%
+                \def\RTFpicw{\RTF@picw}%
+                \def\RTFpich{\RTF@pich}%
+}
+\def\RTFwmetafile#1{\def\RTFpicwgoal{\RTFobjw}%
+                \def\RTFpichgoal{\RTFobjh}%
+                \def\RTFpicw{\RTF@picwgoal}%
+                \def\RTFpich{\RTF@pichgoal}%
+}
+\def\RTFobjw#1{\edef\RTF@picw{#1\RTFtwips}}
+\def\RTF@picw#1{\edef\RTF@picw{#1\RTF@picunit}}
+\def\RTFobjh#1{\hbox{\vrule\vbox to #1\RTFtwips{\hrule width\RTF@picw\vss
+  \hbox to \RTF@picw{\hss\tt\RTF@pict\hss}\vss\hrule}\vrule}}
+\def\RTF@pich#1{\hbox{\vrule\vbox to #1\RTF@picunit{\hrule width\RTF@picw\vss
+  \hbox to \RTF@picw{\hss\tt\RTF@pict\hss}\vss\hrule}\vrule}}
+ %\check
+\def\RTFoutl{\bf\sf}
+\def\RTFsbasedon#1{}
+\def\RTFtwoside{\global\@twosidetrue}
+\newdimen\RTF@tx
+\newdimen\RTFtwips
+\newdimen\RTF@picunit
+\global\RTFtwips=1pt \global\divide\RTFtwips by 20\relax
+\RTF@picunit=1pt
+ %\check
+\def\RTFemdash{{---}}
+\def\RTFendash{{--}}
+\def\RTFpaperw#1{}
+\def\RTFpaperh#1{}
+\def\RTFsnext#1{}
+\def\RTFfield{}
+\def\RTFfldinst{}
+\def\RTFfldrslt{}
+\def\RTFtitlepg{}
+\def\RTFfracwidth{}
+
+\def\RTFpgnstart#1{\global\count0=#1\relax}
+ %\check
+%\def\RTFfi#1{\parindent #1\RTFtwips}
+\def\RTFfi#1{}
+
+\def\RTFqc{}
+\def\RTFup#1{}
+\def\RTFdeflang#1{\immediate\write15{\noexpand\deflang{#1} ignored.}}
+\def\RTFri#1{\immediate\write15{\noexpand\ri{#1} ignored.}}
+\def\RTFli#1{\immediate\write15{\noexpand\li{#1} ignored.}}
+\def\RTFlang#1{\immediate\write15{\noexpand\lang{#1} ignored.}}
+\def\RTFmargl#1{\immediate\write15{\noexpand\margl{#1} ignored.}}
+\def\RTFgutter#1{\immediate\write15{\noexpand\gutter{#1} ignored.}}
+ %\check
+\def\RTFheader#1{\markboth{#1}{#1}\gdef\theRTFheader{#1}}
+\def\RTFheaderf#1{\immediate\write15{\noexpand\headerf{...} ignored.}}
+\def\RTFheaderl#1{\RTFtwoside\markboth{#1}{\theRTFheader}}
+\def\RTFheaderr#1{\RTFtwoside\markright{#1}}
+ %\check
+\def\RTFfooter#1{\immediate\write15{\noexpand\footer{#1} ignored.}}
+\def\RTFfooterf#1{\immediate\write15{\noexpand\footerf{#1} ignored.}}
+\def\RTFfooterl#1{\immediate\write15{\noexpand\footerl{#1} ignored.}}
+\def\RTFfooterr#1{\immediate\write15{\noexpand\footerr{#1} ignored.}}
+\def\RTFmargr#1{\immediate\write15{\noexpand\margr{#1} ignored.}}
+\def\RTFmargt#1{\immediate\write15{\noexpand\margt{#1} ignored.}}
+\def\RTFmargb#1{\immediate\write15{\noexpand\margb{#1} ignored.}}
+\def\RTFdxfrtext#1{\immediate\write15{\noexpand\dxfrtext{#1} ignored.}}
+\def\RTFdeftab#1{\immediate\write15{\noexpand\deftab{#1} ignored.}}
+\def\RTFftnstart#1{\immediate\write15{\noexpand\ftnstart{#1} ignored.}}
+\def\RTFcols#1{\immediate\write15{\noexpand\cols{#1} ignored.}}
+\def\RTFcolsx#1{\immediate\write15{\noexpand\colsx{#1} ignored.}}
+\def\RTFfs#1{\immediate\write15{\noexpand\fs{#1} ignored.}}
+\def\RTFcf#1{\immediate\write15{\noexpand\cf{#1} ignored.}}
+\def\RTFbinfsxn#1{\immediate\write15{\noexpand\binfsxn{#1} ignored.}}
+\def\RTFbinsxn#1{\immediate\write15{\noexpand\binsxn{#1} ignored.}}
+\def\RTFbrdrbtw{\immediate\write15{\noexpand\brdrbtw ignored.}}
+\def\RTFfldinstrefsymbol#1{\immediate\write15{\noexpand\fldinstrefsymbol{#1} ignored.}}
+\def\RTFtrowd{\immediate\write15{\noexpand\trowd ignored.}}
+\def\RTFtrleft#1{\immediate\write15{\noexpand\trleft{#1} ignored.}}
+\def\RTFclbrdrb{\immediate\write15{\noexpand\clbrdrb ignored.}}
+\def\RTFcellx#1{\immediate\write15{\noexpand\cellx{#1} ignored.}}
+\def\RTFintbl{\immediate\write15{\noexpand\intbl ignored.}}
+%\def\RTFcell{\immediate\write15{\noexpand\cell ignored.}}
+\let\RTFcell\relax
+\def\RTFrow{\immediate\write15{\noexpand\row ignored.}}
+\def\RTFfldinstrefbsymbol#1{\immediate\write15{\noexpand\fldinstrefbsymbol{#1} ignored.}}
+ %\check
+
+\def\RTFsectd{}
+
+\def\RTFobject{\RTF@picunit=\RTFtwips\RTFpict}
+\def\RTFpict#1{\edef\RTF@pict{#1}}
+ %\check 
+
+\def\RTFpagebb{\clearpage}
+
+\def\RTFlinemod#1{}
+\def\RTFlinex#1{}
+\def\RTFheadery#1{}
+\def\RTFfootery#1{}
+\def\RTFul{\sl}
+\def\RTFtqc{\null}
+\def\RTFtqdec{\hskip 1em{}}
+\def\RTFhrule{\leavevmode\vrule height 0.4pt depth 0pt width }
+\global\emergencystretch 40pt
+\ifx\r\undefined\write16{\noexpand\r undefined ! reset to \noexpand
+  \accent 23}\def\r#1{{\accent 23 #1}}\fi \def\degree{\r{}}
+\ifx\undefined\HUGE\def\HUGE{\Huge}\fi
+ %\check
+
+
+
+\def\Alpha{\hbox{\rm A}}
+\def\Beta{\hbox{\rm B}}
+\def\Epsilon{\hbox{\rm E}}
+\def\Zeta{\hbox{\rm Z}}
+\def\Eta{\hbox{\rm H}}
+\def\Iota{\hbox{\rm I}}
+\def\Kappa{\hbox{\rm K}}
+\def\Mu{\hbox{\rm M}}
+\def\Nu{\hbox{\rm N}}
+\def\Omicron{\hbox{\rm O}}
+\def\Rho{\hbox{\rm P}}
+\def\Tau{\hbox{\rm T}}
+\def\varUpsilon{\hbox{\rm Y}}
+\def\Chi{\hbox{\rm X}}
+
+\def\RTFac#1{\hbox{\tt\char 92RTFac[#1]}}
+
+\def\RTFaccol{\hbox{\tt\char 92RTFaccol[]}}
+
+\def\closebr#1{}
+
+ %\check
+\newdimen\boxedsize
+\newbox\boxedbox
+\def\boxed#1{\setbox\boxedbox\hbox{#1}\boxedsize=\dp\boxedbox
+    \advance\boxedsize by 3.4pt\leavevmode
+    \raise -\boxedsize\vbox{\hrule\hbox{\vrule\kern3pt
+    \vbox{\kern3pt\box\boxedbox\kern3pt}\kern3pt\vrule}\hrule}}
+
+\def\beginparagraph{\leavevmode\strut}
+
+\def\plainitem{\par \hangindent 1.0\parindent \textindent}
+
+\def\registered{\protect \pregistered}
+ \def\pregistered{{\sc \ooalign {\hfil \raise .07ex\hbox {r}\hfil \crcr
+\mathhexbox 20D}}}
+
+\def\trademark{\protect \ptrademark}
+ \def\ptrademark{{\sc \leavevmode \raise .07ex\hbox {tm}}}
+
+\def\RTFsetfontheading{{\rm\def\wordsplita##1##2##3.{##1}%
+\def\wordsplitb##1##2##3.{##2}%
+ %
+\xdef\FontHdg{\expandafter\wordsplita\fontname\the\font.}
+\xdef\FontHdge{\expandafter\wordsplitb\fontname\the\font.}}
+ %
+\immediate\write16{ Fonts used:\FontHdg\FontHdge}\relax}
+
-- 
cgit v1.2.3

