szcf-weiya / TeXtemplates

There are some latex templates that I used.
1 stars 3 forks source link

URL in biblatex #2

Open szcf-weiya opened 3 years ago

szcf-weiya commented 3 years ago

By default, export .bib file from zotero,

@online{grant_cvx_2014,
    title = {{CVX}: Matlab Software for Disciplined Convex Programming, version 2.1},
    url = {http://cvxr.com/cvx/},
    author = {Grant, Michael and Boyd, Stephen},
    date = {2014}
}

style = apa

\usepackage[backend=biber,citestyle=authoryear,sortcites=true,natbib,sorting=nyt, style=apa]{biblatex}

it outputs image

then I changed the url entry to be

url = {\url{http://cvxr.com/cvx/}},

it becomes image

then I also replace the key url to howpublished, then it is directly ignored.

howpublished = {\url{http://cvxr.com/cvx/}},

image

default style

remove the setting style=apa

\usepackage[backend=biber,citestyle=authoryear,sortcites=true,natbib,sorting=nyt, style=apa]{biblatex}

without wrapping with \url, image and with \url image

Finally, just copy the suggested biblatex format, http://cvxr.com/cvx/citing/

@misc{cvx,
  author       = {Michael Grant and Stephen Boyd},
  title        = {{CVX}: Matlab Software for Disciplined Convex Programming, version 2.1},
  howpublished = {\url{http://cvxr.com/cvx}},
  month        = mar,
  year         = 2014
}

the default style gives

image

while the apa style also ignores the url.