1
1
% \iffalse meta-comment
3
% Copyright (C) 201 by Simon Sigurdhsson <ssimon@student.chalmers.se>
4
% -------------------------------------------------------
6
% This file may be distributed and/or modified under the
7
% conditions of the LaTeX Project Public License, either version 1.2
8
% of this license or (at your option) any later version.
9
% The latest version of this license is in:
11
% http://www.latex-project.org/lppl.txt
13
% and version 1.2 or later is part of all distributions of LaTeX
14
% version 1999/12/01 or later.
3
%% Copyright (C) 2012 by Simon Sigurdhsson <ssimon@student.chalmers.se>
5
%% This work may be distributed and/or modified under the
6
%% conditions of the LaTeX Project Public License, either version 1.3
7
%% of this license or (at your option) any later version.
8
%% The latest version of this license is in
9
%% http://www.latex-project.org/lppl.txt
10
%% and version 1.3 or later is part of all distributions of LaTeX
11
%% version 2005/12/01 or later.
13
%% This work has the LPPL maintenance status `maintained'.
15
%% The Current Maintainer of this work is Simon Sigurdhsson.
17
%% This work consists of the files chscite.dtx and chscite.ins
18
%% and the derived filebase chscite.sty.
22
26
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
23
27
%<package>\ProvidesPackage{chscite}
25
[2011/09/20 v2.99 Chalmers bibliography style]
29
[2012/05/13 v2.999 Chalmers bibliography style]
29
33
\documentclass{ltxdoc}
30
\usepackage{chscite}[2011/09/20]
34
\usepackage{chscite}[2012/05/13]
140
145
% The \cs{citeyear}\marg{reference} command simply prints the year
141
146
% of the given reference.
148
% \subsection{Using \texttt{@misc} for web sources}
149
% In this package, the \texttt{@misc} \textsc{Bib}\TeX{} style has been crafted
150
% to typeset web sources correctly as per Chalmers recommendations. Proper use,
151
% apart from usual \textsc{Bib}\TeX{} syntax, includes using the \texttt{note}
152
% field to specify retreival date and the \texttt{howpublished} field for web
159
author = {Johnson, S.},
161
title = {Exploiting the mobile channel},
162
howpublished = {m.Net Corporation},
163
url = {http://www.mnetcorporation.com/article-exploiting-the-mobile-channel},
171
% \subsection{Using the \texttt{@patent} entry type}
172
% The \texttt{@patent} included in this package is a custom alternative to
173
% \texttt{@techreport} especially made for referencing patents. Required fields
174
% are \texttt{author}, \texttt{year}, \texttt{title} and \texttt{number} (the
175
% patent number). There are no optional fields:
181
author = {{Volvo Lastvagnar}},
183
title = {Information based controlling of chassis height of a vehicle},
144
191
% \section{Known issues}
145
192
% The |chscite.bst| \textsc{Bib}\TeX{} style does not support cross references
667
714
% \changes{v1.0b}{2011/06/06}{Fixed bug concerning editors in \texttt{.bst} file}
668
715
% \changes{v2.0c}{2011/06/22}{Cleaned up \texttt{.bst} file}
669
716
% \changes{v2.0d}{2011/06/23}{Improved handling of editions}
717
% \changes{v2.999}{2012/05/13}{Added \texttt{@patent} and \texttt{@misc} entries}
1403
1454
FUNCTION {misc}
1404
{ cite$ ": @misc cite style not implemented!" * warning$ }
1456
make.list.label "(" tie.or.space.connect list.year * ")" *
1457
author "author" item.check
1460
{ title tie.or.space.connect add.period$ }
1462
howpublished missing$
1464
{ howpublished emphasize tie.or.space.connect add.period$ }
1468
{ " \chsurl{" URL "}" * * tie.or.space.connect add.period$ }
1472
{ "(" note ")" * * tie.or.space.connect add.period$ }
1406
1478
FUNCTION {techreport}
1407
1479
{ cite$ ": @techreport cite style not implemented!" * warning$ }
1483
make.list.label "(" tie.or.space.connect list.year * ")" *
1484
author "author" item.check
1487
{ title emphasize tie.or.space.connect add.period$ }
1491
{ number tie.or.space.connect add.period$ }
1409
1497
FUNCTION {default.type} { misc }
1411
1499
MACRO {jan} {"\chsWjanuary{}"}