[tex4ht] [bug #172] oolatex: Spurious spaces after cross references and citations

2023-11-03 Thread Michal Hoftich
Update of bug #172 (project tex4ht):

 Open/Closed:Open => Closed 

___

Follow-up Comment #3:

I've tried this MWE and while the original issue was fixed, some more appeared
over the years. But everything should be OK now.

___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #172] oolatex: Spurious spaces after cross references and citations

2018-10-25 Thread Michal Hoftich
Follow-up Comment #2, bug #172 (project tex4ht):

Thank you for the report, the original issue indeed seems to be fixed. 

The footnote issue can be fixed without need to use sed. I cannot find the
source of the spurious spaces, but tex4ht can be instructed to ignore spaces
using the \special{t4ht@)} command. I've added this command to the footnote
configuration in the ooffice configuration file and it seems to fix the issue.


BTW, it is better to use 

   make4ht -f odt filename.tex

instead of the old mk4ht oolatex, it fixes lot of issues with file names,
Unicode and it also supports filtering of the XML files before the xt-pipes
processing. See https://tex.stackexchange.com/a/447968/2891 for example.

The additional information about tex4ht \special commands can be found for
example here: https://www.kodymirus.cz/src4ht/tex4ht-moz18.html 


___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



[tex4ht] [bug #172] oolatex: Spurious spaces after cross references and citations

2018-10-25 Thread Florian Zumkeller-Quast
Follow-up Comment #1, bug #172 (project tex4ht):

I can't confirm the behaviour for \ref{} and \cite{} but only for \footnote{}
and \footcite{}.

In those cases, there is a possibility for a dirty workaround:

$ cat /usr/share/texmf/tex4ht/base/unix/tex4ht.env | sed -E
"s:(4oo.+)(mv):\1sed -E 's/( )\{2,\}(
~/texmf/tex4ht/base/unix/tex4ht.env && mktexlsr

This changes the "packing" behaviour of "-coo" to not just move the generated
content.xml, but to replace the unwanted whitespaces first. For my usecase
this seems to work. (Make sure the paths are correct and exist on your system
and that you don't override already existing custom settings on your system!)


This workaround is based on some assumptions:

1. The Bug seems to be fixed for \ref and \cite
2. But it is still present for footnotes
3. A single whitespace before a link tag is valid and there because the
TeX-Author wanted it
4. Multiple Spaces are Bug-induced code that is completely unwanted.


___

Reply to this item at:

  

___
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/