I am having difficulty with bibliography citations in HTML export. I am able to generate two html files with citations, one from the standard html export from an org file, and another from exporting the org file to latex then compiling it with bibtex, again with latex, then with latex2html. However the latex converted html file is not how I would like so now I am doing some post-processing to combine the two files. I just want to replace the citations in the standard org html export with the citations in the latex2html export file.
What I have been trying to do now is swap out the content inside all of the
tags from the latex exported html file to the other using emacs.
I have played with using (libxml-parse-html-region (point-min) (point-max)), which creates an output like this:
(body nil "\n\n"
(h1 nil "Sample HTML")
"\n\n"
(p nil "Once upon a time... blab blab.")
"\n\n"
(p nil "large text of other things here... ")
"\n\n"
(p nil "more complex non Q and A HTML code here.\ntest\n")
"\n\n"
(h2 nil "Questions and Answers")
"\n\n"
(p
((class . "q"))
"Q: How Why What is this and that ...?")
"\n"
(p
((class . "a"))
However I am not sure how to access, change, and swap the values between the two files. I'm not finding anything on the internet how to do that.
I want to swap these citations. org html export makes incorrect formatted citations
<p> ...pri [<a href="#article">Adams</a>].</p>
latex2html output correctly makes the citation
<p class="noindent" >ntegre inermis (<a href="#Xarticle">Adams</a>, <a href="#Xarticle">1993</a>) V...ri stet omnes</p>
Notice how the latex2html citation is the correct format. The org-export citation has a "[Author]" around all of them. There is other stuff in the org latex export file that I want though and the latex2html puts in a lot of other stuff I don't want. Thanks in advance.