Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

TeX4ht doesn't quite understand the currvita style's cvlist environment. It appears that cvlist takes the heading as an argument, typesets this heading into an \sbox, and uses the sbox inside the first list item. TeX4ht then typesets the first list item incorrectly. Any quick fixes floating around?

share|improve this question
add comment

1 Answer 1

You did not provide a mwe, so I used this LaTeX code:

\documentclass{article}
\usepackage[]{currvita}
\begin{document}
\begin{cvlist}{experiences}
\item something about it
\item this was a nightmare
\end{cvlist}
\end{document}

which produces PDF:

enter image description here

when processed with htlatex, cvlist is transformed into dl tag, where text "expereinces" is in tag dt and \item are transformed into dd. It is possible to achieve layout similar to the pdf version useing some CSS code. You can add CSS to your document through custom config file, eg, curr.cfg:

\Preamble{html} 
\begin{document} 

\Css{dl {margin: 2em 0;
    padding: 0;
}}
\Css{dt { position: relative;
    left: 0;
    float:left;
    width: 6em;
}}
\Css{dd { border-left: 1px solid \#000;
    margin: 0 0 0 8em;
    padding: 0 0 .5em .5em;
}}

\EndPreamble  

and then you can call htlatex yourfile "curr".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.