Tag Info

New answers tagged

2

My very first attempt is something like morekeywords={>, etc}. But every > at the end of comments is colored pink. I cannot overrides its color by, say, moewkeywords=[9]{-->}. Then I found that it is probably because < and > are special in this case. More precisely, Listings actually takes care of tags by the following: when you say ...


2

Another option \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[LFE,LAE,OT1]{fontenc} \usepackage[arabic,english]{babel} %default language is last in list \begin{document} Hello world \begin{otherlanguage}{arabic} السَلامُ عَليكم \end{otherlanguage} Goodbye World! \end{document} and compile with htlatex foo.tex and the output is ...


2

It is quite easy to produce images with content of any environment. Any TeX content can be converted to image with \Picture+ ... \EndPicture commands, so we only need to configure arabtext environment to use these commands. Save following code as arab.cfg: \Preamble{xhtml} \ConfigureEnv{arabtext}{\HCode{<div ...


1

Pandoc includes raw HTML only if the output format is HTML-like. From the web-site: The raw HTML is passed through unchanged in HTML, S5, Slidy, Slideous, DZSlides, EPUB, Markdown, and Textile output, and suppressed in other formats. In order to get images to work for both, HTML and PDF writer, you have to use pandoc's own format: ![la ...


5

In case you would like the flag to fly... \documentclass[tikz, border=5pt]{standalone} \usetikzlibrary{shapes.symbols,positioning} \definecolor{rot}{HTML}{e40303} \definecolor{xorange}{HTML}{FF8c00} \definecolor{gelb}{HTML}{FFed00} \definecolor{gruen}{HTML}{008026} \definecolor{blau}{HTML}{004dFF} \definecolor{lilla}{HTML}{750787} \begin{document} ...


9

Some comments : xcolor is loaded by tikz, so don't reload it again, use capitals in color numbers, your last rectangle overlap the previous ones, you can make it shorter using foreach. Here is the code : \documentclass[tikz]{standalone} \definecolor{rot}{HTML}{E40303} \definecolor{xorange}{HTML}{FF8C00} \definecolor{gelb}{HTML}{FFED00} ...


8

The previous color is overwritten by the next larger rectangle, probably you want something like: \documentclass[tikz]{standalone} \definecolor{lila}{HTML}{8800bb} \definecolor{blau}{HTML}{0000FF} \definecolor{hellblau}{HTML}{88bbdd} \definecolor{gruen}{HTML}{66bb44} \definecolor{gelb}{HTML}{FFee00} \definecolor{orange}{HTML}{FF4411} ...


1

If i got you right you try to achieve something like The full code is: \documentclass{article} \begin{document} <<echo=TRUE, results= 'asis'>>= library(xtable) n <- data.frame(x = 1:6, y = 15:20) print( xtable(n) ) @ \end{document}


1

I have had good mileage with and would recommend pandoc for converting LaTeX to HTML output. Pandoc provides capability for applying CSS styling to HTML output and can take care of equation rendering with e.g. MathML and citation/bibliography styling, among many other features, and is well documented.


0

Thanks to the solution from dfc! This is based on his suggestion. You can directly use pandoc to convert HTML to PDF, e.g. convert google-cpp-styleguide.html to PDF documents: pandoc cppguide.html -o cppguide.pdf However, I prefer to firstly convert to LaTeX via pandoc, then edit .tex file to fit my desires (since the default PDF generated above is using ...



Top 50 recent answers are included