Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
app:
image: ghcr.io/ximeraproject/ximeralatex:v2.7uf.8
image: ghcr.io/ximeraproject/ximeralatex:v2.7.0
# image: ghcr.io/ximeraproject/ximeralatex:v2.6.8-full
volumes:
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
Expand All @@ -10,4 +10,4 @@ services:
ximeraserver:
image: registry.gitlab.kuleuven.be/wet/ximera/ximeradocker:2.3_b
ports:
- "2080:2000" # Expose Ximera on port 2080
- "2080:2000" # Expose Ximera on port 2080
2 changes: 1 addition & 1 deletion .github/workflows/serve-ximera.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
XIMERA_URL: ${{ vars.XIMERA_URL }}
XIMERA_NAME: ${{ vars.XIMERA_NAME }}${{ github.ref_name }}
XOURSES: "./testXourses"
XOURSES: "basicLaTeX/enumerate"
XM_COMPILE_SEQUENCE: "pdf,handout.pdf,html"
run: |
ls -alrt
Expand Down
29 changes: 29 additions & 0 deletions basicLaTeX/enumerate/enumerate.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
\documentclass{ximera}
\title{Enumerate}

% could optionally change the package for enumerate/itemize
\input{enumerate_preamble.tex}

\begin{document}
\begin{abstract}
\end{abstract}
\maketitle

\section{Basic Usage}

An enumerate with a sub-enumerate :

\begin{enumerate}
\item First item
\item Second item
\begin{enumerate}
\item First subitem
\item Second subitem
\end{enumerate}
\end{enumerate}

\section{Intended Outcome of Test}

\section{Start of Test/Demo Area}

