Mixing bibliographic styles in Biblatex Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)biblatex: multiple stylesIndependent publication list with numbered list using biblatex and refsectionbiblatex: different bibstyles in the same document?Suppressing em-dashs for recurrent authors and letter suffixes for years when using biblatex-chicagoBiblatex / Biber full citation for first occurrence onlyMultilingual bibliography using XeTeX, biblatex and polyglossiaBiblatex: 1) changing separator, 2) repeating authorBiblatex citation and bibliography misbehaving in Texmaker - help!Beginners guide for biblatex BY EXAMPLEBiblatex mla - no bibliography, no references, no nothingUnconventional bibliography style with BibLaTeXBibLaTeX: Citation Sorting with Split Bibliographies and FiltersPrinting “ibid” for biblatex-chicago authordate style

Did any compiler fully use 80-bit floating point?

French equivalents of おしゃれは足元から (Every good outfit starts with the shoes)

Random body shuffle every night—can we still function?

Is a copyright notice with a non-existent name be invalid?

calculator's angle answer for trig ratios that can work in more than 1 quadrant on the unit circle

First Component in PCA

malloc in main() or malloc in another function: allocating memory for a struct and its members

Understanding piped commands in GNU/Linux

The Nth Gryphon Number

New Order #6: Easter Egg

An isoperimetric-type inequality inside a cube

What helicopter has the most rotor blades?

Where did Ptolemy compare the Earth to the distance of fixed stars?

Do i imagine the linear (straight line) homotopy in a correct way?

What is "Lambda" in Heston's original paper on stochastic volatility models?

Proving that any solution to the differential equation of an oscillator can be written as a sum of sinusoids.

.bashrc alias for a command with fixed second parameter

The test team as an enemy of development? And how can this be avoided?

Inverse square law not accurate for non-point masses?

draw a pulley system

How do I say "this must not happen"?

How to make triangles with rounded sides and corners? (squircle with 3 sides)

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

How does the body cool itself in a stillsuit?



Mixing bibliographic styles in Biblatex



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)biblatex: multiple stylesIndependent publication list with numbered list using biblatex and refsectionbiblatex: different bibstyles in the same document?Suppressing em-dashs for recurrent authors and letter suffixes for years when using biblatex-chicagoBiblatex / Biber full citation for first occurrence onlyMultilingual bibliography using XeTeX, biblatex and polyglossiaBiblatex: 1) changing separator, 2) repeating authorBiblatex citation and bibliography misbehaving in Texmaker - help!Beginners guide for biblatex BY EXAMPLEBiblatex mla - no bibliography, no references, no nothingUnconventional bibliography style with BibLaTeXBibLaTeX: Citation Sorting with Split Bibliographies and FiltersPrinting “ibid” for biblatex-chicago authordate style










7















Biblatex allows multiple bibliographies to be printed. How do I make one bilbiography use author-year style while make another use a numerical style? I've heard that this is bad typography but I want to do it to distinguish between actual references to literature (author-year) and image credits (which I hope to do numerically).



I've read through the Biblatex documentation and it doesn't seem to help.










share|improve this question



















  • 1





    Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

    – moewe
    Apr 29 '14 at 17:34






  • 2





    I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

    – vonbrand
    Apr 29 '14 at 20:15











  • I've found a hack that solves my question, which I have posted as an answer below.

    – Herng Yi
    Apr 30 '14 at 6:28















7















Biblatex allows multiple bibliographies to be printed. How do I make one bilbiography use author-year style while make another use a numerical style? I've heard that this is bad typography but I want to do it to distinguish between actual references to literature (author-year) and image credits (which I hope to do numerically).



I've read through the Biblatex documentation and it doesn't seem to help.










share|improve this question



















  • 1





    Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

    – moewe
    Apr 29 '14 at 17:34






  • 2





    I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

    – vonbrand
    Apr 29 '14 at 20:15











  • I've found a hack that solves my question, which I have posted as an answer below.

    – Herng Yi
    Apr 30 '14 at 6:28













7












7








7








Biblatex allows multiple bibliographies to be printed. How do I make one bilbiography use author-year style while make another use a numerical style? I've heard that this is bad typography but I want to do it to distinguish between actual references to literature (author-year) and image credits (which I hope to do numerically).



I've read through the Biblatex documentation and it doesn't seem to help.










share|improve this question
















Biblatex allows multiple bibliographies to be printed. How do I make one bilbiography use author-year style while make another use a numerical style? I've heard that this is bad typography but I want to do it to distinguish between actual references to literature (author-year) and image credits (which I hope to do numerically).



I've read through the Biblatex documentation and it doesn't seem to help.







biblatex






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 30 '14 at 6:16









lockstep

193k54594723




193k54594723










asked Apr 29 '14 at 14:15









Herng YiHerng Yi

355211




355211







  • 1





    Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

    – moewe
    Apr 29 '14 at 17:34






  • 2





    I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

    – vonbrand
    Apr 29 '14 at 20:15











  • I've found a hack that solves my question, which I have posted as an answer below.

    – Herng Yi
    Apr 30 '14 at 6:28












  • 1





    Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

    – moewe
    Apr 29 '14 at 17:34






  • 2





    I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

    – vonbrand
    Apr 29 '14 at 20:15











  • I've found a hack that solves my question, which I have posted as an answer below.

    – Herng Yi
    Apr 30 '14 at 6:28







1




1





Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

– moewe
Apr 29 '14 at 17:34





Please see biblatex: multiple styles and more recently biblatex: different bibstyles in the same document?.

– moewe
Apr 29 '14 at 17:34




2




2





I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

– vonbrand
Apr 29 '14 at 20:15





I'd look at some book that you find visually pleasing, and check how they do it (not the LaTeX source, the layout). Using different syles is just jarring, IMVHO.

– vonbrand
Apr 29 '14 at 20:15













I've found a hack that solves my question, which I have posted as an answer below.

– Herng Yi
Apr 30 '14 at 6:28





