Re: Bibliografia non numerata

#91523
Up
0
Down
::

questo_non_è_un_nick” post=91098Ecco un esempio minimo. Questo è il contenuto del file principale:

`\documentclass[a4paper,oneside,italian,12pt]{memoir}
\usepackage{filecontents}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage[natbibapa, unnumberedbib, sectionbib]{apacite}
\usepackage{chapterbib}

\settocdepth{subsection}
\setsecnumdepth{subsection}

\begin{document}
\tableofcontents
\include{Prova_capitolo}
\end{document}`

Questo è il contenuto del file Prova_capitolo:

`\chapter{Prova capitolo}

\section{Paragrafo}
Proviamo a inserire qualche citazione \citep{Aarts2005} e qualcun'altra \citep{Abrams2008}. Ancora \citep{Bachmann2005}.

\section{Altro paragrafo}

\bibliographystyle{apacite}
%\addcontentsline{toc}{section}{Bibliografia}
\bibliography{mylibrary}`

Mentre questo è il file della bibliografia, mylibrary:

`@ARTICLE{Aarts2005,
author = {Aarts, Henk and Custers, Ruud and Wegner, Daniel M},
title = {{On the inference of personal authorship: enhancing experienced agency
by priming effect information.}},
journal = {Consciousness and Cognition},
year = {2005},
volume = {14},
pages = {439–58},
number = {3},
doi = {10.1016/j.concog.2004.11.001},
issn = {1053-8100},
pmid = {16091264}
}

@ARTICLE{Abrams2008,
author = {Abrams, Daniel J and Rojas, Donald C and Arciniegas, David B},
title = {{Is schizoaffective disorder a distinct categorical diagnosis? A
critical review of the literature.}},
journal = {Neuropsychiatric Disease and Treatment},
year = {2008},
volume = {4},
pages = {1089–109},
number = {6},
keywords = {bipolar disorder,manic-depressive disorder,schizoaffective disorder,schizophrenia},
pmid = {19337453}
}

@ARTICLE{Bachmann2005,
author = {Bachmann, Silke and Bottmer, Christina and Schr\”{o}der, Johannes},
title = {{Neurological soft signs in first-episode schizophrenia: a follow-up
study.}},
journal = {The American Journal of Psychiatry},
year = {2005},
volume = {162},
pages = {2337–43},
number = {12},
doi = {10.1176/appi.ajp.162.12.2337},
issn = {0002-953X},
pmid = {16330599}
}
`

Compilando, esce fuori un paragrafo numerato della bibliografia.

Aggiungi questo
`
\makeatletter
\def\thebibliography#1{%
\@ifundefined{chapter}%
{\st@rtbibsection}%
{\if@sectionbibdefault
{\@ifundefined{@mainmatterfalse}%
{\st@rtbibchapter}%
{\if@mainmatter
\st@rtbibsection
\else
\st@rtbibchapter
\fi
}%
}%
\else
\if@sectionbib
\st@rtbibsection
\else
\st@rtbibchapter
\fi
\fi
}%
\bibliographytypesize % e.g., to put the bibliography in \small type
\bibliographyprenote % some explanatory note before the references
\@ifundefined{APAC@metaprenote@\APAC@extra@b@citeb}%
{}% skip
{\csname APAC@metaprenote@\APAC@extra@b@citeb\endcsname}%
\list{\relax}{\labelsep=\biblabelsep
\parsep=\bibparsep
\itemsep=\bibitemsep
\leftmargin=\bibleftmargin
\itemindent=\bibindent}% changed to cope with 4th ed.
\def\newblock{\hskip .11em plus .33em minus .07em}%
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax %'
\bt@beg@thb@hook
\APACrestorebibitem
}
\makeatother
`

Non so perché ma funziona. Mi pare assurdo, visto che questo codice è copiato pari pari da apacite.sty.
In ogni caso, passa a biblatex. Trovi le istruzioni sull’Arte.

Ciao
Ivan

Go to top