Tag Info

New answers tagged

4

\documentclass{article} \newwrite\objout \usepackage{environ} \NewEnviron{obj}[1] {% \fbox{\parbox{.5\textwidth}{\BODY}}% \immediate\openout\objout=#1.xml \immediate\write\objout{% <?xml version="1.0"?> <root>^^J% <obj name="name-of-obj">%^^J <content mime="application/x-latex"><![CDATA[^^J% ...


0

You could use DocBook, and convert to LaTeX with Pandoc. pandoc -f docbook -t latex yourfile.docbook DocBook is pretty well documented. As an alternative to a more structured format, Emacs org-mode can give you plenty of features in a text format, with many export options including LaTeX.


1

It seems as if the problem is unsolvable with the listings-package. As recommended by @Marco Daniel I switched to the minted-package which works like a charm. The installation was complicated but the instructions here helped me. How to install syntax highlight package minted on Windows 7? What all of these instructions where missing: You need to reboot ...



Top 50 recent answers are included