libzahl.tex - libzahl - big integer library
HTML git clone git://git.suckless.org/libzahl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
libzahl.tex (4172B)
---
1 \documentclass[11pt,b5paper,openright,fleqn]{book}
2 \special{papersize=176mm,250mm}
3 \usepackage[utf8]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage{algorithmic, algorithm, colonequals, alltt}
6 \usepackage{amsmath, amssymb, mathtools, MnSymbol, mathrsfs, esvect, wasysym}
7 \usepackage{tipa, color, graphicx}
8 \usepackage{shorttoc, minitoc}
9 \usepackage{enumitem}
10 \usepackage[english]{babel}
11 \selectlanguage{english}
12 \definecolor{linkcolour}{RGB}{112, 0, 0}
13 \definecolor{urlcolour}{RGB}{0, 0, 112}
14 \usepackage[unicode,pdfencoding=auto]{hyperref}
15 \hypersetup{
16 pdfborder={0 0 0},
17 colorlinks=true,
18 linkcolor=linkcolour,
19 urlcolor=urlcolour,
20 linktoc=all,
21 pdfsubject={Computer science},
22 pdfauthor={Mattias Andrée},
23 pdftitle={libzahl},
24 pdfkeywords={libzahl, big integer, big number, bigint, bignum, multiple-precision, arbitrary precision}
25 }
26 \hypersetup{linktocpage}
27 \usepackage{makeidx}
28 \makeindex
29 \usepackage{geometry}
30 \geometry{margin=1in}
31 \usepackage{microtype}
32 \DisableLigatures{encoding = *, family = *} % NB! disables -- and ---
33 % I really dislike fi- and ff-ligatures, just like look so wrong.
34 \frenchspacing % i.e. non-American spacing: i.e. no extra space after sentences,
35 % this also means that periods do not have to be context-marked.
36
37 \newcommand{\chapref}[1]{\hyperref[#1]{Chapter~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}}}
38 \newcommand{\secref}[1]{\hyperref[#1]{Section~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}}}
39 \newcommand{\appxref}[1]{\hyperref[#1]{Appendix~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}}}
40 \newcommand{\pchapref}[1]{(see \hyperref[#1]{Chapter~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}})}
41 \newcommand{\psecref}[1]{(see \hyperref[#1]{Section~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}})}
42 \newcommand{\pappxref}[1]{(see \hyperref[#1]{Appendix~\ref*{#1} [\nameref*{#1}], page \pageref*{#1}})}
43 \definecolor{c}{rgb}{0.45, 0.45, 0.45}
44
45 \begin{document}
46
47 \frontmatter
48
49 \title{{\Huge \bf libzahl version 1.1}}
50 \author{}
51 \date{\vspace{3in}}
52 \maketitle
53
54 \thispagestyle{empty}
55 \null
56 \vfill
57 \noindent
58 Copyright \copyright{} 2016 $~$ Mattias Andrée $\langle$\href{mailto:maandree@kth.se}{\texttt{maandree@kth.se}}$\rangle$
59 \vspace{1ex}
60
61 \noindent
62 {\small
63 Permission to use, copy, modify, and/or distribute this document for any
64 purpose with or without fee is hereby granted, provided that the above
65 copyright notice and this permission notice appear in all copies.}
66 \newpage
67
68
69 % Conventionally, most words in a title in English should start with
70 % uppercase. I believe that this is inconsistent stupidity, pardon my
71 % Klatchian. There is not consensus of which words should not start
72 % with lowercase or even if any shall start with lowercase. There is
73 % also no consensus on how long the title should be before only the
74 % first word should start with uppercase. It is only generally (but
75 % not always) agreed that most words should start with uppercase and
76 % when the title is too long only the first word start with uppercase.
77 % I believe that is is better to stick with the Swedish convention:
78 % It should look just like a sentience except it may not end with a
79 % period unless that is part of an ellipsis or an abbreviation.
80 % I would also like to use straight apostrophes, like in French, (and
81 % reserve the curved ones for quotes), but that is just too painful in
82 % LaTeX, so I will only be do so for French words. Most style guides
83 % for English will be followed. They will only be broken if they are
84 % stupid or inferior. For example, I will never write ‘CPU's’ for
85 % plural of CPU — that's just stupid, — only for genitive, nor
86 % will I write ‘CPUs’ for plural of CPU, because it is inferior to
87 % ‘CPU:s’.
88
89
90 \shorttoc{Short contents}{0}
91 \setcounter{tocdepth}{2}
92 \dominitoc
93 \tableofcontents
94
95
96 \mainmatter
97
98 \input doc/what-is-libzahl.tex
99 \input doc/libzahls-design.tex
100 \input doc/get-started.tex
101 \input doc/miscellaneous.tex
102 \input doc/arithmetic.tex
103 \input doc/bit-operations.tex
104 \input doc/number-theory.tex
105 \input doc/random-numbers.tex
106 \input doc/not-implemented.tex
107 \input doc/exercises.tex
108
109
110 \appendix
111
112
113 \backmatter
114
115 \addcontentsline{toc}{chapter}{Index}
116 \printindex
117
118 \end{document}