%% %% This is file `secretx-demo-doc.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% secretx.dtx (with options: `document') %% %% %% This is a generated file. %% %% Copyright (c) 2019-2024 by Keith F. Prussing %% %% This work may be distributed and/or modified under the conditions of the %% LaTeX Project Public License, either version 1.3c of this license or (at %% your option) any later version. The latest version of this license is %% in %% %% http://www.latex-project.org/lppl.txt %% %% and version 1.3c or later is part of all distributions of LaTeX version %% 2005/12/01 or later. %% \documentclass{article} \usepackage{secretx} \title{\unclassified{An example document with markings}} \author{Keith F. Prussing} \date{\today} \fancyhead[L]{Document --- \doclevel} \fancyhead[R]{Page --- \pagelevel} \fancyfoot[L]{\thepage} \renewcommand{\headrulewidth}{0pt} \addmarking{1}{(1)}{Trivial} \addmarking{5}{(5)}{Sensitive} \addmarking{10}{(10)}{Important} \addmarking{25}{(25)}{Very Important} \usepackage{mwe} \usepackage[colorlinks]{hyperref} \begin{document} \maketitle \thispagestyle{secretx} \tableofcontents \listoffigures \begin{abstract} \unclassified{% This is an example document showing the usage of the \textsf{secretx} package. The markings in the following are purely for demonstration purpose. All of the material is unclassified.\footnote{\unclassified{% This document may have been typeset with the markings adjusted to prevent unnecessary alarm. To see the real markings, simply remove the redefinitions as described in \href{file://secretx.pdf}{secretx.pdf} and rerun through \LaTeX{}. } } } \end{abstract} \unclassified{\lipsum[1]}\par \unclassified{\lipsum[2]}\par \unclassified{\lipsum[3]}\par \confidential{\lipsum[4]}\par \unclassified{\lipsum[5]}\par \unclassified{\lipsum[6]}\par \topsecret{\lipsum[7]}\par \secret{\lipsum[8]}\par \section{\setlevel{1}\getmarking[1] A New Section} \unclassified{\lipsum[9]\par\secret{\lipsum[9]\par}\lipsum[9]}\par \unclassified{\lipsum[10]}\par \unclassified{\lipsum[11]}\par \unclassified{\lipsum[12]}\par \unclassified{\lipsum[13]}\par \unclassified{\lipsum[14]}\par \unclassified{\lipsum[15]}\par \begin{figure} \centering \begin{secret box} \includegraphics{example-image-16x10}% \end{secret box} \caption{\setlevel{1}\getmarking[1]% An example image with a classification on the caption. } \end{figure} \begin{unclassified block} \lipsum[16-20] \end{unclassified block} \begin{secret block} \section{A Section within a Block} Notice how the marking gets placed in the margin and not correctly with the section title? It is not properly reflected in the table of contents. Additionally, Fig. \ref{fig:bad-figure} places the markings in the margin and not with the image or the caption. \lipsum[21]\par \unclassified{\lipsum[22]}\par \lipsum[23]\par \begin{figure} \includegraphics{example-image-16x10} \unclassified{\caption{A short caption}} \label{fig:bad-figure} \end{figure} \end{secret block} \begin{itemize} \item \unclassified{The first unclassified item} \item \confidential{The second item is a higher marking} \item \unclassified{The third is back to unclassified} \end{itemize} \unclassified{\lipsum[1]\par} \begin{enumerate} \item \confidential{First enumerated item} \item \unclassified{A second enumerated item} \item \unclassified{And a final enumerated item} \end{enumerate} \begin{description} \item[One] \unclassified{First description item} \item[Two] \unclassified{A second description item} \item[Three] \confidential{And a final description item} \end{description} \end{document} \endinput %% %% End of file `secretx-demo-doc.tex'.