You should be good just doing

pandoc index.html manual.html errata.html -o manual.pdf

or -o manual.tex (or manual.ltx if you prefer) if you want the LaTeX file. Pandoc should be able to guess the formats from the extensions.

One caveat though: if the three HTML files contain external links to each other you probably want to convert them to internal links. It could be done with a filter but the easiest way is probably to convert to an intermediate markdown file and polish that in a text editor, then convert that markdown file to LaTeX/HTML. It also has the advantage that you can inspect what Pandoc makes of the HTML.

Also it is probably better to let LaTeX (re)build the table of contents.



Den mån 27 nov. 2023 01:13almaghfuur lahu <budikusasi@gmail.com> skrev:

How do we create a new PDF file by having pandoc to create a latex file from some html files under one directory merely, i.e. not recursively, as it's just acquired from a server directory to display a rather simple, small reference documentation?

$ ls
cover.png  errata.html  index.html  manual.html


index.html is actually containing table of contents, each line of which is a link to a location in the file manual.html, and also some words index , each line of which is a link to a location in manual.html

It has line:

<IMG SRC="cover.png" ALT="" TITLE="click to buy the book" BORDER=1 ALIGN="left" HSPACE=12>

manual.html is the content or body of the reference manual

errata.html is the catch up of corrections needed to care in this reference manual

How to accomplish to obtain its one analogous latex file from which its PDF file can be created the best, most efficient way ?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aaec9ee1-c839-4dd6-bd56-c41657991b6en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRTCLE6Ja85ELO4rUXz1q5aUtO0MBTPXwbXyiVOPTy0Ew%40mail.gmail.com.