diff options
author | Karl Berry <karl@freefriends.org> | 2020-10-23 21:01:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-10-23 21:01:21 +0000 |
commit | 8d5f67188f1204985ace3fd986e21a9d97326850 (patch) | |
tree | d87ea2da3a19a5ae01cc73704a16737eddde75a3 | |
parent | c16785fbd9d5dcd0b1a9a76465c2bdd8549e9668 (diff) |
tikz-among-us (23oct20)
git-svn-id: svn://tug.org/texlive/trunk@56740 c570f23f-e606-0410-a88d-b1316a301751
24 files changed, 919 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/README.md b/Master/texmf-dist/doc/latex/tikz-among-us/README.md new file mode 100644 index 00000000000..4cdd752a8d8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/README.md @@ -0,0 +1,43 @@ +%% The LaTeX package FHZ-amongUs - version 1.0 (2020-10-21) +%% +%% ------------------------------------------------------------------------------------------- +%% Copyright (c) 2020 by FHZ +%% ------------------------------------------------------------------------------------------- +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `author-maintained'. +%% +%% This work consists of all files listed in README +%% + +This is the tikz-amongUs package documentation. This package recreates some +AmongUs characters in TikZ environment. Some interesting uses alongside other +packages are also presented. + +Contents of the package +======================= + 'README' this file + 'Figuras/fig_AmongUg_<xy>.png' Example pictures with <xy> from 01 to 13 + 'tikz-amongUs.cwl' Completion Word List for some editors + 'tikz-amongUs.pdf' Documentation for tikz-amongUs + 'tikz-amongUs.sty' LaTeX package file (style file) + 'tikz-amongUs.tex' Source code of the documentation (main file) + 'tikz-amongUs-fancyhdr.sty' LaTeX package file (style file) -- header and footer adaptation + 'tikz-amongUs-watermark-eso-pic.sty' LaTeX package file (style file) -- watermark adaptation + +Installation +============ +Copy the contents of the 'tikz-amongUs.zip' from CTAN to your local TeX file tree. + +No .ins/.dtx preinstalation is required. + +Version +============ +V.1 (2020-10-20): Publication of the style with the original design and Styles I and II of shading
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_01.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_01.PNG Binary files differnew file mode 100644 index 00000000000..17d7a66e3e3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_01.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_02.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_02.PNG Binary files differnew file mode 100644 index 00000000000..8fec54c9c93 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_02.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_03.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_03.PNG Binary files differnew file mode 100644 index 00000000000..dfbf329c9b8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_03.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_04.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_04.PNG Binary files differnew file mode 100644 index 00000000000..a5d3d3fedd9 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_04.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_05.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_05.PNG Binary files differnew file mode 100644 index 00000000000..2213dedcd19 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_05.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_06.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_06.PNG Binary files differnew file mode 100644 index 00000000000..97fb51d2242 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_06.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_07.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_07.PNG Binary files differnew file mode 100644 index 00000000000..470ab50e800 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_07.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_08.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_08.PNG Binary files differnew file mode 100644 index 00000000000..220642abe34 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_08.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_09.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_09.PNG Binary files differnew file mode 100644 index 00000000000..ecde606c373 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_09.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_10.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_10.PNG Binary files differnew file mode 100644 index 00000000000..f88309b9aaf --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_10.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_11.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_11.PNG Binary files differnew file mode 100644 index 00000000000..1db7f11bc0e --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_11.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_12.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_12.PNG Binary files differnew file mode 100644 index 00000000000..9aa94f4027d --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_12.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_13.PNG b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_13.PNG Binary files differnew file mode 100644 index 00000000000..9049c12cdd7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/fig_AmongUs_13.PNG diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.cwl b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.cwl new file mode 100644 index 00000000000..b5e46cc753e --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.cwl @@ -0,0 +1,40 @@ + +% ====================== +% Developed by FHZ -- Brasil +% ====================== +#include:tikz +#include:xifthen + +% ====================== +\amongUsOriginal#n +\amongUsOriginal[opt]{BodyColor}{EyeColor}#n +\amongUsOriginal{BodyColor}{EyeColor}#n +% ====================== + +% ====================== +\amongUsBackpackI[opt]{color}#n +\amongUsBackpackI{color}#n +% ====================== +\amongUsBodyI[opt]{color}#n +\amongUsBodyI{color}#n +% ====================== +\amongUsEyesI[opt]{color}#n +\amongUsEyesI{color}#n +% ====================== +\amongUsI[opt]{BodyColor}{EyeColor}#n +\amongUsI{BodyColor}{EyeColor}#n +% ====================== + +% ====================== +\amongUsBackpackII[opt]{color}#n +\amongUsBackpackII{color}#n +% ====================== +\amongUsBodyII[opt]{color}#n +\amongUsBodyII{color}#n +% ====================== +\amongUsEyesII[opt]{color}#n +\amongUsEyesII{color}#n +% ====================== +\amongUsII[opt]{BodyColor}{EyeColor}#n +\amongUsII{BodyColor}{EyeColor}#n +% ======================
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.pdf b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.pdf Binary files differnew file mode 100644 index 00000000000..fc67f5197d2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.pdf diff --git a/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.tex b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.tex new file mode 100644 index 00000000000..b0566a08c51 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tikz-among-us/tikz-amongUs.tex @@ -0,0 +1,595 @@ +% !TeX spellcheck = en_US +% !TeX encoding = UTF-8 +% ============================= + +% ========== Classe do documento, geometria, codificação e versão +\documentclass[12pt]{article} +\usepackage[a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry} % marginparwidth=1.75cm +% ---------- +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +% ========== + +% ========== Pacotes +\usepackage{FHZ-packages-minimum} +\usepackage{FHZ-packages-TikZ-mydef} +% ---------- Pacotes locais +%\usepackage[brazil]{babel} +%\selectlanguage{brazil} +% ========== +\usepackage{enumitem} +\usepackage{paracol} +\usepackage{multicol} +\usepackage{animate} +% ========== + + +% ========== Caminho de figuras externas +%\graphicspath{ +% {C:/Users/FHZ/Dropbox/<PATH1>/}, +% {C:/Users/FHZ/Dropbox/<PATH2>/} +%} +% ========== + +% ========== +\usepackage{FHZ-textos} +% ========== + + +% =================== Formatações e marca d'água em arquivos de estilos .sty +% ---------- Formatacao -- hf +%\usepackage{FHZ-formatacao-hf-headings_h_RO_LE_thepage} +\usepackage{FHZ-formatacao-hf-headings_h_R_thepage} +%\usepackage{FHZ-formatacao-hf-myheadings_h_R_thepage} +%\usepackage{FHZ-formatacao-hf-plain_h_R_thepage} +% ---------- Formatacao -- hyperref +\usepackage[07]{FHZ-formatacao-hyperref-opt} +%\usepackage{FHZ-formatacao-hyperref-01} +%\usepackage{FHZ-formatacao-hyperref-06_orange} +% =================== + +% ========== Novos comandos para inserir figuras e TikZ de forma padronizada +%\usepackage{FHZ-figures-TikZ} +\usepackage{FHZ-figures-TikZ-IEEE} +% ========== + +% ========== Capa +\usepackage{FHZ-capa-article} +% ========== + +\usepackage{tikz-amongUs} +\usepackage{tikz-amongUs-fancyhdr} +\usepackage[cor=violet!70!white,BG,type=1]{tikz-amongUs-watermark-eso-pic} + +\usepackage{FHZ-listings-showexpl-style} + +\usepackage[skins,listings,breakable,raster]{tcolorbox} +\tcbuselibrary{listings} + +\newtcblisting{FHZtcbAmongUs}[1][]{ % + enhanced, + colback=cyan!5!white, colframe=violet!75!black, fonttitle=\large\bfseries, + colbacktitle=violet!85!black, + listing and text, + breakable, + #1 + % listing style=estiloExemVerd + % attach boxed title to top center={yshift=-2mm}, +} + +\newtcolorbox{FHZboxEnumerateStyle}{ + enhanced, + colback=orange!15!white, + colframe=orange!50!black, + watermark tikz={\tikz + \node[opacity=0.4, rotate around={-45:(1.75,2.3)}]{\amongUsOriginal{blue}{white}}; + \node[opacity=0.4, rotate around={45:(1.75,2.3)}] at (5,0) {\amongUsOriginal{pink}{white}}; + \node[opacity=0.4, rotate around={-135:(1.75,2.3)}] at (10,0) {\amongUsOriginal{green}{white}}; + \node[opacity=0.4, rotate around={135:(1.75,2.3)}] at (15,0) {\amongUsOriginal{olive}{white}}; + } +} +\newenvironment{FHZtcbEnumerate}{% + \begin{FHZboxEnumerateStyle}\begin{enumerate}} + {\end{enumerate}\end{FHZboxEnumerateStyle} +} + +% ========== Dados capa folha rosto ========== Sempre crie uma cópia local +\newcommand{\edicao}{1} +\newcommand{\versao}{1.0} +%\input{input_Dados_Capa_Folha_Rosto_local} +% ====================== +\newcommand{\textoEdicao}{Edition} +\newcommand{\textoVersao}{Version} +%\newcommand{\edicao}{1} +%\newcommand{\versao}{1.0} +\newcommand{\textoCopyright}{} +% ====================== +% --- +\newcommand{\Universidade}{} +\newcommand{\Curso}{} %{Curso --} +\newcommand{\Departamento}{} +% --- +\newcommand{\AutorA}{\textbf{FHZ}} +\newcommand{\AutorB}{} +\newcommand{\AutorC}{} +\newcommand{\AutorD}{} +% --- +\newcommand{\Titulo}{\textbf{There is a {\TikZ}-Impostor Among us}} +% --- +\newcommand{\Cidade}{\textbf{tikz-amongUs package}\\} %{Cidade --} +\newcommand{\Estado}{\url{https://www.ctan.org/pkg/tikz-amongUs}\\} %{Estado --} +\newcommand{\Pais}{\textbf{Brasil} -- \textbf{{\today} -- \textoVersao: \versao}} +\newcommand{\Mes}{} +\newcommand{\Ano}{} +% --- +\newcommand{\de}{} +% --- +\newcommand{\textoFolhaRosto}{% +} +% --- +\newcommand{\OrientadorA}{} +\newcommand{\OrientadorB}{} +\newcommand{\textoOrientador}{} +\newcommand{\textoCoOrientador}{} +% ====================== Input_Folha_Rosto_Livro_Versao + +% ========== Dados ficha catalográfica ========== Sempre crie uma cópia local +%\input{C:/Users/FHZ/Dropbox/LaTeX_Inputs_padrao/input_Dados/input_Dados_FichaCatalografica_Bibliotecario_01} +%\input{C:/Users/FHZ/Dropbox/LaTeX_Inputs_padrao/input_Dados/input_Dados_FichaCatalografica_Bibliotecario_02_Preenchida_Quaternios} +% ========== + +% ========== Hypersetup local +\hypersetup{pdfinfo={ + Title={\Titulo}, + Author={\AutorA} %,\AutorB +}} +% ========== + +\begin{document} +% ========== Capas +%{\FHZCapaArticle} +{\FHZCapaArticleCabecalho} +%{\FHZCapaArticleEstiloLivro} +% ========== + +% ========== Folhas de Rosto +%\clearpage +%{\FHZFolhaRosto} +%{\FHZFolhaRostoLivroISBN} +%{\FHZFolhaRostoLivroProvisoria} +% ========== + +% ========== +%\clearpage +% ========== + +\begin{abstract} + \begin{FHZboxEnumerateStyle} + This is the \texttt{tikz-amongUs} package documentation. This package recreates some AmongUs characters in {\TikZ} environment. Some interesting uses alongside other packages are also presented. + \end{FHZboxEnumerateStyle} +\end{abstract} + +\section{Introduction} + +The following packages are used in the examples and applications. +\begin{FHZtcbEnumerate} + \item \href{https://www.ctan.org/pkg/tikz}{{\CTAN} -- tikz} + + Whose following packages are always used as reference of quality and capabilities: + \begin{enumerate} + \item \href{https://www.ctan.org/pkg/tikzducks}{{\CTAN} -- tikzducks} + \item \href{https://www.ctan.org/pkg/tikzmarmots}{{\CTAN} -- tikzmarmots} + \end{enumerate} + + \item \href{https://www.ctan.org/pkg/adjustbox}{{\CTAN} -- adjustbox} + \item \href{https://www.ctan.org/pkg/tcolorbox}{{\CTAN} -- tcolorbox} + \item \href{https://www.ctan.org/pkg/fancyhdr}{{\CTAN} -- fancyhdr} + \item \href{https://www.ctan.org/pkg/eso-pic}{{\CTAN} -- eso-pic} + \item \href{https://www.ctan.org/pkg/animate}{{\CTAN} -- animate} +\end{FHZtcbEnumerate} + +The basic concept started as a question at {\TeXStackExchange} and after some research some new ideas have been found to improve the initial sketch. +\begin{FHZtcbEnumerate} + \item \href{https://tex.stackexchange.com/questions/567009/there-is-a-tikz-impostor-among-us/567010#567010}{{\TeXStackExchange} -- There is a TikZ-impostor Among us}: is the original post which started with a very simple design and then received an update with the shade-command style derived from: + \begin{enumerate} + \item \href{https://tex.stackexchange.com/questions/424113/how-to-use-tikz-shade-command-in-order-to-achieve-3d-like-results}{{\TeXStackExchange} -- How to use Tikz {\textbackslash}shade command in order to achieve 3D like results}: is the inspiration to create commands with parts of a drawing to build a greater design in {\TikZ} and the command shade. + \item \href{https://youtu.be/1zZZBB9-Nm8}{{\YouTube} -- MatPat's Game Theory}: is the inspiration to the design of the shadow. Many artists have replicated the original design of the game. + \end{enumerate} +\end{FHZtcbEnumerate} + +The original game is available in different online stores. I don't own the game, or have any relationship with authors nor any enterprise. I'm just a guy who liked the game and used it as a motivation to create a package for {\TikZ} users. +\begin{FHZtcbEnumerate} + \item \href{https://play.google.com/store/apps/details?id=com.innersloth.spacemafia&hl=pt_BR&gl=US}{AmongUs original game to smartphones} +\end{FHZtcbEnumerate} + +\section{Using the package} + +There are three base style files. +\begin{FHZtcbAmongUs}[listing only] + \usepackage{tikz-amongUs} + \usepackage{tikz-amongUs-fancyhdr} + \usepackage{tikz-amongUs-watermark-eso-pic} +\end{FHZtcbAmongUs} + +A brief description follows: +\begin{FHZtcbEnumerate} + \item \verb|\usepackage{tikz-amongUs}|: Main \texttt{.sty} file with the definitions in {\TikZ} of each body part, style of shading and complete design. Although this style is far from the utmost best standards for a {\TikZ} package, it has been a very useful project to motivates me to learn more and improve my own usage of {\TikZ} beyond standalone applications or drawings and also my very first {\CTAN} publication. + + \item \verb|\usepackage{tikz-amongUs-fancyhdr}|: A basic implementation to add the Among Us characters in headers or footers due the \texttt{fancyhdr} package. This is not a final super fancy implementation, but it splits the configurations to a separated \texttt{.sty} file, which can be edited aownernd reused. + + \item \verb|\usepackage{tikz-amongUs-watermark-eso-pic}|: A preset implementation of watermarks using the \texttt{eso-pic} package. This implementation takes advantage of the \texttt{kvoptions} packages in order to add some degrees of flexibility to the watermarks. Of course anyone could just replace the basic command from \texttt{eso-pic} in each file they want. The preset configurations aim to be a synthesis and make its usage a little bit more flexible than just copying and pasting content in each file. +\end{FHZtcbEnumerate} + +%These are the required package for each style. +%\begin{FHZtcbEnumerate} +% \begin{multicols}{3} +% \item tikz-amongUs +% \begin{enumerate} +% \item tikz $\to$ tikzlibraries +% \begin{enumerate} +% \item calc +% \item shadings +% \end{enumerate} +% \item xifthen +% \end{enumerate} +% \item tikz-amongUs-fancyhdr +% \begin{enumerate} +% \item tikz-amongUs +% \item fancyhdr +% \item adjustbox +% \end{enumerate} +% \item tikz-amongUs-watermark-eso-pic +% \begin{enumerate} +% \item tikz-amongUs +% \item tikz +% \item xifthen +% \item eso-pic +% \item kvoptions +% \end{enumerate} +% \end{multicols} +%\end{FHZtcbEnumerate} + +\section{Examples -- tikz-amongUs} + +While creating the drawing, I did a first attempt, now called \texttt{Original}, which is a command with a \texttt{tikzpicture} inside it. This command was not made with the best method to be flexible, but it is indeed very simple and direct. I chose to keep it as an alternative to the new commands and because it has a different style. +The are two main styles, \texttt{Style I} and \texttt{Style II}. \texttt{Style I} has the shadow create by ``hand'', it means, the shadow is a fixed perspective which boundaries were directly programmed in {\TikZ}. \texttt{Style II} uses the library \texttt{shade} to create shadows, but I couldn't reproduced the same result as I did in \texttt{Style I}. +In this sense, I chose to keep both styles and using the roman number as a suffix of each command. + +\subsection{Styles I e II} + +The basic syntax to insert each character is: +\begin{FHZtcbAmongUs}[listing only] + \amongUsI[<options>]{<BodyColor>}{<EyeColor>} +\end{FHZtcbAmongUs} +%\begin{lstlisting}[style=estiloExemVerd] +% \amongUsI[<options>]{<BodyColor>}{<EyeColor>} +%\end{lstlisting} +and for each body part, the commands are: +\begin{FHZtcbAmongUs}[listing only] + \amongUsBackpackI[<options>]{<BodyColor>} + \amongUsBodyI[<options>]{<BodyColor>} + \amongUsEyesI[<options>]{<EyeColor>} +\end{FHZtcbAmongUs} +where \texttt{<options>} is any suitable option of the environment \texttt{scope} of {\TikZ}; and \texttt{<BodyColor>} and \texttt{<EyeColor>} are any color provided such as {\TikZ} recognizes them. +For each command with suffix \texttt{I} there is another command with suffix \texttt{II}, that represents the alternative method to create shades. + +This is the basic use of the package. + +\begin{paracol}{2} +\begin{FHZtcbAmongUs}[title=Basic Use -- Style I] +\begin{tikzpicture} + \amongUsI{yellow}{cyan} +\end{tikzpicture} +\end{FHZtcbAmongUs} +\switchcolumn +\begin{FHZtcbAmongUs}[title=Basic Use -- Style II] +\begin{tikzpicture} + \amongUsII{yellow}{cyan} +\end{tikzpicture} +\end{FHZtcbAmongUs} +\end{paracol} + +Each body part was created to have its coordinate origin such as it is corrected placed on the main body without the need of any shift. +On the other hand, the \texttt{shift=\{(x,y)\}} command of the environment \texttt{scope} is a well suitable method to move each part. + +\begin{paracol}{2} +\begin{FHZtcbAmongUs}[title=Each body part -- Style I] +\begin{tikzpicture} + \amongUsBackpackI + [shift={(0,0)}]{blue}; + \amongUsBodyI + [shift={(0.6,0)}]{blue}; + \amongUsEyesI + [shift={(3,0)}]{cyan}; +\end{tikzpicture} +\end{FHZtcbAmongUs} +\switchcolumn +\begin{FHZtcbAmongUs}[title=Each body part -- Style II] +\begin{tikzpicture} + \amongUsBackpackII + [shift={(0,0)}]{green}; + \amongUsBodyII + [shift={(0.6,0)}]{green}; + \amongUsEyesII + [shift={(3,0)}]{red}; +\end{tikzpicture} +\end{FHZtcbAmongUs} +\end{paracol} + +Unfortunately, I'm (still) not the most proficient {\TikZ} user, so I didn't create the most optimized style to properly use the command \texttt{scale}, therefore, it is suggested to use the command \texttt{{\textbackslash}adjustbox} from the package \texttt{adjustbox} to scale the drawing without incurring in some errors with the \texttt{rounded corners} used in the design. +To rotate the draw around its center the command \texttt{rotate around=\{angle:(x0,y0)\}} should be used. The center of mass is close to the coordinates $x_0 = 1.75$ and $y_0 = 2.3$. + +\begin{FHZtcbAmongUs}[title=Scaling with adjustbox, sidebyside] +% \usepackage{adjustbox} +\adjustbox{scale=0.5}{ + \begin{tikzpicture} + \amongUsI{cyan}{gray}; + \amongUsI[shift={(5,3)}, + rotate around={180:(1.75,2.3)}] + {green!50!black}{cyan}; + \amongUsI[shift={(10.5,0)}, + rotate around={45:(1.75,2.3)}] + {orange!50!black}{orange}; + \end{tikzpicture} +} +\end{FHZtcbAmongUs} + +\subsection{Styles Original} + +The original design is much more simplistic. + +\begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture}] + \begin{tikzpicture} + \node at (0,0) {\amongUsOriginal{blue}{orange}}; + \node at (5,0) {\amongUsOriginal{orange}{blue}}; + \node at (10,0) {\amongUsOriginal{red}{cyan}}; + \end{tikzpicture} +\end{FHZtcbAmongUs} + +Although it is simplistic, it was a good start point to insert emotions as options to the style. The emotions shall be added to \texttt{Styles I} and \texttt{II} in the future. The \texttt{Original} style can be use outside a \texttt{tikzpicture} environment. + +\begin{FHZtcbAmongUs}[title=Original Design -- Outside \textit{tikzpicture}] +\amongUsOriginal{black}{cyan} +\amongUsOriginal[angry]{gray}{cyan} +\amongUsOriginal[very angry]{white}{cyan} +\end{FHZtcbAmongUs} + +Inside the \texttt{tikzpicture} environment is possible to use some options of the command \texttt{node} to produce some more combinations. Indeed, that's the best method to achieve a black body suit with visible lines. + +\begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture} with \textit{node} options] + \begin{tikzpicture}[every path/.style={very thick}] + \node[red, fill=black] at (0,0) {\amongUsOriginal{white}{cyan}}; + \node[blue, fill=violet] at (5,0) {\amongUsOriginal[angry]{white}{cyan}}; + \node[yellow, fill=green] at (10,0) + {\amongUsOriginal[very angry]{black}{cyan}}; + \end{tikzpicture} +\end{FHZtcbAmongUs} + + +\section{Use as Watermark} + +The chosen package to add watermarks is +\begin{FHZtcbAmongUs}[listing only] + \usepackage{eso-pic} +\end{FHZtcbAmongUs} + +The syntax of the style created to insert Among us characters from the package \texttt{tikz-amongUs} is +\begin{FHZtcbAmongUs}[listing only] + \usepackage[cor=<color>,<FG/BG,type=<0/1>]{tikz-amongUs-watermark-eso-pic} +\end{FHZtcbAmongUs} + +The options are +\begin{FHZtcbEnumerate} + \item cor=<color> + \begin{itemize} + \item default color is red + \end{itemize} + \item FG (default if empty) \textsf{OR} BG + \begin{itemize} + \item These options select between \texttt{{\textbackslash}AddToShipoutPictureFG} and \texttt{{\textbackslash}AddToShipoutPictureBG} from the package \texttt{eso-pic}. + \end{itemize} + \item type=<number> + \begin{itemize} + \item number can be either 0 (default if empty) for \texttt{Original Style} \textsf{OR} 1 for \texttt{Style I}. \texttt{Style II} has not been prepared, although any user can copy and edit the syntax at will. + \end{itemize} +\end{FHZtcbEnumerate} + +The package \texttt{kvoptions} have been used to provide flexible command with direct acess to the options values in \texttt{cor} and \texttt{type}, and a simple true/false statement with \texttt{FG} and \texttt{BG}. +Any other kind or variation of watermark can be achieved by directing setting values to each <parameter> in: +\begin{FHZtcbAmongUs}[listing only] + \put(X,Y){\scalebox{<factor>}{\rotatebox{<degrees>}{\usebox\myboxAmongUs}}} +\end{FHZtcbAmongUs} +where \texttt{{\textbackslash}myboxAmongUs} is +\begin{FHZtcbAmongUs}[listing only] + \myboxAmongUs\savebox\myboxAmongUs{% + \tikz[color=<color>, opacity=<factor>] + \node{\amongUsOriginal{<color>}{white}}; + } +\end{FHZtcbAmongUs} + +The following box presents some possible combinations of parameters which results are presented at \autoref{fig:fig_AmongUg}. +\begin{FHZtcbAmongUs}[listing only] +\usepackage{tikz-amongUs-watermark-eso-pic} +\usepackage[FG]{tikz-amongUs-watermark-eso-pic} +\usepackage[type=0]{tikz-amongUs-watermark-eso-pic} + +\usepackage[cor=blue]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=green,FG]{tikz-amongUs-watermark-eso-pic} + +\usepackage[BG]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=green!80!black,BG]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=orange,type=0]{tikz-amongUs-watermark-eso-pic} + +\usepackage[cor=yellow!80!black,FG,type=0]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=orange,BG,type=0]{tikz-amongUs-watermark-eso-pic} +\usepackage[BG,type=1]{tikz-amongUs-watermark-eso-pic} + +\usepackage[cor=pink,type=1]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=teal,FG,type=1]{tikz-amongUs-watermark-eso-pic} +\usepackage[cor=brown,BG,type=1]{tikz-amongUs-watermark-eso-pic} +\end{FHZtcbAmongUs} + +\begin{figure}[htb] % [htpb] + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_01} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_02} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_03} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_04} \\ + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_05} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_06} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_07} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_08} \\ +% \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_09} \\ + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_10} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_11} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_12} \hfill + \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_13} + \caption{Example of each presented combination of watermark.} + \label{fig:fig_AmongUg} +\end{figure} + +The selected combination used in this documentation is +\begin{FHZtcbAmongUs}[listing only] + \usepackage[cor=violet!70!white,BG,type=1]{tikz-amongUs-watermark-eso-pic} +\end{FHZtcbAmongUs} + +\section{Use as Watermark inside a tcolorbox} + +\texttt{tcolorbox} is one of the most versatile packages of all {\LaTeX}. One of its feature is the possibility to create boxes with many styles, including boxes with watermarks as presented in page 174 of the \texttt{tcolorbox} manual (\texttt{/tcb/watermark tikz)}. +\begin{FHZtcbAmongUs}[listing only] + \usepackage{tcolorbox} +\end{FHZtcbAmongUs} + +The very implementation used in this report to create enumerated list with some Among us floating around is: +\begin{FHZtcbAmongUs}[listing only] +\newtcolorbox{FHZboxEnumerateStyle}{ + enhanced, + colback=orange!15!white, + colframe=orange!50!black, + watermark tikz={\tikz[opacity=0.4] + \node[rotate around={-45:(1.75,2.3)}] {\amongUsOriginal{blue}{white}}; + \node[rotate around={45:(1.75,2.3)}] at (5,0) {\amongUsOriginal{pink}{white}}; + \node[rotate around={-135:(1.75,2.3)}] at (10,0) {\amongUsOriginal{green}{white}}; + \node[rotate around={135:(1.75,2.3)}] at (15,0) {\amongUsOriginal{olive}{white}}; + } +} +\newenvironment{FHZtcbEnumerate}{% + \begin{FHZboxEnumerateStyle}\begin{enumerate}} + {\end{enumerate}\end{FHZboxEnumerateStyle} +} +\end{FHZtcbAmongUs} + +\begin{FHZtcbEnumerate} + \item This is an example of a \texttt{enumerate} list inside a \texttt{tcolorbox} with \texttt{tikz-amongUs} as watermark. +\end{FHZtcbEnumerate} + +\section{Use as Page numbering} + +The required packages are: +\begin{FHZtcbAmongUs}[listing only] +\usepackage{fancyhdr} +\usepackage{adjustbox} +\end{FHZtcbAmongUs} +The package \texttt{fancyhdr} enables the user to edit headers and footers. I present a simple possibility to use the Among us characters in the footer of each page, such as the ones in this documentation. + +The central core of the idea is to use \texttt{adjustbox} to correct scale down the \texttt{tikzpicture}, since the draw was made with \texttt{rounded corners} and this feature has some issue while scaling, and insert a \texttt{rotate around} command using some math to rotate to body around its center. +In the example below, it turns 45 degrees each new page, creating the idea of floating around. + +Next, a \texttt{node} is insert with the inverse factor of the scaling made in \texttt{adjustbox}, it returns the page number to its original size, and also places it at the correct local on the footer. +\begin{FHZtcbAmongUs}[listing only] +\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} + } +} +\end{FHZtcbAmongUs} + +\section{Use as Animation} + +This example uses the following package +\begin{FHZtcbAmongUs}[listing only] + \usepackage{animate} +\end{FHZtcbAmongUs} + +This example creates a variable from 0 to 360 to represent each degree of a full rotation.\footnote{Animation requires some PDF visualization software to properly work. Internet browsers are not normally suitable for this task.} Four Among us characters are placed around the screen by using the option \texttt{shift={(x0,y0)}} and then rotating them around each respective center of mass. In order to achieve this effect, the most left command must be \texttt{shift} and then \texttt{rotate around}, the opposite order will rotate around the given point by will shift the object relative center of rotation. To make a body rotate in the opposite direction it is just necessary to add a minus sign in front of the angle variable. +\begin{FHZtcbAmongUs}[listing only] +\begin{animateinline}[controls,loop]{30} + \multiframe{360}{rt=0+1}{% + \begin{tikzpicture} + \draw (-2,-10) rectangle (15,7); + \amongUsI[rotate around={\rt:(2,3)}] + {orange}{blue}; + \amongUsI[shift={(8,0)}, rotate around={-\rt:(2,3)}] + {cyan}{orange}; + \amongUsII[shift={(0,-8)}, rotate around={\rt:(2,3)}] + {red}{gray}; + \amongUsII[shift={(8,-8)}, rotate around={-\rt:(2,3)}] + {green!50!black}{cyan}; + \end{tikzpicture} + } +\end{animateinline} +\end{FHZtcbAmongUs} + +\begin{animateinline}[controls,loop]{30} + \multiframe{360}{rt=0+1}{% + \begin{tikzpicture} + \draw (-2,-10) rectangle (15,7); + \amongUsI[rotate around={\rt:(2,3)}]{orange}{blue}; + \amongUsI[shift={(8,0)}, rotate around={-\rt:(2,3)}]{cyan}{orange}; + \amongUsII[shift={(0,-8)}, rotate around={\rt:(2,3)}]{red}{gray}; + \amongUsII[shift={(8,-8)}, rotate around={-\rt:(2,3)}]{green!50!black}{cyan}; + \end{tikzpicture} + } +\end{animateinline} + +\section{Future features and ideas} + +\begin{FHZtcbEnumerate} + \item Add options for hands; + \item Add options to different emotions through the eyes in styles I and II; + \item Improve scale method; + \item Draw the impostor; + \item Draw maps. +\end{FHZtcbEnumerate} + +\section{Historic and version} + +\begin{FHZtcbEnumerate}[leftmargin=3.5cm] + \item[1.0 (2020-10-20):] Publication of the style with the original design and Styles I and II of shadows. +\end{FHZtcbEnumerate} + +\section{Implementation} + +\subsection{tikz-amongUs.sty} + +\autoref{alg:tikz-amongUs} shows the implementation of the package \texttt{tikz-amongUs.sty}. + +% ----------------------------- +%, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd +\lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-amongUs}, caption = {Package implementation}, style = estiloExemVerd] +{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-amongUs/tikz-amongUs.sty} +% ----------------------------- + +\subsection{tikz-amongUs-fancyhdr.sty} + +\autoref{alg:tikz-amongUs-fancyhdr} shows the implementation of the package \texttt{tikz-amongUs-fancyhdr.sty}. + +% ----------------------------- +% firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd +\lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-amongUs-fancyhdr}, caption = {Package implementation}, style = estiloExemVerd] +{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-amongUs/tikz-amongUs-fancyhdr.sty} +% ----------------------------- + +\subsection{tikz-amongUs-watermark-eso-pic.sty} + +\autoref{alg:tikz-amongUs-watermark-eso-pic} shows the implementation of the package \texttt{tikz-amongUs-watermark-eso-pic.sty}. + +% ----------------------------- +% firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd +\lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-amongUs-watermark-eso-pic}, caption = {Package implementation}, style = estiloExemVerd] +{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-amongUs/tikz-amongUs-watermark-eso-pic.sty} +% ----------------------------- + +\end{document}
\ No newline at end of file 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 diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 9163290489d..a8e1dcfde5a 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -735,7 +735,8 @@ my @TLP_working = qw( threadcol threeddice threeparttable threeparttablex thuaslogos thucoursework thumb thumbpdf thumbs thumby thuthesis ticket ticollege - tikz-bayesnet tikz-cd tikz-3dplot tikz-dependency tikz-dimline + tikz-3dplot tikz-among-us tikz-bayesnet + tikz-cd tikz-dependency tikz-dimline tikz-feynhand tikz-feynman tikz-imagelabels tikz-inet tikz-kalender tikz-karnaugh tikz-ladder tikz-lake-fig tikz-layers tikz-nef tikz-network tikz-opm tikz-optics diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 4606166ed06..ec29b88278f 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1267,6 +1267,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); 'thmtools', "&MAKEflatten", 'ticket', "&MAKEflatten", 'ticollege', "&MAKEflatten", + 'tikz-among-us',"&MAKEflatten", 'tikz-kalender',"&MAKEflatten", 'tikz-karnaugh',"&MAKEflatten", 'tikz-ladder', "&MAKEflatten", diff --git a/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc b/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc index 202061baabf..4d580ad3fed 100644 --- a/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-pictures.tlpsrc @@ -147,6 +147,7 @@ depend texdraw depend ticollege depend tipfr depend tikz-3dplot +depend tikz-among-us depend tikz-bayesnet depend tikz-cd depend tikz-dependency diff --git a/Master/tlpkg/tlpsrc/tikz-among-us.tlpsrc b/Master/tlpkg/tlpsrc/tikz-among-us.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/tikz-among-us.tlpsrc |