Skip to content

Commit 789d571

Browse files
committed
testing latexmlalt
1 parent ffe8e79 commit 789d571

17 files changed

+498
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ logs/
99
prc/
1010
standaloneweb/
1111
web/*.html
12+
web/figures/*.html
1213
web/*.png
1314
options.tex
1415
*.answers

apexNotes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.5#5 toggle
2+
1.5#8
3+
E13.5.6
4+
15
1.0 figure placement
26
3.5 KI 1 break p2 ?
37
4.2 colors ?

changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Changes for the 2018-07 version:
7474

7575
* By request of Chemistry, Section 13.7 has a short subsection on Taylor polynomials for f:R^2 -> R.
7676

77-
* Suppose f'(c)=0. Previously, we defined (c,f(c)) as the critical point, but were inconsistent about using point, value, or number. To match 265, we are defining c as the critical point, and f(c) as the critical value.
77+
* Suppose f'(c)=0. Previously, we defined (c,f(c)) as the critical point, but were inconsistent about using point, value, or number. To match Calc 3, we are defining c as the critical point, and f(c) as the critical value.
7878

7979
* The previous numbering was:
8080
* Theorem/Key Idea/Definition: #

errata/Errata.tex

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,31 @@
7575

7676
\maketitle
7777

78+
\noindent
79+
The following error exists in the in June 2021 printed version of Apex LT Calculus III:
80+
\begin{enumerate}
81+
\item \S13.5 p815 Example 6: In the final fraction, the ``$+3y^2$'' should be in the denominator, not the numerator.
82+
\label{2021-06-00III}
83+
\end{enumerate}
84+
85+
\end{document}
86+
87+
\begin{table}[ht]
88+
\caption{Errata Tally (``+'' indicates systemic errata)}
89+
\begin{tabular}{lccc}\toprule
90+
Version & Calculus I & Calculus II & Calculus III \\\midrule
91+
\errorrow{2021-06-00} \\
92+
\errorrow{2019-06-00} \\
93+
\errorrow{2018-07-13} \\
94+
\errorrow{2017-11-13} \\
95+
\errorrow{2017-07-27} \\
96+
\errorrow{2017-05-00} \\
97+
\errorrow{2017-01-00} \\
98+
\errorrow{2016-08-00} \\
99+
\bottomrule
100+
\end{tabular}
101+
\end{table}
102+
78103
\noindent
79104
The following errors exist in the in June 2019 printed version of Apex LT Calculus I:
80105
\begin{enumerate}
@@ -128,23 +153,6 @@
128153
\label{2019-06-00IIIplus}
129154
\end{enumerate}
130155

131-
\end{document}
132-
133-
\begin{table}[ht]
134-
\caption{Errata Tally (``+'' indicates systemic errata)}
135-
\begin{tabular}{lccc}\toprule
136-
Version & Calculus I & Calculus II & Calculus III \\\midrule
137-
\errorrow{2019-06-00} \\
138-
\errorrow{2018-07-13} \\
139-
\errorrow{2017-11-13} \\
140-
\errorrow{2017-07-27} \\
141-
\errorrow{2017-05-00} \\
142-
\errorrow{2017-01-00} \\
143-
\errorrow{2016-08-00} \\
144-
\bottomrule
145-
\end{tabular}
146-
\end{table}
147-
148156
%\newpage
149157

150158
\noindent

errata/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ If you are interested in a particular error, you can look through [Errata.tex](E
55

66
Version | Calculus I | Calculus II | Calculuc III
77
---|---|---|---
8+
9+
"+" indicates a systemic error.
10+
(The totals for a row may be higher than what's listed in [changes.md](../changes.md) due to double counting.)

latexmlAlts.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ \section{The section}
5252
\end{keyidea}
5353

5454
% todo tikz matrices see https://github.com/brucemiller/LaTeXML/issues/794
55-
%\begin{tikzpicture}
56-
% \matrix[row sep=1mm,column sep=3mm,ampersand replacement=\&]{
57-
% \&\&\& \node (tp1) {$-2$}; \&\& \node (tp2) {$2$}; \\[-1ex]
58-
% \node(linestart) {$x$}; \&\&\&\&\&\&\& \node(lineend) {}; \\[-1ex]
59-
% \&\node (fstart) {$x^2-4$}; \& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \\
60-
% };
61-
% \draw [<->] (linestart.east) -- (lineend);
62-
% \draw (fstart.south west) -- (lineend.west |- fstart.south);
63-
% \draw (fstart.east |- lineend) -- (fstart.east|-fstart.south);
64-
% \foreach \x in {1,2} {
65-
% \draw (tp\x|-linestart)+(0,5pt) -- (tp\x |- fstart.south);
66-
% }
67-
%\end{tikzpicture}
55+
\begin{tikzpicture}
56+
\matrix[row sep=1mm,column sep=3mm,ampersand replacement=\&]{
57+
\&\&\& \node (tp1) {$-2$}; \&\& \node (tp2) {$2$}; \\[-1ex]
58+
\node(linestart) {$x$}; \&\&\&\&\&\&\& \node(lineend) {}; \\[-1ex]
59+
\&\node (fstart) {$x^2-4$}; \& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \\
60+
};
61+
\draw [<->] (linestart.east) -- (lineend);
62+
\draw (fstart.south west) -- (lineend.west |- fstart.south);
63+
\draw (fstart.east |- lineend) -- (fstart.east|-fstart.south);
64+
\foreach \x in {1,2} {
65+
\draw (tp\x|-linestart)+(0,5pt) -- (tp\x |- fstart.south);
66+
}
67+
\end{tikzpicture}
6868

6969
\begin{example}[Example Title]\label{ex:label}
7070
This is my example. This is my example.

script.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,25 @@ function setup() {
2525
addPermaLinkFor('span.ltx_figure','span.ltx_caption')
2626
if ( $('section.ltx_index ul.ltx_indexlist').length ) {
2727
// add an A-Z to the index
28-
$('section.ltx_index ul.ltx_indexlist li.ltx_indexentry')
28+
// the first few entries are math, and shouldn't be counted with the A-Z
29+
// we'll find the first non-math entry, and then add the others
30+
// then we need to remove sub entries
31+
$('section.ltx_index ul.ltx_indexlist li.ltx_indexentry:not(:has(.ltx_Math))')
32+
.eq(0)
33+
.nextAll('section.ltx_index ul.ltx_indexlist li.ltx_indexentry')
34+
.addBack()
2935
.not('li.ltx_indexentry ul.ltx_indexlist li.ltx_indexentry')
3036
.each(readIndexEntry);
3137
$('<div id="indexContents"></div>')
3238
.insertAfter('h1.ltx_title.ltx_title_index');
3339
$.each(entriesIn,wrapEntries);
40+
// todo latexml
41+
$('.ltx_indexentry span[style="font-size:90%;"]').removeAttr('style');
3442
}
43+
// todo latexml
44+
$('.ltx_note.ltx_role_margin > .ltx_note_outer > .ltx_note_content > .ltx_inline-para > .ltx_para > .ltx_p')
45+
.filter(function() { return $(this).text()==='\u039B'; })
46+
.remove();
3547
fixFirefoxAnchorBug();
3648
}
3749

@@ -76,7 +88,7 @@ function readIndexEntry(ignoreIndex,indexEntry) {
7688

7789
function wrapEntries(firstLetter,indexEntries) {
7890
$("#indexContents").append('<a href="#'+firstLetter+'_entries">'+firstLetter+'</a>');
79-
indexEntries.wrapAll('<li id="'+firstLetter+'_entries"><ul></ul></li>');
91+
indexEntries.wrapAll('<li id="'+firstLetter+'_entries" class="entry_wrapper"><ul></ul></li>');
8092
indexEntries.parent().before('<span>'+firstLetter+'</span>');
8193
}
8294

slurm-alone.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash -l
2+
#-----------------------------------
3+
# slurm-latexml.sh
4+
#
5+
# David Apostal
6+
# UND Computational Research Center
7+
#
8+
# Submit:
9+
# sbatch slurm-latexml.sh
10+
#
11+
# Check status:
12+
# squeue | grep [userid]
13+
# squeue -u [userid]
14+
# squeue -j [jobid]
15+
#-----------------------------------
16+
17+
# use
18+
# git pull origin master
19+
# to make sure the code is up to date
20+
21+
#SBATCH --job-name=latexml
22+
#SBATCH --partition=talon
23+
24+
# Sets the maximum time the job can run (hh:mm:ss).
25+
#SBATCH --time=1:00:00
26+
27+
# Specifies nodes for the job.
28+
#SBATCH --nodes=1
29+
30+
# Sets the output file name. %x = job-name, %j = job-id
31+
#SBATCH --output=./%x.%j.out.txt
32+
#SBATCH --error=./%x.%j.err.txt
33+
34+
# Job events (mail-type): begin, end, fail, all.
35+
###SBATCH --mail-type=fail
36+
###SBATCH --mail-user=[userid]@und.edu
37+
38+
# load required modules here
39+
module load singularity
40+
# print the loaded modules
41+
#module list
42+
43+
echo ""
44+
echo "Job started at $(date)"
45+
echo ""
46+
47+
export LATEXML_KPSEWHICH=/home/timothy.prescott/.tex/texlive/2021/bin/x86_64-linux/kpsewhich
48+
49+
apexdir="../git/APEXCalculusLT_Source"
50+
latexmldir="../.cpan/sources/authors/id/B/BR/BRMILLER/LaTeXML-0.8.5/blib/script/"
51+
printf '\\newcommand{\\thetitle}{Calculus}\n\\printincolor\n\\usethreeDgraphics\n\\renewcommand{\\monthYear}{June 2021}\n' > $apexdir/options.tex
52+
singularity exec latexml.sif $latexmldir/latexml --quiet --destination=$apexdir/standalone.xml --nocomments $apexdir/standalone
53+
54+
echo ""
55+
echo "Job intermission at $(date)"
56+
echo ""
57+
58+
singularity exec latexml.sif $latexmldir/latexmlpost --split --destination=$apexdir/standaloneweb/index.html $apexdir/standalone.xml
59+
60+
echo ""
61+
echo "Job ended at $(date)"
62+
echo ""

slurm-apex.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/bin/bash -l
2+
#-----------------------------------
3+
# slurm-latexml.sh
4+
#
5+
# David Apostal
6+
# UND Computational Research Center
7+
#
8+
# Submit:
9+
# sbatch slurm-latexml.sh
10+
#
11+
# Check status:
12+
# squeue | grep [userid]
13+
# squeue -u [userid]
14+
# squeue -j [jobid]
15+
#-----------------------------------
16+
17+
# use
18+
# git pull origin master
19+
# to make sure the code is up to date
20+
21+
#SBATCH --job-name=latexml
22+
#SBATCH --partition=talon
23+
24+
# Sets the maximum time the job can run (hh:mm:ss).
25+
#SBATCH --time=48:00:00
26+
27+
# Specifies nodes for the job.
28+
#SBATCH --nodes=1
29+
30+
# Sets the output file name. %x = job-name, %j = job-id
31+
#SBATCH --output=./%x.%j.out.txt
32+
#SBATCH --error=./%x.%j.err.txt
33+
34+
# Job events (mail-type): begin, end, fail, all.
35+
###SBATCH --mail-type=fail
36+
###SBATCH --mail-user=[userid]@und.edu
37+
38+
# load required modules here
39+
module load singularity
40+
# print the loaded modules
41+
#module list
42+
43+
echo ""
44+
echo "Job started at $(date)"
45+
echo ""
46+
47+
export LATEXML_KPSEWHICH=/home/timothy.prescott/.tex/texlive/2021/bin/x86_64-linux/kpsewhich
48+
49+
#apexdir="../git/APEXCalculusLT_Source"
50+
latexmldir="../../.cpan/sources/authors/id/B/BR/BRMILLER/LaTeXML-0.8.5/blib/script/"
51+
singularitydir="../../latexml"
52+
printf '\\newcommand{\\thetitle}{Calculus}\n\\printincolor\n\\usethreeDgraphics\n\\renewcommand{\\monthYear}{June 2021}\n' > options.tex
53+
singularity exec $singularitydir/latexml.sif $latexmldir/latexml --quiet --destination=Calculus.xml --nocomments Calculus
54+
55+
echo ""
56+
echo "Job intermission at $(date)"
57+
echo ""
58+
59+
singularity exec $singularitydir/latexml.sif $latexmldir/latexmlpost --split --destination=web/index.html Calculus
60+
61+
echo ""
62+
echo "Job ended at $(date)"
63+
echo ""

0 commit comments

Comments
 (0)