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 authored and joyshukla committed Dec 13, 2024
1 parent 519b783 commit 2261307
Show file tree
Hide file tree
Showing 3 changed files with 19 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
15 changes: 15 additions & 0 deletions template/tcg-storage.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
\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 2261307

Please sign in to comment.