summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/gost705.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-11-21 23:53:45 +0000
committerKarl Berry <karl@freefriends.org>2010-11-21 23:53:45 +0000
commit1a9e525f4cfeebc43345769293278fc86d237e0b (patch)
tree21467486865d88e8c2516ca68e54347ccbbf22d6 /Master/texmf-dist/source/latex/disser/gost705.dtx
parent67db10d00fe1667acb186aa61d485eecd5a8d828 (diff)
disser 1.1.7 (22nov10)
git-svn-id: svn://tug.org/texlive/trunk@20522 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/gost705.dtx')
-rw-r--r--Master/texmf-dist/source/latex/disser/gost705.dtx279
1 files changed, 232 insertions, 47 deletions
diff --git a/Master/texmf-dist/source/latex/disser/gost705.dtx b/Master/texmf-dist/source/latex/disser/gost705.dtx
index 01dd4f1cd45..97fd655650a 100644
--- a/Master/texmf-dist/source/latex/disser/gost705.dtx
+++ b/Master/texmf-dist/source/latex/disser/gost705.dtx
@@ -1,34 +1,166 @@
% \iffalse meta-comment
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%
-%% This bibliography style attempts
-%% to format bibliography according to
-%% GOST 7.1-84 with some conventional modifications.
-%%
-%% Based on style gost71u.bst by Maksym Polyakov.
-%%
-%% For the Russian bibliographic entries
-%% you need to create field
-%% language = {russian}.
-%% Default language is English.
-%% Field numpages for books must contain number of pages.
-%% Optional field url will format url (using hyperref, if loaded).
-%%
-%% Requires 8-bit bibtex with switch -B and csf file
-%% supporting cyrillic.
-%%
-%% bibtex8 -B -c <encoding>.csf <your_document>
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
+%
+% This bibliography style attempts to format bibliography according to
+% GOST R 7.0.5-2008 with some conventional modifications.
+%
+% Based on style gost71u.bst by Maksym Polyakov.
+%
+% For the Russian bibliographic entries you need to create field
+% language = {russian}.
+%
+% Default language is English.
+% Field numpages for books must contain number of pages.
+% Optional field url will format url (using hyperref, if loaded).
+%
+% Requires 8-bit bibtex with switch -H and csf file supporting cyrillic.
+%
+% bibtex8 -H -c <encoding>.csf <your_document>
+%
+% Copyright (C) 2004-2010 by
+% Stanislav Kruchinin <stanislav.kruchinin at gmail.com>
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either
+% version 1.3c of this license or (at your option) any later
+% version. This version of this license is in
+% http://www.latex-project.org/lppl/lppl-1-3c.txt
+% and the latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of
+% LaTeX version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% Current Maintainer of this work is Stanislav Kruchinin.
+%
+% This work consists of the main source file gost705.dtx
+% and the derived files
+% gost705.bst, gost705s.bst, gost705.pdf.
+%
+% Distribution:
+% CTAN:macros/latex/contrib/disser/src/gost705.dtx
+%
+% Unpacking:
+% (a) If disser.ins present:
+% latex disser.ins
+% (b) Without disser.ins:
+% tex gost705.dtx
+%
+% Documentation:
+% latex maik.dtx; ...
+%
+% Programm calls to get the documentation (example):
+% pdflatex gost705.dtx
+% makeindex -r -s dtx.ist gost705
+% pdflatex gost705.dtx
+% pdflatex gost705.dtx
+%
+% Installation:
+% TDS:bibtex/bst/disser/
+% TDS:doc/latex/disser/
+% TDS:source/latex/disser/
+%
+%<*ignore>
+\begingroup
+ \catcode123=1 %
+ \catcode125=2 %
+ \def\x{LaTeX2e}%
+\expandafter\endgroup
+\ifcase 0\ifx\install y1\fi\expandafter
+ \ifx\csname processbatchFile\endcsname\relax\else1\fi
+ \ifx\fmtname\x\else 1\fi\relax
+\else\csname fi\endcsname
+%</ignore>
+%<*install>
+\input docstrip.tex
+\Msg{************************************************************************}
+\Msg{* Installation}
+\Msg{* gost705: Format bibliography according to GOST R 7.0.5-2008}
+\Msg{************************************************************************}
+
+\keepsilent
+\askforoverwritefalse
+
+\let\MetaPrefix\relax
+\preamble
+
+This is a generated file.
+
+This bibliography style attempts to format bibliography according to
+GOST R 7.0.5-2008 with some conventional modifications.
+
+Based on style gost71u.bst by Maksym Polyakov.
+
+For the Russian bibliographic entries you need to create field
+ language = {russian}.
+
+Default language is English.
+Field numpages for books must contain number of pages.
+Optional field url will format url (using hyperref, if loaded).
+
+Requires 8-bit bibtex with switch -H and csf file supporting cyrillic.
+
+bibtex8 -H -c <encoding>.csf <your_document>
+
+Copyright (C) 2004-2010 by
+ Stanislav Kruchinin <stanislav.kruchinin at gmail.com>
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either
+version 1.3c of this license or (at your option) any later
+version. This version of this license is in
+ http://www.latex-project.org/lppl/lppl-1-3c.txt
+and the latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of
+LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status "maintained".
+
+Current Maintainer of this work is Stanislav Kruchinin.
+
+This work consists of the main source file gost705.dtx
+and the derived files
+ gost705.bst gost705s.bst gost705.pdf.
+
+\endpreamble
+\let\MetaPrefix\DoubleperCent
+
+\generate{%
+ \usedir{bibtex/bst/disser}%
+ \file{gost705.bst}{\from{gost705.dtx}{gost705}}%
+ \file{gost705s.bst}{\from{gost705.dtx}{gost705s}}%
+}
+
+\catcode32=13\relax% active space
+\let =\space%
+\Msg{************************************************************************}
+\Msg{*}
+\Msg{* To finish the installation you have to move the following}
+\Msg{* file into a directory searched by TeX:}
+\Msg{*}
+\Msg{* gost705.bst gost705s.bst}
+\Msg{*}
+\Msg{* To produce the documentation run the file `gost705.dtx'}
+\Msg{* through LaTeX or pdfLaTeX.}
+\Msg{*}
+\Msg{* Happy TeXing!}
+\Msg{*}
+\Msg{************************************************************************}
+
+\endbatchfile
+%</install>
+%<*ignore>
+\fi
+%</ignore>
%<*driver>
-\ProvidesFile{gost705.drv}[2010/05/22 1.1.6 Bibliography style for dissertations.]
+\ProvidesFile{gost705.drv}%
+ [2010/11/21 1.1.7 Bibliography style for GOST R 7.0.5-2008.]
\documentclass{ltxdoc}
\usepackage[a4paper,includeheadfoot,nohead,mag=1000,
left=5.5cm,right=1cm,top=1.5cm,bottom=1.5cm]{geometry}
\usepackage{ifpdf,indentfirst,color,makeidx}
-
\definecolor{darkblue}{rgb}{0,0,.6}
\ifpdf
\usepackage[pdftex,hyperindex,unicode]{hyperref}
@@ -38,10 +170,9 @@
\fi
\hypersetup{
- pdfusetitle,
- pdftitle = {Documented source code of disser package},
+ pdftitle = {Documented source code of gost705 style},
pdfauthor = {Stanislav Kruchinin},
- pdfsubject = {disser},
+ pdfsubject = {gost705},
pdfstartview = {FitH},
pdfborder = {0 0 0},
bookmarksopen = true,
@@ -107,7 +238,6 @@
\makeindex
-\GetFileInfo{gost705.drv}
\begin{document}
\sloppy
\DocInput{gost705.dtx}
@@ -117,7 +247,7 @@
%</driver>
% \fi
%
-% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% \GetFileInfo{gost705.drv}
%
% \title{\pkg{gost705} и \pkg{gost705s} "--- стили оформления библиографии
% в соответствии с ГОСТ Р 7.0.5-2008}
@@ -172,6 +302,10 @@ ENTRY
urldate
isbn
doi
+ archive
+ archivePrefix
+ primaryClass
+ eprint
}
{}
{ label }
@@ -1033,11 +1167,9 @@ FUNCTION {output.address.publisher.date}
FUNCTION {output.bibitem}
{
newline$
- "\bibitem[" write$
- "\BibPrefix" write$
+ "\bibitem[\BibPrefix" write$
label write$
- "\BibPostfix" write$
- "]{" write$
+ "\BibPostfix]{" write$
cite$ write$
"}" write$
newline$
@@ -1445,6 +1577,20 @@ FUNCTION {editor.organization.after}
}
% \end{macrocode}
+% \DescribeBSTFunction{format.annote}
+% \begin{macrocode}
+FUNCTION {format.annote}
+{
+ annote empty$
+ { "" }
+ { after.sentence 'output.state :=
+ "\BibAnnote{" annote add.period$ * "}" *
+ }
+ if$
+}
+
+% \end{macrocode}
+% \subsection{Создание гиперссылок}
% \DescribeBSTFunction{format.url}
% \begin{macrocode}
FUNCTION {format.url}
@@ -1482,19 +1628,6 @@ FUNCTION {output.url}
}
% \end{macrocode}
-% \DescribeBSTFunction{format.annote}
-% \begin{macrocode}
-FUNCTION {format.annote}
-{
- annote empty$
- { "" }
- { after.sentence 'output.state :=
- "\BibAnnote{" annote add.period$ * "}" *
- }
- if$
-}
-
-% \end{macrocode}
% \DescribeBSTFunction{format.isbn}
% \begin{macrocode}
FUNCTION {format.isbn}
@@ -1522,6 +1655,30 @@ FUNCTION {add.doi}
}
% \end{macrocode}
+% \DescribeBSTFunction{format.eprint}
+% \begin{macrocode}
+FUNCTION {format.eprint}
+{ eprint empty$
+ { "" }
+ { primaryClass empty$
+ { " \href{http://arxiv.org/abs/" eprint * "}" *
+ "{" * eprint * "}" *
+ }
+ { archivePrefix empty$
+ { " \href{http://arxiv.org/abs/" eprint * "}" *
+ "{" * primaryClass * "/" * eprint * "}" *
+ }
+ { " \href{http://arxiv.org/abs/" eprint * "}" *
+ "{" * archivePrefix * ":" * primaryClass * "/" * eprint * "}" *
+ }
+ if$
+ }
+ if$
+ }
+ if$
+}
+
+% \end{macrocode}
% \subsection{Описание типов библиографических ссылок}
% \DescribeBSTFunction{article}
% \begin{macrocode}
@@ -1542,6 +1699,8 @@ FUNCTION {article}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1571,6 +1730,8 @@ FUNCTION {book}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1592,6 +1753,8 @@ FUNCTION {booklet}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1624,6 +1787,8 @@ FUNCTION {inbook}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1652,6 +1817,8 @@ FUNCTION {incollection}
new.block
note output
new.block
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1689,6 +1856,8 @@ FUNCTION {inproceedings}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1735,6 +1904,8 @@ FUNCTION {manual}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1757,6 +1928,8 @@ FUNCTION {mastersthesis}
new.block
note output
new.block
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1778,6 +1951,8 @@ FUNCTION {misc}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1802,6 +1977,8 @@ FUNCTION {phdthesis}
format.pages.page output
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1826,6 +2003,8 @@ FUNCTION {docdisser}
format.pages.page output
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1856,6 +2035,8 @@ FUNCTION {proceedings}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1881,6 +2062,8 @@ FUNCTION {techreport}
new.block
note output
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -1898,6 +2081,8 @@ FUNCTION {unpublished}
new.block
note "note" output.check
new.sentence
+ format.eprint output
+ new.block
output.url
format.annote output
fin.entry
@@ -2066,7 +2251,7 @@ MACRO {nl} {"Nano Lett."}
READ
% \end{macrocode}
-% \subsection{Функции для сортировки списка литературы по именам авторов и названиям}
+% \subsection{Сортировка списка литературы по именам авторов и названиям}
% \begin{macrocode}
%<*gost705s>
% \end{macrocode}