Skip to content

Commit 52793c9

Browse files
committed
update foldable tests
1 parent daf18f8 commit 52793c9

File tree

4 files changed

+73
-2
lines changed

4 files changed

+73
-2
lines changed

testXourses/foldableTest.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
\begin{document}
77
\maketitle
88

9+
\activity{testFiles/expandable}
910
\activity{testFiles/foldableEnvironments}
11+
\activity{testFiles/foldableEnvironmentsOSU}
1012

1113

1214
\end{document}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
\documentclass{ximera}
2+
\title{Expandables}
3+
4+
\begin{document}
5+
\begin{abstract}
6+
\end{abstract}
7+
\maketitle
8+
9+
\section{Basic Usage}
10+
11+
\begin{expandable}{example}{A first example of an expandable environment.}
12+
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
13+
\end{expandable}
14+
15+
\begin{expandable}{remark}{Another example of an expandable environment, now a remark.}
16+
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
17+
\end{expandable}
18+
19+
\section{Intended Outcome of Test}
20+
21+
\section{Start of Test/Demo Area}
22+
23+
\end{document}

testXourses/testFiles/foldableEnvironments.tex

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
\documentclass{ximera}
22

3-
\input{../preamble}
3+
% \input{../preamble}
44

5-
\title{Foldable environments}
5+
\title{Foldable environments (Old syntax, default setup)}
66

77
\begin{document}
88
\begin{abstract}
99
Here we see expandable and foldable environments.
1010
\end{abstract}
1111
\maketitle
1212

13+
NOTE: This is deprecated, and only works on the OSU-server WITH APPROPRIATELY SET VARIABLES:
14+
15+
\begin{verbatim}
16+
\def\xmNotHintAsExpandable{1}
17+
\def\xmNotExpandableAsAccordion{1}
18+
\end{verbatim}
19+
1320
You can expand this one:
1421

1522
\begin{expandable}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
%% Use the OSU variant of foldable/expandable
2+
%% By default a setup with accordion is used, that is not available on the OSU-server
3+
%
4+
\def\xmNotHintAsExpandable{1}
5+
\def\xmNotExpandableAsAccordion{1}
6+
\documentclass{ximera}
7+
8+
%%\input{../preamble}
9+
10+
\title{Foldable environments (OSU-style)}
11+
12+
\begin{document}
13+
\begin{abstract}
14+
Here we see expandable and foldable environments.
15+
\end{abstract}
16+
\maketitle
17+
18+
NOTE: This does \textbf{NOT} work properly with KULeuven-styled server(s) (as used in Codespaces or local test-servers).
19+
20+
21+
You can expand this one:
22+
23+
\begin{expandable}
24+
Hello
25+
\begin{center}
26+
\youtube{0aQpLSu2fMs}
27+
\end{center}
28+
\end{expandable}
29+
30+
31+
32+
And fold this one:
33+
34+
\begin{foldable}
35+
You can fold me up!
36+
\end{foldable}
37+
38+
39+
\end{document}

0 commit comments

Comments
 (0)