Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Awesome...it works like a charm. It's simple. I was trying but couldn't get it. A tweak is required on my side. I think this would be difficult though. If section contains a subsection, counter must be stepped up only for subsections. So counter will not be stepped for those sections which contain subsections, however it will be stepped up for subsections in those sections. Commented Jun 12, 2018 at 16:02
  • @user61681 I would solve that using post-processing, TeX solution would be difficult Commented Jun 12, 2018 at 17:27
  • Ya, I used python. The solution you provided was excellent. Is there any proper documentation/book/tutorial to learn configurations of htlatex and in general for programming (macros etc) in LaTeX? Novice learners (even with some programming background) often find it difficult to work with LaTeX. Commented Jun 13, 2018 at 1:00
  • @user61681 there is unfortunately no comprehensive guide to tex4ht, other than the official documentation and the information written to the log file when "info" option is used for tex4ht run. The log file contains main configuration options. I've started to work on new documentation, but it doesn't contain lot of information yet. Commented Jun 13, 2018 at 6:46
  • @user61681 for TeX programming, I learned from some Czech books, which are not available in English. But the TeXbook and TeX by topic are also good. Commented Jun 13, 2018 at 6:48