1

(I hope my question is not duplicated)

I have this sample file:

\documentclass[a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}


\usepackage{polyglossia}

\setdefaultlanguage{italian}
\usepackage[backend=biber]{biblatex}

\addbibresource{bibliografia.bib}
\begin{document}
\section{Sezione}
Questo è un test.\nocite{Zarlino1558}   

\printbibliography

\end{document}

My bibliografia.bib contains:

@Book{Zarlino1558,
  Title                    = {L'istitutioni harmoniche},
  Author                   = {Zarlino, Gioseffo},
  Publisher                = {Francesco de' Franceschi},
  Year                     = {1558},
  Address                  = {Venezia},
}

I get this:

[1] Gioseffo Zarlino. L’istitutioni harmoniche. Venezia: Francesco de’ Franceschi, 1558.

I need this:

\textsc{Gioseffo Zarlino}, \textit{L’istitutioni harmoniche}, Venezia, Francesco de’ Franceschi, 1558.

What should I write in my preamble?

Thank you so much for your help.

lockstep
  • 250,273
user56153
  • 999
  • I'm confused. You have polyglossia in your preamble, which is incompatible with pdflatex but fontenc and inputenc which should not be used with xelatex or lualatex. Which tex-engine are you using? – MaxNoe Oct 05 '15 at 18:46
  • 1
    Sorry, just forget fontenc and inputec, I'm using XeLaTex. – user56153 Oct 05 '15 at 19:00

2 Answers2

2
  • You need to set \DeclareFieldFormat*{title}{\textit{#1}} to make the title italic.

If you just want to change the appearance of a book, you can use \DeclareFieldFormat[book]{title}{\textit{#1}}.

  • For commas between the keys you need to add \renewcommand*{\newunitpunct}{\addcomma\space}.

  • For authors in small caps, renew the bibcommands mkbibnamelast and mkbibnamefirst \renewcommand*{\mkbibnamelast}[1]{\textsc{#1}} \renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}}

Complete Code:

\documentclass[a4paper]{scrartcl}


\begin{filecontents*}{bibliografia.bib}
@Book{Zarlino1558,
  Title                    = {L'istitutioni harmoniche},
  Author                   = {Zarlino, Gioseffo},
  Publisher                = {Francesco de' Franceschi},
  Year                     = {1558},
  Address                  = {Venezia},
}
\end{filecontents*}

\usepackage{polyglossia}
\setmainlanguage{italian}

\usepackage[backend=biber]{biblatex}
\DeclareFieldFormat*{title}{\textit{#1}}
\renewcommand*{\newunitpunct}{\addcomma\space}

\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}}

\addbibresource{bibliografia.bib}
\begin{document}
\section{Sezione}
Questo è un test.\nocite{Zarlino1558}   

\printbibliography

\end{document}
MaxNoe
  • 6,136
  • This is good, except that I need commas between Author and Title, Title and Address, Address and Publisher, Publisher and year. I also need to cancel the field [1]. – user56153 Oct 05 '15 at 18:51
  • Also the Author doesn't get printed in SmallCaps. – user56153 Oct 05 '15 at 18:56
  • I added Code for the commas, I will check on the authors. – MaxNoe Oct 05 '15 at 19:18
  • I still get a colon between address and publisher. Is there soemthing similar to \renewcommand*{\newunitpunct}{\addcomma\space} for changing colon to comma? – user56153 Oct 05 '15 at 19:26
1

Here is a simple solution, with the xpatch package:

\documentclass[a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ebgaramond}
\usepackage{filecontents}
\begin{filecontents}{bibliografia.bib}
@Book{Zarlino1558,
Title = {L'istitutioni harmoniche},
Author = {Zarlino, Gioseffo},
Publisher = {Francesco de' Franceschi},
Year = {1558},
Address = {Venezia},
}
\end{filecontents}


\usepackage{polyglossia}

\setdefaultlanguage{italian}
\usepackage[backend=biber, style=authortitle, sorting=nyt]{biblatex}
\usepackage{xpatch}
\let\mkbibnamelast\textsc%
\let\mkbibnamefirst\textsc%
\let\mkbibnameprefix\textsc%
\let\mkbibnameaffix\textsc
\renewcommand*{\newunitpunct}{\addcomma\space}
\xpatchbibmacro{publisher+location+date}{\setunit*{\addcolon\space}}%
{\setunit*{\addcomma\space}}{}{}
\DeclareNameAlias{sortname}{first-last}

\addbibresource{bibliografia.bib}

\begin{document}
\section{Sezione}
Questo è un test.\nocite{Zarlino1558}

\printbibliography

\end{document} 

enter image description here

Bernard
  • 271,350