I've found a hack that solves my question, which I have posted as an answer below.

– Herng Yi
Apr 30 '14 at 6:28










2 Answers
2






active

oldest

votes


















6














After much searching on Tex.StackExchange, I put together a hack that produced this:



enter image description here



I hope my code will be of use to others who want to do something similar.



Code:



documentclassarticle
usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.
]biblatex
addbibresourceBibliography.bib

%Copied from numeric.cbx to imitate numerical citations.
provideboolbbx:subentry
newbibmacro*citenum%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "renewbibmacro*cite" would have caused all the author-year citations to become numeric too.
printtext[bibhyperref]%If you ever want to use hyperref
printfieldprefixnumber%
printfieldlabelnumber%
ifboolbbx:subentry
printfieldentrysetcount


%Copied from numeric.cbx to define a new numeric citation command for @online entries.
DeclareCiteCommandconline[mkbibbrackets]
usebibmacroprenote
usebibmacrociteindex%
usebibmacrocitenum%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.
multicitedelim
usebibmacropostnote

begindocument
Cite books, parenciteBook parenciteBook2

Cite online stuff, conlineOnline conlineOnline2

%Print the normal author-year bibliography
printbibliography[nottype=online]

%Redefine the bibliography environment to imitate the numeric citation style
defbibenvironmentbibliography
list
printfield[labelnumberwidth]labelnumber
setlengthlabelwidthlabelnumberwidth%
setlengthleftmarginlabelwidth%
setlengthlabelsepbiblabelsep%
addtolengthlabelsep1em
addtolengthleftmarginlabelsep%
setlengthitemsepbibitemsep%
setlengthparsepbibparsep%
renewcommand*makelabel[1]hss##1
endlist
item
DeclareFieldFormatlabelnumberwidthmkbibbrackets#1hspace-1.1em
printbibliography[type=online,title=Online,resetnumbers]
enddocument


The file Bibliography.bib contains:



@bookBook,
author = Author,
title = Title,
publisher = Publisher,
year = 2014,


@bookBook2,
author = Author2,
title = Title2,
publisher = Publisher2,
year = 2015,


@onlineOnline,
author = Author,
title = Title,
titleaddon = titleaddon,
subtitle = subtitle,
url= http://tex.stackexchange.com/,


@onlineOnline2,
author = Author2,
title = Title2,
titleaddon = titleaddon2,
subtitle = subtitle2,
url= http://tex.stackexchange2.com/,






