| 1 |
% \subsubsection{Google Sheet} |
| 2 |
% \DescribeMacro{\googleSheet}{googleSheet command. Requires id, |
| 3 |
% width, and height as arguments. optional arguments are gid for |
| 4 |
% sheet ID and range for cell range. command definition} |
| 5 |
% \begin{macrocode} |
| 6 |
%<*classXimera> |
| 7 |
% Google Spreadsheet link (read only) |
| 8 |
\newcommand{\googleSheet}[5]{% |
| 9 |
Google Spreadsheet link: \url{https://docs.google.com/spreadsheets/d/#1}% |
| 10 |
} |
| 11 |
%</classXimera> |
| 12 |
% \end{macrocode} |
| 13 |
|
| 14 |
% \begin{macrocode} |
| 15 |
%<*htXimera> |
| 16 |
\renewcommand{\googleSheet}[5]{% |
| 17 |
\ifthenelse{\equal{#4}{}}% |
| 18 |
{\HCode{<iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?widget=true">This browser does not support embedded elements.</iframe>}}% |
| 19 |
{\ifthenelse{\equal{#5}{}}% |
| 20 |
{\HCode{<iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?single=true&gid=#4&widget=false">This browser does not support embedded elements.</iframe>}}% |
| 21 |
{\HCode{<iframe width="#2px" height="#3px" src="https://docs.google.com/spreadsheets/d/#1/htmlembed?single=true&gid=#4&range=#5&widget=false">This browser does not support embedded elements.</iframe>}}% |
| 22 |
}% |
| 23 |
}% |
| 24 |
%</htXimera> |
| 25 |
% \end{macrocode} |
| 26 |
|