Re: [tex4ht] issue with tex4ht and minted package, extra space added

2016-05-29 Thread Karl Berry
Found a big problem with tex4ht adding extra space at start
of each listing line in HTML, 

It's easy to believe that an extra space is being created somewhere
along the line.  Especially since there is no minted.4ht, and minted.sty
necessarily has to play games with the ~ character.

Unfortunately I cannot run the document, since I get (after installing
the python-pygments package on my CentOS 6 system):

  *** Error while highlighting:
  ClassNotFound: filter 'tokenmerge' not found
 (file "/usr/lib/python2.6/site-packages/pygments/filters/__init__.py", 
line 47, in get_filter_by_name)

And so the output is entirely empty.  I don't know where that "filter"
is supposed to come from.  Some web searches didn't turn up anything
obvious.  Sorry ... I submitted the bug report to the tracker.  -k



[tex4ht] [bug #308] extra space from minted.sty

2016-05-29 Thread Karl Berry
URL:
  

 Summary: extra space from minted.sty
 Project: tex4ht
Submitted by: karl
Submitted on: Mon 30 May 2016 02:43:34 AM EEST
Category: None
Priority: 5 - Normal
Severity: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Discussion Lock: Any

___

Details:

from nasser: http://tex.stackexchange.com/questions/311284
http://tug.org/pipermail/tex4ht/2016q2/001471.html

make4ht foo.tex "--shell-escape" on

\documentclass[11pt]{article}%ext
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{minted}
\usepackage{upquote} %to fix string quotes
\setlength\parindent{0pt}
\begin{document}

\begin{minted}[linenos=false,fontfamily=tt,frame=leftline,
   showspaces=false,stripall=true,xleftmargin=0pt]{matlab}
clear all; close all;
t   = 0:0.05:50;
s   = tf('s');
sys = 1/(s^2+0.2*s+1);
\end{minted}
\end{document}





___

Reply to this item at:

  

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