NOn riesco a creare la bibliografia

  • Creatore
    Topic
  • #101495
    Up
    0
    Down
    ::


    Sto cercando di creare una bibliografia automatica ma nonstante segua quello che dice il libro arte latex 2012 non riesco.

    nel preambolo metto questo:

    `
    %%% miei pacchetti
    \addbibresource{bibliografia.bib}
    \usepackage[italian]{babel}
    \usepackage[autostyle,italian=guillemets,haltre opzionii]{csquotes}
    \usepackage[hopzionii,backend=biber]{biblatex}
    `

    e alla fine metto questo:
    `
    %%%% Bibliografia
    %\clearpage
    %\phantomsection
    \addcontentsline{toc}{section}{\refname}
    \nocite{*}
    \bibliographystyle{plain}
    \bibliography{bibliografia}
    `

    mi dà i seguenti errori:

    `

    Undefined control sequence.
    l.36 \addbibresource
    {bibliografia.bib}
    LaTeX Error: Missing \begin{document}.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.

    l.36 \addbibresource{b
    ibliografia.bib}
    Package keyval Error: haltreopzionii undefined.

    See the keyval package documentation for explanation.
    Type H for immediate help.

    l.2475 \ProcessOptions*
    Package keyval Error: hopzionii undefined.

    See the keyval package documentation for explanation.
    Type H for immediate help.

    l.10902 \blx@processoptions
    Package biblatex Error: '\bibliographystyle' invalid.

    See the biblatex package documentation for explanation.
    Type H for immediate help.

    l.88 \bibliographystyle{plain}
    LaTeX Error: Can be used only in preamble.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.

    l.89 \bibliography
    {bibliografia}
    LaTeX Warning: There were undefined references.
    Package biblatex Warning: Please (re)run Biber on the file: “Progetto di Ricerca” and rerun LaTeX afterwards.
    Overfull \hbox (446.64749pt too wide) in paragraph at lines 36–96
    []\OT1/cmr/m/n/10.95 bibliografia.bib

    `

    Il file bibliografia. bib c’è ma non genera nulla.

    Io vengo da Texnic center ma sto provando ad usare tex works.
    Forse gli errori dipendono dal fatto che devo attivare Biber da qualche parte.

    Grazie 1000 🙂

