-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
130 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
\begin[papersize=a6]{document} | ||
\nofolios | ||
\neverindent | ||
\use[module=packages.lorem] | ||
\use[module=packages.math] | ||
\font[size=11pt] | ||
% Test numbered display math for all options | ||
% and in all alignments | ||
|
||
Begin justified | ||
\math[mode=display, numbered=true]{e^{i\pi} = -1} | ||
End justified. | ||
|
||
\begin{center} | ||
Begin centered | ||
\math[mode=display, numbered=true]{e^{i\pi} = -1} | ||
End centered | ||
\end{center} | ||
|
||
\begin{raggedright} | ||
Begin left-aligned | ||
\math[mode=display, numbered=true]{e^{i\pi} = -1} | ||
End left-aligned. | ||
\end{raggedright} | ||
|
||
\begin{raggedleft} | ||
Begin right-aligned | ||
\math[mode=display, numbered=true]{e^{i\pi} = -1} | ||
End right-aligned | ||
\end{raggedleft} | ||
|
||
Custom counter | ||
\set-counter[id=my-counter, display=alpha] | ||
\begin[mode=display, counter=my-counter]{math} | ||
\{ | ||
\table[columnalign=right center left]{ | ||
u_0 &=& C \\ | ||
u_n &=& r \times u_{n−1}, \forall n ⩾ 1 \\ | ||
} | ||
\end{math} | ||
|
||
Direct numbering | ||
\math[mode=display, number=5C]{1 = -e^{i\pi}} | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
\begin[papersize=a6]{document} | ||
\nofolios | ||
\neverindent | ||
\use[module=packages.lorem] | ||
\use[module=packages.math] | ||
\font[size=11pt] | ||
% Test default (unnumbered) display math | ||
% within a blockquote (to check it honors margin skips) | ||
% and in all alignments | ||
|
||
\begin{blockquote} | ||
Begin justified | ||
\math[mode=display]{e^{i\pi} = -1} | ||
End justified. | ||
|
||
\begin{center} | ||
Begin centered | ||
\math[mode=display]{e^{i\pi} = -1} | ||
End centered | ||
\end{center} | ||
|
||
\begin{raggedright} | ||
Begin left-aligned | ||
\math[mode=display]{e^{i\pi} = -1} | ||
End left-aligned. | ||
\end{raggedright} | ||
|
||
\begin{raggedleft} | ||
Begin right-aligned | ||
\math[mode=display]{e^{i\pi} = -1} | ||
End right-aligned | ||
\end{raggedleft} | ||
\end{blockquote} | ||
|
||
\end{document} |