I am preparing a beamer presentation which includes demo of some C, C++ or similar code. As these are demo, the execution time is very little. I was wondering if it is possible to execute the code within the presentation?
To display the code I am using minted. Here is a sample
\documentclass[12pt,xcolor=dvipsnames,mathsf]{beamer}
\usepackage{minted}
\begin{document}
\begin{frame}
\begin{minted}{C}
#include <stdio.h>
void main()
{
int a,b;
return (a+b);
}
\end{minted}
\end{frame}
\end{document}
Is there any way I can demonstrate the execution of this C code during the presentation, instead of uncovering output?
Thanks in advance! -- Mike
\href{run:...}{Click!}? – AlexG Feb 20 '19 at 13:40\verbatimor similar? Or show some kind of real-time console/terminal inside the pdf? If yes, that is almost impossible (with Adobe Reader and Javascript you might be able to do some things). Maybe it is an option to just switch (with alt-tab or cmd-tab on Mac) to the terminal window and then back to the pdf? – Marijn Feb 20 '19 at 13:46