SHARE
TWEET

Untitled

a guest Aug 17th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{scrreprt}
  2. usepackage{lmodern}
  3. usepackage[T1]{fontenc}
  4. usepackage[english]{babel}
  5. usepackage[utf8]{inputenc}
  6.  
  7. usepackage[
  8. backend=biber,
  9. style=numeric-comp,
  10. sorting=none,
  11. ]{biblatex}
  12.  
  13. addbibresource{test.bib}
  14.  
  15. DeclareNameAlias{sortname}{family-given/given-family-bold}
  16. DeclareNameFormat{family-given/given-family-bold}{mkbibbold{%
  17.         ifnumequal{value{listcount}}{1}
  18.         {ifgiveninits
  19.             {usebibmacro{name:family-given}
  20.                 {namepartfamily}
  21.                 {namepartgiveni}
  22.                 {namepartprefix}
  23.                 {namepartsuffix}}
  24.             {usebibmacro{name:family-given}
  25.                 {namepartfamily}
  26.                 {namepartgiven}
  27.                 {namepartprefix}
  28.                 {namepartsuffix}}%
  29.             ifboolexpe{%
  30.                 test {ifdefvoidnamepartgiven}
  31.                 and
  32.                 test {ifdefvoidnamepartprefix}}
  33.             {}
  34.             {usebibmacro{name:revsdelim}}}
  35.         {ifgiveninits
  36.             {usebibmacro{name:given-family}
  37.                 {namepartfamily}
  38.                 {namepartgiveni}
  39.                 {namepartprefix}
  40.                 {namepartsuffix}}
  41.             {usebibmacro{name:given-family}
  42.                 {namepartfamily}
  43.                 {namepartgiven}
  44.                 {namepartprefix}
  45.                 {namepartsuffix}}}%
  46.         usebibmacro{name:andothers}}}
  47.  
  48.     DeclareNameAlias{sortname}{given-family-bold}
  49.  
  50.     DeclareNameAlias{author}{given-family-bold}
  51.     DeclareNameAlias{editor}{given-family-bold}
  52.     DeclareNameAlias{translator}{given-family-bold}
  53.  
  54.     usepackage{filecontents}
  55.  
  56.     begin{filecontents}{test.bib}
  57.         @book{Doe86,
  58.             author = {Doe, John},
  59.             year = {1986},
  60.             title = {some book},
  61.         }
  62.     end{filecontents}
  63.  
  64.  
  65. begin{document}
  66.  
  67. I'm citing cite{Doe86}
  68.  
  69. printbibliography
  70.  
  71. 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