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.

0

1 Answer 1

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"
4
  • 1
    life with Windows is always full of unexpected surprises :)
    – michal.h21
    Commented Feb 23, 2014 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
    Commented Jul 1, 2020 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
    Commented Jul 13, 2020 at 13:47
  • Much thanks for your prompt reply.....
    – MadyYuvi
    Commented Jul 13, 2020 at 14:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .