hyperreferencing include files












2















I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-file) among themselves just like a wiki.










share|improve this question























  • Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

    – marmot
    Feb 2 at 3:45













  • I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

    – neutrino
    Feb 2 at 7:39
















2















I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-file) among themselves just like a wiki.










share|improve this question























  • Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

    – marmot
    Feb 2 at 3:45













  • I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

    – neutrino
    Feb 2 at 7:39














2












2








2








I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-file) among themselves just like a wiki.










share|improve this question














I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-file) among themselves just like a wiki.







hyperref tex4ht wiki






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 1 at 22:45









neutrinoneutrino

361




361













  • Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

    – marmot
    Feb 2 at 3:45













  • I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

    – neutrino
    Feb 2 at 7:39



















  • Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

    – marmot
    Feb 2 at 3:45













  • I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

    – neutrino
    Feb 2 at 7:39

















Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

– marmot
Feb 2 at 3:45







Are you aware of this: tex.stackexchange.com/q/14364/121799 ? (BTW, are you left-handed or right-handed? ;-)

– marmot
Feb 2 at 3:45















I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

– neutrino
Feb 2 at 7:39





I wish to create a wiki like <hyperphysics.phy-astr.gsu.edu/hbase/quacon.html#quacon>

– neutrino
Feb 2 at 7:39










1 Answer
1






active

oldest

votes


















2














You can put chapters or sections to standalone pages using a command line option. The hyperlinks can be added using the nameref command provided by the Hyperref package. It is based on the standard label/ref mechanism.



You didn't provide any example, so here is my MWE, sample.tex:



documentclass{book}
usepackage{lipsum}
usepackage{hyperref}
title{Site title}
author{Neutrino}
begin{document}
maketitle

input{hello-world}
input{another-section}

end{document}


It includes two files, hello-world.tex:



chapter{Hello world}
label{chap:hello-world}
lipsum


The second file is named another-section.tex:



chapter{Another section}
label{chap:another-section}

We can try to link to chapter~nameref{chap:hello-world}.

lipsum


You can see the nameref command use here.



Compile the document using the following command:



make4ht sample.tex "2,sec-filename"


The options after the filename require cutting of chapters to standalone HTML files. The names of the generated files will be based on the chapter titles. This feature is enabled using the sec-filename option.



The sample.html will contain title and table of contents:



enter image description here



The file Anothersection.html contains link to the Hello world chapter:



enter image description here






share|improve this answer
























  • make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

    – neutrino
    Feb 4 at 10:01











  • I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

    – neutrino
    Feb 4 at 10:28











  • @neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

    – michal.h21
    Feb 4 at 10:31











  • My texlive version is already 2018, in which make4ht does not work.

    – neutrino
    2 days ago











  • @neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

    – michal.h21
    2 days 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',
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%2f472965%2fhyperreferencing-include-files%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









2














You can put chapters or sections to standalone pages using a command line option. The hyperlinks can be added using the nameref command provided by the Hyperref package. It is based on the standard label/ref mechanism.



You didn't provide any example, so here is my MWE, sample.tex:



documentclass{book}
usepackage{lipsum}
usepackage{hyperref}
title{Site title}
author{Neutrino}
begin{document}
maketitle

input{hello-world}
input{another-section}

end{document}


It includes two files, hello-world.tex:



chapter{Hello world}
label{chap:hello-world}
lipsum


The second file is named another-section.tex:



chapter{Another section}
label{chap:another-section}

We can try to link to chapter~nameref{chap:hello-world}.

lipsum


You can see the nameref command use here.



Compile the document using the following command:



make4ht sample.tex "2,sec-filename"


The options after the filename require cutting of chapters to standalone HTML files. The names of the generated files will be based on the chapter titles. This feature is enabled using the sec-filename option.



The sample.html will contain title and table of contents:



enter image description here



The file Anothersection.html contains link to the Hello world chapter:



enter image description here






share|improve this answer
























  • make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

    – neutrino
    Feb 4 at 10:01











  • I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

    – neutrino
    Feb 4 at 10:28











  • @neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

    – michal.h21
    Feb 4 at 10:31











  • My texlive version is already 2018, in which make4ht does not work.

    – neutrino
    2 days ago











  • @neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

    – michal.h21
    2 days ago
















2














You can put chapters or sections to standalone pages using a command line option. The hyperlinks can be added using the nameref command provided by the Hyperref package. It is based on the standard label/ref mechanism.



You didn't provide any example, so here is my MWE, sample.tex:



documentclass{book}
usepackage{lipsum}
usepackage{hyperref}
title{Site title}
author{Neutrino}
begin{document}
maketitle

input{hello-world}
input{another-section}

end{document}


It includes two files, hello-world.tex:



chapter{Hello world}
label{chap:hello-world}
lipsum


The second file is named another-section.tex:



chapter{Another section}
label{chap:another-section}

