(190816, 2249 CET, updated according to the comments of "Mensch")
190818, 1332 CET, update regarding error message on articlein
Hi, all,
I'm trying to make my bibliography look like:
but for the moment I'm stuck in something that looks like:
so, in particular, I wonder how I
- get rid of the "." after "volume"
- get rid of the ", " before pages
Besides that, I think that I have made it look as "it should".
I attach my code below:
\documentclass[english,final,twocolumn]{article}
\usepackage[utf8]{inputenc}%(only for the pdftex engine)
\usepackage[big]{dgruyter}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage[capitalize]{cleveref}
\usepackage[format=hang,singlelinecheck=0,font={sf,small},labelfont=bf]{subfig}
%% format=hang, bra veta om
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\usepackage[export]{adjustbox}
\usepackage{float}
\usepackage{textgreek}
\usepackage{multirow}
\usepackage{csquotes}
\usepackage[style=authoryear,%ext-authoryear,%authoryear,%nature,%bwl- FU,%authoryear,
citestyle=authoryear,
natbib=true,
hyperref=true,
url=false,
doi=false,
isbn=false,
sorting=nyt,
%bibstyle=authoryear,
giveninits=true,
maxcitenames=2,
uniquelist=false, % denna som gör att man får a) och b) i stället för fler efternamn
maxbibnames=99,
uniquename=false,
dashed=false,
articlein=false,
url=false,
doi=false,
isbn=false,
dashed=false,
backend=biber]{biblatex}
%\setlength\bibhang{2pt} % default value: \parindent
\DeclareFieldFormat*{title}{#1}
%\DeclareFieldFormat*{year}{#1}
\renewcommand{\labelnamepunct}{\addspace}
\DeclareFieldFormat{journaltitle}{#1}
%
\renewbibmacro{in:}{%
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}
%
% removes pagination (p./pp.) before page numbers
\DeclareFieldFormat{pages}{:#1}
%
\DeclareNameAlias{sortname}{last-first}
%
\DeclareFieldFormat*{volume}{#1}
\DeclareFieldFormat*{number}{(#1)}
\addbibresource{mojiref.bib}
\begin{document}
\articletype{}
\maketitle
There is one method, attributed to \citep{wilhelmy1863ueber} that is very simple to use and provides accurate, consistent, and reproducible data especially for rough, heterogeneous, and hygroscopic materials such as wood \citep{lander1993systematic}.
\printbibliography%[env=bibnumeric]
% ovanstående gör att man får radindraget borttaget. Inte bra här och nu,
\end{document}
And here are the two references:
@article{lander1993systematic,
title={A systematic comparison of contact angle methods},
author={Lander, Lorraine M and Siewierski, Lisa M and Brittain, William J and Vogler, Erwin A},
journal={Langmuir},
volume={9},
number={8},
pages={2237--2239},
year={1993},
publisher={ACS Publications}
}
@article{wilhelmy1863ueber,
title={Ueber die Abh{\"a}ngigkeit der Capillarit{\"a}ts-Constanten des Alkohols von Substanz und Gestalt des benetzten festen K{\"o}rpers},
author={Wilhelmy, Ludwig},
journal={Ann. Phys.},%{Annalen der Physik},
volume={195},
number={6},
pages={177--217},
year={1863},
publisher={Wiley Online Library}
}
I hope it makes sense, and that someone is able to help me out with this one.
Added 190818:
The articlein=false added from the advice of moewe results this error message in Overleaf.
/Lars




biblatex-extand in particular itsarticleinoption. You will get errors if you try to use it. My comment contains a link to alternative code that should work with the outdated Overleaf system (https://gist.github.com/moewew/e9ae043f49e057abfb344d96cb134f82). – moewe Aug 18 '19 at 11:53