# Tag Info

0

You can use Leo Liu's solution from I cannot get a (properly) underlined hyperlink in blue \usepackage[normalem]{ulem} \makeatletter \DeclareUrlCommand\ULurl@@{% \def\UrlLeft{\uline\bgroup}% \def\UrlRight{\egroup}} \def\ULurl@#1{\hyper@linkurl{\ULurl@@{#1}}{#1}} \DeclareRobustCommand*\ULurl{\hyper@normalise\ULurl@} \makeatother ...

3

The default is not to print the bookauthor if it coincides with the author (see biblatex.def) \newbibmacro*{bybookauthor}{% \ifnamesequal{author}{bookauthor} {} {\printnames{bookauthor}}} Just add \renewbibmacro*{bybookauthor}{\printnames{bookauthor}} to your preamble and the bookauthor will always be shown.

0

refcontexts were introduced for this sort of thing - citation commands within refcontexts share the context so put the "These are not my publications:" citation inside the same refcontext. \begin{document} This is my first publication: \cite{Pub1} \begin{refcontext}[sorting=nty] These are not my publications: \cite{Nopub1,Nopub2} \end{refcontext} This is ...

1

I haven't managed to use the oriental field that I was planning on using (I can't work out how to access this information within \DeclareNameFormat code), but I have managed to come up with a solution by prepending a code XXXORI to the surname of the oriental authors and using the xstring package. I have also added extra authors to the code below to test ...

4

