summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/chscite
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-14 23:52:16 +0000
committerKarl Berry <karl@freefriends.org>2012-05-14 23:52:16 +0000
commit72ec54e48fe2f256b70e9e6cf71abde41f87fd47 (patch)
tree0405e85af33dfd344ed9101bff317e9fb7fdfbb5 /Master/texmf-dist/source/latex/chscite
parent08a89f62a5bda383c4c15dfc0fc006d190573213 (diff)
chscite (14may12)
git-svn-id: svn://tug.org/texlive/trunk@26383 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/chscite')
-rw-r--r--Master/texmf-dist/source/latex/chscite/chscite.dtx126
-rw-r--r--Master/texmf-dist/source/latex/chscite/chscite.ins46
2 files changed, 135 insertions, 37 deletions
diff --git a/Master/texmf-dist/source/latex/chscite/chscite.dtx b/Master/texmf-dist/source/latex/chscite/chscite.dtx
index 8146c4893a1..02c4e9db8fc 100644
--- a/Master/texmf-dist/source/latex/chscite/chscite.dtx
+++ b/Master/texmf-dist/source/latex/chscite/chscite.dtx
@@ -1,18 +1,22 @@
% \iffalse meta-comment
-%
-% Copyright (C) 201 by Simon Sigurdhsson <ssimon@student.chalmers.se>
-% -------------------------------------------------------
-%
-% This file may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.2
-% of this license or (at your option) any later version.
-% The latest version of this license is in:
-%
-% http://www.latex-project.org/lppl.txt
-%
-% and version 1.2 or later is part of all distributions of LaTeX
-% version 1999/12/01 or later.
-%
+%%
+%% Copyright (C) 2012 by Simon Sigurdhsson <ssimon@student.chalmers.se>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% 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'.
+%%
+%% The Current Maintainer of this work is Simon Sigurdhsson.
+%%
+%% This work consists of the files chscite.dtx and chscite.ins
+%% and the derived filebase chscite.sty.
+%%
% \fi
%
% \iffalse
@@ -22,12 +26,12 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{chscite}
%<*package>
- [2011/09/20 v2.99 Chalmers bibliography style]
+ [2012/05/13 v2.999 Chalmers bibliography style]
%</package>
%
%<*driver>
\documentclass{ltxdoc}
-\usepackage{chscite}[2011/09/20]
+\usepackage{chscite}[2012/05/13]
\AtBeginDocument{%
\OnlyDescription%
% \CodelineIndex%
@@ -36,7 +40,7 @@
}
\AtEndDocument{%
\PrintChanges%
-% \PrintIndex%
+ \PrintIndex%
}
\begin{document}
\DocInput{chscite.dtx}
@@ -81,6 +85,7 @@
% \author{Simon Sigurdhsson \\ \texttt{ssimon@student.chalmers.se}}
%
% \maketitle
+% \tableofcontents
%
% \section{Introduction}
%
@@ -140,6 +145,48 @@
% The \cs{citeyear}\marg{reference} command simply prints the year
% of the given reference.
%
+% \subsection{Using \texttt{@misc} for web sources}
+% In this package, the \texttt{@misc} \textsc{Bib}\TeX{} style has been crafted
+% to typeset web sources correctly as per Chalmers recommendations. Proper use,
+% apart from usual \textsc{Bib}\TeX{} syntax, includes using the \texttt{note}
+% field to specify retreival date and the \texttt{howpublished} field for web
+% page title:
+% \iffalse
+%<*example>
+% \fi
+\begin{verbatim}
+@misc{google,
+ author = {Johnson, S.},
+ year = 2007,
+ title = {Exploiting the mobile channel},
+ howpublished = {m.Net Corporation},
+ url = {http://www.mnetcorporation.com/article-exploiting-the-mobile-channel},
+ note = {2008-04-18}
+}
+\end{verbatim}
+% \iffalse
+%</example>
+% \fi
+%
+% \subsection{Using the \texttt{@patent} entry type}
+% The \texttt{@patent} included in this package is a custom alternative to
+% \texttt{@techreport} especially made for referencing patents. Required fields
+% are \texttt{author}, \texttt{year}, \texttt{title} and \texttt{number} (the
+% patent number). There are no optional fields:
+% \iffalse
+%<*example>
+% \fi
+\begin{verbatim}
+@patent{volvo,
+ author = {{Volvo Lastvagnar}},
+ year = 2006,
+ title = {Information based controlling of chassis height of a vehicle},
+ number = {SE0403224}
+}
+\end{verbatim}
+% \iffalse
+%</example>
+% \fi
%
% \section{Known issues}
% The |chscite.bst| \textsc{Bib}\TeX{} style does not support cross references
@@ -667,6 +714,7 @@
% \changes{v1.0b}{2011/06/06}{Fixed bug concerning editors in \texttt{.bst} file}
% \changes{v2.0c}{2011/06/22}{Cleaned up \texttt{.bst} file}
% \changes{v2.0d}{2011/06/23}{Improved handling of editions}
+% \changes{v2.999}{2012/05/13}{Added \texttt{@patent} and \texttt{@misc} entries}
%
% \iffalse
%<*bibstyle>
@@ -804,7 +852,10 @@ FUNCTION {fin.entry}
{
add.period$
write$
- write.url
+ type$ "misc" =
+ 'skip$
+ 'write.url
+ if$
newline$
}
@@ -1401,11 +1452,48 @@ FUNCTION {unpublished}
}
FUNCTION {misc}
-{ cite$ ": @misc cite style not implemented!" * warning$ }
+{ output.bibitem
+ make.list.label "(" tie.or.space.connect list.year * ")" *
+ author "author" item.check
+ title missing$
+ 'skip$
+ { title tie.or.space.connect add.period$ }
+ if$
+ howpublished missing$
+ 'skip$
+ { howpublished emphasize tie.or.space.connect add.period$ }
+ if$
+ URL missing$
+ 'skip$
+ { " \chsurl{" URL "}" * * tie.or.space.connect add.period$ }
+ if$
+ note missing$
+ 'skip$
+ { "(" note ")" * * tie.or.space.connect add.period$ }
+ if$
+ write$
+ fin.entry
+}
FUNCTION {techreport}
{ cite$ ": @techreport cite style not implemented!" * warning$ }
+FUNCTION {patent}
+{ output.bibitem
+ make.list.label "(" tie.or.space.connect list.year * ")" *
+ author "author" item.check
+ title missing$
+ 'skip$
+ { title emphasize tie.or.space.connect add.period$ }
+ if$
+ number missing$
+ 'skip$
+ { number tie.or.space.connect add.period$ }
+ if$
+ write$
+ fin.entry
+}
+
FUNCTION {default.type} { misc }
MACRO {jan} {"\chsWjanuary{}"}
diff --git a/Master/texmf-dist/source/latex/chscite/chscite.ins b/Master/texmf-dist/source/latex/chscite/chscite.ins
index 42a81190237..37174539431 100644
--- a/Master/texmf-dist/source/latex/chscite/chscite.ins
+++ b/Master/texmf-dist/source/latex/chscite/chscite.ins
@@ -1,16 +1,21 @@
%%
-%% Copyright (C) 2011 by Simon Sigurdhsson <ssimon@student.chalmers.se>
-%%
-%% This file may be distributed and/or modified under the conditions of
-%% the LaTeX Project Public License, either version 1.2 of this license
-%% or (at your option) any later version. The latest version of this
-%% license is in:
+%% Copyright (C) 2012 by Simon Sigurdhsson <ssimon@student.chalmers.se>
%%
-%% http://www.latex-project.org/lppl.txt
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% 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'.
+%%
+%% The Current Maintainer of this work is Simon Sigurdhsson.
+%%
+%% This work consists of the files chscite.dtx and chscite.ins
+%% and the derived filebase chscite.sty.
%%
-%% and version 1.2 or later is part of all distributions of LaTeX version
-%% 1999/12/01 or later.
-%%
\input docstrip.tex
\keepsilent
@@ -21,17 +26,22 @@
This is a generated file.
-Copyright (C) 2011 by Simon Sigurdhsson <ssimon@student.chalmers.se>
+Copyright (C) 2012 by Simon Sigurdhsson <ssimon@student.chalmers.se>
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+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 file may be distributed and/or modified under the conditions of
-the LaTeX Project Public License, either version 1.2 of this license
-or (at your option) any later version. The latest version of this
-license is in:
+This work has the LPPL maintenance status `maintained'.
- http://www.latex-project.org/lppl.txt
+The Current Maintainer of this work is Simon Sigurdhsson.
-and version 1.2 or later is part of all distributions of LaTeX version
-1999/12/01 or later.
+This work consists of the files chscite.dtx and chscite.ins
+and the derived filebase chscite.sty.
\endpreamble