comparison dottes.tex @ 869:7cc06a68a572

Add optional image caption taken from <section>/image.md.
author Jim Hague <jim.hague@acm.org>
date Tue, 26 Mar 2019 11:00:35 +0000
parents a284fc64cb75
children 79dcae708ea9
comparison
equal deleted inserted replaced
868:4d6e9af2bb6e 869:7cc06a68a572
1 \input{docclass.tex} 1 \input{docclass.tex}
2 2
3 \usepackage{array} 3 \usepackage{array}
4 \usepackage{caption}
4 \usepackage{color} 5 \usepackage{color}
5 \usepackage{fontspec} 6 \usepackage{fontspec}
6 \usepackage{graphicx} 7 \usepackage{graphicx}
7 \usepackage{fancyhdr} 8 \usepackage{fancyhdr}
8 \usepackage{tabularx} 9 \usepackage{tabularx}
75 \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#3}} \\ 76 \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#3}} \\
76 } 77 }
77 78
78 % Show the section graphic. 79 % Show the section graphic.
79 % Args are the graphic filename. 80 % Args are the graphic filename.
80 \newcommand{\showsectiongraphic}[1]{% 81 \newcommand{\showsectiongraphic}[2]{%
81 \begin{center} 82 \begin{figure}[h!]
82 \includegraphics[height=0.60\textheight,keepaspectratio]{#1} 83 \begin{center}
83 \end{center} 84 \includegraphics[height=0.60\textheight,keepaspectratio]{#1}
85 \end{center}
86 \ifemptyarg{#2}{}{\caption*{#2}}
87 \end{figure}
84 } 88 }
85 89
86 % ----- Paper size document setup 90 % ----- Paper size document setup
87 91
88 \input{docsetup.tex} 92 \input{docsetup.tex}