Skip to content

Commit 11bdf97

Browse files
committed
exercise numbering for LaTeXML
1 parent ffc5ee6 commit 11bdf97

File tree

3 files changed

+31
-39
lines changed

3 files changed

+31
-39
lines changed

apexNotes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
9.6 principle of ratio test: a_n behaves like L^n
12

23
1.0 figure placement
34
3.5 KI 1 break p2 ?

headers/APEX_format.tex

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,18 @@
420420
\makeatletter
421421
\newcommand{\openenumerate}{%
422422
\ifx\@currenvir\exerenv\else%
423-
\begin{sectionexercises}
424-
\ifbool{latexml}{\setcounter{sectionexercisesi}{\value{saveexercisenum}}}{}%
423+
\ifbool{latexml}{%
424+
\begin{sectionexercises}[label=\arabic*.,ref=\arabic*]
425+
\setcounter{sectionexercisesi}{\value{saveexercisenum}}%
426+
}{%
427+
\begin{sectionexercises}
428+
}%
425429
\fi%
426430
}
427431
\newcommand{\closeenumerate}{
428432
\ifx\@currenvir\exerenv%
429-
\ifbool{latexml}{\setcounter{saveexercisenum}{\value{sectionexercisesi}}}{}%
430-
\end{sectionexercises}
433+
\ifbool{latexml}{\setcounter{saveexercisenum}{\value{sectionexercisesi}}}{}%
434+
\end{sectionexercises}
431435
\fi%
432436
}
433437
\makeatother
@@ -443,8 +447,8 @@
443447
}%
444448
\pagebreak[1]%
445449
{%
446-
\setlist[enumerate,1]{label=(\alph*)}%
447-
\noindent#1 \arabic{sectionexercisesi}--\ref*{enumiatendof\theexercisesetcounter}#2%
450+
\setlist[enumerate,1]{label=(\alph*)}%
451+
\noindent#1 \arabic{sectionexercisesi}--\ref*{enumiatendof\theexercisesetcounter}#2%
448452
}%
449453
\addtocounter{sectionexercisesi}{-1}\ignorespaces%
450454
\nopagebreak%

standalone.tex

Lines changed: 20 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222

2323
\frontmatter
2424

25-
\input{text/front_matter_and_cover}
26-
% \label{lxApexTOC}
27-
% \tableofcontents
28-
% \input{text/title_page}
29-
% \input{text/copyright_page}
30-
%\addtocontents{toc}{\protect\thispagestyle{empty}}%
31-
%\input{text/preface}
25+
%\input{text/front_matter_and_cover}
3226

3327
\mainmatter
3428

@@ -37,26 +31,22 @@ \part*{Calculus I}
3731

3832
\apexchapter[text/01_Prerequisite]{Limits}{ch:label}
3933

40-
Some intro stuff.
41-
\chapterautorefname
42-
\sectionautorefname
43-
\figureautorefname
44-
\appendixname
45-
\the\marginparwidth
46-
\the\defaultaddspace
34+
Some intro stuff.\\
35+
Chapter:\chapterautorefname:\\
36+
Section:\sectionautorefname:\\
37+
Figure:\figureautorefname:\\
38+
Appendix:\appendixname:\\
39+
150.0pt:\the\marginparwidth:\\
40+
5.0pt:\the\defaultaddspace:
4741

4842
\section{The section}
4943

50-
\begin{keyidea}[My Key Idea Title]\label{ki:label}
51-
This is my key idea.
52-
\end{keyidea}
53-
5444
% todo tikz matrices see https://github.com/brucemiller/LaTeXML/issues/794
5545
\begin{tikzpicture}
5646
\matrix[row sep=1mm,column sep=3mm,ampersand replacement=\&]{
5747
\&\&\& \node (tp1) {$0$}; \&\& \node (tp2) {$1$}; \&\& \node (tp3) {$2$}; \&\& \node (tp4) {$3$}; \\[-1ex]
5848
\node(linestart) {$x$}; \&\&\&\&\&\&\&\&\&\&\& \node(lineend) {}; \\[-1ex]
59-
\&\node (fstart) {$x^{\underline{4}}$}; \& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \\
49+
\&\node (fstart) {$\operatorname{sign}x^{\underline{4}}$}; \& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \&\& \node {$-$}; \&\& \node {$+$}; \\
6050
};
6151
\draw [<->] (linestart.east) -- (lineend);
6252
\draw (fstart.south west) -- (lineend.west |- fstart.south);
@@ -66,21 +56,22 @@ \section{The section}
6656
}
6757
\end{tikzpicture}
6858

69-
\begin{example}[Example Title]\label{ex:label}
70-
This is my example. This is my example.
71-
\solution
72-
This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example. This is my example.
73-
\end{example}
59+
\begin{tikzpicture}
60+
\matrix[row sep=1mm,column sep=3mm,ampersand replacement=\&]{
61+
\node(left){L}; \&\&\&\&\&\&\&\&\& \node(right){R}; \\
62+
};
63+
\draw[<->](left)--(right);
64+
\end{tikzpicture}
7465

7566
Compare: % see 09_Parametric_Equations.tex
7667
\[
77-
\begin{gathered}\text{Choose}\\t\end{gathered}
78-
\begin{gathered}\nearrow\\\\\searrow\end{gathered}
68+
\begin{gathered}\text{Choose}\\t\end{gathered}\quad
69+
\begin{gathered}\nearrow\\\\\searrow\end{gathered}\quad
7970
\begin{gathered}
8071
\text{Use a function}\\f\text{ to find }x\\\bigl(x=f(t)\bigr)\\\\
8172
\text{Use a function}\\g\text{ to find }y\\\bigl(y=g(t)\bigr)
82-
\end{gathered}
83-
\begin{gathered}\searrow\\\\\nearrow\end{gathered}
73+
\end{gathered}\quad
74+
\begin{gathered}\searrow\\\\\nearrow\end{gathered}\quad
8475
\begin{gathered}\text{Plot point}\\(x,y)\end{gathered}
8576
\]
8677
to:
@@ -101,14 +92,10 @@ \section{The section}
10192
At one point we define $a_\mathrm{T}$
10293
\index{at@$a_{\mathrm{T}}$}\index{unit tangent vector!at@$a_{\mathrm{T}}$}%
10394

104-
\printexercises{exercises/14-04-exercises}
95+
\printexercises{exercises/14-03-exercises}
10596

10697
\appendix
10798

108-
\showans\answrite
109-
% showans will write the contents of Calculus.answers to the log
110-
% in latexml, this needs to happen before closing
111-
11299
\printsolutions{Standalone Solutions To All Problems}
113100

114101
\printindex

0 commit comments

Comments
 (0)