summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-04-25 00:05:09 +0000
committerKarl Berry <karl@freefriends.org>2007-04-25 00:05:09 +0000
commit1d53bd74676004df9dc6f97e96b02c10eb155ac1 (patch)
tree13ae38a08fed44da00c67405457f2b7ac7b35fa8 /Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty
parent18113d689eaddf1c57a5bc789f213daa4dfa358b (diff)
new generic package fenixpar (22apr07)
git-svn-id: svn://tug.org/texlive/trunk@4190 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty')
-rw-r--r--Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty44
1 files changed, 44 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty b/Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty
new file mode 100644
index 00000000000..af3b2720600
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/fenixpar/fenixpar.sty
@@ -0,0 +1,44 @@
+% This is the file fenixpar.sty
+% Author: Javier A. M\'ugica de Rivera
+% This file is in the public domain.
+%
+\ifx\RequirePackage\undefined
+\def\tempa{\input fenixtok.sty}
+\else
+\def\tempa{\RequirePackage{fenixtok}}
+\fi
+\tempa
+
+\def\NewParType#1#2{\NewTypeoftok{everypar}{#1}{#2}}
+\def\NextParL#1{\NexteveryparL{#1}}
+\def\NextParR#1{\NexteveryparR{#1}}
+\let\NextPar\NextParL
+\def\AllParsL#1{\AlleveryparsL{#1}}
+\def\AllParsR#1{\AlleveryparsR{#1}}
+\def\EndPars#1{\Endeverypars{#1}}
+\let\AllPars\AllParsL
+%If you want to make \par a toks register and use fenixtok with it you
+%probably want to comment or modify this line:
+\def\nextpar#1{\fornexttokl{everypar}{#1}}
+
+% Next is an example:
+% \NewParType{asterisk}{\hbox to0pt{\hss$\ast$\kern6pt}}
+%
+% \NextPar{asterisk} This par will get an asterisk.\par
+% But this will not.
+%
+% \AllPars{asterisk} This par will get an asterisk.\par
+% And this one.\par
+% And all these.\par
+% ...
+% \EndPars{asterisk}
+%
+% To directly add code to the next par,
+% \nextpar{\hbox to0pt{\kern-2em \romannumeral\mycounter.\hss}}
+%
+% L and R stand for Left and Right. However, they cannot be used
+% to push letter-format macros in order to format the first letter
+% of the paragraph, unless you are a TeXhacker.
+%
+% See the file fenixtok for details.
+\endinput \ No newline at end of file