Scorporo immagine e descrizione

This commit is contained in:
bursa-pastoris 2022-01-28 17:12:29 +01:00
parent 20edc56a48
commit cb5305c006
1 changed files with 32 additions and 29 deletions

View File

@ -3,42 +3,45 @@
% !TEX root = /not-the-end
% !TEX spellcheck = it-IT
\newcommand{\lect}[3]%
\newcommand{\lect}[2]%
{\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}}
\newcommand{\lectdesc}[2]%
{\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}%
#1
\medskip
\end{minipage}
\hspace{\fill}
\begin{minipage}[t]{.5\columnwidth}
\vspace{0pt}
#3
#2
\end{minipage}
\end{center}}