LaTeX forum ⇒ BibTeX, biblatex and biberBibliography style with references grouped by author

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Artaxerxes
Posts: 2
Joined: Thu Dec 22, 2016 10:39 pm

Bibliography style with references grouped by author

Postby Artaxerxes » Thu Dec 22, 2016 10:44 pm

Hello,

this is something bothering me for quite some time. Is it possible to group bibliography by the author's name with years aligned beneath, such as in the image. Biblatex does obviously group by author, but how do I get the years into separate lines with tabbing afterwards?

Many thanks for any advice
Attachments
BibEx.png
BibEx.png (173.52 KiB) Viewed 311 times

Artaxerxes
Posts: 2
Joined: Thu Dec 22, 2016 10:39 pm

Postby Artaxerxes » Sat Dec 24, 2016 4:10 pm

Hello,

I tried some things, but I'm not there completely. Some issues:

(1) Punctuation before first year
(2) empty line before second year per author
(3) bibhang works, but I wanted to have title etc. in a block after.

Any suggestions?


  1.  
  2. \DeclareNameFormat{labelname}{\textsc{#1}}
  3. \AtBeginBibliography{\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}}
  4.  
  5. \renewcommand*{\labelnamepunct}{\par}
  6. \renewcommand*{\labelnamepunct}{\space}
  7.  
  8. \xpretobibmacro{date+extrayear}{\par}{}{}
  9.  
  10. \DeclareFieldFormat[inbook,article,inproceedings,incollection]{citetitle}{#1}
  11. \DeclareFieldFormat[inbook,article,inproceedings,incollection]{title}{#1}
  12.  
  13.  
  14. % Commas as separators
  15. \renewcommand*{\newunitpunct}{\addcomma\space}
  16.  
  17. % Comma before and after journal volume
  18. \renewbibmacro*{volume+number+eid}{%
  19. \setunit*{\addcomma\space}% NEW
  20. \printfield{volume}%
  21. % \setunit*{\adddot}% DELETED
  22. \setunit*{\addcomma\space}% NEW
  23. \printfield{number}%
  24. \setunit{\addcomma\space}%
  25. \printfield{eid}}
  26.  
  27. % Prefixes for journal volume and number
  28. \DeclareFieldFormat[article]{volume}{\bibstring{volume}~#1}% volume of a
  29. journal
  30. \DeclareFieldFormat[article]{number}{\bibstring{number}~#1}% number of a
  31. journal
  32.  
  33. % Comma before date; date not in parentheses
  34. \renewbibmacro*{issue+date}{%
  35. \setunit*{\addcomma\space}% NEW
  36. % \printtext[parens]{% DELETED
  37. \iffieldundef{issue}
  38. {\usebibmacro{date}}
  39. {\printfield{issue}%
  40. \setunit*{\addspace}%
  41. % \usebibmacro{date}}}% DELETED
  42. \usebibmacro{date}}% NEW
  43. \newunit}
  44.  
  45. % Issue/date macros removed after journal number
  46. \renewbibmacro*{journal+issuetitle}{%
  47. \usebibmacro{journal}%
  48. \setunit*{\addspace}%
  49. \iffieldundef{series}
  50. {}
  51. {\newunit
  52. \printfield{series}%
  53. \setunit{\addspace}}%
  54. \usebibmacro{volume+number+eid}%
  55. % \setunit{\addspace}% DELETED
  56. % \usebibmacro{issue+date}% DELETED
  57. % \setunit{\addcolon\space}% DELETED
  58. % \usebibmacro{issue}% DELETED
  59. \newunit}
  60.  
  61. % "In:" removed for articles; issue/date macros added after note+pages macro
  62. \DeclareBibliographyDriver{article}{%
  63. \usebibmacro{bibindex}%
  64. \usebibmacro{begentry}%
  65. \usebibmacro{author/translator+others}%
  66. \setunit{\labelnamepunct}\newblock
  67. \usebibmacro{title}%
  68. \newunit
  69. \printlist{language}%
  70. \newunit\newblock
  71. \usebibmacro{byauthor}%
  72. \newunit\newblock
  73. \usebibmacro{bytranslator+others}%
  74. \newunit\newblock
  75. \printfield{version}%
  76. \newunit\newblock
  77. % \usebibmacro{in:}% DELETED
  78. \usebibmacro{journal+issuetitle}%
  79. \newunit
  80. \usebibmacro{byeditor+others}%
  81. \newunit
  82. \usebibmacro{note+pages}%
  83. \setunit{\addspace}% NEW
  84. \usebibmacro{issue+date}% NEW
  85. \setunit{\addcolon\space}% NEW
  86. \usebibmacro{issue}% NEW
  87. \newunit\newblock
  88. \iftoggle{bbx:isbn}
  89. {\printfield{issn}}
  90. {}%
  91. \newunit\newblock
  92. \usebibmacro{doi+eprint+url}%
  93. \newunit\newblock
  94. \usebibmacro{addendum+pubstate}%
  95. \setunit{\bibpagerefpunct}\newblock
  96. \usebibmacro{pageref}%
  97. \usebibmacro{finentry}}
  98.  
  99.  
  100. \xpatchbibdriver{inbook}
  101. {\usebibmacro{in:}%
  102. \usebibmacro{bybookauthor}%
  103. \newunit\newblock
  104. \usebibmacro{maintitle+booktitle}%
  105. \newunit\newblock
  106. \usebibmacro{byeditor+others}}
  107. {\usebibmacro{in:}%
  108. \usebibmacro{bybookauthor}%
  109. \newunit\newblock
  110. \usebibmacro{byeditor:in}%
  111. \newunit\newblock
  112. \usebibmacro{maintitle+booktitle}%
  113. \newunit\newblock
  114. \usebibmacro{byeditor+others}}
  115. {}{}
  116.  
  117. \xpatchbibdriver{incollection}
  118. {\usebibmacro{in:}%
  119. \usebibmacro{maintitle+booktitle}%
  120. \newunit\newblock
  121. \usebibmacro{byeditor+others}}
  122. {\usebibmacro{in:}%
  123. \usebibmacro{byeditor:in}%
  124. \setunit{\labelnamepunct}\newblock
  125. \usebibmacro{maintitle+booktitle}%
  126. \newunit\newblock
  127. \usebibmacro{byeditor}}
  128. {}{}
  129.  
  130. \xpatchbibdriver{inproceedings}
  131. {\usebibmacro{in:}%
  132. \usebibmacro{maintitle+booktitle}%
  133. \newunit\newblock
  134. \usebibmacro{event+venue+date}%
  135. \newunit\newblock
  136. \usebibmacro{byeditor+others}}
  137. {\usebibmacro{in:}%
  138. \usebibmacro{byeditor:in}%
  139. \setunit{\labelnamepunct}\newblock
  140. \usebibmacro{maintitle+booktitle}%
  141. \newunit\newblock
  142. \usebibmacro{event+venue+date}%
  143. \newunit\newblock
  144. \usebibmacro{byeditor+others}}
  145. {}{}
  146.  
  147.  
  148. \newbibmacro*{byeditor:in}{%
  149. \ifnameundef{editor}
  150. {}
  151. {\printnames[editorin]{editor}%
  152. \addspace\bibsentence%
  153. \mkbibparens{\usebibmacro{editorstrg}}%
  154. \clearname{editor}%
  155. \printunit{\addcomma\space}}}
  156.  
  157. \DeclareNameAlias{editorin}{first-last}
  158.  
  159.  
  160. \setlength{\bibhang}{30pt}
  161.  
  162.  
  163. \renewcommand*\bibnamedash{}
Attachments
Untitled.png
Untitled.png (175.13 KiB) Viewed 229 times


Return to “BibTeX, biblatex and biber”

Who is online

Users browsing this forum: No registered users and 2 guests