Affects XML and HTML document collections (i.e. split into multiple documents) generated with LaTeXML 0.8.2 using latexml LaTeX -> XML followed by latexmlpost XML -> collection of XML/HTML documents with splitnaming set to labelrelative and urlstyle set to server.
href attributes of hyperlinks (HTML)/refs (XML) to tables/figures/equations in index.html/index.xml pages do not get prefixed with index.html/index.xml. This gets resolved on the server if referenced from another branch of the tree, but does work not in the descendants of the page, which end up with the references to local same-page anchors (i.e. prefixed with "#"), which do not exist.
Using my test files and the commands listed below, in HTML collection, links to the the table/figure/equation in minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/index.html from subsection of the same section, e.g. /minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.html don't work as hrefs contain strings like "#Ch1.T1" and get interpreted as minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.html#Ch1.T1.
A reference from another chapter, e.g. href="../../../Introduction/chap_testChap1/ssec_test_section1/#Ch1.T1" works on a server.
References to objects occurring in pages, which are not named "index" get correct hrefs and work fine, e.g. href in a hyperlink from minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub2.html linking to a table in minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.html#Ch1.T2 is
href="ssec_testsub.html#Ch1.T2.
I attach the files used for the test.
Commands used:
latexml --dest=minimalRefsTest.xml minimalRefsTest.tex
latexmlpost --dest=minimalRefs-html5-html/index.html --urlstyle=server --navigationtoc=context --splitat=subsection --splitnaming=labelrelative --css=LaTeXML-navbar-left.css --format=html5 minimalRefsTest.xml
or
latexmlpost --dest=minimalRefs-xml-xml/index.xml --urlstyle=server --navigationtoc=context --splitat=subsection --splitnaming=labelrelative --css=LaTeXML-navbar-left.css --format=xml minimalRefsTest.xml
minimalRefsTest.zip
Affects XML and HTML document collections (i.e. split into multiple documents) generated with LaTeXML 0.8.2 using latexml LaTeX -> XML followed by latexmlpost XML -> collection of XML/HTML documents with splitnaming set to labelrelative and urlstyle set to server.
href attributes of hyperlinks (HTML)/refs (XML) to tables/figures/equations in index.html/index.xml pages do not get prefixed with index.html/index.xml. This gets resolved on the server if referenced from another branch of the tree, but does work not in the descendants of the page, which end up with the references to local same-page anchors (i.e. prefixed with "#"), which do not exist.
Using my test files and the commands listed below, in HTML collection, links to the the
table/figure/equation in minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/index.htmlfrom subsection of the same section, e.g./minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.htmldon't work as hrefs contain strings like "#Ch1.T1" and get interpreted asminimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.html#Ch1.T1.A reference from another chapter, e.g.
href="../../../Introduction/chap_testChap1/ssec_test_section1/#Ch1.T1"works on a server.References to objects occurring in pages, which are not named "index" get correct hrefs and work fine, e.g. href in a hyperlink from
minimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub2.htmllinking to a table inminimalRefs-html5-html/Introduction/chap_testChap1/ssec_test_section1/ssec_testsub.html#Ch1.T2ishref="ssec_testsub.html#Ch1.T2.I attach the files used for the test.
Commands used:
or
minimalRefsTest.zip