The trick is cmsdate=both, no macro needed: \documentclass{article} \usepackage[authordate,backend=biber]{biblatex-chicago} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @Book{hume1739, author = {David Hume}, editor = {David Fate Norton}, title = {A Treatise of Human Nature}, publisher = {Oxford University ...

0

Here is a minimal working example. First file, doc.tex: \documentclass{article} \usepackage[backend=bibtex]{biblatex} \bibliography{database.bib} \begin{document} According to \cite{foo1999} blah blah. \printbibliography \end{document} Second file, database.bib: @article{foo1999, title={Title}, author={Doe, John}, journal={International Journal of ...

0

The problem comes from using a different refcontext. If you remove the refcontext environment around the second printbibliography, you get the desired output.

1

I don't think that currently there is a good solution. But I will try to explain some background. In your example the wanted output looks obvious as your two bibliographies don't overlap. But this doesn't need to be the case. In different refcontexts entries can be repeated. So lets look what happens if you remove the filters: \documentclass{article} ...

0

Adding cites for the lecture only can happen, assuming you cite the origin of a comic that brightens the mood or a video that won't make it into the lecture notes, the following two alternatives allow to do this. Assuming you use one large bib file for everything, the following non tex solution works. In your lecturenotes directory execute find -iname ...

3

This is lecturenote.tex file \documentclass{article} \usepackage[backend=bibtex]{biblatex} \addbibresource{mybib} \begin{document} bla bla \cite{mt} foo bar \cite{xyz} \printbibliography \end{document} This is presentation.tex file \documentclass{beamer} \usetheme{Warsaw} \usepackage[backend=bibtex]{biblatex} \begin{document} \begin{frame} bla bla ...

1

You can make the comma go away with \renewcommand*{\nameyeardelim}{\addspace} Indeed it is the natbib compatibility mode (see blx-natbib.def) that makes this change necessary, the default is to use a space only. The period in \cited you can get with \newrobustcmd{\mkbibparensperiod}[1]{\mkbibparens{#1\addperiod}} ...

2

Maïeul's biblatex-bookinarticle package adds support of the two new entry types @bookinarticle and @bookinincollection to biblatex. @bookinarticle is a very good fit for what you have @bookinarticle{yahya:wisnovsky:menn:2012, Author = {{Yaḥyā ibn ʿAdī}}, Title = {Maqāla fī l-buḥūṯ al-ʿilmiyya al-arbaʿa ʿan aṣnāf al-wuǧūd al-ṯalāṯa al-ilāhī ...

2

With \setbeamertemplate{bibliography item}[triangle] you are replacing the complete label by a triangle. You need some new template: \documentclass[xcolor=dvipsnames]{beamer} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} %\usetheme{Antibes} \usepackage[style=alphabetic,maxalphanames=1,backend=biber]{biblatex} ...

2

The .bib key must not contain spaces, and the opening brace of the year in your .bib file was not followed by a closing brace. With this file @book{Fluid_Mechanics_Seventh_Edition, author = {Frank M. White}, title = {Fluid Mechanics, Seventh Edition}, year = {2011}, publisher = {McGraw-Hill} } and a ...

1

Solution based on Ulrike's comment: \begin{table}[h!] \begin{tabular}{ p{2.5cm} p{12cm} } \textsc{My Table} & \\ \hline 1st row & {\fullcite{test}} \\ 2nd row & something else \\ \end{tabular} \end{table}

6

biber can be used to on the fly modification of the data in the bibtex entries. Thus a possible solution is to use a map that uses regular expression to remove ., namely: \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ \step[fieldsource=journal, match=\regexp{\.}, replace={ }] } } } With the provided MWE we ...

2

The term "Vancouver style" or "Vancouver system" seems to be slightly more variable than say, APA style or Chicago style. Often institutions have their own modifications to the general idea of the style. (Much like "Harvard style" often just means an author year style.) According to Wikipedia the home of the "official Vancouver style" is the NLM's Citing ...

3

The following MWE reproduces the problem \documentclass{article} \usepackage[backend=bibtex,style=authoryear]{biblatex} \addbibresource{biblatex-examples.bib} \nocite{vangennep} \begin{document} \printbibliography \end{document} one gets ! Undefined control sequence. <argument> ...nameprefix {van}\isdot }\ifprefchar ...

2

It must be \usepackage[utf8]{inputenc} And the warning that paper1.bib already exists comes from filecontents, which is no problem. However, your example with the given bibliography worked fine with pdflatex and xelatex, too.

1

This can be done with a bit of modification of the cite macro (we assume authoyear-ibid here) \renewbibmacro*{cite}{% \global\boolfalse{cbx:loccit}% \iffieldundef{shorthand} {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage} {\usebibmacro{cite:ibid}} {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} ...

0

A more robust result, courtesy of @moewe is to use: \iffieldequalstr{pubstate}{under review} and not declare any macros. For more justification, see here: Biblatex: iffieldequals appears to return true for false conditions

2


0

If you can read a little of French, here are the slides of a LaTeX course I give about biblatex and csquotes.

7

This is an alternative solution to the problem. Biblatex provides the field pubstate to record the publication status of journal articles. Thus I suggest to keep the standard journaltitle (or the bibtex journal field) and to add the pubstate= {under review} information to the entry. Thus the bibtex entry looks like @article{key123, author = {Name AA ...

2

I suggest you use the special type @inreference that is specifically for dictionaries and encyclopaedias. @inreference{BAR60, Author={Foo Bar}, Title={Baz}, Year={1960}, Booktitle={Encyclopaedia of Everything} } Then you can just do \DeclareFieldFormat[inreference]{title}{\printtext{s.v.}\addspace\mkbibquote{#1\isdot}} to automatically add the ...

7

Using some of biblatex's on-board technologies we can make the code a bit shorter. (And I'm really not a fan of constructs such as \citeauthor{#2}, \citetitle{#2}, \citeyear{#2}, they go horribly wrong when several works are cited and they don't deal with pre- and postnotes that well. Granted, that might not be a problem here, but still ...) Note first that ...

2

biblatex-apa requires Biber from version 4.5. Page 2 of the manual states: 4.5 biber is now required. This is because APA style needs a custom sorting scheme and only biber supports this. bibtex support is going away in biblatex eventually anyway so it’s best to switch.

4

OK. I came up with something which seems to work - that is, it survives absolutely minimal testing, but will no doubt break as soon as I try to use it in a real document. I am sure, however, that this cannot possibly be the simplest solution. There must be a more straightforward way of extracting the URL for use as a hyperlink target, mustn't there? I ...

1

When using the following settings, the DOI should be printed \usepackage[ backend=biber, %citestyle = alphabetic, %bibstyle = ieee-alphabetic, sortlocale=en_US, sorting=nyt, backref=true, hyperref=true, firstinits=true, style=numeric,%style=alphabetic, defernumbers=true, ...

1

Your MWE is of no use since we do not have the contents of your *.bib file. My guess would be that you need to switch your bibliography parser to 'biber'. Does your MWE work with the following adjustments? \usepackage[bibstyle=authoryear,citestyle=authoryearbrak,backend=bibtex]{biblatex} If yes, you should change the bibliography tool of your editor to ...

1

Reusing my answer from LaTeX-community.org: You just need to define what the short author and short title are supposed to be, biblatex prints them by default. %\RequirePackage{filecontents} \begin{filecontents*}{demo.bib} @book{is4562000, title={Indian Standard Plain and reinforced concrete--code of practice (IS ...

1

You could disable - being recognised as a range separator (you will want to treat it as a NumChar then) with \DeclareRangeChars{~,;+/} \DeclareNumChars*{-} This however creates more problems than it solves, I believe, since now \cite[12-34]{sigfridsson} is not recognised as a range any more; you would have to write \cite[12\bibrangedash 34]{sigfridsson} ...

1

OK, I figured it out as soon as i posted the question, but other people may benefit from it (delete it otherwise). In Texstudio, the bibliography wasn't set to UTF-8 (in Adv. Editor tab), probably causing the strange effect to occur. by changing it to UTF-8 and saving the preset, the problem disappeared.

0

The default behavior of latexmk is to remake all the bbl files if the bib files are available. The problem (it takes a long time for biber to remake the bbl files) only arises now because the bib file has ~500 references in it (more references than I've ever worked with in the past). To prevent latexmk from remaking bbl files even if bib files are ...

1

You'll probably find an appropriate one among many citation commands provided by biblatex. Search for biblatex manual, this is in chapter 3.7. You'll probably go with \citeauthor* or \footcite.

0

Compulsory "we are modifying biblatex-apa" warning: The following will probably alter the behaviour of biblatex-apa in a way that the output might not conform to APA style any more. biblatex-apa is specifically designed to follow APA style as closely as possible, so some (supposedly) easy modifications can require more code than expected. Note first that ...

2

The sorting ndymdt in your MWE sorts first by name (sortname, author, editor etc.), then by year, month and day, and then by title. So you might get Aaardvark 2010 Banana 2011 Bar 2009 Foo 2009 Zoidberg 2015 If you want to sort by date first and then by name and finally by title to get Zoidberg 2015 Banana 2011 ...

0

The abstract bibtex style does so out of the box.

1

If you are having trouble with natbib and biblatex (sometimes I have compilation issues with these packages), the following answer enables you to avoid those packages. Only three simple steps: 1) download this style: http://ftp.math.utah.edu/pub/tex/bibtex/alpha.bst 2) place it in your project's directory, preferentially under a different name (e.g. ...

1

Just go with \DeclareAutoCiteCommand{footnote}{\footcite}{\footcites} to let biblatex-mla know what to do with autocite=footnote. MWE \documentclass[11pt]{article} \usepackage[backend=biber, style=mla, autocite=footnote]{biblatex} \addbibresource{biblatex-examples.bib} \DeclareAutoCiteCommand{footnote}{\footcite}{\footcites} \begin{document} foo ...

0

Scanning the biblatex documentation (using texdoc in texlive2015) there is not any shorttitle field. Said that you may imaging alternative bib-entries with long or short titles and use these as you decide which one to use. The problem will be dealing with duplicates in your bib file.

1

0

As @Evpoc wrote in the comments, Sharelatex supports biber for quite some time now. However, I several times still received that error message. I found that changing \addbibresource{ref.bib} to \addbibresource{ref}, compiling, changing it back and compiling again resolves the problem. I suspect it is caused by some temporary files of biber that Sharelatex ...

0

Since I wasn't allowed to comment on Carlisle's post: I had the same problem, only with two computers running different OSes, Windows and MacOS. Using the code above in Windows at least: \IfFileExists{D:/Dropbox/library.bib}{ \addbibresource{D:/Dropbox/library.bib}} \IfFileExists{/Users/.../Dropbox/library.bib}{ ...

1

If I understand what you want correctly, you only need \toggletrue{bbx:gostbibliography} The behaviour you seek has already been implemented in biblatex-gost, but is only enabled with \printbibliography[env=gostbibliography] With \toggletrue{bbx:gostbibliography} we can keep the standard bibliography environment. Unfortunately, I don't speak Russian, ...

5

As far as I can see you will have to resort to \DeclareLabelalphaTemplate, but that is not too bad. We can just copy the default from biblatex.def and change \field[strwidth=2,strside=right]{year} to \field{year} \DeclareLabelalphaTemplate{ \labelelement{ \field[final]{shorthand} \field{label} ...

2

I think I found an answer, using an author index. I've tried to include a MWE below, but I might have added a few lines which are unnecessary. \documentclass{article} \usepackage[indexing=true,maxnames=99,style=authoryear,datamodel=\jobname]{biblatex} \usepackage{filecontents} \usepackage{imakeidx} \makeindex[program=makeindex,options=-s ...

3

The extrayear field is just a number that you can format as you want. The default definition (biblatex.def) is \DeclareFieldFormat{extrayear}{% = the 'a' in 'Jones 1995a' \iffieldnums{labelyear} {\mknumalph{#1}} {\mkbibparens{\mknumalph{#1}}}} For Roman numerals you can make that read \DeclareFieldFormat{extrayear}{% = the 'a' in 'Jones 1995a' ...

2

The following solution uses the Biber back-end because we need to create a new field (indexname). Analogue to shortname and sortname our new field is called indexname. First we need to make the new field known to Biber and biblatex. Create a .dbx file with the following contents \DeclareDatamodelFields[type=list, datatype=name]{indexname} ...

4

Adding uppercase=true should work. \field[strwidth=3,strside=left,ifnames=1,uppercase=true]{labelname} \field[strwidth=1,strside=left,uppercase=true]{labelname} I must comment, however, that this format effectively removes any way to distinguish between a three author work and a single author work, which I don't think is very practical. Here's a working ...

Top 50 recent answers are included