share|improve this answer






























    0














    Talking about distinguishing between literature and credits, I need something similar.



    So, an experiment: (not in mixing two styles, but in having two streams of information)



    Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom photocite), and a corresponding bib driver (DeclareBibliographyDriverphoto), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:



    image credits separate from references



    MWEB



    RequirePackagefilecontents

    %dbx
    %bbx
    %cbx
    %lbx
    %bib
    %ist


    %:::::::::::::::::::::::::::::::::::::::::::::
    beginfilecontents*photo.dbx
    DeclareDatamodelFields[type=field, datatype=literal]
    photoname,
    photographer,

    DeclareLanguageMappingenglishenglish-photo


    endinput
    endfilecontents*
    %====================================





    %:::::::::::::::::::::::::::::::::::::::::::::
    beginfilecontents*photo.bbx
    ProvidesFilephoto.bbx[2006/04/09 v1.0 biblatex bibliography style]
    RequireBibliographyStyleext-authortitle-ibid
    %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    DeclareBibliographyDriverphoto%
    usebibmacrobegentry
    usebibmacrophoto-countaddspaceusebibmacrophotoby-bib
    usebibmacrofinentry





    DeclareSortingTemplatephotosort
    sort
    fieldphotographer

    sort
    fieldphotoname





    newcounterphotonum
    setcounterphotonum0
    newcommandincrphotonumrefstepcounterphotonum


    endinput
    endfilecontents*
    %====================================



    %:::::::::::::::::::::::::::::::::::::::::::::
    beginfilecontents*photo.cbx
    ProvidesFilephoto.cbx[2019-04-09 v1.0 biblatex citation style]
    RequireCitationStyleext-authortitle-ibid

    %~~~~~~~~~~~~~~~~~~~
    % fieldformats: photo
    DeclareFieldFormatphotonamemkbibquote#1
    DeclareFieldFormatphotographer#1


    %~~~~~~~~~~~~~~~~~~~
    % bibmacros
    %======================= photoname
    newbibmacrogetphotoname%
    printfieldphotoname%


    %======================= photographer
    newbibmacrogetphotographer%
    printfieldphotographer%

    %======================= photoby-caption
    newbibmacrophotoby-caption%
    iffieldundefphotonameusebibmacrogetphotoname%
    iffieldundefphotographeraddspacemkbibparensusebibmacrogetphotographer%



    %======================= photoby-bib
    newbibmacrophotoby-bib%
    iffieldundefphotonameusebibmacrogetphotoname%
    iffieldundefphotographeraddcommaaddspacebibstringphotobyaddspaceusebibmacrogetphotographerisdot%



    newbibmacrophoto-count%
    incrphotonummkbibbracketsthephotonum


    %~~~~~~~~~~~~~~~~~~~
    % citecommands
    %======================= photocite
    DeclareCiteCommandphotocite%
    %@@@@@@@@@@@@@@@@ prenote
    %
    usebibmacroprenote%
    %
    %@@@@@@@@@@@@@@@@ item
    %
    ifentrytypephoto%
    %photo ==================================
    usebibmacrophoto-countaddspaceusebibmacrophotoby-caption%
    %
    %@@@@@@@@@@@@@@@@ delim
    %
    %@@@@@@@@@@@@@@@@ postnote
    %
    usebibmacropostnote%







    endinput
    endfilecontents*
    %====================================

    %====================================
    beginfilecontents*english-photo.lbx
    ProvidesFileenglish-photo.lbx[2019/04/09 english with additions for photo citations]
    InheritBibliographyExtrasenglish
    NewBibliographyStringphotoby
    DeclareBibliographyStrings%
    inherit = english,
    photoby = photo byphoto by,


    endinput
    endfilecontents*
    %====================================






    %====================================
    beginfilecontents*jobname.bib

    @photoph1,
    photoname=The Woods,
    photographer=M Woods,
    keywords=photo,


    @photoph2,
    photoname=The Sky,
    photographer=A B Skier,
    keywords=photo,

    @photoph3,
    photoname=The Air,
    photographer=O Ayre,
    keywords=photo,

    @photoph4,
    photoname=The Lake,
    photographer=N Lakes,
    keywords=photo,

    @photoph5,
    photoname=The Sea,
    photographer=R Seasons,
    keywords=photo,


    endfilecontents*
    %====================================








    documentclass[12pt]article
    usepackagefontspec
    setmainfontNoto Serif
    usepackage[british]babel
    usepackagecsquotes


    usepackage[
    style=photo,
    ]biblatex
    defbibnoteabibnotePlain bibliography
    defbibnotephotobibnoteList of photos


    usepackagexcolor
    pagecolorred!3

    addbibresourcebiblatex-examples.bib
    addbibresourcejobname.bib

    begindocument
    sectionIntroduction
    Some plain cites:
    citekastenholz
    citevangennep

    Some photo cites: air: photociteph3, sky: photociteph2, and sea: photociteph5.

    printbibliography[prenote=abibnote,notkeyword=photo]


    setcounterphotonum0
    newrefcontext[sorting=none]
    printbibliography[
    keyword=photo,
    title=Photos,
    prenote=photobibnote,
    ]

    begincenter
    textemdash
    textemdash
    endcenter
    enddocument


    Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.



    Printing the citations rotated sideways (and/or as part of captions) is also possible.



    On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.





    share























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "85"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f174229%2fmixing-bibliographic-styles-in-biblatex%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6














      After much searching on Tex.StackExchange, I put together a hack that produced this:



      enter image description here



      I hope my code will be of use to others who want to do something similar.



      Code:



      documentclassarticle
      usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
      style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
      defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.
      ]biblatex
      addbibresourceBibliography.bib

      %Copied from numeric.cbx to imitate numerical citations.
      provideboolbbx:subentry
      newbibmacro*citenum%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "renewbibmacro*cite" would have caused all the author-year citations to become numeric too.
      printtext[bibhyperref]%If you ever want to use hyperref
      printfieldprefixnumber%
      printfieldlabelnumber%
      ifboolbbx:subentry
      printfieldentrysetcount


      %Copied from numeric.cbx to define a new numeric citation command for @online entries.
      DeclareCiteCommandconline[mkbibbrackets]
      usebibmacroprenote
      usebibmacrociteindex%
      usebibmacrocitenum%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.
      multicitedelim
      usebibmacropostnote

      begindocument
      Cite books, parenciteBook parenciteBook2

      Cite online stuff, conlineOnline conlineOnline2

      %Print the normal author-year bibliography
      printbibliography[nottype=online]

      %Redefine the bibliography environment to imitate the numeric citation style
      defbibenvironmentbibliography
      list
      printfield[labelnumberwidth]labelnumber
      setlengthlabelwidthlabelnumberwidth%
      setlengthleftmarginlabelwidth%
      setlengthlabelsepbiblabelsep%
      addtolengthlabelsep1em
      addtolengthleftmarginlabelsep%
      setlengthitemsepbibitemsep%
      setlengthparsepbibparsep%
      renewcommand*makelabel[1]hss##1
      endlist
      item
      DeclareFieldFormatlabelnumberwidthmkbibbrackets#1hspace-1.1em
      printbibliography[type=online,title=Online,resetnumbers]
      enddocument


      The file Bibliography.bib contains:



      @bookBook,
      author = Author,
      title = Title,
      publisher = Publisher,
      year = 2014,


      @bookBook2,
      author = Author2,
      title = Title2,
      publisher = Publisher2,
      year = 2015,


      @onlineOnline,
      author = Author,
      title = Title,
      titleaddon = titleaddon,
      subtitle = subtitle,
      url= http://tex.stackexchange.com/,


      @onlineOnline2,
      author = Author2,
      title = Title2,
      titleaddon = titleaddon2,
      subtitle = subtitle2,
      url= http://tex.stackexchange2.com/,






      share|improve this answer



























        6














        After much searching on Tex.StackExchange, I put together a hack that produced this:



        enter image description here



        I hope my code will be of use to others who want to do something similar.



        Code:



        documentclassarticle
        usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
        style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
        defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.
        ]biblatex
        addbibresourceBibliography.bib

        %Copied from numeric.cbx to imitate numerical citations.
        provideboolbbx:subentry
        newbibmacro*citenum%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "renewbibmacro*cite" would have caused all the author-year citations to become numeric too.
        printtext[bibhyperref]%If you ever want to use hyperref
        printfieldprefixnumber%
        printfieldlabelnumber%
        ifboolbbx:subentry
        printfieldentrysetcount


        %Copied from numeric.cbx to define a new numeric citation command for @online entries.
        DeclareCiteCommandconline[mkbibbrackets]
        usebibmacroprenote
        usebibmacrociteindex%
        usebibmacrocitenum%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.
        multicitedelim
        usebibmacropostnote

        begindocument
        Cite books, parenciteBook parenciteBook2

        Cite online stuff, conlineOnline conlineOnline2

        %Print the normal author-year bibliography
        printbibliography[nottype=online]

        %Redefine the bibliography environment to imitate the numeric citation style
        defbibenvironmentbibliography
        list
        printfield[labelnumberwidth]labelnumber
        setlengthlabelwidthlabelnumberwidth%
        setlengthleftmarginlabelwidth%
        setlengthlabelsepbiblabelsep%
        addtolengthlabelsep1em
        addtolengthleftmarginlabelsep%
        setlengthitemsepbibitemsep%
        setlengthparsepbibparsep%
        renewcommand*makelabel[1]hss##1
        endlist
        item
        DeclareFieldFormatlabelnumberwidthmkbibbrackets#1hspace-1.1em
        printbibliography[type=online,title=Online,resetnumbers]
        enddocument


        The file Bibliography.bib contains:



        @bookBook,
        author = Author,
        title = Title,
        publisher = Publisher,
        year = 2014,


        @bookBook2,
        author = Author2,
        title = Title2,
        publisher = Publisher2,
        year = 2015,


        @onlineOnline,
        author = Author,
        title = Title,
        titleaddon = titleaddon,
        subtitle = subtitle,
        url= http://tex.stackexchange.com/,


        @onlineOnline2,
        author = Author2,
        title = Title2,
        titleaddon = titleaddon2,
        subtitle = subtitle2,
        url= http://tex.stackexchange2.com/,






        share|improve this answer

























          6












          6








          6







          After much searching on Tex.StackExchange, I put together a hack that produced this:



          enter image description here



          I hope my code will be of use to others who want to do something similar.



          Code:



          documentclassarticle
          usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
          style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
          defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.
          ]biblatex
          addbibresourceBibliography.bib

          %Copied from numeric.cbx to imitate numerical citations.
          provideboolbbx:subentry
          newbibmacro*citenum%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "renewbibmacro*cite" would have caused all the author-year citations to become numeric too.
          printtext[bibhyperref]%If you ever want to use hyperref
          printfieldprefixnumber%
          printfieldlabelnumber%
          ifboolbbx:subentry
          printfieldentrysetcount


          %Copied from numeric.cbx to define a new numeric citation command for @online entries.
          DeclareCiteCommandconline[mkbibbrackets]
          usebibmacroprenote
          usebibmacrociteindex%
          usebibmacrocitenum%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.
          multicitedelim
          usebibmacropostnote

          begindocument
          Cite books, parenciteBook parenciteBook2

          Cite online stuff, conlineOnline conlineOnline2

          %Print the normal author-year bibliography
          printbibliography[nottype=online]

          %Redefine the bibliography environment to imitate the numeric citation style
          defbibenvironmentbibliography
          list
          printfield[labelnumberwidth]labelnumber
          setlengthlabelwidthlabelnumberwidth%
          setlengthleftmarginlabelwidth%
          setlengthlabelsepbiblabelsep%
          addtolengthlabelsep1em
          addtolengthleftmarginlabelsep%
          setlengthitemsepbibitemsep%
          setlengthparsepbibparsep%
          renewcommand*makelabel[1]hss##1
          endlist
          item
          DeclareFieldFormatlabelnumberwidthmkbibbrackets#1hspace-1.1em
          printbibliography[type=online,title=Online,resetnumbers]
          enddocument


          The file Bibliography.bib contains:



          @bookBook,
          author = Author,
          title = Title,
          publisher = Publisher,
          year = 2014,


          @bookBook2,
          author = Author2,
          title = Title2,
          publisher = Publisher2,
          year = 2015,


          @onlineOnline,
          author = Author,
          title = Title,
          titleaddon = titleaddon,
          subtitle = subtitle,
          url= http://tex.stackexchange.com/,


          @onlineOnline2,
          author = Author2,
          title = Title2,
          titleaddon = titleaddon2,
          subtitle = subtitle2,
          url= http://tex.stackexchange2.com/,






          share|improve this answer













          After much searching on Tex.StackExchange, I put together a hack that produced this:



          enter image description here



          I hope my code will be of use to others who want to do something similar.



          Code:



          documentclassarticle
          usepackage[backend=biber, %I think this should work for BibTex too, but I'm not sure.
          style=authoryear, %Set author-year as the default style; later hacks will produce a fake numeric style.
          defernumbers %Works together with resetnumbers so that the numbering of numeric entries is independent of the author-year citations.
          ]biblatex
          addbibresourceBibliography.bib

          %Copied from numeric.cbx to imitate numerical citations.
          provideboolbbx:subentry
          newbibmacro*citenum%Note: the original macro was called "cite". I did not redefine "cite", but instead defined a new macro "citenum", because the author-year citations use the "cite" macro too. "renewbibmacro*cite" would have caused all the author-year citations to become numeric too.
          printtext[bibhyperref]%If you ever want to use hyperref
          printfieldprefixnumber%
          printfieldlabelnumber%
          ifboolbbx:subentry
          printfieldentrysetcount


          %Copied from numeric.cbx to define a new numeric citation command for @online entries.
          DeclareCiteCommandconline[mkbibbrackets]
          usebibmacroprenote
          usebibmacrociteindex%
          usebibmacrocitenum%Note: this was originally "cite" but I changed it to "citenum" to avoid clashes with the author-year style.
          multicitedelim
          usebibmacropostnote

          begindocument
          Cite books, parenciteBook parenciteBook2

          Cite online stuff, conlineOnline conlineOnline2

          %Print the normal author-year bibliography
          printbibliography[nottype=online]

          %Redefine the bibliography environment to imitate the numeric citation style
          defbibenvironmentbibliography
          list
          printfield[labelnumberwidth]labelnumber
          setlengthlabelwidthlabelnumberwidth%
          setlengthleftmarginlabelwidth%
          setlengthlabelsepbiblabelsep%
          addtolengthlabelsep1em
          addtolengthleftmarginlabelsep%
          setlengthitemsepbibitemsep%
          setlengthparsepbibparsep%
          renewcommand*makelabel[1]hss##1
          endlist
          item
          DeclareFieldFormatlabelnumberwidthmkbibbrackets#1hspace-1.1em
          printbibliography[type=online,title=Online,resetnumbers]
          enddocument


          The file Bibliography.bib contains:



          @bookBook,
          author = Author,
          title = Title,
          publisher = Publisher,
          year = 2014,


          @bookBook2,
          author = Author2,
          title = Title2,
          publisher = Publisher2,
          year = 2015,


          @onlineOnline,
          author = Author,
          title = Title,
          titleaddon = titleaddon,
          subtitle = subtitle,
          url= http://tex.stackexchange.com/,


          @onlineOnline2,
          author = Author2,
          title = Title2,
          titleaddon = titleaddon2,
          subtitle = subtitle2,
          url= http://tex.stackexchange2.com/,







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 30 '14 at 6:00









          Herng YiHerng Yi

          355211




          355211





















              0














              Talking about distinguishing between literature and credits, I need something similar.



              So, an experiment: (not in mixing two styles, but in having two streams of information)



              Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom photocite), and a corresponding bib driver (DeclareBibliographyDriverphoto), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:



              image credits separate from references



              MWEB



              RequirePackagefilecontents

              %dbx
              %bbx
              %cbx
              %lbx
              %bib
              %ist


              %:::::::::::::::::::::::::::::::::::::::::::::
              beginfilecontents*photo.dbx
              DeclareDatamodelFields[type=field, datatype=literal]
              photoname,
              photographer,

              DeclareLanguageMappingenglishenglish-photo


              endinput
              endfilecontents*
              %====================================





              %:::::::::::::::::::::::::::::::::::::::::::::
              beginfilecontents*photo.bbx
              ProvidesFilephoto.bbx[2006/04/09 v1.0 biblatex bibliography style]
              RequireBibliographyStyleext-authortitle-ibid
              %
              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
              DeclareBibliographyDriverphoto%
              usebibmacrobegentry
              usebibmacrophoto-countaddspaceusebibmacrophotoby-bib
              usebibmacrofinentry





              DeclareSortingTemplatephotosort
              sort
              fieldphotographer

              sort
              fieldphotoname





              newcounterphotonum
              setcounterphotonum0
              newcommandincrphotonumrefstepcounterphotonum


              endinput
              endfilecontents*
              %====================================



              %:::::::::::::::::::::::::::::::::::::::::::::
              beginfilecontents*photo.cbx
              ProvidesFilephoto.cbx[2019-04-09 v1.0 biblatex citation style]
              RequireCitationStyleext-authortitle-ibid

              %~~~~~~~~~~~~~~~~~~~
              % fieldformats: photo
              DeclareFieldFormatphotonamemkbibquote#1
              DeclareFieldFormatphotographer#1


              %~~~~~~~~~~~~~~~~~~~
              % bibmacros
              %======================= photoname
              newbibmacrogetphotoname%
              printfieldphotoname%


              %======================= photographer
              newbibmacrogetphotographer%
              printfieldphotographer%

              %======================= photoby-caption
              newbibmacrophotoby-caption%
              iffieldundefphotonameusebibmacrogetphotoname%
              iffieldundefphotographeraddspacemkbibparensusebibmacrogetphotographer%



              %======================= photoby-bib
              newbibmacrophotoby-bib%
              iffieldundefphotonameusebibmacrogetphotoname%
              iffieldundefphotographeraddcommaaddspacebibstringphotobyaddspaceusebibmacrogetphotographerisdot%



              newbibmacrophoto-count%
              incrphotonummkbibbracketsthephotonum


              %~~~~~~~~~~~~~~~~~~~
              % citecommands
              %======================= photocite
              DeclareCiteCommandphotocite%
              %@@@@@@@@@@@@@@@@ prenote
              %
              usebibmacroprenote%
              %
              %@@@@@@@@@@@@@@@@ item
              %
              ifentrytypephoto%
              %photo ==================================
              usebibmacrophoto-countaddspaceusebibmacrophotoby-caption%
              %
              %@@@@@@@@@@@@@@@@ delim
              %
              %@@@@@@@@@@@@@@@@ postnote
              %
              usebibmacropostnote%







              endinput
              endfilecontents*
              %====================================

              %====================================
              beginfilecontents*english-photo.lbx
              ProvidesFileenglish-photo.lbx[2019/04/09 english with additions for photo citations]
              InheritBibliographyExtrasenglish
              NewBibliographyStringphotoby
              DeclareBibliographyStrings%
              inherit = english,
              photoby = photo byphoto by,


              endinput
              endfilecontents*
              %====================================






              %====================================
              beginfilecontents*jobname.bib

              @photoph1,
              photoname=The Woods,
              photographer=M Woods,
              keywords=photo,


              @photoph2,
              photoname=The Sky,
              photographer=A B Skier,
              keywords=photo,

              @photoph3,
              photoname=The Air,
              photographer=O Ayre,
              keywords=photo,

              @photoph4,
              photoname=The Lake,
              photographer=N Lakes,
              keywords=photo,

              @photoph5,
              photoname=The Sea,
              photographer=R Seasons,
              keywords=photo,


              endfilecontents*
              %====================================








              documentclass[12pt]article
              usepackagefontspec
              setmainfontNoto Serif
              usepackage[british]babel
              usepackagecsquotes


              usepackage[
              style=photo,
              ]biblatex
              defbibnoteabibnotePlain bibliography
              defbibnotephotobibnoteList of photos


              usepackagexcolor
              pagecolorred!3

              addbibresourcebiblatex-examples.bib
              addbibresourcejobname.bib

              begindocument
              sectionIntroduction
              Some plain cites:
              citekastenholz
              citevangennep

              Some photo cites: air: photociteph3, sky: photociteph2, and sea: photociteph5.

              printbibliography[prenote=abibnote,notkeyword=photo]


              setcounterphotonum0
              newrefcontext[sorting=none]
              printbibliography[
              keyword=photo,
              title=Photos,
              prenote=photobibnote,
              ]

              begincenter
              textemdash
              textemdash
              endcenter
              enddocument


              Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.



              Printing the citations rotated sideways (and/or as part of captions) is also possible.



              On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.





              share



























                0














                Talking about distinguishing between literature and credits, I need something similar.



                So, an experiment: (not in mixing two styles, but in having two streams of information)



                Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom photocite), and a corresponding bib driver (DeclareBibliographyDriverphoto), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:



                image credits separate from references



                MWEB



                RequirePackagefilecontents

                %dbx
                %bbx
                %cbx
                %lbx
                %bib
                %ist


                %:::::::::::::::::::::::::::::::::::::::::::::
                beginfilecontents*photo.dbx
                DeclareDatamodelFields[type=field, datatype=literal]
                photoname,
                photographer,

                DeclareLanguageMappingenglishenglish-photo


                endinput
                endfilecontents*
                %====================================





                %:::::::::::::::::::::::::::::::::::::::::::::
                beginfilecontents*photo.bbx
                ProvidesFilephoto.bbx[2006/04/09 v1.0 biblatex bibliography style]
                RequireBibliographyStyleext-authortitle-ibid
                %
                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                DeclareBibliographyDriverphoto%
                usebibmacrobegentry
                usebibmacrophoto-countaddspaceusebibmacrophotoby-bib
                usebibmacrofinentry





                DeclareSortingTemplatephotosort
                sort
                fieldphotographer

                sort
                fieldphotoname





                newcounterphotonum
                setcounterphotonum0
                newcommandincrphotonumrefstepcounterphotonum


                endinput
                endfilecontents*
                %====================================



                %:::::::::::::::::::::::::::::::::::::::::::::
                beginfilecontents*photo.cbx
                ProvidesFilephoto.cbx[2019-04-09 v1.0 biblatex citation style]
                RequireCitationStyleext-authortitle-ibid

                %~~~~~~~~~~~~~~~~~~~
                % fieldformats: photo
                DeclareFieldFormatphotonamemkbibquote#1
                DeclareFieldFormatphotographer#1


                %~~~~~~~~~~~~~~~~~~~
                % bibmacros
                %======================= photoname
                newbibmacrogetphotoname%
                printfieldphotoname%


                %======================= photographer
                newbibmacrogetphotographer%
                printfieldphotographer%

                %======================= photoby-caption
                newbibmacrophotoby-caption%
                iffieldundefphotonameusebibmacrogetphotoname%
                iffieldundefphotographeraddspacemkbibparensusebibmacrogetphotographer%



                %======================= photoby-bib
                newbibmacrophotoby-bib%
                iffieldundefphotonameusebibmacrogetphotoname%
                iffieldundefphotographeraddcommaaddspacebibstringphotobyaddspaceusebibmacrogetphotographerisdot%



                newbibmacrophoto-count%
                incrphotonummkbibbracketsthephotonum


                %~~~~~~~~~~~~~~~~~~~
                % citecommands
                %======================= photocite
                DeclareCiteCommandphotocite%
                %@@@@@@@@@@@@@@@@ prenote
                %
                usebibmacroprenote%
                %
                %@@@@@@@@@@@@@@@@ item
                %
                ifentrytypephoto%
                %photo ==================================
                usebibmacrophoto-countaddspaceusebibmacrophotoby-caption%
                %
                %@@@@@@@@@@@@@@@@ delim
                %
                %@@@@@@@@@@@@@@@@ postnote
                %
                usebibmacropostnote%







                endinput
                endfilecontents*
                %====================================

                %====================================
                beginfilecontents*english-photo.lbx
                ProvidesFileenglish-photo.lbx[2019/04/09 english with additions for photo citations]
                InheritBibliographyExtrasenglish
                NewBibliographyStringphotoby
                DeclareBibliographyStrings%
                inherit = english,
                photoby = photo byphoto by,


                endinput
                endfilecontents*
                %====================================






                %====================================
                beginfilecontents*jobname.bib

                @photoph1,
                photoname=The Woods,
                photographer=M Woods,
                keywords=photo,


                @photoph2,
                photoname=The Sky,
                photographer=A B Skier,
                keywords=photo,

                @photoph3,
                photoname=The Air,
                photographer=O Ayre,
                keywords=photo,

                @photoph4,
                photoname=The Lake,
                photographer=N Lakes,
                keywords=photo,

                @photoph5,
                photoname=The Sea,
                photographer=R Seasons,
                keywords=photo,


                endfilecontents*
                %====================================








                documentclass[12pt]article
                usepackagefontspec
                setmainfontNoto Serif
                usepackage[british]babel
                usepackagecsquotes


                usepackage[
                style=photo,
                ]biblatex
                defbibnoteabibnotePlain bibliography
                defbibnotephotobibnoteList of photos


                usepackagexcolor
                pagecolorred!3

                addbibresourcebiblatex-examples.bib
                addbibresourcejobname.bib

                begindocument
                sectionIntroduction
                Some plain cites:
                citekastenholz
                citevangennep

                Some photo cites: air: photociteph3, sky: photociteph2, and sea: photociteph5.

                printbibliography[prenote=abibnote,notkeyword=photo]


                setcounterphotonum0
                newrefcontext[sorting=none]
                printbibliography[
                keyword=photo,
                title=Photos,
                prenote=photobibnote,
                ]

                begincenter
                textemdash
                textemdash
                endcenter
                enddocument


                Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.



                Printing the citations rotated sideways (and/or as part of captions) is also possible.



                On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.





                share

























                  0












                  0








                  0







                  Talking about distinguishing between literature and credits, I need something similar.



                  So, an experiment: (not in mixing two styles, but in having two streams of information)



                  Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom photocite), and a corresponding bib driver (DeclareBibliographyDriverphoto), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:



                  image credits separate from references



                  MWEB



                  RequirePackagefilecontents

                  %dbx
                  %bbx
                  %cbx
                  %lbx
                  %bib
                  %ist


                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.dbx
                  DeclareDatamodelFields[type=field, datatype=literal]
                  photoname,
                  photographer,

                  DeclareLanguageMappingenglishenglish-photo


                  endinput
                  endfilecontents*
                  %====================================





                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.bbx
                  ProvidesFilephoto.bbx[2006/04/09 v1.0 biblatex bibliography style]
                  RequireBibliographyStyleext-authortitle-ibid
                  %
                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                  DeclareBibliographyDriverphoto%
                  usebibmacrobegentry
                  usebibmacrophoto-countaddspaceusebibmacrophotoby-bib
                  usebibmacrofinentry





                  DeclareSortingTemplatephotosort
                  sort
                  fieldphotographer

                  sort
                  fieldphotoname





                  newcounterphotonum
                  setcounterphotonum0
                  newcommandincrphotonumrefstepcounterphotonum


                  endinput
                  endfilecontents*
                  %====================================



                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.cbx
                  ProvidesFilephoto.cbx[2019-04-09 v1.0 biblatex citation style]
                  RequireCitationStyleext-authortitle-ibid

                  %~~~~~~~~~~~~~~~~~~~
                  % fieldformats: photo
                  DeclareFieldFormatphotonamemkbibquote#1
                  DeclareFieldFormatphotographer#1


                  %~~~~~~~~~~~~~~~~~~~
                  % bibmacros
                  %======================= photoname
                  newbibmacrogetphotoname%
                  printfieldphotoname%


                  %======================= photographer
                  newbibmacrogetphotographer%
                  printfieldphotographer%

                  %======================= photoby-caption
                  newbibmacrophotoby-caption%
                  iffieldundefphotonameusebibmacrogetphotoname%
                  iffieldundefphotographeraddspacemkbibparensusebibmacrogetphotographer%



                  %======================= photoby-bib
                  newbibmacrophotoby-bib%
                  iffieldundefphotonameusebibmacrogetphotoname%
                  iffieldundefphotographeraddcommaaddspacebibstringphotobyaddspaceusebibmacrogetphotographerisdot%



                  newbibmacrophoto-count%
                  incrphotonummkbibbracketsthephotonum


                  %~~~~~~~~~~~~~~~~~~~
                  % citecommands
                  %======================= photocite
                  DeclareCiteCommandphotocite%
                  %@@@@@@@@@@@@@@@@ prenote
                  %
                  usebibmacroprenote%
                  %
                  %@@@@@@@@@@@@@@@@ item
                  %
                  ifentrytypephoto%
                  %photo ==================================
                  usebibmacrophoto-countaddspaceusebibmacrophotoby-caption%
                  %
                  %@@@@@@@@@@@@@@@@ delim
                  %
                  %@@@@@@@@@@@@@@@@ postnote
                  %
                  usebibmacropostnote%







                  endinput
                  endfilecontents*
                  %====================================

                  %====================================
                  beginfilecontents*english-photo.lbx
                  ProvidesFileenglish-photo.lbx[2019/04/09 english with additions for photo citations]
                  InheritBibliographyExtrasenglish
                  NewBibliographyStringphotoby
                  DeclareBibliographyStrings%
                  inherit = english,
                  photoby = photo byphoto by,


                  endinput
                  endfilecontents*
                  %====================================






                  %====================================
                  beginfilecontents*jobname.bib

                  @photoph1,
                  photoname=The Woods,
                  photographer=M Woods,
                  keywords=photo,


                  @photoph2,
                  photoname=The Sky,
                  photographer=A B Skier,
                  keywords=photo,

                  @photoph3,
                  photoname=The Air,
                  photographer=O Ayre,
                  keywords=photo,

                  @photoph4,
                  photoname=The Lake,
                  photographer=N Lakes,
                  keywords=photo,

                  @photoph5,
                  photoname=The Sea,
                  photographer=R Seasons,
                  keywords=photo,


                  endfilecontents*
                  %====================================








                  documentclass[12pt]article
                  usepackagefontspec
                  setmainfontNoto Serif
                  usepackage[british]babel
                  usepackagecsquotes


                  usepackage[
                  style=photo,
                  ]biblatex
                  defbibnoteabibnotePlain bibliography
                  defbibnotephotobibnoteList of photos


                  usepackagexcolor
                  pagecolorred!3

                  addbibresourcebiblatex-examples.bib
                  addbibresourcejobname.bib

                  begindocument
                  sectionIntroduction
                  Some plain cites:
                  citekastenholz
                  citevangennep

                  Some photo cites: air: photociteph3, sky: photociteph2, and sea: photociteph5.

                  printbibliography[prenote=abibnote,notkeyword=photo]


                  setcounterphotonum0
                  newrefcontext[sorting=none]
                  printbibliography[
                  keyword=photo,
                  title=Photos,
                  prenote=photobibnote,
                  ]

                  begincenter
                  textemdash
                  textemdash
                  endcenter
                  enddocument


                  Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.



                  Printing the citations rotated sideways (and/or as part of captions) is also possible.



                  On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.





                  share













                  Talking about distinguishing between literature and credits, I need something similar.



                  So, an experiment: (not in mixing two styles, but in having two streams of information)



                  Using an extended author-title style as a base (ext-authortitle-ibid) to make things easier, and adding photographer and photoname as fields to use in an @photo bib entrytype, and using a counter to number the cited photos in sequence and printing that number as part of the citation (with a custom photocite), and a corresponding bib driver (DeclareBibliographyDriverphoto), and using a keyword, "photo", to split the bibliographies, and remembering to reset the photocounter to zero just before the photo bibliography prints (and to keep the photo bibliography unsorted as well (via a refcontext) so it, too, is in citation order), we get:



                  image credits separate from references



                  MWEB



                  RequirePackagefilecontents

                  %dbx
                  %bbx
                  %cbx
                  %lbx
                  %bib
                  %ist


                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.dbx
                  DeclareDatamodelFields[type=field, datatype=literal]
                  photoname,
                  photographer,

                  DeclareLanguageMappingenglishenglish-photo


                  endinput
                  endfilecontents*
                  %====================================





                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.bbx
                  ProvidesFilephoto.bbx[2006/04/09 v1.0 biblatex bibliography style]
                  RequireBibliographyStyleext-authortitle-ibid
                  %
                  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                  DeclareBibliographyDriverphoto%
                  usebibmacrobegentry
                  usebibmacrophoto-countaddspaceusebibmacrophotoby-bib
                  usebibmacrofinentry





                  DeclareSortingTemplatephotosort
                  sort
                  fieldphotographer

                  sort
                  fieldphotoname





                  newcounterphotonum
                  setcounterphotonum0
                  newcommandincrphotonumrefstepcounterphotonum


                  endinput
                  endfilecontents*
                  %====================================



                  %:::::::::::::::::::::::::::::::::::::::::::::
                  beginfilecontents*photo.cbx
                  ProvidesFilephoto.cbx[2019-04-09 v1.0 biblatex citation style]
                  RequireCitationStyleext-authortitle-ibid

                  %~~~~~~~~~~~~~~~~~~~
                  % fieldformats: photo
                  DeclareFieldFormatphotonamemkbibquote#1
                  DeclareFieldFormatphotographer#1


                  %~~~~~~~~~~~~~~~~~~~
                  % bibmacros
                  %======================= photoname
                  newbibmacrogetphotoname%
                  printfieldphotoname%


                  %======================= photographer
                  newbibmacrogetphotographer%
                  printfieldphotographer%

                  %======================= photoby-caption
                  newbibmacrophotoby-caption%
                  iffieldundefphotonameusebibmacrogetphotoname%
                  iffieldundefphotographeraddspacemkbibparensusebibmacrogetphotographer%



                  %======================= photoby-bib
                  newbibmacrophotoby-bib%
                  iffieldundefphotonameusebibmacrogetphotoname%
                  iffieldundefphotographeraddcommaaddspacebibstringphotobyaddspaceusebibmacrogetphotographerisdot%



                  newbibmacrophoto-count%
                  incrphotonummkbibbracketsthephotonum


                  %~~~~~~~~~~~~~~~~~~~
                  % citecommands
                  %======================= photocite
                  DeclareCiteCommandphotocite%
                  %@@@@@@@@@@@@@@@@ prenote
                  %
                  usebibmacroprenote%
                  %
                  %@@@@@@@@@@@@@@@@ item
                  %
                  ifentrytypephoto%
                  %photo ==================================
                  usebibmacrophoto-countaddspaceusebibmacrophotoby-caption%
                  %
                  %@@@@@@@@@@@@@@@@ delim
                  %
                  %@@@@@@@@@@@@@@@@ postnote
                  %
                  usebibmacropostnote%







                  endinput
                  endfilecontents*
                  %====================================

                  %====================================
                  beginfilecontents*english-photo.lbx
                  ProvidesFileenglish-photo.lbx[2019/04/09 english with additions for photo citations]
                  InheritBibliographyExtrasenglish
                  NewBibliographyStringphotoby
                  DeclareBibliographyStrings%
                  inherit = english,
                  photoby = photo byphoto by,


                  endinput
                  endfilecontents*
                  %====================================






                  %====================================
                  beginfilecontents*jobname.bib

                  @photoph1,
                  photoname=The Woods,
                  photographer=M Woods,
                  keywords=photo,


                  @photoph2,
                  photoname=The Sky,
                  photographer=A B Skier,
                  keywords=photo,

                  @photoph3,
                  photoname=The Air,
                  photographer=O Ayre,
                  keywords=photo,

                  @photoph4,
                  photoname=The Lake,
                  photographer=N Lakes,
                  keywords=photo,

                  @photoph5,
                  photoname=The Sea,
                  photographer=R Seasons,
                  keywords=photo,


                  endfilecontents*
                  %====================================








                  documentclass[12pt]article
                  usepackagefontspec
                  setmainfontNoto Serif
                  usepackage[british]babel
                  usepackagecsquotes


                  usepackage[
                  style=photo,
                  ]biblatex
                  defbibnoteabibnotePlain bibliography
                  defbibnotephotobibnoteList of photos


                  usepackagexcolor
                  pagecolorred!3

                  addbibresourcebiblatex-examples.bib
                  addbibresourcejobname.bib

                  begindocument
                  sectionIntroduction
                  Some plain cites:
                  citekastenholz
                  citevangennep

                  Some photo cites: air: photociteph3, sky: photociteph2, and sea: photociteph5.

                  printbibliography[prenote=abibnote,notkeyword=photo]


                  setcounterphotonum0
                  newrefcontext[sorting=none]
                  printbibliography[
                  keyword=photo,
                  title=Photos,
                  prenote=photobibnote,
                  ]

                  begincenter
                  textemdash
                  textemdash
                  endcenter
                  enddocument


                  Being able to classify the data into categories is key: entrytype and keyword help here (and also category, for that matter). The information could even be stored in, say, the @article entrytype with appropriate use of ifentrytype and ifkeyword (manual: 4.6.2 Stand-alone Tests, at p 233). There is also an entrysubtype available, for even greater granularity.



                  Printing the citations rotated sideways (and/or as part of captions) is also possible.



                  On a different solution path, different bib environments (to define what gets printed as the lookup label) combined with different sorting schemes is another methodology, since bibliographies are "just" list environments.






                  share











                  share


                  share










                  answered 6 mins ago









                  CicadaCicada

                  765




                  765



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f174229%2fmixing-bibliographic-styles-in-biblatex%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Lioubotyn Sommaire Géographie | Histoire | Population | Notes et références | Liens externes | Menu de navigationlubotin.kharkov.uamodifier« Recensements et estimations de la population depuis 1897 »« Office des statistiques d'Ukraine : population au 1er janvier 2010, 2011 et 2012 »« Office des statistiques d'Ukraine : population au 1er janvier 2011, 2012 et 2013 »Informations officiellesCartes topographiquesCarte routièrem

                      Isabella Eugénie Boyer Biographie | Références | Menu de navigationmodifiermodifier le codeComparator to Compute the Relative Value of a U.S. Dollar Amount – 1774 to Present.

                      Mpande kaSenzangakhona Biographie | Références | Menu de navigationmodifierMpande kaSenzangakhonavoir la liste des auteursm