Standard sections as macros

This commit is contained in:
architeuthidae 2024-10-30 21:29:39 +01:00
parent a6985892cf
commit 173055138a
3 changed files with 25 additions and 21 deletions

View File

@ -167,9 +167,7 @@ Real-time control of EEM daughtercards is implemented using the ARTIQ RTIO syste
% page-by-page.
\onecolumn
\section{Source}
Kasli 2.0, like all the Sinara hardware family, is open-source hardware, and design files (schematics, PCB layouts, BOMs) can be found in detail at the repository \url{https://github.com/sinara-hw/Kasli}.
\sourcesection{Kasli 2.0}{https://github.com/sinara-hw/Kasli}
\section{Electrical Specifications}
External clock parameters are derived based on the internal termination specified in
@ -305,12 +303,8 @@ The following code snippets describe two experiments, in which the data from the
Similar to DMA, cached data is no longer retrievable once the core device has been rebooted.
\section{Ordering Information}
To order, please visit \url{https://m-labs.hk} and select 1124 Carrier Kasli 2.0 in the ARTIQ/Sinara crate configuration tool. Cards may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}.
\ordersection{1124 Carrier Kasli 2.0}
\section*{}
\vspace*{\fill}
\input{footnote.tex}
\finalfootnote
\end{document}

View File

@ -227,10 +227,7 @@ Clocker can be powered externally or internally. To provide external power, conn
% page-by-page.
\onecolumn
\section{Source}
Clocker, like all the Sinara hardware family, is open-source hardware, and design files (schematics, PCB layouts,
BOMs) can be found in detail at the repository \url{https://github.com/sinara-hw/Clocker}.
\sourcesection{7210 Clocker}{https://github.com/sinara-hw/Clocker}
\section{Electrical Specifications}
@ -296,12 +293,7 @@ Either \texttt{INT} or \texttt{EXT} can be selected.
\end{center}
\end{multicols}
\section{Ordering Information}
To order, please visit \url{https://m-labs.hk} and select 7210 Clocker in the ARTIQ/Sinara crate configuration tool. Cards may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}.
\section*{}
\vspace*{\fill}
\input{footnote.tex}
\ordersection{7210 Clocker}
\finalfootnote{}
\end{document}

View File

@ -30,4 +30,22 @@
\inputminted[#2, gobble=#1]{python}{#3}
\end{tcolorbox}
}
\newcommand{\repeatfootnote}[1]{\textsuperscript{\ref{#1}}}
\newcommand{\repeatfootnote}[1]{\textsuperscript{\ref{#1}}}
\newcommand*{\sourcesection}[2]{
\section{Source}
#1, like all the Sinara hardware family, is open-source hardware, and design files (schematics, PCB layouts, BOMs) can be found in detail at the repository \url{#2}.
}
\newcommand*{\ordersection}[1]{
\section{Ordering Information}
To order, please visit \url{https://m-labs.hk} and choose #1 in the ARTIQ/Sinara hardware selection tool. Cards can be ordered as part of a fully-featured ARTIQ/Sinara crate or standalone through the 'Spare cards' option. Otherwise, orders can also be made by writing directly to \url{mailto:sales@m-labs.hk}.
}
\newcommand*{\finalfootnote}{
\section*{}
\vspace*{\fill}
\begin{footnotesize}
Information furnished by M-Labs Limited is provided in good faith in the hope that it will be useful. However, no responsibility is assumed by M-Labs Limited for its use. Specifications may be subject to change without notice.
\end{footnotesize}
}