Skip to content
Merged
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
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ RUN tlmgr update --self; \
mdframed \
zref \
needspace \
ninecolors
ninecolors \
supertabular import boxedminipage chapterfolder sectsty tocbibind sfmath


RUN apt-get install -y mupdf-tools lsof
Expand Down
8 changes: 7 additions & 1 deletion luaxake/luaxake-transform-html.lua
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,13 @@ end
log:trace("Process .xmcss file if present")
local css_file = src:gsub(".html$", ".xmcss")
if not path.exists(css_file) then
log:debug("No CSS file with extra CSS config")
log:debugf("No .xmcss file %s present",css_file)
css_file = nil
end

if css_file and path.getsize(css_file) == 0 then
log:debug("Removing empty .xmcss file %s", css_file)
pl.file.delete(css_file)
css_file = nil
end

Expand Down
15 changes: 14 additions & 1 deletion src/image.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@
%</classXimera>
% \end{macrocode}
% \DescribeMacro{\alt}{Inside an |image| environment, |\alt| provides alt-text for assistive technology like screenreaders.}
% \DescribeMacro{\xmalt}{Generic command to provide alt-text for assistive technology like screenreaders, via the HTML <details> tag.}
% \begin{macrocode}
%<*classXimera>
\newcommand{\alt}[1]{}
\newcommand{\alt}[1]{} %% Deprecated

\providecommand\xmaltprint{}
%% use \undef\xmaltprint to NOT have \xmalt output in the PDF
\newcommand{\xmalt}[1]{% %% see infra for HTML implementation; 2026, J. Kuan
\ifdefined\xmaltprint%
{\footnotesize\color{gray}Alt text: #1}%
\fi%
}
%</classXimera>
% \end{macrocode}
% The |image| environment doesn't actually work in tex4ht as defined
Expand All @@ -39,6 +48,10 @@
\HCode{<div class="image-environment" role="img" aria-labelledby="image-alt-\arabic{imagealt}">}%
}{\HCode{</div>}}
\renewcommand{\alt}[1]{\HCode{<div style="display: none;" id="image-alt-\arabic{imagealt}">}#1\HCode{</div>}}
\renewcommand{\xmalt}[1]{% %% implementation 2026, J. Kuan
\ifvmode \IgnorePar\fi \EndP%
\HCode{<details><summary>Show Alt Text</summary>} #1 \HCode{</details>}%
}
%</htXimera>
%<*cfgXimera>
%% Although we accept many formats, SVG is preferred on the web.
Expand Down
4 changes: 4 additions & 0 deletions ximera.4ht
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@
\HCode{<div class="image-environment" role="img" aria-labelledby="image-alt-\arabic{imagealt}">}%
}{\HCode{</div>}}
\renewcommand{\alt}[1]{\HCode{<div style="display: none;" id="image-alt-\arabic{imagealt}">}#1\HCode{</div>}}
\renewcommand{\xmalt}[1]{% %% implementation 2026, J. Kuan
\ifvmode \IgnorePar\fi \EndP%
\HCode{<details><summary>Show Alt Text</summary>} #1 \HCode{</details>}%
}
\providecommand{\pgfsyspdfmark}[3]{}
\renewenvironment{dialogue}{\begin{description}}{\end{description}}

Expand Down
10 changes: 9 additions & 1 deletion ximera.cls
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,15 @@
\NewEnviron{image}[1][3in]{%
\begin{center}\resizebox{#1}{!}{\BODY}\end{center}% resize and center
}
\newcommand{\alt}[1]{}
\newcommand{\alt}[1]{} %% Deprecated

\providecommand\xmaltprint{}
%% use \undef\xmaltprint to NOT have \xmalt output in the PDF
\newcommand{\xmalt}[1]{% %% see infra for HTML implementation; 2026, J. Kuan
\ifdefined\xmaltprint%
{\footnotesize\color{gray}Alt text: #1}%
\fi%
}


\DefineVerbatimEnvironment{javascript}{Verbatim}{numbers=left,frame=lines,label=JavaScript,labelposition=topline}
Expand Down
720 changes: 155 additions & 565 deletions ximera.fls

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ximera.glo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
\glossaryentry{v1.0.0> =General:>First public release|hdpindex{}}{1}
\glossaryentry{v1.5.0> =General:>Submitting to CTAN|hdpindex{}}{1}
\glossaryentry{v1.5.1> =General:>Fixed date bug|hdpindex{}}{1}
\glossaryentry{v1.0.0>!!=General:>First public release|hdpindex{}}{1}
\glossaryentry{v1.5.0>!!=General:>Submitting to CTAN|hdpindex{}}{1}
\glossaryentry{v1.5.1>!!=General:>Fixed date bug|hdpindex{}}{1}
Binary file modified ximera.pdf
Binary file not shown.
14 changes: 9 additions & 5 deletions xmScripts/xmlatex
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ reset_file_times() {
# therefore: restore all modif-dates
echo "Resetting file modif times (this prevents some unneeded recompilations after a recent git checkout ...)"

if [ -f "/usr/lib/git-core/git-restore-mtime" ]
then
echo "Patching git restore-mtime" ###
sed -i 's/whatchanged --pretty/whatchanged --i-still-use-this --pretty/' /usr/lib/git-core/git-restore-mtime
fi
# if [ -f "/usr/lib/git-core/git-restore-mtime" ]
# then
# echo "Patching git restore-mtime" ###
# sed -i 's/whatchanged --pretty/whatchanged --i-still-use-this --pretty/' /usr/lib/git-core/git-restore-mtime
# fi

#
# Construct a git restore-mtime command with proper 'verbosity' (AND allow to overwrite everything by setting a GIT_RESTORE variable!)
Expand Down Expand Up @@ -663,6 +663,10 @@ EOF
echo "I created a .xmKeyFile with a newly generated key for $KEY_UID."
echo "This is convenient for quick testing, or in some cases while developing on your local PC."
# echo "*** Do NEVER publish this key (eg by commit/push) ***"

echo "Using settings from .xmkeyfile"
source .xmkeyfile
echo "Using key_id $GPG_KEY_ID (with key ${GPG_KEY:0:5}...)"
fi


Expand Down