\end{document}
1 change: 1 addition & 0 deletions basicLaTeX/enumerate/enumerate_preamble.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
% \usepackage{enumitem}
1 change: 1 addition & 0 deletions basicLaTeX/enumerate/test_cfg/enumerate.tex
1 change: 1 addition & 0 deletions basicLaTeX/enumerate/test_cfg/enumerate_preamble.tex
200 changes: 200 additions & 0 deletions basicLaTeX/enumerate/test_cfg/ximera.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
%%
%% This is file `ximera.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ximera.dtx (with options: `cfgXimera')
%% src/pagesetup.dtx (with options: `cfgXimera')
%% src/packages.dtx (with options: `cfgXimera')
%% src/jax.dtx (with options: `cfgXimera')
%% src/sectioning.dtx (with options: `cfgXimera')
%% src/title.dtx (with options: `cfgXimera')
%% src/abstract.dtx (with options: `cfgXimera')
%% src/image.dtx (with options: `cfgXimera')
%% src/outcomes.dtx (with options: `cfgXimera')
%% src/textcolor.dtx (with options: `cfgXimera')
%% src/verbatim.dtx (with options: `cfgXimera')
%% src/html.dtx (with options: `cfgXimera')
%% src/ending.dtx (with options: `cfgXimera')
%% ------------:| ------------------------------------------------------------
%% ximera:| Simultaneously writing print and online interactive materials
%% Author:| Jim Fowler and Oscar Levin and Jason Nowell and Wim Obbels and Hans Parshall and Bart Snapp
%% E-mail:| [email protected]
%% License:| Released under the LaTeX Project Public License v1.3c or later
%% See:| http://www.latex-project.org/lppl.txt
%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\Preamble{xhtml,mathjax}


\catcode`\:=11
\ConfigureList{enumerate}%
{\EndP\HCode{<ol \a:enumerate:\space
class="enumerate\expandafter\the\csname @enumdepth\endcsname"
\a:LRdir
>}\PushMacro\end:itm
\global\let\end:itm=\empty
}
{\PopMacro\end:itm \global\let\end:itm \end:itm
%
\EndP\HCode{</li></ol>}\ShowPar
}
{\end:itm \gdef\end:itm{\EndP\Tg</li>}\DeleteMark
}
{{\Configure{Link}{li}{}{ class="enumerate" id=}{}%
\let\EndLink=\empty\par\ShowPar
\AnchorLabel }%
}

\catcode`\:=12





\NoFonts




\Configure{@HEAD}{\HCode{<meta name="ximera" content="version 2.5.1" />\Hnewline}}
\Configure{@HEAD}{\HCode{<link href="https://ximera.osu.edu/public/stylesheets/standalone.css" rel="stylesheet" media="screen"/>\Hnewline}}
\Configure{@HEAD}{\HCode{<script type="text/javascript" async src="https://ximera.osu.edu/public/javascripts/standalone.min.js"></script>\Hnewline}}

\catcode`\%=11
\Configure{@BODY}{\HCode{<style>
.activity-body pre {
white-space: pre;
background-color: lightgray;
}
.xmyoutube {
aspect-ratio: 16/9;
min-width: 75%;
}
.image-environment img {
width: unset;
}
</style>\Hnewline}}
\catcode`\%=14



\Configure{BVerbatimInput}{}{}{}{}

\Configure{verbatiminput}{}{}{}{}

\makeatletter
\def\FV@Space{\space}
\makeatother

\Configure{BODY}{%
\HCode{<body>\Hnewline}%
\Tg<div class="preamble">%
%% 202501: removed .jax inclusion (see luaxake)

%% Include the .ids file
\IfFileExists{\jobname.ids}{\HCode{<script type="text/javascript">\Hnewline}%
\BVerbatimInput{\jobname.ids}%
\HCode{</script>\Hnewline}%
}{}
\Tg</div>%
}{%
\ifvmode\IgnorePar\fi\EndP\HCode{</body>\Hnewline}%
}


\ScriptEnv{matlabEquation}{\ifvmode \IgnorePar\fi \EndP\HCode{<script type="math/tex; mode=display"> \string\begin{equation}\Hnewline}\HtmlParOff}{\HtmlParOn\HCode{\string\end{equation}</script>}}

\renewcommand{\paragraph}[1]{%
\HCode{<span class="paragraphHead">}%
#1%
\HCode{</span>}\par\IgnorePar}
\renewcommand{\subparagraph}[1]{%
\HCode{<span class="subparagraphHead">}%
#1%
\HCode{</span>}\par\IgnorePar}

\ifvmode\IgnorePar\fi\EndP
\ConfigureEnv{abstract}{\ifvmode\IgnorePar\fi\EndP\HCode{\Hnewline<div class="abstract">}\par}{\ifvmode\IgnorePar\fi\EndP\HCode{\Hnewline</div>}\par}{}{}
%% Although we accept many formats, SVG is preferred on the web.
%% Since we have a different mechanism for producing |alt| text, we
%% want to ignore tex4ht's own method fo producing alt text.
%% 2024: is now in TeX4ht ...
\ifcsname ifstandalone\endcsname
\ifstandalone
\renewcommand\includegraphics[2][]{}
\fi
\renewcommand{\outcome}[1]{
\Configure{@HEAD}{\HCode{<meta name="learning-outcome" content="#1"/>\Hnewline}}
}
\IfFileExists{\jobname.oc}{\input{\jobname.oc}}{}

\renewcommand{\outcome}[1]{%
\HCode{<span class="learning-outcome">#1</span>}
}
\makeatletter
\Configure{textcolor}{\HCode{<span style="color:\#\tsf@color;">}}{\HCode{</span>}}
\let\oldtextcolor\textcolor

\renewcommand\textcolor[2]{%
% we need to convert the current color to hexadecimal form usable in the style attribute
% the \tsf@color macro is used in the \Configure{textcolor} configuration to insert the
% CSS color
\extractcolorspec{#1}{\tsf@color}%
\expandafter\convertcolorspec\tsf@color{HTML}\tsf@color%
% call the original command
\oldtextcolor{#1}{#2}%
}%
\makeatother
\renewenvironment{javascriptCode}{\NoFonts}{\EndNoFonts}
\ScriptEnv{javascriptCode}{\stepcounter{identification}\ifvmode \IgnorePar\fi \EndP\HCode{<div class="javascript-code" id="javascript\arabic{identification}"><script type="text/text">}\HtmlParOff}{\HtmlParOn\HCode{\Hnewline</script></div>}}
%%% On the web, translate verbatim and lstlisting blocks into |<pre>|
%%% elements.
%%% \begin{macrocode}
%%%<*cfgXimera>
%%\ConfigureEnv{verbatim}{\ifvmode\IgnorePar\fi\EndP\HCode{<pre style="white-space: pre; background-color: lightgray;" >}}{\ifvmode\IgnorePar\fi\EndP\HCode{</pre>}}{}{}
%%\ConfigureEnv{lstlisting}{\ifvmode\IgnorePar\fi\EndP\HCode{<pre>}}{\ifvmode\IgnorePar\fi\EndP\HCode{</pre>}}{}{}
%%%</cfgXimera>
%%% \end{macrocode}
\Configure{textbf}{\ifvmode\ShowPar\fi\HCode{<strong>}}{\HCode{</strong>}}
\Configure{textit}{\ifvmode\ShowPar\fi\HCode{<em>}}{\HCode{</em>}}
\Configure{emph}{\ifvmode\ShowPar\fi\HCode{<em>}}{\HCode{</em>}}
\Configure{texttt}{\ifvmode\ShowPar\fi\HCode{<code>}}{\HCode{</code>}}


\begin{document}
\EndPreamble
%%
%% Copyright (C) 2024 by Bart Snapp <[email protected]> and Jim Fowler <[email protected]>
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License (LPPL), either
%% version 1.3c of this license or (at your option) any later
%% version. The latest version of this license is in the file:
%%
%% http://www.latex-project.org/lppl.txt
%%
%% This work is "maintained" (as per LPPL maintenance status) by
%% Bart Snapp. The source code can be found at:
%%
%% https://github.com/XimeraProject/ximeraLatex
%%
%% This work consists of the file ximera.dtx, the associated files
%% under src/, and a Makefile.
%%
%% Running "make" generates the derived files README, ximera.pdf, ximera.cls, xourse.cls.
%%
%% Running "make inst" installs the files in the user's TeX tree.
%%
%% Running "make install" installs the files in the local TeX tree.
%%
%%
%% End of file `ximera.cfg'.
20 changes: 20 additions & 0 deletions basicLaTeX/enumerate/xourse.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
\documentclass{xourse}

\title{Tests: enumerate/itemize}


\begin{document}
\maketitle

\activity{./enumerate}

% HACK: this input only works 'by accident', ie because there was none before
% Moreover, the ximera.cfg in test_cfg is NOT used
% THUS: consult the individual PDF of the activity !!!
\pdfOnly{
\input{test_cfg/enumerate_preamble.tex}
}

\activity{./test_cfg/enumerate}

\end{document}
12 changes: 0 additions & 12 deletions testXourses.TODO/enumerateTest.tex

This file was deleted.

12 changes: 12 additions & 0 deletions testXourses/enumerateTest.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\documentclass{xourse}

\title{Tests: enumerate/itemize}


\begin{document}
\maketitle

\activity{../enumerate/enumerate}
\activity{../enumerate/test_cfg/enumerate}

\end{document}
8 changes: 4 additions & 4 deletions xmScripts/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# version of Ximera xake container to use (with xmlatex)
#
# : "${XAKE_BASE:=ximeralatex}"
: "${XAKE_VERSION:=v2.7uf.8}"
: "${XAKE_VERSION:=v2.7.2}"
# : "${XAKE_VERSION:=v2.6.8-full}" # with texlive_full
#
# For publishing you'll need a GPG Key
# To generate a key-pair, fill in your name and email, and run 'xmlatex genKey'
YOUR_NAME="DUMMY_NAME_TEST"
YOUR_EMAIL="DUMMY_EMAIL_TEST"
YOUR_NAME="Just For DUMMY Testing"
YOUR_EMAIL="[email protected]"
#
# Current 'xmlatex genKey' logic:
# if there is no .xmKeyFile, and it is properly .gitignored,
Expand All @@ -21,7 +21,7 @@ YOUR_EMAIL="DUMMY_EMAIL_TEST"
# !! DO NOT SAVE THE KEY IN THIS config.txt FILE !!
#

## : "${XIMERA_NAME:=myreponame}"
: "${XIMERA_NAME:=myreponamexx}"
## : "${XIMERA_URL:=http://localhost:2000/}"
## : "${XIMERA_URL:=https://ximera.osu.edu/}"
## : "${XIMERA_URL:=https://set-p-dsb-zomercursus-latest.cloud-ext.icts.kuleuven.be/}"
Expand Down