<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \subsubsection{Google Sheet}
% \DescribeMacro{\googleSheet}{googleSheet command. Requires id,
% width, and height as arguments.  optional arguments are gid for
% sheet ID and range for cell range.  command definition}
%    \begin{macrocode}
%&lt;*classXimera&gt;
% Google Spreadsheet link (read only)
\newcommand{\googleSheet}[5]{%
  Google Spreadsheet link: \url{https://docs.google.com/spreadsheets/d/#1}%
}
%&lt;/classXimera&gt;
%    \end{macrocode}

%    \begin{macrocode}
%&lt;*htXimera&gt;
\renewcommand{\googleSheet}[5]{%
  \ifthenelse{\equal{#4}{}}%
    {\HCode{&lt;iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?widget=true"&gt;This browser does not support embedded elements.&lt;/iframe&gt;}}%
    {\ifthenelse{\equal{#5}{}}%
       {\HCode{&lt;iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?single=true&amp;amp;gid=#4&amp;amp;widget=false"&gt;This browser does not support embedded elements.&lt;/iframe&gt;}}%
       {\HCode{&lt;iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?single=true&amp;amp;gid=#4&amp;amp;range=#5&amp;amp;widget=false"&gt;This browser does not support embedded elements.&lt;/iframe&gt;}}%
    }%
  }%
%&lt;/htXimera&gt;
%    \end{macrocode}

</pre></body></html>