Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Commit 1e75bee

Browse files
committed
fix(icode): pretty code listing
1 parent 8f4695b commit 1e75bee

24 files changed

+185
-126
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ $(TEXMFHOME)/tex/latex/$(PROJECT)/%: $(SRC)/%
8282
clean-$(CURDIR)/%: $(CURDIR)/%
8383
@ $(RM) --recursive --verbose $(<D)/_minted-*
8484
@ $(RM) --recursive --verbose $(<D)/*.bbl
85+
@ $(RM) --recursive --verbose $(<D)/*.fls
8586
@ $(RM) --recursive --verbose $(<D)/*.listing
8687
@ $(RM) --recursive --verbose $(<D)/*.nav
8788
@ $(RM) --recursive --verbose $(<D)/*.run.xml

demo/article/manual/pkg/amsthm.tex

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
% !TeX root = ../manual.tex
22

33
\subsection{\pkg{amsthm} - Typesetting theorems (AMS style)}
4-
5-
\begin{tcblisting}{label = listing:amsthm}
6-
\theoremstyle{plain}
7-
\newtheorem{thm}{Theorem}[section]
8-
\begin{thm}
9-
Text text ...
10-
\end{thm}
11-
\end{tcblisting}

demo/article/manual/pkg/blindtext.tex

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22

33
\subsection{\pkg{blindtext} - Producing 'blind' text for testing}
44

5-
\begin{listing}[H]
6-
\begin{minted}{latex}
7-
\blindmathtrue
8-
\blindtoctrue
9-
\Blinddocument
10-
\end{minted}
11-
\caption{}
12-
\label{listing:blindtext}
13-
\end{listing}
5+
\begin{demo}[listing only]{}{blindtext}
6+
\blindmathtrue
7+
\blindtoctrue
8+
\Blinddocument
9+
\end{demo}

demo/article/manual/pkg/booktabs.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
\subsection{\pkg{booktabs} - Publication quality tables in LaTeX}
44

5-
\begin{tcblisting}{label = listing:booktabs}
5+
\begin{demo}{}{booktabs}
66
\begin{tabular}{@{}llr@{}} \toprule
77
\multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2}
88
Animal & Description & Price (\$) \\ \midrule
@@ -12,4 +12,4 @@ \subsection{\pkg{booktabs} - Publication quality tables in LaTeX}
1212
Emu & stuffed & 33.33 \\
1313
Armadillo & frozen & 8.99 \\ \bottomrule
1414
\end{tabular}
15-
\end{tcblisting}
15+
\end{demo}

demo/article/manual/pkg/cleveref.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
\subsection{\pkg{cleveref} - Intelligent cross-referencing}
44

5-
\begin{tcblisting}{label = listing:cleveref}
6-
\cref{listing:cleveref}
7-
\end{tcblisting}
5+
\begin{demo}[listing side text]{}{cleveref}
6+
\cref{demo:cleveref}
7+
\end{demo}

demo/article/manual/pkg/esint.tex

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
\subsection{\pkg{esint} - Extended set of integrals for Computer Modern}
44

5-
\begin{table}
6-
\centering
7-
\caption{}
8-
\begin{tabular}{|c|c|} \hline
9-
\mintinline{latex}{\int} & $\int$ \\ \hline
10-
\mintinline{latex}{\iint} & $\iint$ \\ \hline
11-
\mintinline{latex}{\iiint} & $\iiint$ \\ \hline
12-
\mintinline{latex}{\iiiint} & $\iiiint$ \\ \hline
13-
\mintinline{latex}{\idotsint} & $\idotsint$ \\ \hline
14-
\mintinline{latex}{\oint} & $\oint$ \\ \hline
15-
\mintinline{latex}{\oiint} & $\oiint$ \\ \hline
16-
\mintinline{latex}{\varoiint} & $\varoiint$ \\ \hline
17-
\mintinline{latex}{\sqint} & $\sqint$ \\ \hline
18-
\mintinline{latex}{\sqiint} & $\sqiint$ \\ \hline
19-
\mintinline{latex}{\ointctrclockwise} & $\ointctrclockwise$ \\ \hline
20-
\mintinline{latex}{\ointclockwise} & $\ointclockwise$ \\ \hline
21-
\mintinline{latex}{\varointclockwise} & $\varointclockwise$ \\ \hline
22-
\mintinline{latex}{\varointctrclockwise} & $\varointctrclockwise$ \\ \hline
23-
\mintinline{latex}{\fint} & $\fint$ \\ \hline
24-
\mintinline{latex}{\landupint} & $\landupint$ \\ \hline
25-
\mintinline{latex}{\landdownint} & $\landdownint$ \\ \hline
26-
\end{tabular}
27-
\end{table}
5+
\begin{demo}[listing side text]{}{}
6+
\begin{equation*}
7+
\begin{array}{l}
8+
\int \\
9+
\iint \\
10+
\iiint \\
11+
\iiiint \\
12+
\idotsint \\
13+
\oint \\
14+
\oiint \\
15+
\varoiint \\
16+
\sqint \\
17+
\sqiint \\
18+
\ointctrclockwise \\
19+
\ointclockwise \\
20+
\varointclockwise \\
21+
\varointctrclockwise \\
22+
\fint \\
23+
\landupint \\
24+
\landdownint \\
25+
\end{array}
26+
\end{equation*}
27+
\end{demo}

demo/article/manual/pkg/float.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
\subsection{\pkg{float} - Improved interface for floating objects}
44

5-
\begin{tcblisting}{label = listing:float}
5+
\begin{demo}{}{float}
66
\begin{figure}[H]
77
\centering
88
\includegraphics{example-image}
99
\caption{}
1010
\end{figure}
11-
\end{tcblisting}
11+
\end{demo}

demo/article/manual/pkg/geometry.tex

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
\subsection{\pkg{geometry} - Flexible and complete interface to document dimensions}
44

5-
\begin{listing}[H]
6-
\begin{minted}{latex}
7-
\geometry{
8-
hmargin = 20mm,
9-
paper = a4paper,
10-
vmargin = 25mm,
11-
}
12-
\end{minted}
13-
\caption{}
14-
\label{listing:geometry}
15-
\end{listing}
5+
\begin{demo}[listing only]{}{geometry}
6+
\geometry{
7+
hmargin = 20mm,
8+
paper = a4paper,
9+
vmargin = 25mm,
10+
}
11+
\end{demo}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
% !TeX root = ../manual.tex
22

33
\subsection{\pkg{graphicx} - Enhanced support for graphics}
4+
5+
\cref{demo:float}

demo/article/manual/pkg/import.tex

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
\subsection{\pkg{import} - Establish input relative to a directory}
44

5-
\begin{listing}[H]
6-
\begin{minted}{latex}
7-
\import{<full-path>}{<file>}
8-
\subimport{<relative-path>}{<file>}
9-
\end{minted}
10-
\caption{}
11-
\label{listing:import}
12-
\end{listing}
5+
\begin{demo}[listing only]{}{import}
6+
\import{<full-path>}{<file>}
7+
\subimport{<relative-path>}{<file>}
8+
\end{demo}

0 commit comments

Comments
 (0)