Risposte nei forum create
-
AutoreRisposte
-
13 Dicembre 2015 alle 13:27 in risposta a: Bibliografia in stile SIAM con Biblatex (biber e natbib) #104344::
Ciao Ivan,
grazie per la risposta.
So bene che sul sito SIAM trovo già il file .bst 🙂ivan” post=104393
Puoi fare a meno di biblatex.Nella mia tesi ho una bibliografia alla fine di ogni capitolo, e poi un finale generale.
`
\usepackage[style=numeric-comp, sorting=nyt, hyperref, backref, autolang=other, natbib, backend=biber, refsegment=chapter, firstinits=true]{biblatex}
`Esiste un modo per ottenere lo stesso risultato senza utilizzare biblatex?
E’ la prima volta che mi capita di mettere la bibliografia per ogni capitolo, quindi non so bene come muovermi.
::ivan” post=104240Per favore, un unico listato, comprendente la bibliografia.
Usa l’ambiente “filecontents” come vedi nel mio esempio sopra.Ciao
IvanEcco qua 🙂
`
\documentclass[11pt,a4paper,twoside,breaklinks]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mparhack,fixltx2e,relsize}
\usepackage{microtype}%===========================
% IMPOSTAZIONE B5 E ALTRI SETTAGGI
%===========================
\usepackage[dvips=false,pdftex=false,vtex=false, twoside,includeall,paper=b5paper,textwidth= 12.5 cm,textheight= 17 cm, inner = 2 cm, top=3 cm]{geometry}
\usepackage[cam,a4,center,dvips]{crop}\usepackage{caption,setspace}
\captionsetup{font=small,labelfont=bf}%===========================
% MATEMATICA
%===========================
\usepackage{latexsym}
\usepackage{mathrsfs}
\usepackage{amsxtra}\usepackage{amssymb,amsmath, mathtools}
\usepackage{pifont}%===========================
% Pacchetti per grafici, tabelle e colori
%===========================
\usepackage{color, colortbl}
\DeclareRobustCommand{\SymbolInRed}{$\textcolor{red}{\times}$}
\usepackage[svgnames,dvipsnames,table]{xcolor}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow, multicol}
\usepackage{longtable}% colonne “matematiche”
\newcolumntype{L}{>{$}l<{$}} \newcolumntype{C}{>{$}c<{$}} \newcolumntype{R}{>{$}r<{$}} % aumenta il numero di unprocessed floats. Se nascono problemi di questo tipo, usare \clearpage dove ha senso iniziare una pagina nuova \extrafloats{100} %=========================== % DEFINIZIONE DEI MIEI COLORI %=========================== \newcommand{\black}[1]{\textcolor{black}{#1}} \newcommand{\red}[1]{\textcolor{red}{#1}} \newcommand{\blue}[1]{\textcolor{blue}{#1}} \newcommand{\green}[1]{\textcolor{ForestGreen}{#1}} \newcommand{\yellow}[1]{\textcolor{Dandelion}{#1}} \newcommand{\magenta}[1]{\textcolor{Magenta}{#1}} \newcommand{\orange}[1]{\textcolor{BurntOrange}{#1}} \newcommand{\purple}[1]{\textcolor{Purple}{#1}} \definecolor{mathred}{RGB}{179,55,18} \newcommand{\mathred}[1]{\textcolor{mathred}{#1}} \definecolor{matback}{RGB}{252,252,217} %=========================== % PACCHETTI VARI %=========================== \usepackage{hyperref} \usepackage{framed} \usepackage{geometry} \usepackage{stmaryrd} \usepackage[dayofweek]{datetime} \usepackage{listings} \usepackage{lipsum} \usepackage[onlyinclude]{frontespizio} %=========================== % BIBLIOGRAFIA %=========================== \usepackage[autostyle,italian=guillemets]{csquotes} \usepackage[style=numeric-comp, sorting=nyt, hyperref, backref, autolang=other, natbib, defernumbers=true, backend=biber, refsegment=chapter, firstinits=true]{biblatex} \renewbibmacro{in:}{} \DeclareNameFormat{last-first}{% \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% \usebibmacro{name:andothers}} \DeclareNameAlias{author}{last-first} \addbibresource{biblio.bib} %=========================== % INTESTAZIONE DELLE PAGINE %=========================== \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyfoot[CE,CO]{\thepage} \fancyhead[LE]{{\tiny\leftmark}} \fancyhead[RO]{{\tiny\rightmark}} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.0pt} \setlength{\headheight}{14pt} \fancypagestyle{plain}{ \fancyhead{} \fancyfoot[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.0pt} \setlength{\headheight}{14pt}} %======================= % GENERAZIONE BIBLIOGRAFIA %======================= \usepackage{filecontents} \begin{filecontents}{biblio.bib} @article{citeA, Author = {Amedeo, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeB, Author = {Bolzano, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeC, Author = {Cagliari, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeD, Author = {Domodossola, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeE, Author = {Eraldo, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeF, Author = {Foglia, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeG, Author = {Garda, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeH, Author = {Hotel, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} @article{citeI, Author = {Ilario, Name}, Date = 1933, Pages = {46-67}, Series = {newseries}, Title = {Titolo A}, Volume = 9} \end{filecontents} %======================= % DOCUMENT %======================= \makeindex \begin{document} %\includefront{frontespizio} %===================== % FRONT MATTER %===================== \frontmatter \pdfbookmark{\contentsname}{\contentsname} %\doublespacing \onehalfspacing \tableofcontents \singlespacing %===================== % MAIN MATTER %===================== \mainmatter \chapter{Capitolo Primo} \lipsum \parencite{citeB, citeE, citeG} \newpage \printbibliography[heading=subbibliography,segment=\therefsegment] \chapter{Capitolo Secondo} \lipsum \parencite{citeA, citeD, citeI} \newpage \printbibliography[heading=subbibliography,segment=\therefsegment] \chapter{Capitolo Terzo} \lipsum \parencite{citeC, citeF, citeH} \newpage \printbibliography[heading=subbibliography,segment=\therefsegment] \appendix \chapter{Appendice} \lipsum %===================== % BACKMATTER %===================== \backmatter %% \cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{Bibliography} \printbibliography \end{document} `::ivan” post=104215Mostra, per favore, un esempio minimo compilabile, come quello che ho fornito io.
Non pezzi di codice. Altrimenti rischiamo di non capirci.Hai ragione, chiedo scusa per l’approssimazione.
Ecco un esempio del mio documento (strutturato con un file “main” e diversi “child”):
`
\documentclass[11pt,a4paper,twoside,breaklinks]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mparhack,fixltx2e,relsize}
\usepackage{microtype}%=====================
% IMPOSTAZIONE B5 E ALTRI SETTAGGI
%=====================
\usepackage[dvips=false,pdftex=false,vtex=false, twoside,includeall,paper=b5paper,textwidth= 12.5 cm,textheight= 17 cm, inner = 2 cm, top=3 cm]{geometry}
\usepackage[cam,a4,center,dvips]{crop}\usepackage{caption,setspace}
\captionsetup{font=small,labelfont=bf}%=====================
% MATEMATICA
%=====================
\usepackage{latexsym}
\usepackage{mathrsfs}
\usepackage{amsxtra}\usepackage{amssymb,amsmath, mathtools}
\usepackage{pifont}%=====================
% Pacchetti per grafici, tabelle e colori
%=====================
\usepackage{color, colortbl}
\DeclareRobustCommand{\SymbolInRed}{$\textcolor{red}{\times}$}
\usepackage[svgnames,dvipsnames,table]{xcolor}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow, multicol}
\usepackage{longtable}% colonne “matematiche”
\newcolumntype{L}{>{$}l<{$}} \newcolumntype{C}{>{$}c<{$}} \newcolumntype{R}{>{$}r<{$}} % aumenta il numero di unprocessed floats. Se nascono problemi di questo tipo, usare \clearpage dove ha senso iniziare una pagina nuova \extrafloats{100} %===================== % DEFINIZIONE DEI MIEI COLORI %===================== \newcommand{\black}[1]{\textcolor{black}{#1}} \newcommand{\red}[1]{\textcolor{red}{#1}} \newcommand{\blue}[1]{\textcolor{blue}{#1}} \newcommand{\green}[1]{\textcolor{ForestGreen}{#1}} \newcommand{\yellow}[1]{\textcolor{Dandelion}{#1}} \newcommand{\magenta}[1]{\textcolor{Magenta}{#1}} \newcommand{\orange}[1]{\textcolor{BurntOrange}{#1}} \newcommand{\purple}[1]{\textcolor{Purple}{#1}} \definecolor{mathred}{RGB}{179,55,18} \newcommand{\mathred}[1]{\textcolor{mathred}{#1}} \definecolor{matback}{RGB}{252,252,217} %===================== % PACCHETTI VARI %===================== \usepackage{hyperref} \usepackage{framed} \usepackage{geometry} \usepackage{stmaryrd} \usepackage[dayofweek]{datetime} \usepackage{listings} \usepackage{lipsum} \usepackage[onlyinclude]{frontespizio} %===================== % BIBLIOGRAFIA %===================== \usepackage[autostyle,italian=guillemets]{csquotes} \usepackage[style=numeric-comp, sorting=nyt, hyperref, backref, autolang=other, natbib, defernumbers=true, backend=biber, refsegment=chapter, firstinits=true]{biblatex} \renewbibmacro{in:}{} \DeclareNameFormat{last-first}{% \usebibmacro{name:last-first}{#1}{#4}{#5}{#7}% \usebibmacro{name:andothers}} \DeclareNameAlias{author}{last-first} \addbibresource{biblio.bib} %===================== % INTESTAZIONE DELLE PAGINE %===================== \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyfoot[CE,CO]{\thepage} \fancyhead[LE]{{\tiny\leftmark}} \fancyhead[RO]{{\tiny\rightmark}} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.0pt} \setlength{\headheight}{14pt} \fancypagestyle{plain}{ \fancyhead{} \fancyfoot[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.0pt} \setlength{\headheight}{14pt}} %===================== % DOCUMENT %===================== \makeindex \begin{document} \includefront{frontespizio} %===================== % FRONT MATTER %===================== \frontmatter \pdfbookmark{\contentsname}{\contentsname} %\doublespacing \onehalfspacing \tableofcontents \singlespacing %===================== % MAIN MATTER %===================== \mainmatter \input{chapters/chapA} \input{chapters/chapB} \input{chapters/chapC} \appendix \input{chapters/appendix1} %===================== % BACKMATTER %===================== \backmatter %% \cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{Bibliography} \printbibliography \end{document} ` Mentre per i capitoli si ha: chapA
`
\chapter{Capitolo Primo}
\lipsum
\parencite{abdel:2011, Dayal:2012a, KolmogorovFomin}
\newpage
\printbibliography[heading=subbibliography,segment=\therefsegment]
`chapB
`
\chapter{Capitolo Secondo}
\lipsum
\cite{Cahn:1958, Gao:2004, Lakes:1993}
\newpage
\printbibliography[heading=subbibliography,segment=\therefsegment]
`chapC
`\chapter{Capitolo Terzo}
\lipsum
\cite{mainardi:2010, Baumgart:2003, falconer}
\newpage
\printbibliography[heading=subbibliography,segment=\therefsegment]`appendix1
`
\chapter{Appendice}
\lipsum
`Un esempio con tutti i file (inclusi la bibliografia) si può scaricare qua.
L’ordine seguito per la compilazione è il seguente:- PdfLaTeX
- Bibtex
- PdfLaTeX
- PdfLaTeX
- PdfLaTeX
Grazie ancora 🙂
petruss
::
Ciao Ivan,
grazie mille per la risposta!Il mio problema non è lo stile di citazione (quella di Nature mi va bene).
Naturalmente le etichette numeriche devono essere coerenti all’interno del documento.
Sono più che d’accordo 🙂
Infatti io vorrei che le etichette venissero attribuite nella bibliografia generale, e solo POI venissero compilate le bibliografie dei singoli capitoli.Esattamente quello che succede nell’esempio che mi hai gentilmente mostrato.
Quello che noto è che viene utilizzato il comando \parentcite invece di \cite.Quindi nel mio codice basta fare questa sostituzione?
—– EDIT —–
Ho provato a modificare il preambolo e il testo in accordo con l’esempio, ma l’ordinamento della bibliografia generale rimane subordinato a quello dei singoli capitoli. Nel preambolo ho inserito:
`
\usepackage[style=numeric-comp, sorting=nyt, hyperref, backref, autolang=other, natbib, defernumbers=true, backend=biber, refsegment=chapter, firstinits=true]{biblatex}
\addbibresource{biblio.bib}
`alla fine di ogni capitolo
`
\printbibliography[heading=subbibliography,segment=\therefsegment]
`e a fine document0
`
\backmatter
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography[heading=bibliography]
`Cosa mi manca?
Grazie ancora per l’aiuto 🙂
petruss
-
AutoreRisposte