Re: Stili biblatex-philosophy

#43775
Doc
Partecipante
    Up
    0
    Down
    ::

    ivan” post=83683La situazione è contorta…

    Infatti, io non ho capito niente!

    Comunque, a parte gli scherzi, non credi che sarebbe una buona idea per uno stile filosofico? Dalla segnalazione di bug siamo arrivati ad una feature request!
    Sai bene quanto noi (dis-)umanisti amiamo citare le opere per sigle! 😛

    Ovviamente, se la cosa è complicata, lascia perdere o prenditi tutto il tempo che ti serve! Io non ho fretta e posso vivere anche senza questa funzione!

    Mille grazie di nuovo,
    Domenico

    EDIT
    Aggiungo un esempio di codice per chiarire cosa intendo.
    `% !TeX TS-program = XeLaTeX
    % !TeX encoding = UTF-8 Unicode
    % !TeX spellcheck = it_IT
    \documentclass[11pt,a4paper]{book}

    \usepackage{fontspec} % FONT ENCODING
    \setmainfont[Ligatures=TeX,Numbers=OldStyle,Scale=0.95]{Linux Libertine O}

    \usepackage{polyglossia} % LANGUAGE SUPPORT
    \setmainlanguage[babelshorthands=true]{italian}
    \setotherlanguage{latin}
    \setotherlanguage[variant=polytonic]{greek}

    \usepackage[%
    style=italian%
    ]{csquotes} % Per citare in altre lingue

    \usepackage[%
    style=philosophy-classic,%
    dashed=true,%
    url = false,%
    isbn = false,%
    firstinits=true%
    ]{biblatex}

    \DeclareSourcemap{
    \maps[datatype=bibtex]{
    \map{
    \step[fieldset=publisher, null]
    \step[fieldsource=journal,fieldtarget=journaltitle]
    }
    }
    }

    \defbibheading{auctores}%
    {\section{Auctores in apparatu frequentius laudati}}

    \defbibheading{sigle}%
    {\section{Sigle}}

    \defbibheading{studi}%
    {\section{Studi}}

    %———————————————————————–
    %Citazioni shorthand
    \makeatletter
    \DeclareCiteCommand{\bbx@crossref@inbook}
    {}%
    {\iffieldundef{shorthand}{%
    \usebibmacro{citeindex}%
    \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
    {\printnames[][-\value{maxnamesincross}]{labelname}}%
    {\printnames[][-\value{minnamesincross}]{labelname}}}%
    {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear}}%
    {\usebibmacro{cite:shorthand}}}%
    {}%
    {}%
    \DeclareCiteCommand{\bbx@crossref@incollection}
    {}%
    {\iffieldundef{shorthand}{%
    \usebibmacro{citeindex}%
    \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
    {\printnames[][-\value{maxnamesincross}]{labelname}}%
    {\printnames[][-\value{minnamesincross}]{labelname}}}%
    {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear}}%
    {\usebibmacro{cite:shorthand}}}%
    {}%
    {}%
    \makeatother{}
    %———————————————————————–

    %———————————————————————–
    %Correzione temporanea
    \makeatletter
    \AtBeginShorthands{
    \DeclareCiteCommand{\bbx@crossref@inbook}
    {}%
    {\iffieldundef{shorthand}{%
    \usebibmacro{citeindex}%
    \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
    {\printnames[][-\value{maxnamesincross}]{labelname}}%
    {\printnames[][-\value{minnamesincross}]{labelname}}}%
    {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear:crossref}}%
    {\usebibmacro{cite:shorthand}}}%
    {}%
    {}%

    \DeclareCiteCommand{\bbx@crossref@incollection}
    {}%
    {\iffieldundef{shorthand}{%
    \usebibmacro{citeindex}%
    \ifuseeditor{%
    \ifthenelse{\value{listtotal}=2}%
    {\printnames[][-\value{maxnamesincross}]{labelname}}%
    {\printnames[][-\value{minnamesincross}]{labelname}}}%
    {\usebibmacro{labeltitle}}%
    \setunit*{\addspace}%
    \usebibmacro{date+extrayear:crossref}}%
    {\usebibmacro{cite:shorthand}}}%
    {}%
    {}%
    \newbibmacro*{date+extrayear:crossref}{%
    \begingroup%
    \clearfield{month}%
    \iffieldundef{labelyear}
    {\printtext[parens]{\midsentence\bibstring{nodate}}}
    {\printtext[parens]{\printdateextra}}%
    \endgroup}%
    }
    \makeatother
    %———————————————————————–

    \usepackage{filecontents}

    \begin{filecontents*}{biblio.bib}
    @BOOKS{Harlfinger1991,
    title = {Paleografia e codicologia greca},
    year = {1991},
    titleaddon = {Atti del II Colloquio internazionale (Berlino — Wolfenbüttel, 17-21
    ottobre 1983)},
    location = {Alessandria},
    editor = {Harlfinger, D. and Prato, G.},
    number = {3},
    series = {Biblioteca di Scrittura e Civiltà},
    keywords = {sigle, atti},
    owner = {domenico},
    shorthand = {\textit{PCG}},
    sortshorthand = {PCG},
    timestamp = {20.07.2011}
    }

    @BOOKS{DAncona2007,
    title = {The Libraries of Neoplatonists},
    year = {2007},
    titleaddon = {Proceedings of the Meeting of the European Science Foundation Network
    “Late Antiquity and Arabic Thought. Patterns in the Constitution
    of European Culture” (Strasbourg, March 12-14, 2004)},
    location = {Leiden — Boston},
    editor = {D'Ancona, C.},
    number = {107},
    series = {Philosophia Antiqua},
    publisher = {Brill},
    keywords = {sigle, atti},
    file = {:Litterae/Neoplatonica/D'Ancona, The Libraries of Neoplatonists.pdf:PDF},
    owner = {domenico},
    shorthand = {\textit{Libraries of Neoplatonists}},
    sortshorthand = {Libraries of Neoplatonists},
    timestamp = {20.07.2011}
    }

    @INBOOK{Agati1991,
    author = {Agati, Maria Luisa},
    title = {Problemi di tratteggio e ductus nella minuscola libraria più antica},
    year = {1991},
    pages = {47–66},
    keywords = {studi},
    crossref = {Harlfinger1991},
    location = {Alessandria},
    owner = {domenico},
    timestamp = {08.09.2012}
    }

    @INBOOK{Alpers1991,
    author = {Alpers, Klaus},
    title = {Marginalien zur Überlieferung der griechischen Etymologika},
    year = {1991},
    pages = {523–541},
    keywords = {studi},
    crossref = {Harlfinger1991},
    location = {Alessandria},
    owner = {domenico},
    timestamp = {08.09.2012}
    }

    @BOOKINBOOK{Pausaniasatticista1950,
    author = {{Pausanias atticista}},
    title = {Fragmenta},
    pages = {152–221},
    keywords = {auctores},
    crossref = {Erbse1950},
    shorthand = {Paus.}
    }

    @ARTICLE{Alpers2008,
    author = {Alpers, Klaus},
    title = {Beobachtungen zur Überlieferung und zum Text des Platonlexikons des
    Timaios},
    journal = {Zeitschrift für Papyrologie und Epigraphik},
    year = {2008},
    volume = {166},
    pages = {85–99},
    keywords = {studi}
    }

    @BOOKINBOOK{AeliusDionysiusatticista1950,
    author = {{Aelius Dionysius atticista}},
    title = {Fragmenta},
    pages = {95–151},
    crossref = {Erbse1950},
    keywords = {auctores},
    shorthand = {Ael.Dion.}
    }

    @BOOK{Erbse1950,
    title = {Untersuchungen zu den attizistischen Lexica},
    location = {Berlin},
    year = {1950},
    author = {Erbse, Hartmut},
    number = {Jahrgang 1949 Nr. 2},
    series = {«Abhandlungen der Deutschen Akademie der Wissenschaften zu Berlin,
    Philos.–histor. Klasse»},
    keywords = {studi, ceteri}
    }

    @ARTICLE{Naoumides1968,
    author = {Naoumides, M.},
    title = {New Fragments of Ancient Greek Poetry},
    journal = {Greek, Roman and Byzantine Studies},
    year = {1968},
    volume = {9},
    pages = {267–290},
    keywords = {studi, ceteri}
    }

    @BOOKINBOOK{Cyrillus,
    author = {Cyrillus},
    title = {Lexicon},
    booktitle = {\emph{«New Fragments of Ancient Greek Poetry»}},
    bookauthor = {Naoumides, M.},
    series = {\emph{Greek, Roman and Byzantine Studies}},
    number = {9},
    year = {1968},
    pages = {267–290},
    keywords = {auctores},
    shorthand = {—},
    sortshorthand = {Cyr1968}
    }

    @BOOKINBOOK{DiogenianusParoemiographus,
    author = {{Diogenianus Paroemiographus}},
    title = {Proverbia recensionis D1},
    pages = {228–234},
    series = {«Philologus»},
    number = {Suppl. 6 (1892)},
    booktitle = {Zur Ueberlieferung des alphabetischen Corpus},
    crossref = {Cohn1891–1893},
    keywords = {auctores},
    addendum = {[= C.P.G. Suppl. Nr. IV]},
    bookauthor = {Cohn, Leolpold},
    file = {:Riviste/Philologus/Philologus Suppl. 6 (1891-93).djvu:Djvu},
    owner = {domenico},
    shorthand = {D1},
    timestamp = {08.09.2012}
    }

    \end{filecontents*}

    \addbibresource{biblio.bib}

    \usepackage{hyperref}

    \begin{document}

    \nocite{*}
    \printshorthands[%
    heading=sigle,%
    keyword=sigle]

    \printbibliography[%
    heading=studi,%
    keyword=studi]

    \printshorthands[%
    heading=auctores,%
    keyword=auctores]

    \printbibliography

    \end{document}`

    Ovviamente, la cosa può riguardare non solo i campi [tt]book[/tt]/[tt]inbook[/tt] o [tt]collection[/tt]/[tt]incollection[/tt], ma anche, ad esempio, [tt]proceedings[/tt]/[tt]inproceedings[/tt].

    Go to top