| 1 |
%% |
| 2 |
%% This is file `secretx-demo-doc.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% secretx.dtx (with options: `document') |
| 8 |
%% |
| 9 |
%% |
| 10 |
%% This is a generated file. |
| 11 |
%% |
| 12 |
%% Copyright (c) 2019-2024 by Keith F. Prussing <[email protected]> |
| 13 |
%% |
| 14 |
%% This work may be distributed and/or modified under the conditions of the |
| 15 |
%% LaTeX Project Public License, either version 1.3c of this license or (at |
| 16 |
%% your option) any later version. The latest version of this license is |
| 17 |
%% in |
| 18 |
%% |
| 19 |
%% http://www.latex-project.org/lppl.txt |
| 20 |
%% |
| 21 |
%% and version 1.3c or later is part of all distributions of LaTeX version |
| 22 |
%% 2005/12/01 or later. |
| 23 |
%% |
| 24 |
\documentclass{article} |
| 25 |
\usepackage{secretx} |
| 26 |
\title{\unclassified{An example document with markings}} |
| 27 |
\author{Keith F. Prussing} |
| 28 |
\date{\today} |
| 29 |
|
| 30 |
\fancyhead[L]{Document --- \doclevel} |
| 31 |
\fancyhead[R]{Page --- \pagelevel} |
| 32 |
\fancyfoot[L]{\thepage} |
| 33 |
\renewcommand{\headrulewidth}{0pt} |
| 34 |
\addmarking{1}{(1)}{Trivial} |
| 35 |
\addmarking{5}{(5)}{Sensitive} |
| 36 |
\addmarking{10}{(10)}{Important} |
| 37 |
\addmarking{25}{(25)}{Very Important} |
| 38 |
|
| 39 |
\usepackage{mwe} |
| 40 |
\usepackage[colorlinks]{hyperref} |
| 41 |
\begin{document} |
| 42 |
\maketitle |
| 43 |
\thispagestyle{secretx} |
| 44 |
\tableofcontents |
| 45 |
\listoffigures |
| 46 |
|
| 47 |
\begin{abstract} |
| 48 |
\unclassified{% |
| 49 |
This is an example document showing the usage of the |
| 50 |
\textsf{secretx} package. The markings in the following are purely |
| 51 |
for demonstration purpose. All of the material is |
| 52 |
unclassified.\footnote{\unclassified{% |
| 53 |
This document may have been typeset with the markings adjusted |
| 54 |
to prevent unnecessary alarm. To see the real markings, simply |
| 55 |
remove the redefinitions as described in |
| 56 |
\href{file://secretx.pdf}{secretx.pdf} and rerun through |
| 57 |
\LaTeX{}. |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
\end{abstract} |
| 62 |
|
| 63 |
\unclassified{\lipsum[1]}\par |
| 64 |
\unclassified{\lipsum[2]}\par |
| 65 |
\unclassified{\lipsum[3]}\par |
| 66 |
\confidential{\lipsum[4]}\par |
| 67 |
\unclassified{\lipsum[5]}\par |
| 68 |
\unclassified{\lipsum[6]}\par |
| 69 |
\topsecret{\lipsum[7]}\par |
| 70 |
\secret{\lipsum[8]}\par |
| 71 |
\section{\setlevel{1}\getmarking[1] A New Section} |
| 72 |
\unclassified{\lipsum[9]\par\secret{\lipsum[9]\par}\lipsum[9]}\par |
| 73 |
\unclassified{\lipsum[10]}\par |
| 74 |
\unclassified{\lipsum[11]}\par |
| 75 |
\unclassified{\lipsum[12]}\par |
| 76 |
\unclassified{\lipsum[13]}\par |
| 77 |
\unclassified{\lipsum[14]}\par |
| 78 |
\unclassified{\lipsum[15]}\par |
| 79 |
|
| 80 |
\begin{figure} |
| 81 |
\centering |
| 82 |
\begin{secret box} |
| 83 |
\includegraphics{example-image-16x10}% |
| 84 |
\end{secret box} |
| 85 |
\caption{\setlevel{1}\getmarking[1]% |
| 86 |
An example image with a classification on the caption. |
| 87 |
} |
| 88 |
\end{figure} |
| 89 |
|
| 90 |
\begin{unclassified block} |
| 91 |
\lipsum[16-20] |
| 92 |
\end{unclassified block} |
| 93 |
|
| 94 |
\begin{secret block} |
| 95 |
\section{A Section within a Block} |
| 96 |
|
| 97 |
Notice how the marking gets placed in the margin and not correctly |
| 98 |
with the section title? It is not properly reflected in the table |
| 99 |
of contents. Additionally, Fig. \ref{fig:bad-figure} places the |
| 100 |
markings in the margin and not with the image or the caption. |
| 101 |
|
| 102 |
\lipsum[21]\par |
| 103 |
\unclassified{\lipsum[22]}\par |
| 104 |
\lipsum[23]\par |
| 105 |
\begin{figure} |
| 106 |
\includegraphics{example-image-16x10} |
| 107 |
\unclassified{\caption{A short caption}} |
| 108 |
\label{fig:bad-figure} |
| 109 |
\end{figure} |
| 110 |
\end{secret block} |
| 111 |
|
| 112 |
\begin{itemize} |
| 113 |
\item \unclassified{The first unclassified item} |
| 114 |
\item \confidential{The second item is a higher marking} |
| 115 |
\item \unclassified{The third is back to unclassified} |
| 116 |
\end{itemize} |
| 117 |
|
| 118 |
\unclassified{\lipsum[1]\par} |
| 119 |
|
| 120 |
\begin{enumerate} |
| 121 |
\item \confidential{First enumerated item} |
| 122 |
\item \unclassified{A second enumerated item} |
| 123 |
\item \unclassified{And a final enumerated item} |
| 124 |
\end{enumerate} |
| 125 |
|
| 126 |
\begin{description} |
| 127 |
\item[One] \unclassified{First description item} |
| 128 |
\item[Two] \unclassified{A second description item} |
| 129 |
\item[Three] \confidential{And a final description item} |
| 130 |
\end{description} |
| 131 |
\end{document} |
| 132 |
\endinput |
| 133 |
%% |
| 134 |
%% End of file `secretx-demo-doc.tex'. |