BibTeX, biblatex and biber ⇒ Bibliography style with references grouped by author
-
- Posts: 2
- Joined: Thu Dec 22, 2016 10:39 pm
Bibliography style with references grouped by author
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 (173.52 KiB) Viewed 2825 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 2
- Joined: Thu Dec 22, 2016 10:39 pm
Bibliography style with references grouped by author
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?
\DeclareNameFormat{labelname}{\textsc{#1}} \AtBeginBibliography{\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}} \renewcommand*{\labelnamepunct}{\par} \renewcommand*{\labelnamepunct}{\space} \xpretobibmacro{date+extrayear}{\par}{}{} \DeclareFieldFormat[inbook,article,inproceedings,incollection]{citetitle}{#1} \DeclareFieldFormat[inbook,article,inproceedings,incollection]{title}{#1} % Commas as separators \renewcommand*{\newunitpunct}{\addcomma\space} % Comma before and after journal volume \renewbibmacro*{volume+number+eid}{% \setunit*{\addcomma\space}% NEW \printfield{volume}% % \setunit*{\adddot}% DELETED \setunit*{\addcomma\space}% NEW \printfield{number}% \setunit{\addcomma\space}% \printfield{eid}} % Prefixes for journal volume and number \DeclareFieldFormat[article]{volume}{\bibstring{volume}~#1}% volume of a journal \DeclareFieldFormat[article]{number}{\bibstring{number}~#1}% number of a journal % Comma before date; date not in parentheses \renewbibmacro*{issue+date}{% \setunit*{\addcomma\space}% NEW % \printtext[parens]{% DELETED \iffieldundef{issue} {\usebibmacro{date}} {\printfield{issue}% \setunit*{\addspace}% % \usebibmacro{date}}}% DELETED \usebibmacro{date}}% NEW \newunit} % Issue/date macros removed after journal number \renewbibmacro*{journal+issuetitle}{% \usebibmacro{journal}% \setunit*{\addspace}% \iffieldundef{series} {} {\newunit \printfield{series}% \setunit{\addspace}}% \usebibmacro{volume+number+eid}% % \setunit{\addspace}% DELETED % \usebibmacro{issue+date}% DELETED % \setunit{\addcolon\space}% DELETED % \usebibmacro{issue}% DELETED \newunit} % "In:" removed for articles; issue/date macros added after note+pages macro \DeclareBibliographyDriver{article}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{author/translator+others}% \setunit{\labelnamepunct}\newblock \usebibmacro{title}% \newunit \printlist{language}% \newunit\newblock \usebibmacro{byauthor}% \newunit\newblock \usebibmacro{bytranslator+others}% \newunit\newblock \printfield{version}% \newunit\newblock % \usebibmacro{in:}% DELETED \usebibmacro{journal+issuetitle}% \newunit \usebibmacro{byeditor+others}% \newunit \usebibmacro{note+pages}% \setunit{\addspace}% NEW \usebibmacro{issue+date}% NEW \setunit{\addcolon\space}% NEW \usebibmacro{issue}% NEW \newunit\newblock \iftoggle{bbx:isbn} {\printfield{issn}} {}% \newunit\newblock \usebibmacro{doi+eprint+url}% \newunit\newblock \usebibmacro{addendum+pubstate}% \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% \usebibmacro{finentry}} \xpatchbibdriver{inbook} {\usebibmacro{in:}% \usebibmacro{bybookauthor}% \newunit\newblock \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor+others}} {\usebibmacro{in:}% \usebibmacro{bybookauthor}% \newunit\newblock \usebibmacro{byeditor:in}% \newunit\newblock \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor+others}} {}{} \xpatchbibdriver{incollection} {\usebibmacro{in:}% \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor+others}} {\usebibmacro{in:}% \usebibmacro{byeditor:in}% \setunit{\labelnamepunct}\newblock \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor}} {}{} \xpatchbibdriver{inproceedings} {\usebibmacro{in:}% \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{event+venue+date}% \newunit\newblock \usebibmacro{byeditor+others}} {\usebibmacro{in:}% \usebibmacro{byeditor:in}% \setunit{\labelnamepunct}\newblock \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{event+venue+date}% \newunit\newblock \usebibmacro{byeditor+others}} {}{} \newbibmacro*{byeditor:in}{% \ifnameundef{editor} {} {\printnames[editorin]{editor}% \addspace\bibsentence% \mkbibparens{\usebibmacro{editorstrg}}% \clearname{editor}% \printunit{\addcomma\space}}} \DeclareNameAlias{editorin}{first-last} \setlength{\bibhang}{30pt} \renewcommand*\bibnamedash{}
- Attachments
-
- Untitled.png (175.13 KiB) Viewed 2743 times