Visualizzazione 7 filoni di risposte
  • Autore
    Risposte
    • #101496
      Up
      0
      Down
      ::


      Il comando [tt]\addbibresource[/tt] è definito dal pacchetto [tt]biblatex[/tt], per cui non puoi utilizzarlo prima della chiamata del pacchetto. Spostalo dopo la chiamata del pacchetto così
      `
      \usepackage[italian]{babel}
      \usepackage[autostyle,italian=guillemets,haltre opzionii]{csquotes}
      \usepackage[hopzionii,backend=biber]{biblatex}
      \addbibresource{bibliografia.bib}
      `
      Per stampare la bibliografia, poi, utilizza il comando [tt]\printbibliography[/tt], non [tt]\bibliography[/tt].

    • #101497
      Up
      0
      Down
      ::


      Ho risolto per tutto tranne che per la linea:

      `\bibliographystyle{plain}`

      Che avevo messo nella tesi e funzionava, ora invece crea il seguente errore:

      `Package biblatex Error: '\bibliographystyle' invalid.

      See the biblatex package documentation for explanation.
      Type H for immediate help.
      … `

      come mai?

    • #101498
      Up
      0
      Down
      ::


      Come non detto! Ho notato che c’è un errore.

      alla fine della bibliografia esce scritto bibliografia.

      questo è il codice per intero:

      `
      % !TEX TS-program = pdflatex
      % !TEX encoding = UTF-8 Unicode

      % This is a simple template for a LaTeX document using the “article” class.
      % See “book”, “report”, “letter” for other types of document.

      \documentclass[11pt]{article} % use larger type; default would be 10pt

      \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)

      %%% Examples of Article customizations
      % These packages are optional, depending whether you want the features they provide.
      % See the LaTeX Companion or other references for full information.

      %%% PAGE DIMENSIONS
      \usepackage{geometry} % to change the page dimensions
      \geometry{a4paper} % or letterpaper (US) or a5paper or….
      % \geometry{margin=2in} % for example, change the margins to 2 inches all round
      % \geometry{landscape} % set up the page for landscape
      % read geometry.pdf for detailed page layout information

      \usepackage{graphicx} % support the \includegraphics command and options

      % \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

      %%% PACKAGES
      \usepackage{booktabs} % for much better looking tables
      \usepackage{array} % for better arrays (eg matrices) in maths
      \usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
      \usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
      \usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
      % These packages are all incorporated in the memoir class to one degree or another…

      %%% miei pacchetti
      \usepackage[italian]{babel}
      \usepackage[autostyle,italian=guillemets]{csquotes}
      \usepackage[backend=biber]{biblatex}
      \addbibresource{bibliografia.bib}

      %%% HEADERS & FOOTERS
      \usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
      \pagestyle{fancy} % options: empty , plain , fancy
      \renewcommand{\headrulewidth}{0pt} % customise the layout…
      \lhead{}\chead{}\rhead{}
      \lfoot{}\cfoot{\thepage}\rfoot{}

      %%% SECTION TITLE APPEARANCE
      \usepackage{sectsty}
      \allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
      % (This matches ConTeXt defaults)

      %%% ToC (table of contents) APPEARANCE
      \usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
      \usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
      \renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
      \renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!

      %%% END Article customizations

      %%% The “real” document content comes below…

      \title{Progetto di Ricerca}
      \author{Andrea Febbo}
      %\date{} % Activate to display a given date or no date (if empty),
      % otherwise the current date is printed

      \begin{document}
      \maketitle

      \section{First section}

      Your text goes here.

      \subsection{A subsection}

      More text.

      %%%% Bibliografia
      \clearpage
      \phantomsection
      \addcontentsline{toc}{section}{\refname}
      \nocite{*}
      %\bibliographystyle{plain}
      \printbibliography{bibliografia}

      \end{document}

      `

      Altra domandina: come devo fare a non far uscire scritto riferimenti bibliografici ma la stessa scritta in inglese (devo scrivere una research proposal in inglese).

      Allego il pdf che viene create per dare un’idea.

      [attachment=1308]ProgettodiRicerca.pdf[/attachment]

      Attachments:
      You must be logged in to view attached files.
    • #101499
      Up
      0
      Down
      ::


      Mi pare di ricordare che il comando [tt]\bibliographystyle[/tt] sia diventato obsoleto. Devi usare al suo posto la chiave [tt]style[/tt] da passare alle opzioni di biblatex. Per essere maggiormente sicuro controlla sulla documentazione di biblatex (da terminale dai [tt]texdoc biblatex[/tt]).

      EDIT: Ho controllato ed effettivamente è proprio così 😀

    • #101500
      Up
      0
      Down
      ::


      Il comando [tt]\printbibliography[/tt] non necessità di un argomento obbligatorio, per cui rimuovi [tt]{bibliografia}[/tt].

      Per i riferimenti in inglese è sufficiente cambiare la lingua di [tt]babel[/tt] da [tt]italian[/tt] a [tt]english[/tt].

    • #101501
      Up
      0
      Down
      ::


      Ragazzi… sto cercando di citare tutti gli autori negli articoli della mia bibliografia, ma per gli articoli con molti autori latex scrive solo il primo e poi scrive et al.
      vorrei citarli tutti. come fare?

      PS: potreste anche rispondere a quest’altra mia domanda: http://www.guitex.org/home/en/forum/6-altri-programmi/101330-abilitare-controllo-ortografico-in-lingua-inglese

    • #101502
      Up
      0
      Down
      ::


      1) mettere et al non è così strano o “poco corretto”…
      2) se hai questa necessità usa l’ambiente “thebibliography” , al posto di ciò che stai usando. In questo moto metti tutti gli autori che vuoi 😉

    • #101503
      Up
      0
      Down
      ::

      golden_boy” post=1013462) se hai questa necessità usa l’ambiente “thebibliography” , al posto di ciò che stai usando. In questo moto metti tutti gli autori che vuoi 😉

      Per mettere tutti gli autori non è necessario dover ricorrere alla bibliografia manuale: con biblatex è sufficiente usare le opportune opzioni (vedi Set limit to one author when using “et al.” in biblatex).

      Ciao
      Claudio

Visualizzazione 7 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top