Skip to content

Commit 03ec383

Browse files
author
Joy Shukla
committed
Make template changes for TCG-Storage workgroup
- Add support for Courier New font - Add support for storage tables
1 parent 519b783 commit 03ec383

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ COPY --from=build-texlive /texlivebins /usr/local/texlive
138138
# Copy only the fonts we're using from the template.
139139
COPY --from=build-fonts \
140140
/usr/share/fonts/truetype/msttcorefonts/Arial* \
141+
/usr/share/fonts/truetype/msttcorefonts/Courier* \
141142
/usr/share/fonts/TTF/ARIAL* \
142143
/usr/share/fonts/OTF/Libertinus* \
143144
/usr/share/fonts/truetype/noto/NotoSansMono* \

template/tcg-storage.tex

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
%%
2+
% Copyright (c) 2017 - 2021, Pascal Wagler;
3+
% Copyright (c) 2014 - 2021, John MacFarlane
4+
%
5+
% All rights reserved.
6+
%
7+
% Redistribution and use in source and binary forms, with or without
8+
% modification, are permitted provided that the following conditions
9+
% are met:
10+
%
11+
% - Redistributions of source code must retain the above copyright
12+
% notice, this list of conditions and the following disclaimer.
13+
%
14+
% - Redistributions in binary form must reproduce the above copyright
15+
% notice, this list of conditions and the following disclaimer in the
16+
% documentation and/or other materials provided with the distribution.
17+
%
18+
% - Neither the name of John MacFarlane nor the names of other
19+
% contributors may be used to endorse or promote products derived
20+
% from this software without specific prior written permission.
21+
%
22+
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23+
% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25+
% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26+
% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27+
% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28+
% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29+
% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30+
% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31+
% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32+
% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33+
% POSSIBILITY OF SUCH DAMAGE.
34+
%%
35+
36+
\newcommand{\MethodsOrUID}[1]{{\fontspec{Courier New} #1}} % Define UID in Courier New Font
37+
38+
\definecolor{lightgray}{RGB}{230, 230, 230}
39+
\definecolor{darkgray}{RGB}{179, 179, 179}
40+
41+
\newcommand{\ReadOnlyFixed}[1]{{\cellcolor{lightgray} \fontsize{9}{10} #1}}
42+
\newcommand{\ReadOnlyVU}[1]{{\cellcolor{lightgray} \fontsize{9}{10} \underline{\textbf{#1}}}}
43+
\newcommand{\WritableACFixed}[1]{{\cellcolor{darkgray} \fontsize{9}{10} #1}}
44+
\newcommand{\Writable}[1]{{\cellcolor{darkgray} \fontsize{9}{10} \underline{\textbf{#1}}}}
45+
\newcommand{\Narrow}[1]{{\fontsize{9}{10} #1}}
46+
47+
\newcommand{\spheading}[2][20em]{% \spheading[<width>]{<stuff>}
48+
\rotatebox{90}{\parbox{#1}{\raggedright #2}}}
49+
50+

template/tcg.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@
368368
\setsansfont{Arial}
369369
\setmonofont{Noto Sans Mono}
370370

371+
% TCG storage specific customizations
372+
\input{template/tcg-storage.tex}
373+
371374
\usepackage{newunicodechar}
372375
% Use Arial Unicode to display various unicode symbols that might be present
373376
\newfontfamily{\fallbackfont}{Arial Unicode MS}[Scale=MatchLowercase]

0 commit comments

Comments
 (0)