mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-29 07:47:57 +02:00
add notes/journal
This commit is contained in:
parent
6d51770034
commit
afdc5d4899
11 changed files with 711 additions and 0 deletions
65
notes/journal/tex-src/preamble.tex
Normal file
65
notes/journal/tex-src/preamble.tex
Normal file
|
@ -0,0 +1,65 @@
|
|||
% Multi language stuff
|
||||
\usepackage{arabtex}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[icelandic,latin,dutch,spanish,arabic,english]{babel}
|
||||
|
||||
% \usepackage{cmbright}
|
||||
\usepackage{stix}
|
||||
\usepackage{textcomp}
|
||||
\usepackage{amsmath, amssymb, amsthm}
|
||||
\usepackage{mathtools}
|
||||
\usepackage{tikz-cd}
|
||||
\usepackage{titlesec}
|
||||
\usepackage{pgfmath}
|
||||
\usepackage{pgfcalendar}
|
||||
\usepackage{float}
|
||||
\usepackage{lastpage}
|
||||
|
||||
% page layout
|
||||
\usepackage{geometry}
|
||||
\geometry{
|
||||
a4paper,
|
||||
total={170mm,257mm},
|
||||
left=20mm,
|
||||
top=20mm,
|
||||
}
|
||||
|
||||
% figure support
|
||||
\usepackage{import}
|
||||
\usepackage[shortlabels]{enumitem}
|
||||
\usepackage{xifthen}
|
||||
\pdfminorversion=7
|
||||
\usepackage{pdfpages}
|
||||
\usepackage{transparent}
|
||||
\newcommand{\incfig}[2]{%
|
||||
\includepdf[pages=#2,pagecommand={},width=\textwidth]{#1}
|
||||
}
|
||||
|
||||
\pdfsuppresswarningpagegroup=1
|
||||
|
||||
\usepackage{xcolor}
|
||||
\usepackage{parskip}
|
||||
\usepackage{soul}
|
||||
|
||||
\makeatletter
|
||||
|
||||
\def\@noteday{}
|
||||
\newcommand{\noteday}[1]{
|
||||
\def\@noteday{#1}
|
||||
}
|
||||
|
||||
% fancy headers
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
|
||||
\fancyhead{}
|
||||
\fancyfoot[C]{\textit{\Large\@noteday}}
|
||||
\fancyfoot[R]{\Large{\thepage\ of \pageref{LastPage}}}
|
||||
\fancyfoot[L]{\Large{Hashem A. Damrah}}
|
||||
|
||||
\makeatother
|
||||
|
||||
\newcommand{\nothingtosay}{{\color{red}I don't feel like writing anything.}}
|
25
notes/journal/tex-src/references.tex
Normal file
25
notes/journal/tex-src/references.tex
Normal file
|
@ -0,0 +1,25 @@
|
|||
\usepackage{hyperref}
|
||||
\hypersetup{hidelinks}
|
||||
\usepackage{fontawesome}
|
||||
\usepackage{xifthen}% provides \isempty test
|
||||
\newcommand\pdfref[3]{%
|
||||
\href{phd://open-paper?id=#1&page=#2}{%
|
||||
\textup{[\textbf{\ifthenelse{\isempty{#3}}{here}{#3}}]}}%
|
||||
}
|
||||
\newcommand\urlref[2]{%
|
||||
\href{#1}{\raisebox{0.15ex}{\scriptsize \faLink}\:\textup{\textbf{#2}}}%
|
||||
}
|
||||
\newcommand\absolutefileref[2]{%
|
||||
\href{run:#1}{\raisebox{0.15ex}{\scriptsize \faFile}\:\textup{\textbf{#2}}}%
|
||||
}
|
||||
|
||||
% this will contain the current date in yyyy-mm-dd format
|
||||
\def\formatteddate{}
|
||||
\newcommand\fileref[2]{
|
||||
\IfFileExists{./\formatteddate/#1}{
|
||||
\absolutefileref{./\formatteddate/#1}{#2}
|
||||
}{
|
||||
\textcolor{gray}{\absolutefileref{./\formatteddate/#1}{#2}}
|
||||
}
|
||||
}
|
||||
\newcommand{\xournal}{\fileref{note.xopp}{Handwritten notes}}%
|
53
notes/journal/tex-src/theorems.tex
Normal file
53
notes/journal/tex-src/theorems.tex
Normal file
|
@ -0,0 +1,53 @@
|
|||
\usepackage{tcolorbox}
|
||||
\usepackage{thmtools}
|
||||
\usepackage[framemethod=TikZ]{mdframed}
|
||||
|
||||
\mdfsetup{
|
||||
skipabove=1em,
|
||||
skipbelow=0em,
|
||||
innertopmargin=5pt,
|
||||
innerbottommargin=6pt
|
||||
}
|
||||
|
||||
\newmdenv[
|
||||
backgroundcolor = red!10,
|
||||
frametitle=Wrong
|
||||
]{wrong}
|
||||
\newmdenv[
|
||||
backgroundcolor = green!10,
|
||||
frametitle=Correct
|
||||
]{correct}
|
||||
\renewmdenv[
|
||||
bottomline=false,
|
||||
topline=false,
|
||||
rightline=false,
|
||||
fontcolor=black!70,
|
||||
]{quote}
|
||||
\newmdenv[
|
||||
backgroundcolor = blue!10,
|
||||
frametitle=Goals for Today
|
||||
]{goals}
|
||||
\newmdenv[
|
||||
backgroundcolor = blue!10,
|
||||
frametitle=Status for my Goals
|
||||
]{status}
|
||||
\newmdenv[
|
||||
backgroundcolor = blue!10,
|
||||
frametitle=The results of my Goals
|
||||
]{results}
|
||||
|
||||
\declaretheoremstyle[headfont=\bfseries\sffamily, bodyfont=\normalfont, numbered=no, mdframed={ nobreak } ]{mainenv}
|
||||
|
||||
\declaretheorem[style=mainenv, name=Definition]{definition}
|
||||
\declaretheorem[style=mainenv, name=Question]{question}
|
||||
\declaretheorem[style=mainenv, name=Confusion]{confusion}
|
||||
\declaretheorem[style=mainenv, name=Answer]{answer}
|
||||
\declaretheorem[style=mainenv, name=Thought]{thought}
|
||||
\declaretheorem[style=mainenv, name=Idea]{idea}
|
||||
\declaretheorem[style=mainenv, name=Claim]{claim}
|
||||
\declaretheorem[style=mainenv, name=Remark]{remark}
|
||||
\declaretheorem[style=mainenv, name=Problem]{problem}
|
||||
\declaretheorem[style=mainenv, name=Example]{example}
|
||||
\declaretheorem[style=mainenv, name=Rant]{rant}
|
||||
\declaretheorem[style=mainenv, name=Note]{note}
|
||||
\declaretheorem[style=mainenv, name=TODO]{todo}
|
24
notes/journal/tex-src/times.tex
Normal file
24
notes/journal/tex-src/times.tex
Normal file
|
@ -0,0 +1,24 @@
|
|||
\newcommand{\morning}{\subsection*{Morning}\vspace*{1em}}
|
||||
\newcommand{\afternoon}{\subsection*{Afternoon}\vspace*{1em}}
|
||||
\newcommand{\evening}{\subsection*{Evening}\vspace*{1em}}
|
||||
\newcommand{\night}{\subsection*{Night}\vspace*{1em}}
|
||||
\newcommand{\todostatus}[1]{
|
||||
\ifthenelse{\equal{#1}{\string 0}}
|
||||
{\hfill\textbf{Done}}{}
|
||||
\ifthenelse{\equal{#1}{\string 1}}
|
||||
{\hfill\textbf{In Progress}}{}
|
||||
\ifthenelse{\equal{#1}{\string 2}}
|
||||
{\hfill\textbf{To-Do}}{}
|
||||
}
|
||||
|
||||
\newcommand{\contentment}[1]{
|
||||
\begin{flushright}
|
||||
\textbf{Feeling of contentment for the day:}\hfill\textbf{\underline{#1/10}}
|
||||
\end{flushright}
|
||||
}
|
||||
|
||||
\renewcommand{\time}[1]{
|
||||
\begin{flushright}
|
||||
\hfill\textbf{Current logging time: \underline{#1}}
|
||||
\end{flushright}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue