diff options
Diffstat (limited to 'Master/texmf-dist/tex')
3 files changed, 237 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-fancyhdr.sty b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-fancyhdr.sty new file mode 100644 index 00000000000..c549457fa0b --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-fancyhdr.sty @@ -0,0 +1,27 @@ +% !TeX spellcheck = en_US +% !TeX encoding = UTF-8 +% ============================= + +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{tikz-amongUs-fancyhdr}[2020-10-19 Custom Package for my AmongUs PageNumbering base configuration -- FHZ -- Version 1.0] + +\RequirePackage{tikz-amongUs} +\RequirePackage{fancyhdr} +\RequirePackage{adjustbox} + +\fancypagestyle{headings}{% changes predefined style + \fancyhf{} % clear all header and footer fields + %\fancyhead[RO,LE]{\thepage} % Right Odd, Left Even => Outside + \fancyfoot[RO,LE]{% + \adjustbox{scale=0.25}{% + \begin{tikzpicture} + \amongUsI[rotate around={45*(\thepage-1):(1.75,2.3)}]{yellow}{cyan}; + \node[scale=4] at (1.75,2.3) {\thepage}; + \end{tikzpicture} + } + } + \renewcommand{\headrulewidth}{0pt} % remove line between header and main text +} +\pagestyle{headings} + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-watermark-eso-pic.sty b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-watermark-eso-pic.sty new file mode 100644 index 00000000000..a1b177565ab --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs-watermark-eso-pic.sty @@ -0,0 +1,75 @@ +% !TeX spellcheck = en_US +% !TeX encoding = UTF-8 +% ============================= + +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{tikz-amongUs-watermark-eso-pic}[2020-10-19 Custom Package for watermark with eso-pic configurations for AmongUs -- FHZ -- Version 1.0] + +\RequirePackage{tikz-amongUs} +\RequirePackage{tikz} +\RequirePackage{xifthen} + +\RequirePackage{eso-pic} +\RequirePackage{kvoptions} +\SetupKeyvalOptions{ + family=FHZ, + prefix=FHZ@ +} + +% ----------------------------------------- +% Property cor -- default red +% ----------------------------------------- +\DeclareStringOption[red]{cor} + +% ----------------------------------------- +% Property type -- default 0 +% ----------------------------------------- +\DeclareStringOption[0]{type} + +% ----------------------------------------- +% FrontGround (default) BackGround +% ----------------------------------------- +\newif\ifFG +\DeclareBoolOption[true]{FG}{% + \FGtrue +} +\DeclareComplementaryOption{BG}{FG}{% + \FGfalse +} + +\ProcessKeyvalOptions* + +% ================================= +\newcommand{\FHZ@typeSelection}[1]{ + \ifthenelse{\equal{#1}{0}} + {\tikz[color=\FHZ@cor!80, opacity=0.4] + \node{\amongUsOriginal{\FHZ@cor}{white}};} + {\tikz[color=\FHZ@cor!80, opacity=0.3] + {\amongUsI{\FHZ@cor}{cyan};}} +} +\newsavebox\myboxAmongUs\savebox\myboxAmongUs{ + \FHZ@typeSelection{\FHZ@type} +} +% ================================= + +\DeclareOption*{% + \PackageWarning{FHZ-watermark-eso-pic-amongUs}{Unknown-Desconhecido '\CurrentOption'} +} +\ProcessOptions\relax + +% ----------------------------------------- +% Apply eso-pic watermark FG or BG +% ----------------------------------------- +\ifFHZ@FG + \AddToShipoutPictureFG{% + \AtStockLowerLeft{\put(-50,100) + {\scalebox{3.2}{\rotatebox{30}{\usebox\myboxAmongUs}}}}% + } +\else + \AddToShipoutPictureBG{% + \AtStockLowerLeft{\put(-50,100) + {\scalebox{3.2}{\rotatebox{30}{\usebox\myboxAmongUs}}}}% + } +\fi + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs.sty b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs.sty new file mode 100644 index 00000000000..4b33ee3dbaf --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikz-among-us/tikz-amongUs.sty @@ -0,0 +1,135 @@ +% !TeX spellcheck = en_US +% !TeX encoding = UTF-8 +% ============================= + +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{tikz-amongUs}[2020-10-19 Custom Package for my amongUs sketch -- FHZ -- Version 1.0] + +\RequirePackage{tikz} +\RequirePackage{xifthen} +\usetikzlibrary{calc} +\usetikzlibrary{shadings} + +% ======================================================= +% Style 0 -- Original Idea +% ======================================================= +\newcommand{\amongUsOriginal}[3][]{% +\begin{tikzpicture}[every path/.style={very thick}] + % Backpack + \draw[fill=#2, rounded corners = 3mm] (-0.5,1) rectangle ++(0.8,3.2); + % Body + \draw[fill=#2, rounded corners = 3mm] (0,0) -- (0,5) + arc (124.8074:103.8454:5) arc (80.6307:58.1808:5)-- (3.5,0) -- (2.2,0) + {[rounded corners = 0mm] -- (2.2,1) coordinate(A) -- (1.2,1)} + -- (1.2,0) -- cycle; + % Eyes + \ifthenelse{\equal{#1}{angry}} + {\draw[fill=#3] plot[smooth cycle, tension=.7] coordinates + {(2.8,4.7) (3.7,4.6) (3.7,3.5) (2.7,3.2) (1.6,3.5) (1.6,4.7)};} + {\ifthenelse{\equal{#1}{very angry}} + {\draw[fill=#3] plot[smooth cycle, tension=.7] coordinates + {(2.9,4.3) (3.7,4.6) (3.7,3.5) (2.7,3.6) (1.6,3.5) (1.6,4.7)};} + {\draw[fill=#3] plot[smooth cycle, tension=.7] coordinates + {(2.8,4.9) (3.7,4.6) (3.7,3.5) (2.7,3.2) (1.6,3.5) (1.6,4.7)};} + } + % Leg detail + \draw plot[smooth, tension=.7] coordinates {(A) (2.4,1) (2.7,1.1)}; +\end{tikzpicture} +} +% ******************************************************* + +% ======================================================= +% Style I +% ======================================================= +\newcommand{\amongUsBackpackI}[2][]{% + \begin{scope}[#1] + \fill[#2, rounded corners = 3mm] (-0.5,1) coordinate(R1) + rectangle ++(0.8,3.2) coordinate(R2); + + \fill[black!30!#2, rounded corners = 3mm] (R1) -| ($(R2)+(0,-0.2)$) + {[sharp corners]-- (-0.5,3.5)} -- cycle; + + \draw[rounded corners = 3mm] (-0.5,1) rectangle ++(0.8,3.2); + \end{scope} +} +\newcommand{\amongUsBodyI}[2][]{% + \begin{scope}[#1] + \fill[black!30!#2, rounded corners = 3mm] (0,0) -- (0,5) + arc (124.8074:103.8454:5) arc (80.6307:58.1808:5)-- (3.5,0) -- (2.2,0) + {[rounded corners = 0mm] -- (2.2,1) -- (1.2,1)} + -- (1.2,0) -- cycle; + + \fill[#2] plot[smooth, tension=.7] coordinates + {(0.4436,5.2721) (0.5594,2.4257) (1.4347,1.3971) + (2.9826,1.7343) (3.4666,3.0446) (3.4686,4.0294) + (3.4797,4.7974) (3.1523,5.2436) (1.9183,5.6907) (1.0265,5.5757)}; + + \draw[rounded corners = 3mm] (0,0) -- (0,5) + arc (124.8074:103.8454:5) arc (80.6307:58.1808:5)-- (3.5,0) -- (2.2,0) + {[sharp corners] -- (2.2,1) coordinate(A) -- (1.2,1)} + -- (1.2,0) -- cycle; + % ----------- Leg detail + \draw plot[smooth, tension=.7] coordinates {(A) (2.4,1) (2.7,1.1)}; + \end{scope} +} +\newcommand{\amongUsEyesI}[2][]{% + \begin{scope}[#1] + \fill[#2] plot[smooth cycle, tension=.7] coordinates + {(2.8,4.9) (3.7,4.6) (3.7,3.5) (2.7,3.2) (1.6,3.5) (1.6,4.7)}; + + \fill[black!50!#2] {plot[smooth, tension=.7] coordinates + {(1.6,4.7) (1.7964,4.8157) (1.7633,4.3111) (1.9423,3.8301) + (2.294,3.6464) (2.8087,3.5904) (3.4485,3.5904) (3.7338,3.5723) + (3.2492,3.2515) (2.0071,3.2661) (1.5208,3.6849) (1.4691,4.3844)}}; + + \draw plot[smooth cycle, tension=.7] coordinates + {(2.8,4.9) (3.7,4.6) (3.7,3.5) (2.7,3.2) (1.6,3.5) (1.6,4.7)}; + + \fill[white] plot[smooth cycle, tension=0.7] coordinates + {(2.8069,4.7316) (3.081,4.7457) (3.3219,4.7029) (3.4541,4.5887) + (3.2168,4.5055) (2.8152,4.525) (2.668,4.6295)}; + \end{scope} +} +\newcommand{\amongUsI}[3][]{% + \amongUsBackpackI[#1]{#2}; + \amongUsBodyI[#1]{#2}; + \amongUsEyesI[#1]{#3}; +} +% ******************************************************* + +% ======================================================= +% Style II +% ======================================================= +\newcommand{\amongUsBackpackII}[2][]{% + \begin{scope}[#1] + \draw[shade, top color=#2, bottom color=#2!5!black, middle color=#2, + rounded corners = 3mm] (-0.5,1) rectangle ++(0.8,3.2); + \end{scope} +} +\newcommand{\amongUsBodyII}[2][]{% + \begin{scope}[#1] + \draw[shade, top color=#2, bottom color=#2!5!black, middle color=#2, + rounded corners = 3mm] + (0,0) -- (0,5) arc (124.8074:103.8454:5) arc (80.6307:58.1808:5) + -- (3.5,0) -- (2.2,0) + {[sharp corners] -- (2.2,1) coordinate(A) -- (1.2,1)} + -- (1.2,0) -- cycle; + + \draw plot[smooth, tension=.7] coordinates {(A) (2.4,1) (2.7,1.1)}; + \end{scope} +} +\newcommand{\amongUsEyesII}[2][]{% + \begin{scope}[#1] + \draw[shade, inner color=white!95!black, outer color=#2] + plot[smooth cycle, tension=.7] coordinates + {(2.8,4.9) (3.7,4.6) (3.7,3.5) (2.7,3.2) (1.6,3.5) (1.6,4.7)}; + \end{scope} +} +\newcommand{\amongUsII}[3][]{% + \amongUsBackpackII[#1]{#2}; + \amongUsBodyII[#1]{#2}; + \amongUsEyesII[#1]{#3}; +} +% ******************************************************* + +\endinput
\ No newline at end of file |