Scorporo immagine e descrizione
This commit is contained in:
parent
20edc56a48
commit
cb5305c006
61
lezioni.tex
61
lezioni.tex
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue