comparison es/99defs.tex @ 489:c3a867bba34a

modified definitions to allow optional arguments for the inclusion of images. This needs to be tested for html generation. translated up to section 2.2.1 ot tour-merge
author Javier Rojas <jerojasro@devnull.li>
date Sun, 02 Nov 2008 20:08:45 -0500
parents 11d7896cd2ac
children c054534808e6
comparison
equal deleted inserted replaced
484:0abd3d78172e 489:c3a867bba34a
120 % Example code from the examples directory. 120 % Example code from the examples directory.
121 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}} 121 \newcommand{\excode}[1]{\VerbatimInput[frame=single,numbers=left,commandchars=\\\{\}]{../examples/#1}}
122 122
123 % Graphics inclusion. 123 % Graphics inclusion.
124 \ifpdf 124 \ifpdf
125 \newcommand{\grafix}[1]{\includegraphics{#1}} 125 \newcommand{\grafix}[2][]{\includegraphics[#1]{#2}}
126 \else 126 \else
127 \newcommand{\grafix}[1]{\includegraphics{#1.png}} 127 \newcommand{\grafix}[1]{\includegraphics{#1.png}}
128 \fi 128 \fi
129 129
130 % Reference entry for a command. 130 % Reference entry for a command.