summaryrefslogtreecommitdiff
path: root/dvb-spec/dvbapi/bibsection.sty
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-17 23:44:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-17 23:44:45 -0300
commitb6705f84947f09dd3858f839267c9662fdbd667b (patch)
treec6a5dea386c7c837b17cbb4b44a158b78ca4c65e /dvb-spec/dvbapi/bibsection.sty
parent9446aad394fc912dc47f17e7638357edfd470ded (diff)
parentaedda303081b327f1be76710db7032c675509d40 (diff)
downloadmediapointer-dvb-s2-b6705f84947f09dd3858f839267c9662fdbd667b.tar.gz
mediapointer-dvb-s2-b6705f84947f09dd3858f839267c9662fdbd667b.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'dvb-spec/dvbapi/bibsection.sty')
-rw-r--r--dvb-spec/dvbapi/bibsection.sty29
1 files changed, 29 insertions, 0 deletions
diff --git a/dvb-spec/dvbapi/bibsection.sty b/dvb-spec/dvbapi/bibsection.sty
new file mode 100644
index 000000000..7f9eedc6a
--- /dev/null
+++ b/dvb-spec/dvbapi/bibsection.sty
@@ -0,0 +1,29 @@
+\def\thebibliography#1{\chapter*{\bibname\@mkboth
+ {\uppercase{\bibname}}{\uppercase{\bibname}}}
+ \setcounter{chapter}{0}
+ \setcounter{section}{0}
+ \def\thechapter{Bib}
+ \def\thesection{\Alph{section}}
+ \edef\biblab{#1}
+ \addcontentsline{toc}{chapter}{\bibname}
+ }
+
+\def\bibtitle#1#2{\expandafter\def\csname bibtitle#1\endcsname{
+ \bibsection{#2}} }
+
+\def\bibsection#1{\section{#1}
+ \begin{list}
+ {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{\biblab}}%
+ \leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \usecounter{enumiv}%
+ \let\p@enumiv\@empty
+ \def\theenumiv{\arabic{enumiv}}}%
+ \def\newblock{\hskip .11em plus.33em minus.07em}%
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=\@m}
+
+\def\endbibsection{\end{list}}
+
+\def\endthebibliography{\endbibsection}
+