Codice base disegno lezione

This commit is contained in:
bursa-pastoris 2022-01-28 16:24:34 +01:00
parent 5eb072ce9f
commit 20edc56a48
2 changed files with 51 additions and 0 deletions

44
lezioni.tex Normal file
View File

@ -0,0 +1,44 @@
% !TEX encoding = utf8
% !TEX program = pdflatex
% !TEX root = /not-the-end
% !TEX spellcheck = it-IT
\newcommand{\lect}[3]%
{\begin{center}
\begin{minipage}[t]{.3\columnwidth}
\vspace{0pt}
\begin{tikzpicture}
Define vertexes
\coordinate (nw) at (0,0);
\coordinate (se) at (6,-8);
\coordinate (ne) at (nw -| se);
\coordinate (sw) at (nw |- se);
% Uncomment the next line to show the help grid
% (for debug purposes)
% \draw [help lines] (nw) grid (se);
\draw (nw) rectangle (se);
\node [anchor=north,% draw,
text width=5cm, align=center,
font=\scshape]
at ($ (nw)!.5!(ne) + (0,-0.25)$)
{#1}
coordinate (title);
\node [anchor=north,% draw
text width=5cm, align=justify,
font=\small]
at ($ (nw)!.5!(ne) + (0,-2) $)
{#2};
\end{tikzpicture}%
\medskip
\end{minipage}
\hspace{\fill}
\begin{minipage}[t]{.5\columnwidth}
\vspace{0pt}
#3
\end{minipage}
\end{center}}

View File

@ -39,6 +39,10 @@
inkscapelatex=false}
\graphicspath{{img/},}
\usepackage{tikz}
\usetikzlibrary{calc}
% Customization
%% Redefine \marginpar to reduce content font size
\newcommand{\marginparfontsize}{\tiny}
@ -76,6 +80,9 @@
{#1\,$\oast$}%
}
\input{lezioni}
\begin{document}
\title{Not The End}
\author{Claudio Pustorino}