From 173055138a2d582f774a940427ecc31970ec95f7 Mon Sep 17 00:00:00 2001 From: architeuthidae Date: Wed, 30 Oct 2024 21:29:39 +0100 Subject: [PATCH] Standard sections as macros --- 1124.tex | 12 +++--------- 7210.tex | 14 +++----------- preamble.tex | 20 +++++++++++++++++++- 3 files changed, 25 insertions(+), 21 deletions(-) diff --git a/1124.tex b/1124.tex index 62b5f62..e13debb 100644 --- a/1124.tex +++ b/1124.tex @@ -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} diff --git a/7210.tex b/7210.tex index 057a3c8..4602855 100644 --- a/7210.tex +++ b/7210.tex @@ -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} diff --git a/preamble.tex b/preamble.tex index ec8195e..d54ad51 100644 --- a/preamble.tex +++ b/preamble.tex @@ -30,4 +30,22 @@ \inputminted[#2, gobble=#1]{python}{#3} \end{tcolorbox} } -\newcommand{\repeatfootnote}[1]{\textsuperscript{\ref{#1}}} \ No newline at end of file +\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} +} -- 2.44.2