move from LaTeX to Typst
This commit is contained in:
parent
d4ed338fc6
commit
80f2d57c40
18 changed files with 252 additions and 454 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,5 +3,5 @@
|
|||
.devenv*
|
||||
.direnv
|
||||
|
||||
latex/*/*
|
||||
!*.tex
|
||||
src/*/*
|
||||
!*.typ
|
||||
|
|
2
.vscode/extensions.json
vendored
2
.vscode/extensions.json
vendored
|
@ -3,6 +3,6 @@
|
|||
"esbenp.prettier-vscode",
|
||||
"mkhl.direnv",
|
||||
"jnoortheen.nix-ide",
|
||||
"james-yu.latex-workshop"
|
||||
"myriad-dreamin.tinymist"
|
||||
]
|
||||
}
|
||||
|
|
16
.vscode/settings.json
vendored
16
.vscode/settings.json
vendored
|
@ -13,13 +13,20 @@
|
|||
"devenv",
|
||||
"direnv",
|
||||
"direnvrc",
|
||||
"fontawesome",
|
||||
"neuro",
|
||||
"nixd",
|
||||
"nixfmt",
|
||||
"nixos",
|
||||
"nixpkgs",
|
||||
"opentype",
|
||||
"pagebreak",
|
||||
"pkgs",
|
||||
"pompydev",
|
||||
"texlive"
|
||||
"qrcode",
|
||||
"tiaoma",
|
||||
"typst",
|
||||
"typstyle"
|
||||
],
|
||||
|
||||
"[nix]": {
|
||||
|
@ -29,10 +36,11 @@
|
|||
"nix.enableLanguageServer": true,
|
||||
"nix.serverPath": "nixd",
|
||||
|
||||
"[latex]": {
|
||||
"editor.defaultFormatter": "James-Yu.latex-workshop"
|
||||
"[typst]": {
|
||||
"editor.defaultFormatter": "myriad-dreamin.tinymist"
|
||||
},
|
||||
"latex-workshop.formatting.latex": "tex-fmt",
|
||||
"tinymist.formatterMode": "typstyle",
|
||||
"tinymist.exportPdf": "onSave",
|
||||
|
||||
"[jsonc]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
|
|
14
README.md
14
README.md
|
@ -9,12 +9,12 @@ the early 2010s. Made with $\LaTeX$.
|
|||
|
||||
## Progress
|
||||
|
||||
- [ ] [Mathematics](./latex/math/math.tex) (WIP)
|
||||
- [ ] [Physics](./latex/phy/phy.tex) (WIP)
|
||||
- [ ] [Neuroscience](./latex/neuro/neuro.tex) (WIP)
|
||||
- [ ] [Electrical Engineering](./latex/ee/ee.tex) (WIP)
|
||||
- [ ] [Chemistry](./latex/chem/chem.tex) (WIP)
|
||||
- [ ] [Computer Science](./latex/cs/cs.tex) (WIP)
|
||||
- [ ] [Mathematics](./src/math/math.typ) (WIP)
|
||||
- [ ] [Physics](./src/phy/phy.typ) (WIP)
|
||||
- [ ] [Neuroscience](./src/neuro/neuro.typ) (WIP)
|
||||
- [ ] [Electrical Engineering](./src/ee/ee.typ) (WIP)
|
||||
- [ ] [Chemistry](./src/chem/chem.typ) (WIP)
|
||||
- [ ] [Computer Science](./src/cs/cs.typ) (WIP)
|
||||
|
||||
## How to setup
|
||||
|
||||
|
@ -24,5 +24,5 @@ the early 2010s. Made with $\LaTeX$.
|
|||
e.g.
|
||||
|
||||
```
|
||||
cd latex/math && pdflatex math.tex
|
||||
typst watch src/math/math.typ --root .
|
||||
```
|
||||
|
|
21
devenv.nix
vendored
21
devenv.nix
vendored
|
@ -1,17 +1,28 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
fontsOverlay = import (
|
||||
builtins.fetchTarball {
|
||||
url = "https://github.com/pompydev/nix-google-fonts-overlay/archive/dfb84823efeb84314f8186cb2014edf05136b527.tar.gz";
|
||||
sha256 = "sha256:01cpfyzd4xl3a462jyn2xn22hn6i1my1svyag7926r3r2vmck24y";
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
overlays = [ fontsOverlay ];
|
||||
|
||||
packages = with pkgs; [
|
||||
nixd
|
||||
nixfmt-rfc-style
|
||||
tex-fmt
|
||||
|
||||
font-awesome_6
|
||||
];
|
||||
|
||||
# https://devenv.sh/supported-languages/texlive/
|
||||
languages.texlive = {
|
||||
# https://devenv.sh/supported-languages/typst/
|
||||
languages.typst = {
|
||||
enable = true;
|
||||
base = pkgs.texliveFull;
|
||||
packages = [
|
||||
fontPaths = [
|
||||
"${pkgs.font-awesome_6}/share/fonts/opentype"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,68 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{tikz} %
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\usetikzlibrary{tikzmark,fit}
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Chemistry}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{Atoms}
|
||||
\section{Periodic Table}
|
||||
|
||||
\chapter{Biology}
|
||||
|
||||
\end{document}
|
|
@ -1,69 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{tikz} %
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\usetikzlibrary{tikzmark,fit}
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Computer Science}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{ISA}
|
||||
\section{x86-64}
|
||||
|
||||
\chapter{Cryptography}
|
||||
\section{RSA}
|
||||
|
||||
\end{document}
|
|
@ -1,68 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{tikz} %
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\usetikzlibrary{tikzmark,fit}
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Electrical Engineering}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{Units}
|
||||
\chapter{Components}
|
||||
\section{Resistors}
|
||||
\subsection{Resistors in series}
|
||||
|
||||
\end{document}
|
|
@ -1,96 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Mathematics}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{Algebra}
|
||||
\section{Types of Numbers}
|
||||
|
||||
\begin{description}
|
||||
\item[$\mathbb{C}$] - Complex / 복소수 ($\pmb{a+bi}$)
|
||||
\begin{description}
|
||||
\item[$\mathbb{R}$] - Real / 실수 ($\pmb{a}+bi$)
|
||||
\begin{description}
|
||||
\item[$\mathbb{Q}$] - Rational / 유리수 ($\frac{p}{q} | p,q \in \mathbb{Z}, q \ne 0$)
|
||||
\begin{description}
|
||||
\item[$\mathbb{Z}$] - Integer / 정수 ($..., -1, 0, 1, ...$)
|
||||
\begin{description}
|
||||
\item[$\mathbb{N}$] - Natural / 자연수 ($1, 2, 3, ...$)
|
||||
\item[$\mathbb{W}$] - Whole ($0, 1, 2, ...$)
|
||||
\end{description}
|
||||
\end{description}
|
||||
\item Irrational / 무리수
|
||||
\end{description}
|
||||
\item[$\mathbb{I}$] - Imaginary / 허수 ($a+\pmb{bi}$)
|
||||
\end{description}
|
||||
\end{description}
|
||||
\newpage
|
||||
|
||||
\section{Rational decimal numbers}
|
||||
\subsection{Termination test}
|
||||
Given simplified fraction of rational number $x = \frac{p}{q}$, if $q = 2^m \cdot 5^n | m, n \in \mathbb{Z}$,
|
||||
then decimal form of $x$ is terminating.
|
||||
|
||||
\subsection{Decimal-fraction conversion}
|
||||
To convert non-terminating repeating decimal number to fraction, use the following formula:
|
||||
$$
|
||||
a.\textcolor{red}{b}\overline{\textcolor{blue}{cd}}=\frac{abcd-ab}{\textcolor{blue}{99}\textcolor{red}{0}}
|
||||
$$
|
||||
|
||||
\newpage
|
||||
|
||||
\end{document}
|
|
@ -1,68 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{tikz} %
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\usetikzlibrary{tikzmark,fit}
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Neuroscience}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{Nervous system}
|
||||
\section{Neuron}
|
||||
\section{Brain}
|
||||
\section{Vertebral column}
|
||||
|
||||
\end{document}
|
|
@ -1,66 +0,0 @@
|
|||
\documentclass[11pt]{book}
|
||||
\usepackage[paperwidth=90mm,paperheight=140mm,margin=5mm,bottom=6mm,footskip=4mm]{geometry} % https://mirrors.ctan.org/macros/latex/contrib/geometry/geometry.pdf
|
||||
\usepackage[hidelinks]{hyperref} % http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf
|
||||
\usepackage{amsfonts} % http://mirrors.ctan.org/fonts/amsfonts/doc/amsfndoc.pdf
|
||||
\usepackage{amsmath} % http://mirrors.ctan.org/macros/latex/required/amsmath/amsldoc.pdf
|
||||
\usepackage{catchfile} % https://mirrors.ctan.org/macros/latex/contrib/catchfile/catchfile.pdf
|
||||
\usepackage{enumitem} % http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf
|
||||
\usepackage{fontawesome} % http://mirrors.ctan.org/fonts/fontawesome/doc/fontawesome.pdf
|
||||
\usepackage{kotex} %
|
||||
\usepackage{paracol} % https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol-man.pdf
|
||||
\usepackage{qrcode} % http://mirrors.ctan.org/macros/latex/contrib/qrcode/qrcode.pdf
|
||||
\usepackage{tikz} %
|
||||
\usepackage{titlesec} % https://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.pdf
|
||||
\usepackage{xcolor} % http://mirrors.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
|
||||
\usepackage{xstring} % https://mirrors.ctan.org/macros/generic/xstring/xstring-en.pdf
|
||||
|
||||
\usetikzlibrary{tikzmark,fit}
|
||||
|
||||
\titleformat{\chapter}[block]{\huge\bfseries}{}{0pt}{}{}
|
||||
\titlespacing{\chapter}{0pt}{-20pt}{0pt}
|
||||
|
||||
\setlist[description]{leftmargin=15pt,labelindent=0pt}
|
||||
|
||||
\CatchFileDef{\HEAD}{../../.git/refs/heads/master}{}
|
||||
\newcommand{\gitrevision}{\StrLeft{\HEAD}{7}}
|
||||
\newcommand{\gh}{
|
||||
https://github.com/pompydev/cheatsheets/tree/\HEAD
|
||||
}
|
||||
|
||||
\newcommand{\cc}[1]{
|
||||
$\vcenter{\hbox{#1}}$
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
\centerline{\large pomp's}
|
||||
\null
|
||||
\centerline{\LARGE \textbf{Physics}}
|
||||
\null
|
||||
\centerline{\large Cheat Sheet}
|
||||
|
||||
\vspace{236.5pt}
|
||||
|
||||
\columnratio{0.63}
|
||||
\begin{paracol}{2}
|
||||
\vspace{21pt}
|
||||
\href{\gh}{\cc{\large\faGithub} pompydev/cheatsheets}
|
||||
|
||||
git reversion:\gitrevision
|
||||
|
||||
made with \LaTeX
|
||||
\switchcolumn
|
||||
\fbox{\qrcode[hyperlink,height=20mm]{\gh}}
|
||||
\end{paracol}
|
||||
\newpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
\chapter{Classical Mechanics}
|
||||
\section{Thermodynamics}
|
||||
|
||||
\end{document}
|
42
src/_lib/cover.typ
Normal file
42
src/_lib/cover.typ
Normal file
|
@ -0,0 +1,42 @@
|
|||
#import "@preview/fontawesome:0.5.0": fa-github
|
||||
#import "@preview/tiaoma:0.3.0"
|
||||
|
||||
#let cover(
|
||||
name: str,
|
||||
slug: str,
|
||||
) = {
|
||||
let HEAD = read("../../.git/refs/heads/master").trim()
|
||||
let gh = "https://github.com/pompydev/cheatsheets/blob/" + HEAD + "/src/" + slug + "/" + slug + ".typ"
|
||||
|
||||
align(
|
||||
center,
|
||||
[
|
||||
pomp's\
|
||||
#text(20pt)[*#name*]\
|
||||
cheat sheet
|
||||
],
|
||||
)
|
||||
|
||||
align(bottom)[
|
||||
#grid(
|
||||
columns: (auto, auto),
|
||||
rows: auto,
|
||||
gutter: 1fr,
|
||||
[
|
||||
#align(top)[
|
||||
#link(gh)[#fa-github() pompydev/cheatsheets]\
|
||||
git revision: #HEAD.slice(0, 7)\
|
||||
made with #link("https://github.com/typst/typst")[Typst] // https://typst.app/legal/brand/
|
||||
]
|
||||
],
|
||||
rect(
|
||||
link(gh)[
|
||||
#tiaoma.qrcode(gh, width: 18mm)
|
||||
],
|
||||
inset: 1mm,
|
||||
),
|
||||
)
|
||||
]
|
||||
|
||||
pagebreak()
|
||||
}
|
24
src/chem/chem.typ
Normal file
24
src/chem/chem.typ
Normal file
|
@ -0,0 +1,24 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Chemistry", slug: "math")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= Atoms
|
||||
== Periodic Table
|
||||
|
||||
#pagebreak()
|
||||
|
||||
= Biology
|
25
src/cs/cs.typ
Normal file
25
src/cs/cs.typ
Normal file
|
@ -0,0 +1,25 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Computer Science", slug: "cs")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= ISA
|
||||
== x86-64
|
||||
|
||||
#pagebreak()
|
||||
|
||||
= Cryptography
|
||||
== RSA
|
25
src/ee/ee.typ
Normal file
25
src/ee/ee.typ
Normal file
|
@ -0,0 +1,25 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Electrical Engineering", slug: "ee")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= Units
|
||||
|
||||
#pagebreak()
|
||||
|
||||
= Components
|
||||
== Resistors
|
||||
=== Resistors in series
|
54
src/math/math.typ
Normal file
54
src/math/math.typ
Normal file
|
@ -0,0 +1,54 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Mathematics", slug: "math")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= Algebra
|
||||
|
||||
== Types of Numbers
|
||||
|
||||
- $CC$ - Complex / 복소수 ($bold(a + b i)$)
|
||||
- $RR$ - Real / 실수 ($bold(a) + b i$)
|
||||
- $QQ$ - Rational / 유리수 ($p / q|p,q in ZZ,q != 0$)
|
||||
- $ZZ$ - Integer / 정수 ($..., -1, 0, 1, ...$)
|
||||
- $NN$ - Natural / 자연수 ($1, 2, 3, ...$)
|
||||
- $WW$ - Whole ($0, 1, 2, ...$)
|
||||
- Irrational / 무리수 ($pi, e, sqrt(2), ...$)
|
||||
- $II$ - Imaginary / 허수 ($a + bold(b i)$)
|
||||
|
||||
#pagebreak()
|
||||
|
||||
== Rational decimal Numbers
|
||||
=== Termination test
|
||||
Given simplified fraction of rational number $x = p / q$, if $q = 2^m dot 5^n | m, n in ZZ$,
|
||||
then decimal form of $x$ is terminating.
|
||||
|
||||
=== Decimal-fraction conversion
|
||||
To convert a repeating decimal number to fraction, use the following formula:
|
||||
|
||||
#text(size: 15pt)[
|
||||
#align(center)[
|
||||
$a.#text(red)[b]#overline(stroke: black)[#text(blue)[cd]] = (a b c d-a b) / (#text(blue)[99]#text(red)[0])$
|
||||
]
|
||||
]
|
||||
|
||||
#pagebreak()
|
||||
|
||||
== Formulas
|
||||
|
||||
=== Factoring formulas
|
||||
|
||||
#pagebreak()
|
24
src/neuro/neuro.typ
Normal file
24
src/neuro/neuro.typ
Normal file
|
@ -0,0 +1,24 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Neuroscience", slug: "neuro")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= Nervous system
|
||||
== Neuron
|
||||
|
||||
== Brain
|
||||
|
||||
== Vertebral column
|
20
src/phy/phy.typ
Normal file
20
src/phy/phy.typ
Normal file
|
@ -0,0 +1,20 @@
|
|||
#import "../_lib/cover.typ": cover
|
||||
|
||||
#set page(
|
||||
width: 90mm,
|
||||
height: 140mm,
|
||||
margin: 5mm,
|
||||
numbering: "1",
|
||||
)
|
||||
#set list(marker: "•")
|
||||
|
||||
#cover(name: "Physics", slug: "phy")
|
||||
|
||||
#set heading(numbering: "1.")
|
||||
#pagebreak()
|
||||
|
||||
#outline()
|
||||
#pagebreak()
|
||||
|
||||
= Classical mechanics
|
||||
== Thermodynamics
|
Loading…
Add table
Add a link
Reference in a new issue