ShiroTakeda / econ-bst

BibTeX style file for economics.
50 stars 25 forks source link

Feature request: add customization for TE (Theoretical Economics) #4

Open peiranxiao opened 11 months ago

peiranxiao commented 11 months ago

I think it would be great to add customization for TE (Theoretical Economics). It is almost the same as the default econ.bst, except for the minor modifications below.

%       year

% The string before year only for aritcle type entry.
%
FUNCTION {bst.year.pre}
{ " (" }    % (default)

% The string after year only for aritcle type entry.
%
FUNCTION {bst.year.post}
{ "), " }    % comma added

% The string after year for non-article type entry (book, incollection etc)
%
FUNCTION {bst.year.na.pre}
{ " (" }    % (default)

% The string after year for non-article type entry (book, incollection etc)
%
FUNCTION {bst.year.na.post}
{ "), " }    % (default)
%       title (except for title in book)

% The string before title:
%
FUNCTION {bst.title.pre}
{ "``" }    % (default)

% The string after title:
%
FUNCTION {bst.title.post}
{ ".''" }    % period instead of comma
% Hide number.  If non-zero, number is suppressed. 
FUNCTION {bst.hide.number}
% { #0 }    % #0 -> show number field (default)
{ #1 }    % non-#0 -> Hide number field.
ShiroTakeda commented 11 months ago

Okay, I would like to add a style for TE. I would like to name it econ-te.bst.

peiranxiao commented 10 months ago

A minor suggestion (period instead of comma before DOI):

% The string before DOI:
%
FUNCTION {bst.doi.pre}
{ ". \href{http://dx.doi.org/" doi * "}{\urlstyle{rm} \nolinkurl{" * } % (default)
ShiroTakeda commented 10 months ago

A version incorporating this suggestion has been created in the develop branch.

https://github.com/ShiroTakeda/econ-bst/blob/develop/customization/econ-te.bst

Here is a sample PDF file created from this bst file.

https://github.com/ShiroTakeda/econ-bst/blob/develop/customization/econ-te.pdf

Any other requests?

peiranxiao commented 10 months ago

I think this works perfect now. Thank you.