Skip to main content
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
  • 514k
5 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
  • 178k
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
  • 178k
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
  • 607k
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
  • 514k
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
  • 178k
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

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
  • 273k
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
  • 178k
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
  • 96.3k
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
  • 178k
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
  • 220k
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.6k
2 votes
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
  • 178k
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.6k
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
  • 38.3k
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
  • 10.2k
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

Converting a csl file to a bst file

You can use the csl file directly in latex. Replace name of your csl file and name of your reference file in the example below % !TeX program = lualatex % This magic comment must be the first line of ...
user169363's user avatar
1 vote
Accepted

What does "Reference Component Tags" do in makebst?

The documentation file merlin.pdf has slightly more info on p. 20 Reference component tagging: apply structure to the \bibitem contents. --         ...
moewe's user avatar
  • 178k
1 vote
Accepted

removing a comma after a field in a bst file

I would not modify the format.title macro to bring its own punctuation. Instead you can tell BibTeX to start a new sentence after the title with FUNCTION {article} { output.bibitem format.authors "...
moewe's user avatar
  • 178k
1 vote
Accepted

bst file not producing page ranges

Easy things first. Yes, setting FUNCTION {bbl.pages} { "" } and FUNCTION {bbl.page} { "" } is probably the cheapest way to get rid of the "p."/"pp." in the bibliography. It might be slightly ...
moewe's user avatar
  • 178k
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
  • 514k
1 vote

Extended support for standard/norm/spec entries in bibtex/biblatex?

PLK's answer to How to cite a standard (ISO, etc.) in BibLaTeX? that you cite in your question is actually not an example of using custom-bib. custom-bib is a tool to produce customised .bst files for ...
moewe's user avatar
  • 178k
1 vote
Accepted

Custom bst book entry no editors

As mentioned by Marcel Krüger in the comments at the moment your style can only print either the author or the editor field, where authors are preferred. We can slightly modify the file so that the ...
moewe's user avatar
  • 178k
1 vote

What is the definition of \printlist{location} (biblatex)

biblatex does not recognise department as a valid field. You need to specify it in a dbx file for your style. Since you are writing a style, you would just call it custom-abbrev.dbx and biblatex will ...
David Purton's user avatar
  • 26.4k
1 vote
Accepted

How do I change the .bst file to return both Editor and Author into my bibliography?

Alright, I was able to get (almost) what I wanted. Here is the new .bst file: https://pastebin.com/qsw2HziY And here is the old one: https://pastebin.com/PPZ92dJQ What I did: I changed my mind and ...
Forrest Thumb's user avatar
1 vote
Accepted

Custom BibLaTeX bib with two blocks and authors below each other?

Tabular bibliographies have been integrated into biblatex-ext. If you load the support package biblatex-ext-tabular the code below reduces to \documentclass[british]{article} \usepackage{babel} \...
moewe's user avatar
  • 178k

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