which packages can I use to display the latex code and the compilation result at the same time?
Asked
Active
Viewed 170 times
1
-
1listings, minted, ... – Mar 11 '18 at 10:09
-
1You could take a look at https://tex.stackexchange.com/questions/19295/side-by-side-source-and-output-when-documenting-a-style-file for some inspiration. – sgmoye Mar 11 '18 at 13:27
1 Answers
8
I find the tcolorbox package with the tcblisting environment very handy to display the source and output at the same time.
\documentclass{article}
\usepackage{tikzducks}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{tcblisting}{title={Birthday duck}}
\begin{tikzpicture}
\duck[cake]
\end{tikzpicture}
\end{tcblisting}
\end{document}
samcarter_is_at_topanswers.xyz
- 158,329
