Context html export garbles bibliography
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
add a comment |
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
add a comment |
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
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
bibliographies context html
edited Feb 23 at 14:03
DG'
10.7k21844
10.7k21844
asked Feb 23 at 9:26
Dmitry StarostinDmitry Starostin
1556
1556
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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:
After running
context <file>.texyou can add the snippet to<file>-style.cssfile in thestyles.You can create a new css-file,
<cssfile>.css, which contains your own settings (like the snippet above) and specify it withsetupexport[cssfile=<cssfile>.css]in your document, and runcontext <file>.texafterwards.
Both ways will result in separated paragraphs:

The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.
Just to clarify:setupexport[cssfile=PaperName.css]is what you mean? Orsetupexport[cssfile=PaperName-style.css]?
– Dmitry Starostin
Feb 24 at 15:19
@DmitryStarostin See my edit
– DG'
Feb 24 at 22:05
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
After running
context <file>.texyou can add the snippet to<file>-style.cssfile in thestyles.You can create a new css-file,
<cssfile>.css, which contains your own settings (like the snippet above) and specify it withsetupexport[cssfile=<cssfile>.css]in your document, and runcontext <file>.texafterwards.
Both ways will result in separated paragraphs:

The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.
Just to clarify:setupexport[cssfile=PaperName.css]is what you mean? Orsetupexport[cssfile=PaperName-style.css]?
– Dmitry Starostin
Feb 24 at 15:19
@DmitryStarostin See my edit
– DG'
Feb 24 at 22:05
add a comment |
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:
After running
context <file>.texyou can add the snippet to<file>-style.cssfile in thestyles.You can create a new css-file,
<cssfile>.css, which contains your own settings (like the snippet above) and specify it withsetupexport[cssfile=<cssfile>.css]in your document, and runcontext <file>.texafterwards.
Both ways will result in separated paragraphs:

The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.
Just to clarify:setupexport[cssfile=PaperName.css]is what you mean? Orsetupexport[cssfile=PaperName-style.css]?
– Dmitry Starostin
Feb 24 at 15:19
@DmitryStarostin See my edit
– DG'
Feb 24 at 22:05
add a comment |
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:
After running
context <file>.texyou can add the snippet to<file>-style.cssfile in thestyles.You can create a new css-file,
<cssfile>.css, which contains your own settings (like the snippet above) and specify it withsetupexport[cssfile=<cssfile>.css]in your document, and runcontext <file>.texafterwards.
Both ways will result in separated paragraphs:

The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.
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:
After running
context <file>.texyou can add the snippet to<file>-style.cssfile in thestyles.You can create a new css-file,
<cssfile>.css, which contains your own settings (like the snippet above) and specify it withsetupexport[cssfile=<cssfile>.css]in your document, and runcontext <file>.texafterwards.
Both ways will result in separated paragraphs:

The second way has the advantage, that you can collect all your css stylings in one place and (re)use them for different documents.
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? Orsetupexport[cssfile=PaperName-style.css]?
– Dmitry Starostin
Feb 24 at 15:19
@DmitryStarostin See my edit
– DG'
Feb 24 at 22:05
add a comment |
Just to clarify:setupexport[cssfile=PaperName.css]is what you mean? Orsetupexport[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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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