diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-16 20:58:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-16 20:58:54 +0000 |
commit | 6a84b544833458d78cf2c9b428d604415a238cb9 (patch) | |
tree | 516deb604d482ffb5502f94d7a4bdc3f2b670f83 /Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex | |
parent | d2251cac156b6cecda6860c30aecc044a72c00da (diff) |
pygmentex (16aug22)
git-svn-id: svn://tug.org/texlive/trunk@64131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex b/Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex new file mode 100644 index 00000000000..fc684fa615e --- /dev/null +++ b/Master/texmf-dist/doc/latex/pygmentex/pygmentex_demo_2.tex @@ -0,0 +1,23 @@ +\documentclass{article} +\usepackage[T1]{fontenc} +\usepackage[scaled=0.85]{beramono} +\usepackage[force]{pygmentex} + +\begin{document} + +This is my C program: + +\begin{pygmented}[lang=c] +#include <stdio.h> +int main(void) +{ + int a, b, c; + printf("Enter two numbers to add: "); + scanf("%d%d", &a, &b); + c = a + b; + printf("Sum of entered numbers = %d\n", c); + return 0; +} +\end{pygmented} + +\end{document} |