2

This question was already answered by Radhakrishnan in an older post
How do I preserve hyperreferences in the index when converting text from LaTex to HTML, but I'm not able to get his solution to work. The .idx and .ind files are successfully generated. However, executing the following command in the dos console tex '\def\filename{{test}{idx}{4dx}{ind}} \input idxmake.4ht' gives me the error message

This is TeX, Version 3.1415926 (MiKTeX 2.9 64-bit)
! I can't find file `''.

\def
<*> '\def
\filename{{test}{idx}{4dx}{ind}} \input idxmake.4ht'
Please type another input file name:

Did I forget something? Any pointers to the cause of the problem would be appreciated.

4

Windows command line doesn't use single quotes to quote arguments. You need to use double quotes instead:

tex "\def\filename{{test}{idx}{4dx}{ind}} \input idxmake.4ht"
| improve this answer | |
  • 1
    life with Windows is always full of unexpected surprises :) – michal.h21 Feb 23 '14 at 20:04
  • Sorry to ask, in which file I should keep this line "\def\filename{{test}{idx}{4dx}{ind}} \input idxmake.4ht", please advise... – MadyYuvi Jul 1 at 11:14
  • @MadyYuvi sorry for the late reply. it is no longer necessary to use this. see tug.org/pipermail/tex4ht/2020q1/002412.html for example. – michal.h21 Jul 13 at 13:47
  • Much thanks for your prompt reply..... – MadyYuvi Jul 13 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.