Change references into tabular format
This commit is contained in:
1 parent
c29f578390
commit
f609ce41d3
4 files changed
+106
-25
No files matched your search
@@ -7,6 +7,7 @@
|
||||
% -Updated to use Helvetica font %
|
||||
% -Took inspiration from SRON document %
|
||||
% template (https://personal.sron.nl/~pault/) %
|
||||
% -Update to include references in tables %
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
||||
@@ -30,13 +31,14 @@
|
||||
\dmdTitle{Document title} % Document title
|
||||
\dmdDocId{XXX-XXX-XXX-XXXXX-XXXX} % Document number
|
||||
\dmdIssue{1.0} % Version number
|
||||
\dmdDate{\today} % Date
|
||||
\dmdDate{12.04.2021} % Issue Date
|
||||
\dmdPreparedBy{Author Name} % Author(s)
|
||||
\dmdPreparedOn{\today} % Date to appear on the document?
|
||||
\dmdPreparedOn{\today} % Date that document was signed
|
||||
|
||||
% Change record
|
||||
\dmdChangeRecord{ % Change record table. Fill as a four column table.
|
||||
1.0 & 09/03/2021 & All & Initial document \\
|
||||
1.1 & 22/04/2021 & 2 & Update to place references in tabular environment.\\
|
||||
}
|
||||
|
||||
% Only for (draft)review
|
||||
@@ -49,7 +51,39 @@
|
||||
\dmdReleasedSig{} % Signature of the person releasing the document
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Definition required to get references in tables
|
||||
% A future update of TeX Live (more specifically, v.0.12b of biblatex-ext-tabular) will
|
||||
% allow the definition of bibtabular to be moved to the micado.sty file. For now, it is
|
||||
% necessary to have it in the main .tex file.
|
||||
\makeatletter
|
||||
\def\fixextblx@setrefcontext{%
|
||||
\expandafter\blx@setdefaultrefcontext\expandafter{\abx@field@entrykey}}
|
||||
|
||||
% Defines the function that prints references in a table
|
||||
\defbibtabular{bibtabular}{
|
||||
\begin{center}
|
||||
% \setlength\LTleft{10pt}
|
||||
% \setlength\LTright{0pt}
|
||||
\begin{longtable}{@{\extracolsep{\fill}}|c|p{0.3\linewidth}|p{0.3\linewidth}|c|c|@{}}
|
||||
\hline \textbf{RD Nr} & \textbf{Document Number} & \textbf{Document Title} & \textbf{Issue} & \textbf{Date}\endhead
|
||||
\hline
|
||||
}
|
||||
{
|
||||
\hline
|
||||
\end{longtable}
|
||||
\end{center}}{
|
||||
\anchorlang{%
|
||||
\fixextblx@setrefcontext
|
||||
\printtext[labelnumberwidth]{%
|
||||
\printfield{labelprefix}%
|
||||
\printfield{labelnumber}}}
|
||||
& \plainlang{\printfield{label}}
|
||||
& \plainlang{\usebibmacro{title}} \plainlang{\usebibmacro{author}}
|
||||
& \plainlang{\printfield{issue}}
|
||||
& \plainlang{\printdate}\\ \hline}
|
||||
\makeatother
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\begin{document}
|
||||
|
||||
@@ -84,23 +118,18 @@
|
||||
% (ApplicableDocuments.bib) will be printed automatically.
|
||||
% For reference documents, only those documents that are cited in the text are printed.
|
||||
\subsection{Applicable Documents}\label{sec:AD}
|
||||
The following \ac{AD} of the exact issue contain provisions (statements, instructions,
|
||||
recommendations or requirements) that are ruling over - and implicate provisions in the
|
||||
present document.
|
||||
The following \ac{AD} of the exact issue contain provisions (statements, instructions, recommendations or requirements) that are ruling over - and implicate provisions in the present document.
|
||||
|
||||
\nocite{*} % This nocite is necessary for printing all applicable documents!
|
||||
\begin{refcontext}[labelprefix=AD]
|
||||
\printbibliography[heading=none, notkeyword={RD}]
|
||||
\end{refcontext}
|
||||
\newrefcontext[labelprefix=AD]
|
||||
% \printbibliography[heading=none, notkeyword={RD}]
|
||||
\printbibtabular[heading=none, notkeyword={RD}]
|
||||
|
||||
\subsection{Reference Documents}\label{sec:RD}
|
||||
The following \ac{RD} contains useful information relevant to the subject of the present
|
||||
document.
|
||||
\begin{refcontext}[labelprefix=RD]
|
||||
\printbibliography[heading=none, keyword={RD}]
|
||||
\end{refcontext}
|
||||
\defbibnote{RDnote}{The following \ac{RD} contains useful information relevant to the subject of the present document.}
|
||||
\newrefcontext[labelprefix=RD]
|
||||
\printbibtabular[prenote=RDnote, heading=none, keyword={RD}]
|
||||
|
||||
\newpage
|
||||
\subsection{Acronyms}
|
||||
% A list of Acronyms is often useful to go back to the meaning of an acronym.
|
||||
% Acronyms used in the text with \ac{}, \acs{}, \acl{} or anything similar
|
||||
@@ -120,8 +149,7 @@ document.
|
||||
There is no reference to AD1, but there is a reference to \cite{old-stuff}. Nonetheless,
|
||||
both get printed in Section~\ref{sec:AD}!
|
||||
|
||||
This is a reference to a Reference Document: \cite{MICADO-operational_concept}. Only
|
||||
reference documents that are cited in the text are printed in Section~\ref{sec:RD}.
|
||||
This is a reference to a Reference Document: \cite{MICADO-operational_concept, MICADO_template, Matsushima2003}. Only reference documents that are cited in the text are printed in Section~\ref{sec:RD}.
|
||||
|
||||
The \ac{MICADO} is an upcoming instrument for the \ac{ELT}. \acs{PSF} is shorthand for
|
||||
\acl{PSF}. A quick way to say the same, would have been to write: \ac{PSF}.
|
||||
|
||||
Reference in new issue
Block a user