daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DeclareFieldFormat{title}{usebibmacro{string+doiurlisbn}{mkbibemph{#1}}}
  2. DeclareFieldFormat[article,incollection]{title}%
  3.     {usebibmacro{string+doiurlisbn}{mkbibquote{#1}}}
  4.    
  5. DeclareFieldFormat{title}{%
  6.   usebibmacro{string+doiurlisbn}{mkbibemph{#1}}}
  7. DeclareFieldFormat
  8.   [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  9.   {title}{usebibmacro{string+doiurlisbn}{mkbibquote{#1isdot}}}
  10. DeclareFieldFormat
  11.   [suppbook,suppcollection,suppperiodical]
  12.   {title}{usebibmacro{string+doiurlisbn}{#1}}
  13.    
  14. documentclass{article}
  15.  
  16. usepackage[doi=false,url=false,isbn=false]{biblatex}
  17.  
  18. usepackage[colorlinks]{hyperref}
  19.  
  20. newbibmacro{string+doiurlisbn}[1]{%
  21.   iffieldundef{doi}{%
  22.     iffieldundef{url}{%
  23.       iffieldundef{isbn}{%
  24.         iffieldundef{issn}{%
  25.           #1%
  26.         }{%
  27.           href{http://books.google.com/books?vid=ISSNthefield{issn}}{#1}%
  28.         }%
  29.       }{%
  30.         href{http://books.google.com/books?vid=ISBNthefield{isbn}}{#1}%
  31.       }%
  32.     }{%
  33.       href{thefield{url}}{#1}%
  34.     }%
  35.   }{%
  36.     href{http://dx.doi.org/thefield{doi}}{#1}%
  37.   }%
  38. }
  39.  
  40.  
  41. DeclareFieldFormat{title}{%
  42.   usebibmacro{string+doiurlisbn}{mkbibemph{#1}}}
  43. DeclareFieldFormat
  44.   [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  45.   {title}{usebibmacro{string+doiurlisbn}{mkbibquote{#1isdot}}}
  46. DeclareFieldFormat
  47.   [suppbook,suppcollection,suppperiodical]
  48.   {title}{usebibmacro{string+doiurlisbn}{#1}}
  49.  
  50. begin{filecontents}{jobname.bib}
  51. @phdthesis{elk,
  52.   author      = {Anne Elk},
  53.   year        = {1972},
  54.   title       = {A Theory on Brontosauruses},
  55.   url         = {https://example.edu/~elk/bronto.pdf},
  56.   institution = {Monty University},
  57. }
  58. end{filecontents}
  59.  
  60. addbibresource{jobname.bib}
  61.  
  62. nocite{*}
  63.  
  64. begin{document}
  65. printbibliography
  66. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top