Re: [tex4ht] tex4ht puts the wrong link when splitting document. How to make the top of the page visible?
On 1/1/2016 11:36 AM, William F Hammond wrote: Happy New Year! On Fri, Jan 1, 2016 at 2:02 AM, Michal Hoftichwrote: . . . The solution I gave to Nasser is fragile, every sectioning command used in the document must be reconfigured. While generally I prefer unified html documents (if only because searching is easier), my thought about splitting has always been to use an sgml or xml transformation library to do the splitting from a unified html file. -- Bill Could you please explain what you mean by a "unified html documents (if only because searching)" do you mean one large html page, vs. many smaller ones? thanks, --Nasser is easier)
Re: [tex4ht] tex4ht puts the wrong link when splitting document. How to make the top of the page visible?
Hi Nasser, destination link is inserted after section number, which in the case of chapter, where linebreak in inserted after chapter number, causes that links directed to chapter go to the chapter title. I don't think that it is something we should change, but you can change that in your document with some configurations like: --- \Preamble{xhtml} \newcommand\MyConfSection[2]{% \Configure{#1}{}{} {\IgnorePar\EndP\HCode{<#2} \HCode{ class="#1Head">}% }{\HCode{}\IgnoreIndent\par} } \MyConfSection{chapter}{h2} \MyConfSection{likechapter}{h2} \MyConfSection{section}{h3} \MyConfSection{likesection}{h3} \MyConfSection{subsection}{h3} \MyConfSection{likesubsection}{h3} \MyConfSection{subsubsection}{h3} \MyConfSection{likesubsubsection}{h3} \Css{.chapterHead .titlemark{display:block;}} \newcommand\ChapterLink[2]{\Link{}{#2}\TitleMark} \Configure{toTocLink}{\ChapterLink}{\EndLink} \begin{document} \EndPreamble --- all section levels must be fixed with `\MyConfSection`, because of the change in `\Configure{toTocLink}`, the `\TitleMark` is printed twice otherwise. Best regards, Michal
Re: [tex4ht] tex4ht puts the wrong link when splitting document. How to make the top of the page visible?
destination link is inserted after section number, Seems like before the section number would be better. What's the advantage of moving to after the number? Just seems confusing.
[tex4ht] tex4ht puts the wrong link when splitting document. How to make the top of the page visible?
When splitting a document, and clicking on a link from the parent page to go to the child page, one would expect the child page to open where the top of the page is visible. But what happens now, is that when the child page opens one has to use the slider to move it up a little to see the top of the page, where chapter name and the navigators are located (prev,tail,up), etc... This is really annoying. Since each time I open a page, I have to use the slider a little to see the top of the page in order to use the navgiation links. I noticed the link from parent to the child page has this pattern: page1.htm#x3-30001.1 And if the link is simply changed to just page1.htm Then now the child page will open with the top part visible. Here is a MWE to explain the problem - \documentclass{report}% \usepackage{lipsum} \begin{document} \tableofcontents \chapter{HW} This is a test \section{HW1} \lipsum \lipsum \lipsum \end{document} --- Compiled with make4ht --lua -u foo.tex "htm,2,pic-align,notoc*" And now from foo.htm, clicking on the link called HW1, a new page is opened (the child page). Now you'll see the problem. The top part of the page is not visible, and you'll notice the web page slider of the browser is little down the page. Tested on firefox and Chrome. Is there a way to make the new child page open with the top part visible? This is what one would expect. TL 2015 on Linux mint. Thank you, --Nasser
Re: [tex4ht] tex4ht puts the wrong link when splitting document. How to make the top of the page visible?
On 12/30/2015 8:24 PM, Nasser M. Abbasi wrote: And now from foo.htm, clicking on the link called HW1, opps, This should be link called HW not HW1 (i.e chapter name), since it is being split at chapter level. (2). Here is a more clear example: --- documentclass{report}% \usepackage{lipsum} \begin{document} \tableofcontents \chapter{HW} This is a test \section{HW1} \lipsum \lipsum \lipsum \section{HW2} \lipsum \lipsum \lipsum \chapter{more HW} This is a test \section{HW1} \lipsum \lipsum \lipsum \section{HW2} \lipsum \lipsum \lipsum \end{document} - make4ht --lua -u foo.tex "htm,2,pic-align,notoc*" The document is split at chapter level. So clicking on a chapter name, should open the child page at the top, which it does, except the navigators do not show. This is the issue. It will be better to open showing the very top of the page which clicking on chapter name. Thanks, --Nasser