Context html export garbles bibliography












5















I added setupbackend[export=yes] to my file to test the html export capabilities. All works excellent except the bibliography which is either split (in -div version) or comes as one paragraph (in -tag or -raw versions. Obviously there is just one line that needs to be added so that each bibliography entry was considered as a paragraph.



setuplanguage[en]
setupbackend[export=yes]
mainlanguage[english]

startbuffer[bib]

@Book{Declercq:2000,
author = {Declercq, Georges},
title = {Anno Domini: The origins of the Christian era},
address = {Turnhout},
publisher = {Brill},
year = {2000},
shorttitle = {Anno Domini},
shorthand = {Declercq},
language = {english},
hyphenation = {english},
pagetotal = {206},
}

@Book{Rupke:2011,
author = {Jörg Rupke},
title = {The Roman Calendar from Numa to Constantine: Time, History, and the Fasti},
address = {Chichester, West Sussex, U.K.},
publisher = {Wiley-Blackwell},
year = {2011},
shorttitle = {The Roman Calendar},
shorthand = {The Roman calendar},
language = {english},
hyphenation = {english},
}

stopbuffer

usebtxdataset[default][bib.buffer]
loadbtxdefinitionfile[apa]
usebtxdefinitions[apa]
setupbtx[dataset=default]
definebtxrendering[default][apa][specification=chicago,sorttype=authoryear,numbering=no]
setupindenting[big,yes]
usetypescript[palatino]
setupbodyfont[palatino,12pt]

starttext

startbodymatter

Test.cite[Rupke:2011] Another test.cite[Declercq:2000]

stopbodymatter

startbackmatter
startchapter[title=Bibliography]
placelistofpublications[criterium=all]
stopchapter
stopbackmatter

stoptext









share|improve this question





























    5















    I added setupbackend[export=yes] to my file to test the html export capabilities. All works excellent except the bibliography which is either split (in -div version) or comes as one paragraph (in -tag or -raw versions. Obviously there is just one line that needs to be added so that each bibliography entry was considered as a paragraph.



    setuplanguage[en]
    setupbackend[export=yes]
    mainlanguage[english]

    startbuffer[bib]

    @Book{Declercq:2000,
    author = {Declercq, Georges},
    title = {Anno Domini: The origins of the Christian era},
    address = {Turnhout},
    publisher = {Brill},
    year = {2000},
    shorttitle = {Anno Domini},
    shorthand = {Declercq},
    language = {english},
    hyphenation = {english},
    pagetotal = {206},
    }

    @Book{Rupke:2011,
    author = {Jörg Rupke},
    title = {The Roman Calendar from Numa to Constantine: Time, History, and the Fasti},
    address = {Chichester, West Sussex, U.K.},
    publisher = {Wiley-Blackwell},
    year = {2011},
    shorttitle = {The Roman Calendar},
    shorthand = {The Roman calendar},
    language = {english},
    hyphenation = {english},
    }

    stopbuffer

    usebtxdataset[default][bib.buffer]
    loadbtxdefinitionfile[apa]
    usebtxdefinitions[apa]
    setupbtx[dataset=default]
    definebtxrendering[default][apa][specification=chicago,sorttype=authoryear,numbering=no]
    setupindenting[big,yes]
    usetypescript[palatino]
    setupbodyfont[palatino,12pt]

    starttext

    startbodymatter

    Test.cite[Rupke:2011] Another test.cite[Declercq:2000]

    stopbodymatter

    startbackmatter
    startchapter[title=Bibliography]
    placelistofpublications[criterium=all]
    stopchapter
    stopbackmatter

    stoptext









    share|improve this question



























      5












      5








      5








      I added setupbackend[export=yes] to my file to test the html export capabilities. All works excellent except the bibliography which is either split (in -div version) or comes as one paragraph (in -tag or -raw versions. Obviously there is just one line that needs to be added so that each bibliography entry was considered as a paragraph.



      setuplanguage[en]
      setupbackend[export=yes]
      mainlanguage[english]

      startbuffer[bib]

      @Book{Declercq:2000,
      author = {Declercq, Georges},
      title = {Anno Domini: The origins of the Christian era},
      address = {Turnhout},
      publisher = {Brill},
      year = {2000},
      shorttitle = {Anno Domini},
      shorthand = {Declercq},
      language = {english},
      hyphenation = {english},
      pagetotal = {206},
      }

      @Book{Rupke:2011,
      author = {Jörg Rupke},
      title = {The Roman Calendar from Numa to Constantine: Time, History, and the Fasti},
      address = {Chichester, West Sussex, U.K.},
      publisher = {Wiley-Blackwell},
      year = {2011},
      shorttitle = {The Roman Calendar},
      shorthand = {The Roman calendar},
      language = {english},
      hyphenation = {english},
      }

      stopbuffer

      usebtxdataset[default][bib.buffer]
      loadbtxdefinitionfile[apa]
      usebtxdefinitions[apa]
      setupbtx[dataset=default]
      definebtxrendering[default][apa][specification=chicago,sorttype=authoryear,numbering=no]
      setupindenting[big,yes]
      usetypescript[palatino]
      setupbodyfont[palatino,12pt]

      starttext

      startbodymatter

      Test.cite[Rupke:2011] Another test.cite[Declercq:2000]

      stopbodymatter

      startbackmatter
      startchapter[title=Bibliography]
      placelistofpublications[criterium=all]
      stopchapter
      stopbackmatter

      stoptext









      share|improve this question
















      I added setupbackend[export=yes] to my file to test the html export capabilities. All works excellent except the bibliography which is either split (in -div version) or comes as one paragraph (in -tag or -raw versions. Obviously there is just one line that needs to be added so that each bibliography entry was considered as a paragraph.



      setuplanguage[en]
      setupbackend[export=yes]
      mainlanguage[english]

      startbuffer[bib]

      @Book{Declercq:2000,
      author = {Declercq, Georges},
      title = {Anno Domini: The origins of the Christian era},
      address = {Turnhout},
      publisher = {Brill},
      year = {2000},
      shorttitle = {Anno Domini},
      shorthand = {Declercq},
      language = {english},
      hyphenation = {english},
      pagetotal = {206},
      }

      @Book{Rupke:2011,
      author = {Jörg Rupke},
      title = {The Roman Calendar from Numa to Constantine: Time, History, and the Fasti},
      address = {Chichester, West Sussex, U.K.},
      publisher = {Wiley-Blackwell},
      year = {2011},
      shorttitle = {The Roman Calendar},
      shorthand = {The Roman calendar},
      language = {english},
      hyphenation = {english},
      }

      stopbuffer

      usebtxdataset[default][bib.buffer]
      loadbtxdefinitionfile[apa]
      usebtxdefinitions[apa]
      setupbtx[dataset=default]
      definebtxrendering[default][apa][specification=chicago,sorttype=authoryear,numbering=no]
      setupindenting[big,yes]
      usetypescript[palatino]
      setupbodyfont[palatino,12pt]

      starttext

      startbodymatter

      Test.cite[Rupke:2011] Another test.cite[Declercq:2000]

      stopbodymatter

      startbackmatter
      startchapter[title=Bibliography]
      placelistofpublications[criterium=all]
      stopchapter
      stopbackmatter

      stoptext






      bibliographies context html






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 23 at 14:03









      DG'

      10.7k21844




      10.7k21844










      asked Feb 23 at 9:26









      Dmitry StarostinDmitry Starostin

      1556




      1556






















          1 Answer
          1






          active

          oldest

          votes


















          5














          If you run context <file>.tex with the option setupbackend[export=yes], you will get the following structure:



          <file>-export
          ├── <file>-div.html
          ├── <file>-pub.lua
          ├── <file>-raw.xml
          ├── <file>-tag.xhtml
          ├── images
          └── styles
          ├── <file>-defaults.css
          ├── <file>-images.css
          ├── <file>-styles.css
          └── <file>-templates.css


          You can add space between the bibliography entries, by setting the margin with the following snippet:



          listitem[detail=btx-apa],
          div.listitem.btx-apa {
          display: block ;
          margin : 2ex ;
          }


          There are two ways how to do that:




          1. After running context <file>.tex you can add the snippet to <file>-style.css file in the styles.


          2. You can create a new css-file, <cssfile>.css, which contains your own settings (like the snippet above) and specify it with setupexport[cssfile=<cssfile>.css] in your document, and run context <file>.tex afterwards.



          Both ways will result in separated paragraphs:



          enter image description here



          The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.






          share|improve this answer


























          • Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

            – Dmitry Starostin
            Feb 24 at 15:19











          • @DmitryStarostin See my edit

            – DG'
            Feb 24 at 22:05











          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%2f476294%2fcontext-html-export-garbles-bibliography%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









          5














          If you run context <file>.tex with the option setupbackend[export=yes], you will get the following structure:



          <file>-export
          ├── <file>-div.html
          ├── <file>-pub.lua
          ├── <file>-raw.xml
          ├── <file>-tag.xhtml
          ├── images
          └── styles
          ├── <file>-defaults.css
          ├── <file>-images.css
          ├── <file>-styles.css
          └── <file>-templates.css


          You can add space between the bibliography entries, by setting the margin with the following snippet:



          listitem[detail=btx-apa],
          div.listitem.btx-apa {
          display: block ;
          margin : 2ex ;
          }


          There are two ways how to do that:




          1. After running context <file>.tex you can add the snippet to <file>-style.css file in the styles.


          2. You can create a new css-file, <cssfile>.css, which contains your own settings (like the snippet above) and specify it with setupexport[cssfile=<cssfile>.css] in your document, and run context <file>.tex afterwards.



          Both ways will result in separated paragraphs:



          enter image description here



          The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.






          share|improve this answer


























          • Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

            – Dmitry Starostin
            Feb 24 at 15:19











          • @DmitryStarostin See my edit

            – DG'
            Feb 24 at 22:05
















          5














          If you run context <file>.tex with the option setupbackend[export=yes], you will get the following structure:



          <file>-export
          ├── <file>-div.html
          ├── <file>-pub.lua
          ├── <file>-raw.xml
          ├── <file>-tag.xhtml
          ├── images
          └── styles
          ├── <file>-defaults.css
          ├── <file>-images.css
          ├── <file>-styles.css
          └── <file>-templates.css


          You can add space between the bibliography entries, by setting the margin with the following snippet:



          listitem[detail=btx-apa],
          div.listitem.btx-apa {
          display: block ;
          margin : 2ex ;
          }


          There are two ways how to do that:




          1. After running context <file>.tex you can add the snippet to <file>-style.css file in the styles.


          2. You can create a new css-file, <cssfile>.css, which contains your own settings (like the snippet above) and specify it with setupexport[cssfile=<cssfile>.css] in your document, and run context <file>.tex afterwards.



          Both ways will result in separated paragraphs:



          enter image description here



          The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.






          share|improve this answer


























          • Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

            – Dmitry Starostin
            Feb 24 at 15:19











          • @DmitryStarostin See my edit

            – DG'
            Feb 24 at 22:05














          5












          5








          5







          If you run context <file>.tex with the option setupbackend[export=yes], you will get the following structure:



          <file>-export
          ├── <file>-div.html
          ├── <file>-pub.lua
          ├── <file>-raw.xml
          ├── <file>-tag.xhtml
          ├── images
          └── styles
          ├── <file>-defaults.css
          ├── <file>-images.css
          ├── <file>-styles.css
          └── <file>-templates.css


          You can add space between the bibliography entries, by setting the margin with the following snippet:



          listitem[detail=btx-apa],
          div.listitem.btx-apa {
          display: block ;
          margin : 2ex ;
          }


          There are two ways how to do that:




          1. After running context <file>.tex you can add the snippet to <file>-style.css file in the styles.


          2. You can create a new css-file, <cssfile>.css, which contains your own settings (like the snippet above) and specify it with setupexport[cssfile=<cssfile>.css] in your document, and run context <file>.tex afterwards.



          Both ways will result in separated paragraphs:



          enter image description here



          The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.






          share|improve this answer















          If you run context <file>.tex with the option setupbackend[export=yes], you will get the following structure:



          <file>-export
          ├── <file>-div.html
          ├── <file>-pub.lua
          ├── <file>-raw.xml
          ├── <file>-tag.xhtml
          ├── images
          └── styles
          ├── <file>-defaults.css
          ├── <file>-images.css
          ├── <file>-styles.css
          └── <file>-templates.css


          You can add space between the bibliography entries, by setting the margin with the following snippet:



          listitem[detail=btx-apa],
          div.listitem.btx-apa {
          display: block ;
          margin : 2ex ;
          }


          There are two ways how to do that:




          1. After running context <file>.tex you can add the snippet to <file>-style.css file in the styles.


          2. You can create a new css-file, <cssfile>.css, which contains your own settings (like the snippet above) and specify it with setupexport[cssfile=<cssfile>.css] in your document, and run context <file>.tex afterwards.



          Both ways will result in separated paragraphs:



          enter image description here



          The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 25 at 11:24

























          answered Feb 23 at 14:02









          DG'DG'

          10.7k21844




          10.7k21844













          • Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

            – Dmitry Starostin
            Feb 24 at 15:19











          • @DmitryStarostin See my edit

            – DG'
            Feb 24 at 22:05



















          • Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

            – Dmitry Starostin
            Feb 24 at 15:19











          • @DmitryStarostin See my edit

            – DG'
            Feb 24 at 22:05

















          Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

          – Dmitry Starostin
          Feb 24 at 15:19





          Just to clarify: setupexport[cssfile=PaperName.css] is what you mean? Or setupexport[cssfile=PaperName-style.css]?

          – Dmitry Starostin
          Feb 24 at 15:19













          @DmitryStarostin See my edit

          – DG'
          Feb 24 at 22:05





          @DmitryStarostin See my edit

          – DG'
          Feb 24 at 22:05


















          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%2f476294%2fcontext-html-export-garbles-bibliography%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

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?