Skip to content

Commit

Permalink
Make template changes for TCG-Storage workgroup
Browse files Browse the repository at this point in the history
- Add support for Courier New font
- Add support for storage tables
  • Loading branch information
Joy Shukla committed Dec 13, 2024
1 parent 519b783 commit 03ec383
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ COPY --from=build-texlive /texlivebins /usr/local/texlive
# Copy only the fonts we're using from the template.
COPY --from=build-fonts \
/usr/share/fonts/truetype/msttcorefonts/Arial* \
/usr/share/fonts/truetype/msttcorefonts/Courier* \
/usr/share/fonts/TTF/ARIAL* \
/usr/share/fonts/OTF/Libertinus* \
/usr/share/fonts/truetype/noto/NotoSansMono* \
Expand Down
50 changes: 50 additions & 0 deletions template/tcg-storage.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
%%
% Copyright (c) 2017 - 2021, Pascal Wagler;
% Copyright (c) 2014 - 2021, John MacFarlane
%
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions
% are met:
%
% - Redistributions of source code must retain the above copyright
% notice, this list of conditions and the following disclaimer.
%
% - Redistributions in binary form must reproduce the above copyright
% notice, this list of conditions and the following disclaimer in the
% documentation and/or other materials provided with the distribution.
%
% - Neither the name of John MacFarlane nor the names of other
% contributors may be used to endorse or promote products derived
% from this software without specific prior written permission.
%
% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
% "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
% COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
% INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
% BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
% LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
% CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
% ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
% POSSIBILITY OF SUCH DAMAGE.
%%

\newcommand{\MethodsOrUID}[1]{{\fontspec{Courier New} #1}} % Define UID in Courier New Font

\definecolor{lightgray}{RGB}{230, 230, 230}
\definecolor{darkgray}{RGB}{179, 179, 179}

\newcommand{\ReadOnlyFixed}[1]{{\cellcolor{lightgray} \fontsize{9}{10} #1}}
\newcommand{\ReadOnlyVU}[1]{{\cellcolor{lightgray} \fontsize{9}{10} \underline{\textbf{#1}}}}
\newcommand{\WritableACFixed}[1]{{\cellcolor{darkgray} \fontsize{9}{10} #1}}
\newcommand{\Writable}[1]{{\cellcolor{darkgray} \fontsize{9}{10} \underline{\textbf{#1}}}}
\newcommand{\Narrow}[1]{{\fontsize{9}{10} #1}}

\newcommand{\spheading}[2][20em]{% \spheading[<width>]{<stuff>}
\rotatebox{90}{\parbox{#1}{\raggedright #2}}}


3 changes: 3 additions & 0 deletions template/tcg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@
\setsansfont{Arial}
\setmonofont{Noto Sans Mono}

% TCG storage specific customizations
\input{template/tcg-storage.tex}

\usepackage{newunicodechar}
% Use Arial Unicode to display various unicode symbols that might be present
\newfontfamily{\fallbackfont}{Arial Unicode MS}[Scale=MatchLowercase]
Expand Down

0 comments on commit 03ec383

Please sign in to comment.