Bibtex – riferimento ad url

  • Creatore
    Topic
  • #5796
    Up
    0
    Down
    ::


    Dovrei inserire in bibliografia un indirizzo internet.

    Ho però due problemi:

    1) Non so con bibtex come inserirlo. Mi servirebbe una voce di questo tipo:
    `@tipo_di_riferimento{rif,
    author = {…},
    title = {…},
    url = {http://www.riferimento_al_sito.pdf},
    ecc..
    }`
    2) Non so come definire il riferimento. Mi spiego meglio: dovrei fare riferimento ad una presentazione (ppt), che però è stata suddivisa in vari capitoli come pdf.
    Il mio riferimento dovrebbe essere solo uno dei capitoli e quindi pensavo di inserire in bibliografia solo il link al pdf relativo. E’ corretta questa procedura? E che tipo di riferimento devo inserire (cioè cosa metto al posto di “tipo_di_riferimento”?) se esso è una parte di presentazione in formato pdf.?

    Qusto sarebbe il sito, mentre il link che dovrei inserire è: http://www.organik.uni-erlangen.de/hirsch/vorlesung/supramolecular/02Host_Guest_Chemistry/02Host_Guest_Chemistry.pdf

    Vi ringrazio anticipatamente – saluti

Visualizzazione 11 filoni di risposte
  • Autore
    Risposte
    • #5797
      Up
      0
      Down
      ::


      In questi casi io uso sempre l’attributo note in questo modo:`@book{pippo88,

      note={{\url{http://www.guit.sssup.it}}},

      }`
      Ovviamente, devi avere caricato nel preambolo il pacchetto hyperref. Un’ottima indicazione degli attributi validi per ciascun tipo di documento la trovi sul Kopka-Dali, di solito ce l’ho sempre sottomano quando scrivo la bibliografia.

      In concreto, per il tuo caso ti suggerirei una cosa di simile:`@unpublished{hirsch,
      author={Hirsch},
      title={Host—Guest Chemistry},
      note={{\url{http://www.organik.uni-erlangen.de/hirsch/vorlesung/supramolecular/%
      02Host_Guest_Chemistry/02Host_Guest_Chemistry.pdf}}}
      }`

      @unpublished: Entry for an unpublished work with an author and title.
      Required fields: author, title, note

      @techreport: Entry for a report published by a school or other institution, usually as part of a series.
      Required fields: author, title, institution, year

      Queste sono le possibilità, IMHO, che più si avvicinano alla tua necessità.

      Ciao.

    • #5798
      Up
      0
      Down
      ::


      Ti ringrazio per la risposta, penso anche io che come soluzioni siano quelle che più si prestano ai miei scopi.
      Tuttavia, se aggiungo il pacchetto hyperref, mi dà 2 errori, oltre a qualche warning (di questi ho deciso di non curarmene, eccetto casi seri).

      Purtoppo non riesco a capire il motivo di tali errori. 🙄
      Manifestandosi solo nel caso in cui aggiunga il pacchetto hyperref, i suddetti dovrebbero essere descritti nel log a partire dalla riga 273.
      Dal momento che non so se è dovuto ad un conflitto ti linko anche i pacchetti che uso (alcuni dei quali sono la causa dei warning)

      Se potessi darmi una mano te ne sarei infinitamente grato.
      Grazie 1k – ciao

    • #5799
      Up
      0
      Down
      ::


      hai scritto `\usepckage{hyperref} ` invece di `\usepackage{hyperref} `
      ciao
      f

    • #5800
      Up
      0
      Down
      ::


      Ti ringrazio non mi ero proprio accorto. Che errore stupido 😳 …non tiratemi i pomodori!

      Avrei ancora due problemi:

      1) il link del riferimento è troppo lungo e deborda dal margine, come posso fare? Io pensavo di scriverlo interamente a capo e magari con un font più piccolo, ma non so come dirglielo. Devo ricrearmi lo stile della bibliografia?

      2) è puramente estetico. Ho usato l’ozione colorlinks, ma come si modificano i colori in funzione della tipologia del riferimento?

      Grazie ancora e scusatemi nuovamente.

    • #5801
      ev
      Partecipante
        Up
        0
        Down
        ::

        Ho usato l’ozione colorlinks, ma come si modificano i colori in funzione della tipologia del riferimento?

        Tanto per fare un esempio:
        `\usepackage[colorlinks, urlcolor=green]{hyperref}`
        Altre opzioni relative ai colori sono: linkcolor, anchorcolor, citecolor, menucolor, filecolor, pagecolor.

      • #5802
        Up
        0
        Down
        ::

        Ti ringrazio non mi ero proprio accorto. Che errore stupido 😳 …non tiratemi i pomodori!

        eppure mi pare che il messaggio del log sia abbastanza esplicito al rigurado, ti suggerisce pure che forse hai scritto male il comandao…
        ` 272 ! Undefined control sequence.
        273 l.98 \usepckage
        274 {hyperref} % utilizzato per i riferienti hypertext…
        275 The control sequence at the end of the top line
        276 of your error message was never \def'ed. If you have
        277 misspelled it (e.g., `\hobx'), type `I' and the correct
        278 spelling (e.g., `I\hbox'). Otherwise just continue,
        279 and I'll forget about whatever was undefined.
        `

        2) è puramente estetico. Ho usato l’ozione colorlinks, ma come si modificano i colori in funzione della tipologia del riferimento?

        nn so se ho capito bene, vuoi scegliere il colore del link? e’ tutto riportato nella guida del pacchetto.
        ciao
        f

      • #5803
        Up
        0
        Down
        ::

        eppure mi pare che il messaggio del log sia abbastanza esplicito al rigurado, ti suggerisce pure che forse hai scritto male il comandao…

        Ti prego non mettere il dito nella piaga mi vergogno già abbastanza 😳
        La prossima volta ti prometto leggerò più attentamente il log. 😀

        nn so se ho capito bene, vuoi scegliere il colore del link? e’ tutto riportato nella guida del pacchetto.

        Mi riferivo al colore che viene assegnato nelle citazioni (\cite) e nei riferimenti bibiliografici.
        Comunque vi ringrazio moltissimo, soprattutto l’esempio di ev mi ha chiarito le idee, ora dovrei essere in grado di effettuare le opportune modifiche senza eccessivi problemi.

        Rimarrebbe ancora la questione del link, troppo lungo, nella bibliografia. Proverò a vedere se o il manuale di hyperrref, o makebst, forniscono qualche soluzione al problema.

        Grazie ancora – ciao

      • #5804
        Gus
          Up
          0
          Down
          ::


          Stai caricando il pacchetto url?

          Gus

        • #5805
          Up
          0
          Down
          ::

          Stai caricando il pacchetto url?

          No, avevo usato hyperref, in effetti con url il link viene spezzato.
          Putroppo va in conflitto con il pacchetto hyperref, quindi dovrò cercare le opzioni per i colori nel suo manuale.

          Grazie ancora a tutti – saluti

        • #5806
          Up
          0
          Down
          ::


          Ho provato a cercare il manuale del pacchetto url, ma non riesco a trovarlo da nessuna parte. 🙁
          Qualcuno saprebbe indicarmi dove si potrebbe reperire?

          Grazie ancora per la vostra disponibilità – saluti.

        • #5807
          Up
          0
          Down
          ::


          I comandi sono descritti direttamente sul pacchetto (url.sty): puoi aprirlo con qualunque editor di testo.

        • #5808
          Up
          0
          Down
          ::


          Sulle UK TeX Faq ho trovato quanto segue (riporto il testo in inglese per non scrivere delle bestiate nel tentativo di tradurlo)

          URLs in BibTeX bibliographies

          There is no citation type for URLs, per se, in the standard BibTeX styles, though Oren Patashnik (the author of BibTeX) is believed to beconsidering developing one such for use with the long-awaited BibTeX version 1.0.

          The actual information that need be available in a citation of an URL is discussed at some length in the publicly available on-line extracts of ISO 690-2; the techniques below do not satisfy all the requirements of ISO 690-2, but they offer a solution that is at least available to users of today’s tools.

          Until the new version of BibTeX arrives, the simplest technique is to use the howpublished field of the standard styles’ @misc function. Of course, the strictures about typesetting URLs still apply, so the entry will look like:

          @misc{…,
          …,
          howpublished = “\url{http://…}”
          }
          A possible alternative approach is to use BibTeX styles other than the standard ones, that already have URL entry types. Pre-eminent are the natbib styles (plainnat, unsrtnat and abbrevnat). These styles are extensions of the standard styles, principally for use with natbib itself, but they’ve acquired URLs and other “modern” entries along the way. The same author’s custom-bib is also capable of generating styles that honour URL entries.

          Another candidate is the harvard package (if its citation styles are otherwise satisfactory for you). Harvard bibliography styles all include a “url” field in their specification; however, the typesetting offered is somewhat feeble (though it does recognise and use LaTeX2HTML macros if they are available, to create hyperlinks).

          You can also acquire new BibTeX styles by use of Norman Gray’s urlbst system, which is based on a Perl script that edits an existing BibTeX style file to produce a new style. The new style thus generated has a webpage entry type, and also offers support for url and lastchecked fields in the other entry types. The Perl script comes with a set of converted versions of the standard bibliography styles. Documentation is distributed as LaTeX source.

          Another possibility is that some conventionally-published paper, technical report (or even book) is also available on the Web. In such cases, a useful technique is something like:

          @techreport{…,
          …,
          note = “Also available as \url{http://…}”
          }
          There is good reason to use the url or hyperref packages in this context, since (by default) the \url command ignores spaces in its argument. BibTeX has a habit of splitting lines it considers excessively long, and if there are no space characters for it to use as ‘natural’ breakpoints, BibTeX will insert a comment (‘%’) character … which is an acceptable character in an URL, so that \url will typeset it. If you’re using url, the way around the problem is to insert odd spaces inside the URL itself in the .bib file, to enable BibTeX to make reasonable decisions about breaking the line. Note that the version of \url that comes with recent versions of the hyperref package doesn’t suffer from the ‘%-end of line’ problem: hyperref spots the problem, and suppresses the unwanted characters.

          La pagina da cui ho preso il tasto è questa.

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

      Go to top