Document ClassesCustomizing BibLaTeX

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
R. Geppert
Posts: 2
Joined: Tue Oct 28, 2008 11:12 pm

Customizing BibLaTeX

Post by R. Geppert »

Hi,

I would like to get BibLaTeX customized in the following way, but can't find anything in the docu.
I hope somebody has got some hints for me.

a) Authorname in the bibliography should be small caps instead of normalfont
b) recurring authors shall not be abbreviated by an em dash but rather a long line
both should be formatted in the way the style siam does

here two examples:

BibLaTeX:

Code: Select all

\documentclass[a4paper,english]{scrreprt}
\usepackage{babel}
\usepackage[babel,english=american]{csquotes}
\usepackage[style=verbose]{biblatex}
\bibliography{references}
\begin{document}
abc\footcite{Ryan2007}
def\footcite{Ryan2008}
\printbibliography
\end{document}
siam style:

Code: Select all

\documentclass[a4paper,english]{scrreprt}
\usepackage{babel}
\usepackage[babel,english=american]{csquotes}
\begin{document}
abc\cite{Ryan2007}
def\cite{Ryan2008}
\bibliography{references}
\bibliographystyle{siam}
\end{document}
bib file: references.bib

thx for any help

edit:
alright, figured out the cmall caps problem with:

Code: Select all

\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}}
the thing with the long dash remains:
i tried things like:

Code: Select all

\renewcommand*{\bibnamedash}{%
  \ifdim\leftmargin<0.75em
    \mbox{\textemdash\space}%
  \else
    \makebox[\leftmargin][l]{%
      \ifdim\leftmargin<1.25em
        \textendash
      \else
        \hrule{0.9cm}{0.5pt}
      \fi}%
  \fi}
but that doesn't work...any idead?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

R. Geppert
Posts: 2
Joined: Tue Oct 28, 2008 11:12 pm

Customizing BibLaTeX

Post by R. Geppert »

for the purpose of completeness;

a very nais solution has been provided by "rais"

Code: Select all

\renewcommand*\bibnamedash{\rule[1ex]{23pt}{0.3pt} }
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Customizing BibLaTeX

Post by localghost »

Mentioning the fact that you posted this request to another forum would have been nice.


Best regards
Thorsten¹
Post Reply