Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
latex [2018/07/10 08:22] – awf | latex [2018/10/31 13:24] – [Misc stuff to paste in the top] awf | ||
---|---|---|---|
Line 63: | Line 63: | ||
\marginpar{\hspace{-4mm}\parbox[b]{1cm}% | \marginpar{\hspace{-4mm}\parbox[b]{1cm}% | ||
{\rotatebox{90}{\parbox{5cm}{\textcolor{red}{\scriptsize $\bullet$ #1}}}}}% | {\rotatebox{90}{\parbox{5cm}{\textcolor{red}{\scriptsize $\bullet$ #1}}}}}% | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ====== Picture with label in circle ====== | ||
+ | <code tex> | ||
+ | \usepackage{tikz} | ||
+ | \def\labelledpic# | ||
+ | \begin{tikzpicture} | ||
+ | \node (pic) {#1}; | ||
+ | \path[fill=white, | ||
+ | node {#2}; | ||
+ | \end{tikzpicture} | ||
+ | } | ||
+ | \labelledpic{\includegraphics[width=0.3\textwidth]{hohum}}{A} | ||
+ | </ | ||
+ | |||
+ | ====== Two pictures with same height, forcing total width ====== | ||
+ | <code TeX> | ||
+ | % \awfTwoPicsSameHeight{WIDTH}{PIC1}{PIC2} | ||
+ | % Make two pictures of different aspect ratio sit neatly in a box of width WIDTH | ||
+ | \newlength{\awfpicH} | ||
+ | \def\awfTwoPicsSameHeight# | ||
+ | \setlength{\awfpicH}{0.25\linewidth} % an initial guess... | ||
+ | \def\pair## | ||
+ | \setlength{\awfpicH}{\awfpicH*\ratio{\linewidth}{\widthof{\pair{\awfpicH}}}} | ||
+ | \pair\awfpicH | ||
} | } | ||
</ | </ | ||