meta: aggiunge il generatore di appunti

main
parent 3173d9620e
commit e7fb16033b

@ -0,0 +1,18 @@
\chapter{Primo capitolo}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam laoreet venenatis ligula, et posuere est malesuada non.
In placerat rutrum felis, vel consectetur justo commodo tempus.
Etiam placerat mattis lectus, eget convallis ipsum convallis
sit amet. Nunc laoreet sapien sed accumsan aliquet. Vestibulum
justo purus, varius et dolor feugiat, viverra tincidunt diam.
Suspendisse maximus est augue, eget tincidunt turpis lobortis
eget. Vivamus placerat, elit a gravida sollicitudin, ante mauris
fermentum erat, accumsan mattis lectus justo quis massa. Cras
eleifend arcu vitae mauris efficitur, ut dapibus ligula fermentum.
Aliquam eget nisi congue, varius mi id, placerat ante. Duis at
egestas ligula. Morbi pulvinar dolor ut nibh auctor, quis congue
elit aliquam. Cras placerat lorem eros, et pretium nisi finibus
a. Integer dignissim mi nulla, id consectetur nisi blandit sed.
In in maximus erat. Aenean gravida nibh elit, at pellentesque
lorem porttitor eget.

@ -0,0 +1,48 @@
\documentclass[oneside]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[parfill]{parskip}
\usepackage{wrapfig}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows,angles,quotes}
\renewcommand\qedsymbol{$\blacksquare$}
\newcommand{\gfrac}[2]{\displaystyle \frac{#1}{#2}}
\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\norm}[1]{\lVert \vec{#1} \rVert}
\newcommand{\nnorm}[1]{\lVert #1 \rVert}
\newtheorem{axiom}{Assioma}[section]
\newtheorem{theorem}{Teorema}[section]
\newtheorem{corollary}{Corollario}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{definition}{Definizione}[section]
\begin{document}
\author{Gabriel Antonio Videtta}
\title{Appunti di Algebra lineare}
\maketitle
\newpage
\tableofcontents
\newpage
\include{1. Primo capitolo.tex}
\end{document}

@ -0,0 +1,18 @@
\chapter{Primo capitolo}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam laoreet venenatis ligula, et posuere est malesuada non.
In placerat rutrum felis, vel consectetur justo commodo tempus.
Etiam placerat mattis lectus, eget convallis ipsum convallis
sit amet. Nunc laoreet sapien sed accumsan aliquet. Vestibulum
justo purus, varius et dolor feugiat, viverra tincidunt diam.
Suspendisse maximus est augue, eget tincidunt turpis lobortis
eget. Vivamus placerat, elit a gravida sollicitudin, ante mauris
fermentum erat, accumsan mattis lectus justo quis massa. Cras
eleifend arcu vitae mauris efficitur, ut dapibus ligula fermentum.
Aliquam eget nisi congue, varius mi id, placerat ante. Duis at
egestas ligula. Morbi pulvinar dolor ut nibh auctor, quis congue
elit aliquam. Cras placerat lorem eros, et pretium nisi finibus
a. Integer dignissim mi nulla, id consectetur nisi blandit sed.
In in maximus erat. Aenean gravida nibh elit, at pellentesque
lorem porttitor eget.

@ -0,0 +1,48 @@
\documentclass[oneside]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[parfill]{parskip}
\usepackage{wrapfig}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows,angles,quotes}
\renewcommand\qedsymbol{$\blacksquare$}
\newcommand{\gfrac}[2]{\displaystyle \frac{#1}{#2}}
\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\norm}[1]{\lVert \vec{#1} \rVert}
\newcommand{\nnorm}[1]{\lVert #1 \rVert}
\newtheorem{axiom}{Assioma}[section]
\newtheorem{theorem}{Teorema}[section]
\newtheorem{corollary}{Corollario}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{definition}{Definizione}[section]
\begin{document}
\author{Gabriel Antonio Videtta}
\title{Appunti di Analisi I}
\maketitle
\newpage
\tableofcontents
\newpage
\include{1. Primo capitolo.tex}
\end{document}

@ -0,0 +1,18 @@
\chapter{Primo capitolo}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam laoreet venenatis ligula, et posuere est malesuada non.
In placerat rutrum felis, vel consectetur justo commodo tempus.
Etiam placerat mattis lectus, eget convallis ipsum convallis
sit amet. Nunc laoreet sapien sed accumsan aliquet. Vestibulum
justo purus, varius et dolor feugiat, viverra tincidunt diam.
Suspendisse maximus est augue, eget tincidunt turpis lobortis
eget. Vivamus placerat, elit a gravida sollicitudin, ante mauris
fermentum erat, accumsan mattis lectus justo quis massa. Cras
eleifend arcu vitae mauris efficitur, ut dapibus ligula fermentum.
Aliquam eget nisi congue, varius mi id, placerat ante. Duis at
egestas ligula. Morbi pulvinar dolor ut nibh auctor, quis congue
elit aliquam. Cras placerat lorem eros, et pretium nisi finibus
a. Integer dignissim mi nulla, id consectetur nisi blandit sed.
In in maximus erat. Aenean gravida nibh elit, at pellentesque
lorem porttitor eget.

@ -0,0 +1,48 @@
\documentclass[oneside]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[parfill]{parskip}
\usepackage{wrapfig}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows,angles,quotes}
\renewcommand\qedsymbol{$\blacksquare$}
\newcommand{\gfrac}[2]{\displaystyle \frac{#1}{#2}}
\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\norm}[1]{\lVert \vec{#1} \rVert}
\newcommand{\nnorm}[1]{\lVert #1 \rVert}
\newtheorem{axiom}{Assioma}[section]
\newtheorem{theorem}{Teorema}[section]
\newtheorem{corollary}{Corollario}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{definition}{Definizione}[section]
\begin{document}
\author{Gabriel Antonio Videtta}
\title{Appunti di Aritmetica}
\maketitle
\newpage
\tableofcontents
\newpage
\include{1. Primo capitolo.tex}
\end{document}

@ -206,4 +206,5 @@ a tale verso di percorrenza.
e congiunti a $P$, definiscono allo stesso modo infinite e congiunti a $P$, definiscono allo stesso modo infinite
rette. rette.
\end{proof} \end{proof}
\end{document} \end{document}

@ -0,0 +1,21 @@
import os
with open("templates/main_tmpl.tex", "r") as f:
main_tmpl = f.read()
with open("templates/chap_tmpl.tex", "r") as f:
chap_tmpl = f.read()
title = input("Inserisci il titolo dei nuovi appunti: ")
filename = title.lower().replace(" ", "_")
try:
os.mkdir(title)
except FileExistsError:
pass
with open(os.path.join(title, filename + ".tex"), "w") as f:
f.write(main_tmpl.replace("{{titolo}}", title))
with open(os.path.join(title, "1. Primo capitolo.tex"), "w") as f:
f.write(chap_tmpl)

@ -0,0 +1,18 @@
\chapter{Primo capitolo}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam laoreet venenatis ligula, et posuere est malesuada non.
In placerat rutrum felis, vel consectetur justo commodo tempus.
Etiam placerat mattis lectus, eget convallis ipsum convallis
sit amet. Nunc laoreet sapien sed accumsan aliquet. Vestibulum
justo purus, varius et dolor feugiat, viverra tincidunt diam.
Suspendisse maximus est augue, eget tincidunt turpis lobortis
eget. Vivamus placerat, elit a gravida sollicitudin, ante mauris
fermentum erat, accumsan mattis lectus justo quis massa. Cras
eleifend arcu vitae mauris efficitur, ut dapibus ligula fermentum.
Aliquam eget nisi congue, varius mi id, placerat ante. Duis at
egestas ligula. Morbi pulvinar dolor ut nibh auctor, quis congue
elit aliquam. Cras placerat lorem eros, et pretium nisi finibus
a. Integer dignissim mi nulla, id consectetur nisi blandit sed.
In in maximus erat. Aenean gravida nibh elit, at pellentesque
lorem porttitor eget.

@ -0,0 +1,48 @@
\documentclass[oneside]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[parfill]{parskip}
\usepackage{wrapfig}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows,angles,quotes}
\renewcommand\qedsymbol{$\blacksquare$}
\newcommand{\gfrac}[2]{\displaystyle \frac{#1}{#2}}
\newcommand{\abs}[1]{\lvert#1\rvert}
\newcommand{\norm}[1]{\lVert \vec{#1} \rVert}
\newcommand{\nnorm}[1]{\lVert #1 \rVert}
\newtheorem{axiom}{Assioma}[section]
\newtheorem{theorem}{Teorema}[section]
\newtheorem{corollary}{Corollario}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{definition}{Definizione}[section]
\begin{document}
\author{Gabriel Antonio Videtta}
\title{Appunti di {{titolo}}}
\maketitle
\newpage
\tableofcontents
\newpage
\include{1. Primo capitolo.tex}
\end{document}
Loading…
Cancel
Save