We can try to link to chapter~nameref{chap:hello-world}.

lipsum


You can see the nameref command use here.



Compile the document using the following command:



make4ht sample.tex "2,sec-filename"


The options after the filename require cutting of chapters to standalone HTML files. The names of the generated files will be based on the chapter titles. This feature is enabled using the sec-filename option.



The sample.html will contain title and table of contents:



enter image description here



The file Anothersection.html contains link to the Hello world chapter:



enter image description here






share|improve this answer
























  • make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

    – neutrino
    Feb 4 at 10:01











  • I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

    – neutrino
    Feb 4 at 10:28











  • @neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

    – michal.h21
    Feb 4 at 10:31











  • My texlive version is already 2018, in which make4ht does not work.

    – neutrino
    2 days ago











  • @neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

    – michal.h21
    2 days ago














2












2








2







You can put chapters or sections to standalone pages using a command line option. The hyperlinks can be added using the nameref command provided by the Hyperref package. It is based on the standard label/ref mechanism.



You didn't provide any example, so here is my MWE, sample.tex:



documentclass{book}
usepackage{lipsum}
usepackage{hyperref}
title{Site title}
author{Neutrino}
begin{document}
maketitle

input{hello-world}
input{another-section}

end{document}


It includes two files, hello-world.tex:



chapter{Hello world}
label{chap:hello-world}
lipsum


The second file is named another-section.tex:



chapter{Another section}
label{chap:another-section}

We can try to link to chapter~nameref{chap:hello-world}.

lipsum


You can see the nameref command use here.



Compile the document using the following command:



make4ht sample.tex "2,sec-filename"


The options after the filename require cutting of chapters to standalone HTML files. The names of the generated files will be based on the chapter titles. This feature is enabled using the sec-filename option.



The sample.html will contain title and table of contents:



enter image description here



The file Anothersection.html contains link to the Hello world chapter:



enter image description here






share|improve this answer













You can put chapters or sections to standalone pages using a command line option. The hyperlinks can be added using the nameref command provided by the Hyperref package. It is based on the standard label/ref mechanism.



You didn't provide any example, so here is my MWE, sample.tex:



documentclass{book}
usepackage{lipsum}
usepackage{hyperref}
title{Site title}
author{Neutrino}
begin{document}
maketitle

input{hello-world}
input{another-section}

end{document}


It includes two files, hello-world.tex:



chapter{Hello world}
label{chap:hello-world}
lipsum


The second file is named another-section.tex:



chapter{Another section}
label{chap:another-section}

We can try to link to chapter~nameref{chap:hello-world}.

lipsum


You can see the nameref command use here.



Compile the document using the following command:



make4ht sample.tex "2,sec-filename"


The options after the filename require cutting of chapters to standalone HTML files. The names of the generated files will be based on the chapter titles. This feature is enabled using the sec-filename option.



The sample.html will contain title and table of contents:



enter image description here



The file Anothersection.html contains link to the Hello world chapter:



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 2 at 16:02









michal.h21michal.h21

31.3k447104




31.3k447104













  • make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

    – neutrino
    Feb 4 at 10:01











  • I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

    – neutrino
    Feb 4 at 10:28











  • @neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

    – michal.h21
    Feb 4 at 10:31











  • My texlive version is already 2018, in which make4ht does not work.

    – neutrino
    2 days ago











  • @neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

    – michal.h21
    2 days ago



















  • make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

    – neutrino
    Feb 4 at 10:01











  • I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

    – neutrino
    Feb 4 at 10:28











  • @neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

    – michal.h21
    Feb 4 at 10:31











  • My texlive version is already 2018, in which make4ht does not work.

    – neutrino
    2 days ago











  • @neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

    – michal.h21
    2 days ago

















make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

– neutrino
Feb 4 at 10:01





make4ht command does not work on my system as it is broken in my texlive 2018<github.com/michal-h21/make4ht/issues/12>. Is there an alternative with htlatex.

– neutrino
Feb 4 at 10:01













I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

– neutrino
Feb 4 at 10:28





I have accomplished my task by compiling each tex files to be included in final wiki separately/batch command(htlatex?) and linking each of them by using href{url}.

– neutrino
Feb 4 at 10:28













@neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

– michal.h21
Feb 4 at 10:31





@neutrino make4ht should be fixed in TL 2018, it just needs to be updated using tlmgr update --all

– michal.h21
Feb 4 at 10:31













My texlive version is already 2018, in which make4ht does not work.

– neutrino
2 days ago





My texlive version is already 2018, in which make4ht does not work.

– neutrino
2 days ago













@neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

– michal.h21
2 days ago





@neutrino the htlatex call would be htlatex sample.tex "xhtml,2,sec-filename"

– michal.h21
2 days ago


















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%2f472965%2fhyperreferencing-include-files%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 change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents