Skip to content

Commit 779a39f

Browse files
committed
added these
1 parent f94941c commit 779a39f

File tree

2 files changed

+105
-12
lines changed

2 files changed

+105
-12
lines changed

dtxTests/expandable/expandable.tex

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,32 @@ \section{Start of Test/Demo Area}
4141
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
4242
\end{expandable}
4343

44+
\begin{expandable}{example}{A first example of an expandable environment.}
45+
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
46+
\end{expandable}
47+
48+
49+
50+
\begin{expandable}{}{}
51+
$
52+
A^{2k} = \left[ \begin{array}{rc|rr}
53+
1 & -2k & 0 & 0 \\
54+
0 & 1 & 0 & 0 \\
55+
\hline
56+
0 & 0 & 1 & 0 \\
57+
0 & 0 & 0 & 1
58+
\end{array} \right]$ for $k = 0, 1, 2, \dots$
59+
60+
$A^{2k + 1} = A^{2k}A = \left[ \begin{array}{rc|rr}
61+
1 & -(2k + 1) & 2 & -1 \\
62+
0 & 1 & 0 & 0 \\
63+
\hline
64+
0 & 0 & -1 & 1 \\
65+
0 & 0 & 0 & 1
66+
\end{array} \right]$ for $k = 0, 1, 2, \dots$
67+
\end{expandable}
68+
69+
4470

4571

4672
\hrulefill

dtxTests/image/image.tex

Lines changed: 79 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,108 @@ \section{Intended Outcome of Test}
2727

2828
\section{Start of Test/Demo Area}
2929

30+
31+
A TikZ image in an image environment:
32+
\begin{image}
33+
\begin{tikzpicture}
34+
\begin{axis}[
35+
xmin=-6.4,
36+
xmax=6.4,
37+
ymin=-1.2,
38+
ymax=1.2,
39+
axis lines=center,
40+
xlabel=$x$,
41+
ylabel=$y$,
42+
every axis y label/.style={at=(current axis.above
43+
origin),anchor=south},
44+
every axis x label/.style={at=(current axis.right of
45+
origin),anchor=west},
46+
]
47+
\addplot [ultra thick, blue, smooth] {sin(deg(x))};
48+
\end{axis}
49+
\end{tikzpicture}
50+
\end{image}
51+
52+
3053
%\begin{image}
3154
% svg format in an image environment:
3255
%
3356
% \includesvg{missionPatch.svg}
3457
%\end{image}
35-
\begin{image}
36-
png format in an image environment:
58+
\hrulefill
3759

60+
A PNG in an image environment:
61+
\begin{image}
3862
\includegraphics{missionPatch.png}
3963
\end{image}
40-
\begin{image}
41-
pdf format in an image environment:
4264

65+
\hrulefill
66+
67+
A PDF in an image environment:
68+
69+
\begin{image}
4370
\includegraphics{missionPatch.pdf}
4471
\end{image}
45-
\begin{image}
46-
jpg/jpeg format in an image environment:
4772

73+
\hrulefill
74+
75+
A JPG format in an image environment:
76+
77+
\begin{image}
4878
\includegraphics{missionPatch.jpg}
4979
\end{image}
5080

5181
\hrulefill
5282

53-
{{\bfseries \large Same Formats in the same order but No image environment below here}}
83+
\subsection{Repeat but in \texttt{center}}
84+
85+
\begin{center}
86+
\begin{tikzpicture}
87+
\begin{axis}[
88+
xmin=-6.4,
89+
xmax=6.4,
90+
ymin=-1.2,
91+
ymax=1.2,
92+
axis lines=center,
93+
xlabel=$x$,
94+
ylabel=$y$,
95+
every axis y label/.style={at=(current axis.above
96+
origin),anchor=south},
97+
every axis x label/.style={at=(current axis.right of
98+
origin),anchor=west},
99+
]
100+
\addplot [ultra thick, blue, smooth] {sin(deg(x))};
101+
\end{axis}
102+
\end{tikzpicture}
103+
\end{center}
104+
105+
106+
%\begin{center}
107+
% svg format in an center environment:
108+
%
109+
% \includesvg{missionPatch.svg}
110+
%\end{center}
111+
\hrulefill
112+
113+
A PNG in an center environment:
114+
\begin{center}
115+
\includegraphics{missionPatch.png}
116+
\end{center}
54117

55118
\hrulefill
56119

57-
%\includesvg{missionPatch.svg}
120+
A PDF in an center environment:
58121

59-
\includegraphics{missionPatch.png}
122+
\begin{center}
123+
\includegraphics{missionPatch.pdf}
124+
\end{center}
60125

61-
\includegraphics{missionPatch.pdf}
126+
\hrulefill
62127

63-
\includegraphics{missionPatch.jpg}
128+
A JPG format in an center environment:
64129

130+
\begin{center}
131+
\includegraphics{missionPatch.jpg}
132+
\end{center}
65133

66-
\hrulefill
67134
\end{document}

0 commit comments

Comments
 (0)