Setting a new entrytype











up vote
5
down vote

favorite
1












Doing as it has been suggested on this site, and also having looked in the manual for biblatex.pdf, I cannot figure out the difference between DeclareDatamodeFields and DeclareDatamodeEntryfields. I only get the address field as the result (Paris in this case). pdflatex, biber.



MWE



documentclass{article}
usepackage[datamodel=manuscript,bibstyle=verbose,citestyle=verbose]{biblatex}
begin{filecontents}{manuscript.dbx}
DeclareDatamodelEntrytypes{manuscript}
DeclareDatamodelFields[type=field, datatype=literal]{datation,title,library}
DeclareDatamodelEntryfields[manuscript]{
title,
library,
datation}
end{filecontents}
begin{filecontents}{maniscript.bib}
@manuscript{P1470,
library={BNF},
address={Paris},
datation={textsc{viii}textsuperscript{e} s.}
end{filecontents}

bibliography{manuscript.bib}
begin{document}
nocite{*}

printbibliography
end{document}









share|improve this question









New contributor




Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    5
    down vote

    favorite
    1












    Doing as it has been suggested on this site, and also having looked in the manual for biblatex.pdf, I cannot figure out the difference between DeclareDatamodeFields and DeclareDatamodeEntryfields. I only get the address field as the result (Paris in this case). pdflatex, biber.



    MWE



    documentclass{article}
    usepackage[datamodel=manuscript,bibstyle=verbose,citestyle=verbose]{biblatex}
    begin{filecontents}{manuscript.dbx}
    DeclareDatamodelEntrytypes{manuscript}
    DeclareDatamodelFields[type=field, datatype=literal]{datation,title,library}
    DeclareDatamodelEntryfields[manuscript]{
    title,
    library,
    datation}
    end{filecontents}
    begin{filecontents}{maniscript.bib}
    @manuscript{P1470,
    library={BNF},
    address={Paris},
    datation={textsc{viii}textsuperscript{e} s.}
    end{filecontents}

    bibliography{manuscript.bib}
    begin{document}
    nocite{*}

    printbibliography
    end{document}









    share|improve this question









    New contributor




    Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      5
      down vote

      favorite
      1









      up vote
      5
      down vote

      favorite
      1






      1





      Doing as it has been suggested on this site, and also having looked in the manual for biblatex.pdf, I cannot figure out the difference between DeclareDatamodeFields and DeclareDatamodeEntryfields. I only get the address field as the result (Paris in this case). pdflatex, biber.



      MWE



      documentclass{article}
      usepackage[datamodel=manuscript,bibstyle=verbose,citestyle=verbose]{biblatex}
      begin{filecontents}{manuscript.dbx}
      DeclareDatamodelEntrytypes{manuscript}
      DeclareDatamodelFields[type=field, datatype=literal]{datation,title,library}
      DeclareDatamodelEntryfields[manuscript]{
      title,
      library,
      datation}
      end{filecontents}
      begin{filecontents}{maniscript.bib}
      @manuscript{P1470,
      library={BNF},
      address={Paris},
      datation={textsc{viii}textsuperscript{e} s.}
      end{filecontents}

      bibliography{manuscript.bib}
      begin{document}
      nocite{*}

      printbibliography
      end{document}









      share|improve this question









      New contributor




      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Doing as it has been suggested on this site, and also having looked in the manual for biblatex.pdf, I cannot figure out the difference between DeclareDatamodeFields and DeclareDatamodeEntryfields. I only get the address field as the result (Paris in this case). pdflatex, biber.



      MWE



      documentclass{article}
      usepackage[datamodel=manuscript,bibstyle=verbose,citestyle=verbose]{biblatex}
      begin{filecontents}{manuscript.dbx}
      DeclareDatamodelEntrytypes{manuscript}
      DeclareDatamodelFields[type=field, datatype=literal]{datation,title,library}
      DeclareDatamodelEntryfields[manuscript]{
      title,
      library,
      datation}
      end{filecontents}
      begin{filecontents}{maniscript.bib}
      @manuscript{P1470,
      library={BNF},
      address={Paris},
      datation={textsc{viii}textsuperscript{e} s.}
      end{filecontents}

      bibliography{manuscript.bib}
      begin{document}
      nocite{*}

      printbibliography
      end{document}






      biblatex bibentry






      share|improve this question









      New contributor




      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 2 hours ago









      samcarter

      84k794270




      84k794270






      New contributor




      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      Dmitry Starostin

      283




      283




      New contributor




      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Dmitry Starostin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.



          Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:



          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }


          I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.



          In full:



          documentclass{article}

          usepackage[datamodel=manuscript,style=verbose]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{manuscript.dbx}
          DeclareDatamodelEntrytypes{manuscript}
          DeclareDatamodelFields[type=field, datatype=literal]{datation}
          DeclareDatamodelEntryfields[manuscript]{
          title,
          library,
          location,
          datation}
          end{filecontents}

          begin{filecontents}{manuscript.bib}
          @manuscript{P1470,
          library = {BNF},
          title = {A title},
          location = {Paris},
          datation = {textsc{viii}textsuperscript{e} s.},
          }
          end{filecontents}

          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }

          DeclareFieldFormat[manuscript]{title}{mkbibquote{#1isdot}}

          addbibresource{manuscript.bib}

          begin{document}
          nocite{*}
          printbibliography
          end{document}


          enter image description here



          You can, and should, examine closer moewe's linked answer, particularly the formatting directives. Also, you can redefine your bibdriver to the order of fields and punctuation of your liking.






          share|improve this answer























          • Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
            – Dmitry Starostin
            27 mins ago











          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',
          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
          });


          }
          });






          Dmitry Starostin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f466120%2fsetting-a-new-entrytype%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.



          Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:



          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }


          I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.



          In full:



          documentclass{article}

          usepackage[datamodel=manuscript,style=verbose]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{manuscript.dbx}
          DeclareDatamodelEntrytypes{manuscript}
          DeclareDatamodelFields[type=field, datatype=literal]{datation}
          DeclareDatamodelEntryfields[manuscript]{
          title,
          library,
          location,
          datation}
          end{filecontents}

          begin{filecontents}{manuscript.bib}
          @manuscript{P1470,
          library = {BNF},
          title = {A title},
          location = {Paris},
          datation = {textsc{viii}textsuperscript{e} s.},
          }
          end{filecontents}

          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }

          DeclareFieldFormat[manuscript]{title}{mkbibquote{#1isdot}}

          addbibresource{manuscript.bib}

          begin{document}
          nocite{*}
          printbibliography
          end{document}


          enter image description here



          You can, and should, examine closer moewe's linked answer, particularly the formatting directives. Also, you can redefine your bibdriver to the order of fields and punctuation of your liking.






          share|improve this answer























          • Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
            – Dmitry Starostin
            27 mins ago















          up vote
          4
          down vote



          accepted










          You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.



          Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:



          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }


          I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.



          In full:



          documentclass{article}

          usepackage[datamodel=manuscript,style=verbose]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{manuscript.dbx}
          DeclareDatamodelEntrytypes{manuscript}
          DeclareDatamodelFields[type=field, datatype=literal]{datation}
          DeclareDatamodelEntryfields[manuscript]{
          title,
          library,
          location,
          datation}
          end{filecontents}

          begin{filecontents}{manuscript.bib}
          @manuscript{P1470,
          library = {BNF},
          title = {A title},
          location = {Paris},
          datation = {textsc{viii}textsuperscript{e} s.},
          }
          end{filecontents}

          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }

          DeclareFieldFormat[manuscript]{title}{mkbibquote{#1isdot}}

          addbibresource{manuscript.bib}

          begin{document}
          nocite{*}
          printbibliography
          end{document}


          enter image description here



          You can, and should, examine closer moewe's linked answer, particularly the formatting directives. Also, you can redefine your bibdriver to the order of fields and punctuation of your liking.






          share|improve this answer























          • Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
            – Dmitry Starostin
            27 mins ago













          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.



          Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:



          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }


          I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.



          In full:



          documentclass{article}

          usepackage[datamodel=manuscript,style=verbose]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{manuscript.dbx}
          DeclareDatamodelEntrytypes{manuscript}
          DeclareDatamodelFields[type=field, datatype=literal]{datation}
          DeclareDatamodelEntryfields[manuscript]{
          title,
          library,
          location,
          datation}
          end{filecontents}

          begin{filecontents}{manuscript.bib}
          @manuscript{P1470,
          library = {BNF},
          title = {A title},
          location = {Paris},
          datation = {textsc{viii}textsuperscript{e} s.},
          }
          end{filecontents}

          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }

          DeclareFieldFormat[manuscript]{title}{mkbibquote{#1isdot}}

          addbibresource{manuscript.bib}

          begin{document}
          nocite{*}
          printbibliography
          end{document}


          enter image description here



          You can, and should, examine closer moewe's linked answer, particularly the formatting directives. Also, you can redefine your bibdriver to the order of fields and punctuation of your liking.






          share|improve this answer














          You are actually pretty close. If you look at moewe's canonical answer on the topic you can get a better grasp on the possibilities and requirements of creating a new entrytype.



          Still, to get your new fields typeset in the bibliography, you are critically missing a driver for you manuscript entrytype. I'm not sure the format you are looking for, but this serves as an example:



          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }


          I've also removed title and library from your .dbx file, as they are already defined by default. You should still add them to your DeclareDatamodelEntryfields[manuscript]{... as you do. Also, note that setting both citestyle and bibstyle to verbose is equivalent to the more direct style=verbose.



          In full:



          documentclass{article}

          usepackage[datamodel=manuscript,style=verbose]{biblatex}

          usepackage{filecontents}

          begin{filecontents}{manuscript.dbx}
          DeclareDatamodelEntrytypes{manuscript}
          DeclareDatamodelFields[type=field, datatype=literal]{datation}
          DeclareDatamodelEntryfields[manuscript]{
          title,
          library,
          location,
          datation}
          end{filecontents}

          begin{filecontents}{manuscript.bib}
          @manuscript{P1470,
          library = {BNF},
          title = {A title},
          location = {Paris},
          datation = {textsc{viii}textsuperscript{e} s.},
          }
          end{filecontents}

          DeclareBibliographyDriver{manuscript}{%
          usebibmacro{begentry}%
          printfield{library}%
          setunit{addcommaspace}%
          printlist{location}%
          newunitnewblock
          printfield{title}%
          setunit{addcommaspace}%
          printfield{datation}%
          usebibmacro{finentry}%
          }

          DeclareFieldFormat[manuscript]{title}{mkbibquote{#1isdot}}

          addbibresource{manuscript.bib}

          begin{document}
          nocite{*}
          printbibliography
          end{document}


          enter image description here



          You can, and should, examine closer moewe's linked answer, particularly the formatting directives. Also, you can redefine your bibdriver to the order of fields and punctuation of your liking.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 8 mins ago









          moewe

          85k9108327




          85k9108327










          answered 1 hour ago









          gusbrs

          6,7992839




          6,7992839












          • Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
            – Dmitry Starostin
            27 mins ago


















          • Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
            – Dmitry Starostin
            27 mins ago
















          Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
          – Dmitry Starostin
          27 mins ago




          Thank you very much! You explained by a very clear and hands-on code what I have long tried to master.
          – Dmitry Starostin
          27 mins ago










          Dmitry Starostin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Dmitry Starostin is a new contributor. Be nice, and check out our Code of Conduct.













          Dmitry Starostin is a new contributor. Be nice, and check out our Code of Conduct.












          Dmitry Starostin is a new contributor. Be nice, and check out our Code of Conduct.
















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f466120%2fsetting-a-new-entrytype%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei