notex-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- notex/__init__.py +52 -0
- notex/cli.py +403 -0
- notex/scaffold.py +87 -0
- notex/sessions.py +177 -0
- notex/templates/LICENSE +674 -0
- notex/templates/cols-formulae/letterfonts.tex +6 -0
- notex/templates/cols-formulae/macros.tex +40 -0
- notex/templates/cols-formulae/preamble.tex +23 -0
- notex/templates/cols-formulae/template.tex +14 -0
- notex/templates/grand/bibliography.bib +0 -0
- notex/templates/grand/chapters/ch1.tex +5 -0
- notex/templates/grand/letterfonts.tex +6 -0
- notex/templates/grand/macros.tex +33 -0
- notex/templates/grand/preamble.tex +161 -0
- notex/templates/grand/template.tex +27 -0
- notex/templates/note/letterfonts.tex +6 -0
- notex/templates/note/macros.tex +33 -0
- notex/templates/note/preamble.tex +163 -0
- notex/templates/note/template.tex +28 -0
- notex/templates/problems/letterfonts.tex +6 -0
- notex/templates/problems/macros.tex +46 -0
- notex/templates/problems/preamble.tex +143 -0
- notex/templates/problems/template.tex +28 -0
- notex/templates/single-formulae/letterfonts.tex +6 -0
- notex/templates/single-formulae/macros.tex +40 -0
- notex/templates/single-formulae/preamble.tex +22 -0
- notex/templates/single-formulae/template.tex +13 -0
- notex/terminal.py +195 -0
- notex_cli-0.1.0.dist-info/METADATA +141 -0
- notex_cli-0.1.0.dist-info/RECORD +34 -0
- notex_cli-0.1.0.dist-info/WHEEL +4 -0
- notex_cli-0.1.0.dist-info/entry_points.txt +5 -0
- notex_cli-0.1.0.dist-info/licenses/LICENSE +674 -0
- notex_cli-0.1.0.dist-info/licenses/notex/templates/LICENSE +674 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
\newcommand{\eq}[2]
|
|
2
|
+
{%
|
|
3
|
+
\begin{equation} \label{eq:#1}
|
|
4
|
+
#2
|
|
5
|
+
\end{equation}
|
|
6
|
+
}%
|
|
7
|
+
|
|
8
|
+
\newcommand{\ceq}[1]
|
|
9
|
+
{%
|
|
10
|
+
\begin{equation}
|
|
11
|
+
#1 \nonumber
|
|
12
|
+
\end{equation}
|
|
13
|
+
}%
|
|
14
|
+
|
|
15
|
+
\newcommand{\solution}
|
|
16
|
+
{%
|
|
17
|
+
\setlength{\parindent}{0cm}
|
|
18
|
+
\textbf{\textit{Rozwiązanie.}}
|
|
19
|
+
\newline
|
|
20
|
+
\newline
|
|
21
|
+
\setlength{\parindent}{1cm}
|
|
22
|
+
}%
|
|
23
|
+
|
|
24
|
+
\newcommand{\answer}[1]
|
|
25
|
+
{%
|
|
26
|
+
\begin{flushleft}
|
|
27
|
+
\setlength{\parindent}{0cm}
|
|
28
|
+
\textbf{\textit{Odpowiedź.}}
|
|
29
|
+
\setlength{\parindent}{1cm}
|
|
30
|
+
#1
|
|
31
|
+
\end{flushleft}
|
|
32
|
+
\Qed
|
|
33
|
+
}%
|
|
34
|
+
|
|
35
|
+
\newcommand{\Qed}
|
|
36
|
+
{%
|
|
37
|
+
\begin{flushright}
|
|
38
|
+
\qed
|
|
39
|
+
\end{flushright}
|
|
40
|
+
}%
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
% general imports %
|
|
2
|
+
\usepackage[a4paper, margin=1cm]{geometry}
|
|
3
|
+
\usepackage{multicol}
|
|
4
|
+
\usepackage{color}
|
|
5
|
+
\usepackage{lmodern}
|
|
6
|
+
\usepackage{enumitem}
|
|
7
|
+
\usepackage{comment}
|
|
8
|
+
|
|
9
|
+
% math imports
|
|
10
|
+
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
|
11
|
+
\usepackage[varbb]{newpxmath}
|
|
12
|
+
\usepackage[makeroom]{cancel}
|
|
13
|
+
\usepackage{xfrac}
|
|
14
|
+
\usepackage{array}
|
|
15
|
+
|
|
16
|
+
% language
|
|
17
|
+
\usepackage[polish]{babel}
|
|
18
|
+
\usepackage[utf8]{inputenc}
|
|
19
|
+
\usepackage[T1]{fontenc}
|
|
20
|
+
|
|
21
|
+
% general settings
|
|
22
|
+
\setlength{\parindent}{1cm}%
|
|
23
|
+
\setlist[enumerate,1]{label=\textbf{(\alph*)}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
\documentclass[twocolumn]{article}
|
|
2
|
+
|
|
3
|
+
\input{preamble}
|
|
4
|
+
\input{macros}
|
|
5
|
+
\input{letterfonts}
|
|
6
|
+
|
|
7
|
+
\begin{document}
|
|
8
|
+
\twocolumn
|
|
9
|
+
\thispagestyle{empty}
|
|
10
|
+
|
|
11
|
+
\ceq{f^{-1}(y) = x \Longleftrightarrow (f(x) = y)}
|
|
12
|
+
\ceq{f^{-1}(y) = x \Longleftrightarrow (f(x) = y)}
|
|
13
|
+
|
|
14
|
+
\end{document}
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
% sets
|
|
2
|
+
\newcommand{\R}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{R}}{\mathbb{R}^{#1}}}}
|
|
3
|
+
\newcommand{\N}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{N}}{\mathbb{N}^{#1}}}}
|
|
4
|
+
\newcommand{\Z}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Z}}{\mathbb{Z}^{#1}}}}
|
|
5
|
+
\newcommand{\Q}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Q}}{\mathbb{Q}^{#1}}}}
|
|
6
|
+
\newcommand{\C}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{C}}{\mathbb{C}^{#1}}}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
\newcommand{\eq}[2]
|
|
2
|
+
{%
|
|
3
|
+
\begin{equation} \label{eq:#1}
|
|
4
|
+
#2
|
|
5
|
+
\end{equation}
|
|
6
|
+
}%
|
|
7
|
+
|
|
8
|
+
\newcommand{\solution}
|
|
9
|
+
{%
|
|
10
|
+
\setlength{\parindent}{0cm}
|
|
11
|
+
\textbf{\textit{Rozwiązanie.}}
|
|
12
|
+
\newline
|
|
13
|
+
\newline
|
|
14
|
+
\setlength{\parindent}{1cm}
|
|
15
|
+
}%
|
|
16
|
+
|
|
17
|
+
\newcommand{\answer}[1]
|
|
18
|
+
{%
|
|
19
|
+
\begin{flushleft}
|
|
20
|
+
\setlength{\parindent}{0cm}
|
|
21
|
+
\textbf{\textit{Odpowiedź.}}
|
|
22
|
+
\setlength{\parindent}{1cm}
|
|
23
|
+
#1
|
|
24
|
+
\end{flushleft}
|
|
25
|
+
\Qed
|
|
26
|
+
}%
|
|
27
|
+
|
|
28
|
+
\newcommand{\Qed}
|
|
29
|
+
{%
|
|
30
|
+
\begin{flushright}
|
|
31
|
+
\qed
|
|
32
|
+
\end{flushright}
|
|
33
|
+
}%
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
% general imports %
|
|
2
|
+
\usepackage{xifthen}
|
|
3
|
+
\usepackage{tcolorbox}
|
|
4
|
+
\usepackage{theoremref}
|
|
5
|
+
\usepackage{enumitem}
|
|
6
|
+
\usepackage{bookmark}
|
|
7
|
+
\usepackage{comment}
|
|
8
|
+
\usepackage{xcolor}
|
|
9
|
+
\usepackage{transparent}
|
|
10
|
+
\usepackage{varwidth}
|
|
11
|
+
\usepackage{multicol}
|
|
12
|
+
\usepackage{import}
|
|
13
|
+
\usepackage{pdfpages}
|
|
14
|
+
\usepackage{lmodern}
|
|
15
|
+
\usepackage{newpxtext}
|
|
16
|
+
\usepackage{fvextra}
|
|
17
|
+
\usepackage{subfiles}
|
|
18
|
+
\usepackage{authblk}
|
|
19
|
+
\usepackage[pagestyles, outermarks, newparttoc]{titlesec}
|
|
20
|
+
\usepackage{titletoc}
|
|
21
|
+
|
|
22
|
+
% math imports
|
|
23
|
+
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
|
24
|
+
\usepackage[varbb]{newpxmath}
|
|
25
|
+
\usepackage[makeroom]{cancel}
|
|
26
|
+
\usepackage{xfrac}
|
|
27
|
+
\usepackage{array}
|
|
28
|
+
|
|
29
|
+
% tikz imports
|
|
30
|
+
\usepackage{tikz-cd}
|
|
31
|
+
\usepackage{tikz}
|
|
32
|
+
\usepackage{scalerel}
|
|
33
|
+
\usepackage{pict2e}
|
|
34
|
+
\usepackage{tkz-euclide}
|
|
35
|
+
\usepackage{tikzsymbols}
|
|
36
|
+
\usetikzlibrary{calc}
|
|
37
|
+
\usetikzlibrary{patterns,arrows.meta}
|
|
38
|
+
\usetikzlibrary{shadows}
|
|
39
|
+
\usetikzlibrary{external}
|
|
40
|
+
|
|
41
|
+
% cs imports
|
|
42
|
+
%\usepackage[algoruled,linesnumbered,titlenumbered]{algorithm2e}
|
|
43
|
+
%\usepackage{minted}
|
|
44
|
+
%\setminted[python]{breaklines, framesep=2mm, fontsize=\footnotesize, numbersep=5pt}
|
|
45
|
+
|
|
46
|
+
% pgfplots
|
|
47
|
+
\usepackage{pgfplots}
|
|
48
|
+
\pgfplotsset{compat=newest}
|
|
49
|
+
\usepgfplotslibrary{statistics}
|
|
50
|
+
\usepgfplotslibrary{fillbetween}
|
|
51
|
+
|
|
52
|
+
% animated sections
|
|
53
|
+
\usepackage{graphicx}
|
|
54
|
+
\usepackage{animate}
|
|
55
|
+
|
|
56
|
+
\definecolor{clink}{HTML}{002137}
|
|
57
|
+
\usepackage{hyperref}
|
|
58
|
+
\hypersetup{%
|
|
59
|
+
pdftitle = {Grand},
|
|
60
|
+
colorlinks = true,
|
|
61
|
+
linkcolor = clink,
|
|
62
|
+
bookmarksnumbered = true,
|
|
63
|
+
bookmarksopen = true
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
% language
|
|
67
|
+
\usepackage[polish]{babel}
|
|
68
|
+
\usepackage[utf8]{inputenc}
|
|
69
|
+
\usepackage[T1]{fontenc}
|
|
70
|
+
|
|
71
|
+
\usepackage{csquotes}
|
|
72
|
+
\usepackage[bibencoding=utf8,backend=biber,sorting=none]{biblatex}
|
|
73
|
+
|
|
74
|
+
% general settings
|
|
75
|
+
\setlength{\parindent}{1cm}%
|
|
76
|
+
\setlist[enumerate,1]{label=\textbf{(\alph*)}}
|
|
77
|
+
|
|
78
|
+
\addto\captionspolish{\renewcommand{\figurename}{Ilustracja}}
|
|
79
|
+
\addto\captionspolish{\renewcommand{\chaptername}{Rozdział}}
|
|
80
|
+
\addto\captionspolish{\renewcommand{\contentsname}{Spis treści.}}
|
|
81
|
+
|
|
82
|
+
% predefined sections
|
|
83
|
+
\tcbuselibrary{theorems, breakable, skins, hooks}
|
|
84
|
+
|
|
85
|
+
% ~~~
|
|
86
|
+
% important box
|
|
87
|
+
% ~~~
|
|
88
|
+
|
|
89
|
+
% colors
|
|
90
|
+
\definecolor{importantbg}{HTML}{bf0603}
|
|
91
|
+
\definecolor{importantframe}{HTML}{8d0801}
|
|
92
|
+
\definecolor{importantdef}{HTML}{f4d58d}
|
|
93
|
+
|
|
94
|
+
\newtcbtheorem[]{Important}{}
|
|
95
|
+
{%
|
|
96
|
+
enhanced,
|
|
97
|
+
breakable,
|
|
98
|
+
colback = importantbg,
|
|
99
|
+
coltitle = importantdef,
|
|
100
|
+
coltext = importantdef,
|
|
101
|
+
frame hidden,
|
|
102
|
+
boxrule = 0sp,
|
|
103
|
+
borderline south = {2pt}{0pt}{importantframe},
|
|
104
|
+
sharp corners,
|
|
105
|
+
detach title,
|
|
106
|
+
before upper = \tcbtitle\par\smallskip,
|
|
107
|
+
fonttitle = \fontfamily{lmss}\selectfont\bfseries,
|
|
108
|
+
fontupper = \fontfamily{lmss}\selectfont\bfseries,
|
|
109
|
+
description font = \mdseries,
|
|
110
|
+
separator sign none,
|
|
111
|
+
segmentation style = {solid, importantframe},
|
|
112
|
+
description delimiters = {\flqq}{\frqq}
|
|
113
|
+
}
|
|
114
|
+
{important}
|
|
115
|
+
|
|
116
|
+
\newcommand{\imp}[1]
|
|
117
|
+
{%
|
|
118
|
+
\begin{Important*}{Important}{}
|
|
119
|
+
#1
|
|
120
|
+
\end{Important*}
|
|
121
|
+
}%
|
|
122
|
+
|
|
123
|
+
% ~~~
|
|
124
|
+
% formula box
|
|
125
|
+
% ~~~
|
|
126
|
+
|
|
127
|
+
% colors
|
|
128
|
+
\definecolor{formulabg}{HTML}{f6f2f0}
|
|
129
|
+
\definecolor{formulaframe}{HTML}{d0b49f}
|
|
130
|
+
\definecolor{formuladef}{HTML}{212529}
|
|
131
|
+
|
|
132
|
+
\newtcbtheorem[number within=section]{Formula}{}
|
|
133
|
+
{%
|
|
134
|
+
enhanced,
|
|
135
|
+
breakable,
|
|
136
|
+
colback = formulabg,
|
|
137
|
+
coltitle = formuladef,
|
|
138
|
+
frame hidden,
|
|
139
|
+
boxrule = 0sp,
|
|
140
|
+
borderline west = {2pt}{0pt}{formulaframe},
|
|
141
|
+
sharp corners,
|
|
142
|
+
detach title,
|
|
143
|
+
before upper = \tcbtitle\par\smallskip,
|
|
144
|
+
fonttitle = \bfseries\sffamily,
|
|
145
|
+
description font = \mdseries,
|
|
146
|
+
separator sign none,
|
|
147
|
+
segmentation style={solid, formulaframe},
|
|
148
|
+
}
|
|
149
|
+
{formula}
|
|
150
|
+
|
|
151
|
+
\newcommand{\formula}[2]
|
|
152
|
+
{%
|
|
153
|
+
\begin{Formula}{#1}{}
|
|
154
|
+
#2
|
|
155
|
+
\end{Formula}
|
|
156
|
+
}%
|
|
157
|
+
|
|
158
|
+
% contents
|
|
159
|
+
\titlecontents{part}[0pt]{\normalsize\bfseries\protect\addvspace{15pt}}%
|
|
160
|
+
{}{\partname{} }%
|
|
161
|
+
{\enspace\titlerule\contentspage}%
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
\documentclass[12pt, a4paper, openany]{book}
|
|
2
|
+
|
|
3
|
+
\input{preamble}
|
|
4
|
+
\input{macros}
|
|
5
|
+
\input{letterfonts}
|
|
6
|
+
|
|
7
|
+
\title{\Huge{<nTeX>[title]}}
|
|
8
|
+
\author{\huge{<nTeX>[name]}}
|
|
9
|
+
\affil{<nTeX>[afilliation]}
|
|
10
|
+
\date{\today}
|
|
11
|
+
|
|
12
|
+
\bibliography{bibliography.bib}
|
|
13
|
+
\graphicspath{{./img/}}
|
|
14
|
+
|
|
15
|
+
\begin{document}
|
|
16
|
+
|
|
17
|
+
\maketitle
|
|
18
|
+
\newpage
|
|
19
|
+
\pdfbookmark[section]{\contentsname}{toc}
|
|
20
|
+
\tableofcontents
|
|
21
|
+
\newpage
|
|
22
|
+
|
|
23
|
+
\subfile{chapters/ch1.tex}
|
|
24
|
+
|
|
25
|
+
\printbibliography%
|
|
26
|
+
|
|
27
|
+
\end{document}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
% sets
|
|
2
|
+
\newcommand{\R}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{R}}{\mathbb{R}^{#1}}}}
|
|
3
|
+
\newcommand{\N}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{N}}{\mathbb{N}^{#1}}}}
|
|
4
|
+
\newcommand{\Z}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Z}}{\mathbb{Z}^{#1}}}}
|
|
5
|
+
\newcommand{\Q}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Q}}{\mathbb{Q}^{#1}}}}
|
|
6
|
+
\newcommand{\C}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{C}}{\mathbb{C}^{#1}}}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
\newcommand{\eq}[2]
|
|
2
|
+
{%
|
|
3
|
+
\begin{equation} \label{eq:#1}
|
|
4
|
+
#2
|
|
5
|
+
\end{equation}
|
|
6
|
+
}%
|
|
7
|
+
|
|
8
|
+
\newcommand{\solution}
|
|
9
|
+
{%
|
|
10
|
+
\setlength{\parindent}{0cm}
|
|
11
|
+
\textbf{\textit{Rozwiązanie.}}
|
|
12
|
+
\newline
|
|
13
|
+
\newline
|
|
14
|
+
\setlength{\parindent}{1cm}
|
|
15
|
+
}%
|
|
16
|
+
|
|
17
|
+
\newcommand{\answer}[1]
|
|
18
|
+
{%
|
|
19
|
+
\begin{flushleft}
|
|
20
|
+
\setlength{\parindent}{0cm}
|
|
21
|
+
\textbf{\textit{Odpowiedź.}}
|
|
22
|
+
\setlength{\parindent}{1cm}
|
|
23
|
+
#1
|
|
24
|
+
\end{flushleft}
|
|
25
|
+
\Qed
|
|
26
|
+
}%
|
|
27
|
+
|
|
28
|
+
\newcommand{\Qed}
|
|
29
|
+
{%
|
|
30
|
+
\begin{flushright}
|
|
31
|
+
\qed
|
|
32
|
+
\end{flushright}
|
|
33
|
+
}%
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
% general imports %
|
|
2
|
+
\usepackage{xifthen}
|
|
3
|
+
\usepackage{tcolorbox}
|
|
4
|
+
\usepackage{theoremref}
|
|
5
|
+
\usepackage{enumitem}
|
|
6
|
+
\usepackage{bookmark}
|
|
7
|
+
\usepackage{comment}
|
|
8
|
+
\usepackage{xcolor}
|
|
9
|
+
\usepackage{transparent}
|
|
10
|
+
\usepackage{varwidth}
|
|
11
|
+
\usepackage{multicol}
|
|
12
|
+
\usepackage{import}
|
|
13
|
+
\usepackage{pdfpages}
|
|
14
|
+
\usepackage{titletoc}
|
|
15
|
+
\usepackage{lmodern}
|
|
16
|
+
|
|
17
|
+
% math imports
|
|
18
|
+
\usepackage{amsmath,amsfonts,amsthm,amssymb,mathtools}
|
|
19
|
+
\usepackage[varbb]{newpxmath}
|
|
20
|
+
\usepackage[makeroom]{cancel}
|
|
21
|
+
\usepackage{xfrac}
|
|
22
|
+
\usepackage{array}
|
|
23
|
+
|
|
24
|
+
\definecolor{clink}{HTML}{002137}
|
|
25
|
+
\usepackage{hyperref}
|
|
26
|
+
\hypersetup{%
|
|
27
|
+
pdftitle = {Problems},
|
|
28
|
+
colorlinks = true,
|
|
29
|
+
linkcolor = clink,
|
|
30
|
+
bookmarksnumbered = true,
|
|
31
|
+
bookmarksopen = true
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
% language
|
|
35
|
+
\usepackage[polish]{babel}
|
|
36
|
+
\usepackage[utf8]{inputenc}
|
|
37
|
+
\usepackage[T1]{fontenc}
|
|
38
|
+
|
|
39
|
+
% general settings
|
|
40
|
+
\setlength{\parindent}{1cm}%
|
|
41
|
+
\setlist[enumerate,1]{label=\textbf{(\alph*)}}
|
|
42
|
+
|
|
43
|
+
\addto\captionspolish{\renewcommand{\figurename}{Ilustracja}}
|
|
44
|
+
\addto\captionspolish{\renewcommand{\chaptername}{Temat}}
|
|
45
|
+
\addto\captionspolish{\renewcommand{\contentsname}{Spis zadań.}}
|
|
46
|
+
|
|
47
|
+
% predefined sections
|
|
48
|
+
\tcbuselibrary{theorems, breakable, skins, hooks}
|
|
49
|
+
|
|
50
|
+
% ~~~
|
|
51
|
+
% important box
|
|
52
|
+
% ~~~
|
|
53
|
+
|
|
54
|
+
% colors
|
|
55
|
+
\definecolor{importantbg}{HTML}{bf0603}
|
|
56
|
+
\definecolor{importantframe}{HTML}{8d0801}
|
|
57
|
+
\definecolor{importantdef}{HTML}{f4d58d}
|
|
58
|
+
|
|
59
|
+
\newtcbtheorem[]{Important}{}
|
|
60
|
+
{%
|
|
61
|
+
enhanced,
|
|
62
|
+
breakable,
|
|
63
|
+
colback = importantbg,
|
|
64
|
+
coltitle = importantdef,
|
|
65
|
+
coltext = importantdef,
|
|
66
|
+
frame hidden,
|
|
67
|
+
boxrule = 0sp,
|
|
68
|
+
borderline south = {2pt}{0pt}{importantframe},
|
|
69
|
+
sharp corners,
|
|
70
|
+
detach title,
|
|
71
|
+
before upper = \tcbtitle\par\smallskip,
|
|
72
|
+
fonttitle = \fontfamily{lmss}\selectfont\bfseries,
|
|
73
|
+
fontupper = \fontfamily{lmss}\selectfont\bfseries,
|
|
74
|
+
description font = \mdseries,
|
|
75
|
+
separator sign none,
|
|
76
|
+
segmentation style = {solid, importantframe},
|
|
77
|
+
description delimiters = {\flqq}{\frqq}
|
|
78
|
+
}
|
|
79
|
+
{important}
|
|
80
|
+
|
|
81
|
+
\newcommand{\imp}[1]
|
|
82
|
+
{%
|
|
83
|
+
\begin{Important*}{Important}{}
|
|
84
|
+
#1
|
|
85
|
+
\end{Important*}
|
|
86
|
+
}%
|
|
87
|
+
|
|
88
|
+
% ~~~
|
|
89
|
+
% doto box
|
|
90
|
+
% ~~~
|
|
91
|
+
|
|
92
|
+
% colors
|
|
93
|
+
\definecolor{todobg}{HTML}{eae0d5}
|
|
94
|
+
\definecolor{todoframe}{HTML}{22333b}
|
|
95
|
+
\definecolor{tododef}{HTML}{0a0908}
|
|
96
|
+
|
|
97
|
+
\newtcbtheorem[number within=section]{Todo}{}
|
|
98
|
+
{%
|
|
99
|
+
enhanced,
|
|
100
|
+
breakable,
|
|
101
|
+
colback = todobg,
|
|
102
|
+
coltitle = tododef,
|
|
103
|
+
frame hidden,
|
|
104
|
+
boxrule = 0sp,
|
|
105
|
+
borderline north = {2pt}{0pt}{todoframe},
|
|
106
|
+
sharp corners,
|
|
107
|
+
detach title,
|
|
108
|
+
before upper = \tcbtitle\par\smallskip,
|
|
109
|
+
fonttitle = \fontfamily{lmss}\selectfont\bfseries,
|
|
110
|
+
fontupper = \fontfamily{lmss}\selectfont\bfseries,
|
|
111
|
+
description font = \mdseries,
|
|
112
|
+
separator sign none,
|
|
113
|
+
segmentation style = {solid, todoframe},
|
|
114
|
+
}
|
|
115
|
+
{formula}
|
|
116
|
+
|
|
117
|
+
\newcommand{\doto}[1]
|
|
118
|
+
{%
|
|
119
|
+
\begin{Todo*}{Do, Think, Remember}{}
|
|
120
|
+
#1
|
|
121
|
+
\end{Todo*}
|
|
122
|
+
}%
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
% ~~~
|
|
126
|
+
% formula box
|
|
127
|
+
% ~~~
|
|
128
|
+
|
|
129
|
+
% colors
|
|
130
|
+
\definecolor{formulabg}{HTML}{f6f2f0}
|
|
131
|
+
\definecolor{formulaframe}{HTML}{d0b49f}
|
|
132
|
+
\definecolor{formuladef}{HTML}{212529}
|
|
133
|
+
|
|
134
|
+
\newtcbtheorem[number within=section]{Formula}{}
|
|
135
|
+
{%
|
|
136
|
+
enhanced,
|
|
137
|
+
breakable,
|
|
138
|
+
colback = formulabg,
|
|
139
|
+
coltitle = formuladef,
|
|
140
|
+
frame hidden,
|
|
141
|
+
boxrule = 0sp,
|
|
142
|
+
borderline west = {2pt}{0pt}{formulaframe},
|
|
143
|
+
sharp corners,
|
|
144
|
+
detach title,
|
|
145
|
+
before upper = \tcbtitle\par\smallskip,
|
|
146
|
+
fonttitle = \bfseries\sffamily,
|
|
147
|
+
description font = \mdseries,
|
|
148
|
+
separator sign none,
|
|
149
|
+
segmentation style={solid, formulaframe},
|
|
150
|
+
}
|
|
151
|
+
{formula}
|
|
152
|
+
|
|
153
|
+
\newcommand{\formula}[2]
|
|
154
|
+
{%
|
|
155
|
+
\begin{Formula}{#1}{}
|
|
156
|
+
#2
|
|
157
|
+
\end{Formula}
|
|
158
|
+
}%
|
|
159
|
+
|
|
160
|
+
% contents
|
|
161
|
+
\titlecontents{part}[0pt]{\normalsize\bfseries\protect\addvspace{15pt}}%
|
|
162
|
+
{}{\partname{} }%
|
|
163
|
+
{\enspace\titlerule\contentspage}%
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
\documentclass{report}
|
|
2
|
+
|
|
3
|
+
\input{preamble}
|
|
4
|
+
\input{macros}
|
|
5
|
+
\input{letterfonts}
|
|
6
|
+
|
|
7
|
+
\title{\Huge{<nTeX>[title]}}
|
|
8
|
+
\author{\huge{<nTeX>[name]}}
|
|
9
|
+
\date{\today}
|
|
10
|
+
|
|
11
|
+
\begin{document}
|
|
12
|
+
|
|
13
|
+
\maketitle
|
|
14
|
+
\pdfbookmark[section]{\contentsname}{toc}
|
|
15
|
+
\tableofcontents
|
|
16
|
+
\pagebreak
|
|
17
|
+
|
|
18
|
+
\chapter{Note test}
|
|
19
|
+
|
|
20
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
|
21
|
+
|
|
22
|
+
\eq{test}{a_1 + a_2 = a_3}
|
|
23
|
+
|
|
24
|
+
\imp{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}
|
|
25
|
+
|
|
26
|
+
\doto{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.}
|
|
27
|
+
|
|
28
|
+
\end{document}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
% sets
|
|
2
|
+
\newcommand{\R}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{R}}{\mathbb{R}^{#1}}}}
|
|
3
|
+
\newcommand{\N}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{N}}{\mathbb{N}^{#1}}}}
|
|
4
|
+
\newcommand{\Z}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Z}}{\mathbb{Z}^{#1}}}}
|
|
5
|
+
\newcommand{\Q}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{Q}}{\mathbb{Q}^{#1}}}}
|
|
6
|
+
\newcommand{\C}[1][]{\ensuremath{\ifstrempty{#1}{\mathbb{C}}{\mathbb{C}^{#1}}}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
\newcommand{\eq}[1]
|
|
2
|
+
{%
|
|
3
|
+
\begin{equation}
|
|
4
|
+
#1
|
|
5
|
+
\end{equation}
|
|
6
|
+
}%
|
|
7
|
+
|
|
8
|
+
\newcommand{\eqc}[1]
|
|
9
|
+
{%
|
|
10
|
+
\begin{equation*}
|
|
11
|
+
#1
|
|
12
|
+
\end{equation*}
|
|
13
|
+
}%
|
|
14
|
+
|
|
15
|
+
\newcommand{\eql}[2]
|
|
16
|
+
{%
|
|
17
|
+
\begin{equation} \label{eq:#1}
|
|
18
|
+
#2
|
|
19
|
+
\end{equation}
|
|
20
|
+
}%
|
|
21
|
+
|
|
22
|
+
\newcommand{\solution}
|
|
23
|
+
{%
|
|
24
|
+
\setlength{\parindent}{0cm}
|
|
25
|
+
\textbf{\textit{Rozwiązanie.}}
|
|
26
|
+
\newline
|
|
27
|
+
\setlength{\parindent}{1cm}
|
|
28
|
+
}%
|
|
29
|
+
|
|
30
|
+
\newcommand{\answer}[1]
|
|
31
|
+
{%
|
|
32
|
+
\begin{flushleft}
|
|
33
|
+
\setlength{\parindent}{0cm}
|
|
34
|
+
\textbf{\textit{Odpowiedź.}}
|
|
35
|
+
\setlength{\parindent}{1cm}
|
|
36
|
+
#1
|
|
37
|
+
\end{flushleft}
|
|
38
|
+
\Qed
|
|
39
|
+
}%
|
|
40
|
+
|
|
41
|
+
\newcommand{\Qed}
|
|
42
|
+
{%
|
|
43
|
+
\begin{flushright}
|
|
44
|
+
\qed
|
|
45
|
+
\end{flushright}
|
|
46
|
+
}%
|