summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/simurgh/tex/simurgh-refrep.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/latex/simurgh/tex/simurgh-refrep.sty
Initial commit
Diffstat (limited to 'macros/luatex/latex/simurgh/tex/simurgh-refrep.sty')
-rw-r--r--macros/luatex/latex/simurgh/tex/simurgh-refrep.sty66
1 files changed, 66 insertions, 0 deletions
diff --git a/macros/luatex/latex/simurgh/tex/simurgh-refrep.sty b/macros/luatex/latex/simurgh/tex/simurgh-refrep.sty
new file mode 100644
index 0000000000..f2154da224
--- /dev/null
+++ b/macros/luatex/latex/simurgh/tex/simurgh-refrep.sty
@@ -0,0 +1,66 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-refrep}[2013/09/22 v0.01a changes to `refrep.cls']
+\renewcommand\left@footnoterule{%
+ \hbox dir TLT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand\right@footnoterule{%
+ \hbox dir TRT to \columnwidth
+ {\vbox{%
+ \kern-3\p@
+ \hrule\@width.4\columnwidth
+ \kern 2.6\p@}\hfil}}
+\renewcommand\theequation
+{\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@equation}
+\renewcommand\thefigure
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@figure}
+\renewcommand\thetable%
+ {\ifnum \c@chapter>\z@ \thechapter\@SepMark\fi \@arabic\c@table}
+\renewcommand\thesection {\thechapter\@SepMark\@arabic\c@section}
+\renewcommand\thesubsection {\thesection\@SepMark\@arabic\c@subsection}
+\renewcommand\thesubsubsection {\thesubsection \@SepMark\@arabic\c@subsubsection}
+\renewcommand\theparagraph {\thesubsubsection\@SepMark\@arabic\c@paragraph}
+\renewcommand\thesubparagraph {\theparagraph\@SepMark\@arabic\c@subparagraph}
+\renewenvironment{thebibliography}[1]
+ {\chapter*{\bibname
+ \@mkboth{\bibname}{\bibname}}%
+ \if@RTL%
+ \if@LTRbibitems%
+ \@RTLfalse%
+ \pardir TLT%
+ \textdir TLT%
+ \fi%
+ \else%
+ \if@RTLbibitems%
+ \@RTLtrue%
+ \pardir TRT%
+ \textdir TRT%
+ \fi%
+ \fi%
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \@openbib@code
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+ \sloppy
+ \clubpenalty4000
+ \@clubpenalty \clubpenalty
+ \widowpenalty4000%
+ \sfcode`\.=\@m}
+ {\def\@noitemerr
+ {\@latex@warning{Empty `thebibliography' environment}}%
+ \endlist}
+
+\renewcommand \thepart {\@tartibi\c@part}
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@harfi\c@chapter}
+}%end appendix
+\endinput \ No newline at end of file