-
Notifications
You must be signed in to change notification settings - Fork 3
/
karta-wzorow.tex
74 lines (60 loc) · 2.11 KB
/
karta-wzorow.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
\documentclass[10pt,a4paper,twocolumn]{article}
\usepackage{multicol}
\usepackage{amsbsy, amssymb, latexsym, amsmath, braket}
\usepackage[tiny]{titlesec}
\usepackage[hmargin=0.5cm,vmargin=0.7cm]{geometry}
\usepackage[utf8x]{inputenc}
\usepackage{polski}
\usepackage{scalefnt}
\usepackage[yyyymmdd,hhmmss]{datetime}
\usepackage{commath}
% Potrzebne do algorytmu Euklidesa.
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\newcommand{\angles}[1]{\left\langle #1 \right\rangle}
\newcommand{\entry}{$\bullet$\hspace{0.15em}}
\newcommand{\subentry}{$\circledcirc$\hspace{0.15em}}
% https://tex.stackexchange.com/a/7045/80219
\newcommand{\textsubentry}[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt] (char) {#1};\hspace{0.15em}}}
% Automatyczne generowanie listy liczby pierwszych:
% https://tex.stackexchange.com/a/134320/80219
\makeatletter
\def\primes#1#2{{%
\def\comma{\def\comma{, }}%
\count@\@ne\@tempcntb#2\relax\@curtab#1\relax
\@primes}}
\def\@primes{\loop\advance\count@\@ne
\expandafter\ifx\csname p-\the\count@\endcsname\relax
\ifnum\@tempcntb<\count@\else
\ifnum\count@<\@curtab\else\comma\the\count@\fi\fi\else\repeat
\@tempcnta\count@\loop\advance\@tempcnta\count@
\expandafter\let\csname p-\the\@tempcnta\endcsname\@ne
\ifnum\@tempcnta<\@tempcntb\repeat
\ifnum\@tempcntb>\count@\expandafter\@primes\fi}
\makeatother
\titlespacing{\section}{0pt}{0pt}{0pt}
\titlespacing{\subsection}{0pt}{0pt}{0pt}
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}
% Wyłącz numerowanie stron.
\pagenumbering{gobble}
\setlength{\parindent}{0pt}
% Odległość pomiędzy liniami. Zmniejsz, jeżeli brakuje miejsca.
\setlength{\parskip}{0.5ex}
\title{Karta wzorów z matematyki dyskretnej}
\begin{document}
% Rozmiar czcionki.
\scalefont{.48}
\text{\tiny{
Wersja z \today\ o \currenttime\ (\pdfmdfivesum file{./karta-wzorow.tex})
}}
\input{src/sumy.tex}
\input{src/funkcje-tworzace.tex}
\input{src/magiczne-liczby.tex}
\input{src/zasada-wlaczania-wylaczania.tex}
\input{src/wiezomiany.tex}
\input{src/podzialy-liczby.tex}
\input{src/grafy.tex}
\input{src/teoria-liczb.tex}
\input{src/teoria-grup.tex}
\end{document}