11 votes
Accepted

Exclude note and addendum from bibliography

You can use \AtEveryBibitem and \clearfield \AtEveryBibitem{\clearfield{note}\clearfield{addendum}} \AtEveryCitekey{\clearfield{note}\clearfield{addendum}} the second line also removes the field ...
moewe's user avatar
  • 173k
10 votes
Accepted

Add numbering to references

The following code seems to do what you are looking for. Since you're using a your own .bst file, you'd need to change that in the example and replace the demo .bib files with your own. It's much ...
Alan Munn's user avatar
  • 213k
7 votes
Accepted

How to edit a .bst file to get bold volume number in case of articles?

Make the following changes to your .bst file: Add the following function: FUNCTION {bold} { duplicate$ empty$ {pop$ "" } { "{\bfseries " swap$ * "}" * } if$ } Then change the format.vol....
Alan Munn's user avatar
  • 213k
6 votes
Accepted

How to remove 'URL' prefixed before the URL in bibliography

Is there an easy way to edit the .bst file to remove the prefix 'URL'? Good news: You needn't edit your bespoke bibliography style file. It suffices to issue the instruction \def\urlprefix{} ...
Mico's user avatar
  • 490k
5 votes

Self-declared 'DeclareCiteCommand' shall not increase counter of references

You are essentially creating a split bibliography here. Split bibliographies in numeric styles almost always benefit from – or even require – the global defernumbers option. With \usepackage[...
moewe's user avatar
  • 173k
4 votes
Accepted

Numeric-style citation call-outs encased in round parentheses instead of square brackets, with custom makebst-made bibliography style

My [makebst-produced bibliography] style is not compatible with the natbib package You should check the correctness of this claim. The custom-bib package and its makebst utility were written by the ...
Mico's user avatar
  • 490k
4 votes

How to verify if entry `country = {}` is empty in a custom BibLaTeX library?

You should check whether the field exists as part of the \DeclareCiteCommand using \iffieldundef (or something similar; see section 4.6.2 Stand-alone Tests in the biblatex documentation): \...
Werner's user avatar
  • 595k
4 votes
Accepted

Apalike but sort by last name of first author and year

With a bit of playing around it is possible to get apalike.bst to sort entries only by the first author and then directly year and title. The procedure to modify apalike.bst is as follows. Locate ...
moewe's user avatar
  • 173k
3 votes
Accepted

How to verify if entry `country = {}` is empty in a custom BibLaTeX library?

In biblatex, field formatting such as brackets or emphasis or italics should not be written into the macro directly in most cases, they should be achieved with \DeclareFieldFormat. That way you make ...
moewe's user avatar
  • 173k
3 votes

Customize bibliography separating different kinds of entries and joining them by same title

Here is a possible solution, with xpatch and borrowing a tyn sorting scheme from the answer to a question on this site. I considered only the entry types used in the question and didn't check if ...
Bernard's user avatar
  • 270k
3 votes

How to change .bst file to get a comma between publisher and year

It turns out that this issue has been noticed here. Although it doesn't say how to fix the merlin.mbs file, it tells you how to fix the .bst file. Basically, in the lines following: FUNCTION {...
Ben's user avatar
  • 207
3 votes

How to sort bibliography entries alphabetically by \cite key?

You need to do two things: Insert the line @preamble{ "\newcommand{\noopsort}[1]{}" } at the top of the bib file. Change the year fields of the entries with keys Smith:2015a, Smith:2015b, and ...
Mico's user avatar
  • 490k
3 votes
Accepted

Modify bst file so that 2 authors are separated by "and" in the text

The relevant macro is format.lab.names.abbr. For the "and" it has to read FUNCTION {format.lab.names.abbr} { 's := s num.names$ 'numnames := numnames #1 > { numnames #2 > { s #1 ...
moewe's user avatar
  • 173k
2 votes

How to sort bibliography entries alphabetically by \cite key?

The Bibulous project provides a simple solution to this. Instead of style files, Bibulous uses "template" files. And in the "SPECIAL-TEMPLATES" section of the .bst template file, the OP can add the ...
nzh's user avatar
  • 1,085
2 votes
Accepted

add word "volume" to a custom bst

I presume you mean you are modifying unsrtnat.bst. In any case you need to rewrite the function a little to add this string because the first line volume field.or.null immediately puts the volume ...
Andrew Swann's user avatar
  • 94.8k
2 votes
Accepted

Bibtex: customising bst file

After several days, I've managed to fix the issue. Here are the amended sections if this is of interest to anyone in the future: FUNCTION {format.in.ed.booktitle} { format.booktitle duplicate$ empty$ ...
David Clark's user avatar
2 votes
Accepted

Modifying InBook Reference with Chicago-Annote style

You want the @incollection entry type. @inbook is only for books where each chapter was written by the same set of authors - the book authors. @incollection is for collections that normally have an ...
moewe's user avatar
  • 173k
2 votes
Accepted

Remove space after pages (pp.) in .bst files

It's very difficult to create working code from a fragment of a .bst file with no other information. So this is an educated guess. Instead of tie.or.space.prefix before the "pages" lines in the rest ...
Alan Munn's user avatar
  • 213k
2 votes
Accepted

Include periods in end title names in references

To get the references to be print as you wish you need to change one function in your used bibliography style file research.bst. Search for function format.title and change it to (I added add.period$ ...
Mensch's user avatar
  • 65.1k
2 votes
Accepted

How to customize to create Author-year in text citation but Numbered reference list at the end?

The problem here is that the definition of \@lbibitem contains a \hfil we have to delete. So add the following patch to your preamble: \patchcmd{\@lbibitem}% {\hfil \NAT@anchor {#2}{\NAT@num }]}% ...
Mensch's user avatar
  • 65.1k
2 votes
Accepted

How to increase the horizontal space between the label and the bibliography item, by editing the .bst file

The distance between the bibliography label and the item is set in the LaTeX code rather than bst code. This is the parameter \labelsep. Just put before \bibliography the command \setlength{\...
Boris's user avatar
  • 37.8k
2 votes

How do I make BibLaTeX print postnotes and print a new bibliography entry for every citation with a different postnote?

Index the citations. A quick, five-minute proof of concept using out-of-the-box Biblatex, the title= and author= fields for storing the authority and law report(s) respectively, and \citetitle and \...
Cicada's user avatar
  • 9,939
2 votes
Accepted

Modify a .bdj file to obtain a new .bst

The .bdj file is a TeX file, so all lines starting with % are comments. makebst uses this to list all possible options and comment not chosen options by adding a % in the first column, while lines of ...
Marcel Krüger's user avatar
1 vote

Customizing a bibliography style

To adjust the bibliography item separation distance (bibitemsep, which seems to be playing a role in the picture you posted; try with and without) and the indent after each first line (bibhang), you ...
thymaro's user avatar
  • 1,485
1 vote

Create own bib style with makebst, need avoid brackets for citations which are already put into bracket

I found it ! I should just use \citep!
Yao Meng's user avatar
1 vote
Accepted

Create own bib style with makebst, but brackets in citation

Early on while running the makebst utility, you probably came across the following two queries: Judging by the screenshot you posted, you selected authoryear-style citation call-outs -- answer (a) -- ...
Mico's user avatar
  • 490k
1 vote
Accepted

BibLaTeX: Replace multiple authors with dashes in authoryear style

The code in my older answer to Biblatex/Biber replace author name with dash for each author contained a bug that caused the clean-up routine to always delete all names, the correct code is \...
moewe's user avatar
  • 173k
1 vote
Accepted

Makebst option vol-2bf does nothing

Note: %>>TECHNICAL REPORT NUMBER: %<<JOURNAL VOLUME: % %: (def) Volume plain as vol(num) % vol-it,%: Volume italic as {\em vol}(num) % vol-bf,%: Volume bold as {\bf vol}(num) vol-2bf,%...
cfr's user avatar
  • 189k
1 vote
Accepted

makebst but show url only if there is no doi

After playing around with the makebst output bst file, I found the following works. It amounts to changing the doi format. Make sure to first tell makebst to NOT include url (the default option). ...
Adam's user avatar
  • 81
1 vote

bibtex and biblatex customing in sharelatex

I will answer my question or solution: use: \begin{thebibliography}{99} \bibitem[Enstein(1905]{Ein05}Einstein, A. 1905. Zur Elektrodynamik bewegter Köper.Germany.522 s. \end{thebibliography} and ...
pinq-'s user avatar
  • 265

Only top scored, non community-wiki answers of a minimum length are eligible