texlive[67738] Master/texmf-dist: tidyres (26jul23)

commits+karl at tug.org commits+karl at tug.org
Wed Jul 26 22:13:10 CEST 2023


Revision: 67738
          http://tug.org/svn/texlive?view=revision&revision=67738
Author:   karl
Date:     2023-07-26 22:13:10 +0200 (Wed, 26 Jul 2023)
Log Message:
-----------
tidyres (26jul23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tidyres/README.md
    trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.pdf
    trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.tex
    trunk/Master/texmf-dist/tex/latex/tidyres/tidyres.sty

Modified: trunk/Master/texmf-dist/doc/latex/tidyres/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tidyres/README.md	2023-07-26 20:13:00 UTC (rev 67737)
+++ trunk/Master/texmf-dist/doc/latex/tidyres/README.md	2023-07-26 20:13:10 UTC (rev 67738)
@@ -11,6 +11,12 @@
 
 
 
+#### Version
+
+``Version 2.0.0`` (July 27, 2023)
+
+
+
 #### Basic Functions
 
 This `tidyres` package aims to provide users with a simple interface to create multi-column formal resume.

Modified: trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.tex	2023-07-26 20:13:00 UTC (rev 67737)
+++ trunk/Master/texmf-dist/doc/latex/tidyres/tidyres-doc.tex	2023-07-26 20:13:10 UTC (rev 67738)
@@ -1,15 +1,9 @@
 \documentclass[a4paper,10pt]{article}
 % packages %
+\usepackage{tidyres}
 \usepackage[margin=1in]{geometry}
-\usepackage{amsmath,amssymb}
-\usepackage[dvipsnames]{xcolor}
-\usepackage{hologo}
-\usepackage[hidelinks]{hyperref}
 \usepackage[type={CC},modifier={by},version={4.0}]{doclicense}
-\usepackage{tidyres}
 \usepackage{cprotect}
-\usepackage{listings}
-\usepackage[most]{tcolorbox}
 \usepackage{changepage}
 \hypersetup{colorlinks=True,allcolors=cyan}
 \renewcommand{\contentsname}{\centering Table of Contents}
@@ -16,31 +10,8 @@
 % info %
 \title{{\tt tidyres} for Tidy Formal Resume}
 \author{\itshape Yifan Liang}
-\date{v1.0.0 2023-02-10}
+\date{v2.0.0 2023-07-27}
 
-\definecolor{codegreen}{rgb}{0,0.6,0}
-\definecolor{codegray}{rgb}{0.5,0.5,0.5}
-\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
-\lstdefinestyle{mystyle}{
-    language=[LaTeX]{TeX},
-    backgroundcolor=\color{backcolour},
-    commentstyle=\color{codegreen},
-    numberstyle=\small\color{codegray},
-    basicstyle=\ttfamily\normalsize,
-    breakatwhitespace=false,
-    breaklines=true,
-    keepspaces=true,
-    numbers=left,
-    numbersep=5pt,
-    showspaces=false,
-    showstringspaces=false,
-    showtabs=false,
-    tabsize=2,
-    texcsstyle=*\color{blue},
-}
-\lstset{style=mystyle}
-
-
 % document %
 \begin{document}
 
@@ -64,7 +35,10 @@
 
 Users can also incorporate other packages such as \verb+enumitem+ to make bullet point in the resume.
 
-\vspace{1cm}
+\subsection{Notes for v2.0.0}
+As of July 27, 2023, {\tt tidyres} requires the users to use \hologo{XeLaTeX} or \hologo{LuaLaTeX} to compile as the additional customization feature on font is added, which loads the {\tt fontspec} package.\\
+\\
+Additionally, the \verb+\restitle+ command now accepts key values to make the title for your resume.
 
 \subsection{License}
 This work is licensed under \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons "Attribution 4.0 International" license}.\\
@@ -82,9 +56,9 @@
 For a typical resume, depending on the font style and font size you use, it is suggested that you set the page margin between {\bf 0.5 inch} to {\bf 1 inch}.\\
 ~\\
 You can set the margin with the {\tt geometry} package using the following code:
-\begin{lstlisting}
+\begin{codebox}[title=Page Margin]
 \usepackage[margin=0.5in]{geometry}
-\end{lstlisting}
+\end{codebox}
 
 \vspace{1cm}
 
@@ -93,10 +67,10 @@
 ~\\
 I would suggest using the {\tt extarticle} class to set the font size globally:
 
-\begin{lstlisting}
+\begin{codebox}[title=Font Size]
 \documentclass[9pt]{extarticle}
 % The extarticle class supports at least 8pt font size.
-\end{lstlisting}
+\end{codebox}
 \newpage
 
 \section{Resume Title}
@@ -105,9 +79,16 @@
 The \verb+\restitle+ command helps user to print the title of the resume, which contains key information such as name, location, email, phone, and Linkedin ID.\\
 
 \subsection{Example Code}
-\begin{lstlisting}
-\restitle{My Name}{Location}{Email}{Phone}{LinkedinID}{http://linkedin.com}
-\end{lstlisting}
+\begin{codebox}[title=Resume Title Example Code]
+\restitle{
+    name=John Doe,
+    location=New York,
+    email=john.doe at gmail.com,
+    phone=(646) 111-1234,
+    linkedinid=johndoe,
+    linkedinurl=http://linkedin.com
+}
+\end{codebox}
 
 \vspace{1cm}
 
@@ -116,7 +97,14 @@
 \vspace{1cm}
 
 \begin{tcolorbox}[standard jigsaw,opacityback=0.1,colback=gray,boxrule=0.5pt]
-\restitle{My Name}{Location}{Email}{Phone}{ID}{http://linkedin.com}
+\restitle{
+    name=John Doe,
+    location=New York,
+    email=john.doe at gmail.com,
+    phone=(646) 111-1234,
+    linkedinid=johndoe,
+    linkedinurl=http://linkedin.com
+}
 \end{tcolorbox}
 
 \vspace{1cm}
@@ -124,9 +112,9 @@
 \subsection{Note}
 The hyperlink color of Linkedin can be set via {\tt hyperref} package. If you wish to set it in black, you may use the following code:
 
-\begin{lstlisting}
+\begin{codebox}[title=Color of Hyperlink]
 \usepackage[hidelinks]{hyperref}
-\end{lstlisting}
+\end{codebox}
 
 \newpage
 
@@ -142,7 +130,7 @@
 \newpage
 
 \subsection{Example Code}
-\begin{lstlisting}
+\begin{codebox}[title=Resume Section Example Code]
 \begin{ressection}[Education]
     {\bf ABC University}, {\sl College of Arts \& Science}, New York, NY
     \hfill
@@ -167,7 +155,7 @@
         \item Honors \& Societies: XYZ Poem Society
     \end{enumerate}
 \end{ressection}
-\end{lstlisting}
+\end{codebox}
 
 \vspace{1cm}
 
@@ -207,4 +195,6 @@
 \end{tcolorbox}
 \end{adjustwidth}
 
-\end{document}
\ No newline at end of file
+\end{document}
+
+%%% Last Update: 2023-07-27 %%%
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/tidyres/tidyres.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tidyres/tidyres.sty	2023-07-26 20:13:00 UTC (rev 67737)
+++ trunk/Master/texmf-dist/tex/latex/tidyres/tidyres.sty	2023-07-26 20:13:10 UTC (rev 67738)
@@ -1,18 +1,21 @@
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tidyres}[2023-02-10 v1.0.0]
+\ProvidesPackage{tidyres}[2023-07-27 v2.0.0]
 
 % packages %
 \RequirePackage{paracol}
 \RequirePackage{tabularray}
-\RequirePackage{enumitem}
-\RequirePackage{amsmath}
-\RequirePackage{amssymb}
 \RequirePackage[dvipsnames]{xcolor}
-\RequirePackage{hologo}
 \RequirePackage{setspace}
 \RequirePackage[hidelinks]{hyperref}
+\RequirePackage{minted}
+\RequirePackage[most]{tcolorbox}
+\RequirePackage{enumitem}
+\RequirePackage{amsmath,amssymb}
+\RequirePackage{hologo}
 \RequirePackage{fontawesome}
+\RequirePackage{expkv-def,expkv-cs}
 
+
 % format %
 \setlength{\parindent}{0pt}
 \setlength{\columnsep}{2em}
@@ -21,33 +24,139 @@
 \linespread{1.25}
 \pagestyle{empty}
 
-% font %
-% \newfontfamily\textcm{CMU Serif}
+%%% font %%%
+\RequirePackage{fontspec}
+\RequirePackage{unicode-math}
+\setmainfont{TeX Gyre Termes}
+\setsansfont{TeX Gyre Heros}
+\setmonofont{NewComputerModernMono10}
+\setmathfont{NewComputerModernMath}
+\newfontfamily\textcm{NewComputerModern10}
+\newfontfamily\texttm{TeX Gyre Termes}
+\newfontfamily\texthr{TeX Gyre Heros}
+\unimathsetup{math-style=TeX, bold-style=TeX}
 
 % definition %
-\newcommand{\restitle}[6]
-{\begin{spacing}{1.15}
+\ekvdefinekeys{restitlekey}{
+    store name=\restitlekey at name,
+    initial name={Name},
+    store location=\restitlekey at location,
+    initial location={Location},
+    store email=\restitlekey at email,
+    initial email={Email},
+    store phone=\restitlekey at phone,
+    initial phone={Phone},
+    store linkedinid=\restitlekey at linkedinid,
+    initial linkedinid={Linkedin ID},
+    store linkedinurl=\restitlekey at linkedinurl,
+    initial linkedinurl={http://linkedin.com},
+}
+\ekvsetdef\restitlekeyset{restitlekey}
+\newcommand{\restitle}[1]
+{
+\restitlekeyset{#1}
+\begin{spacing}{1.15}
 \begin{tblr}{
-  column{1} = {l},
-  column{2} = {r},
-  column{3} = {l},
-  cell{1}{1} = {r=4}{},
-  colspec = {X[5]X[2.8]X[2.2]}
+    column{1} = {l},
+    column{2} = {r},
+    column{3} = {l},
+    cell{1}{1} = {r=4}{},
+    colspec = {X[5]X[2.5]X[2.5]},
+    hline{Z} = {1}{1-Z}{0em},
+    hline{Z} = {2}{1-Z}{0.05em}
 }
-\hspace{6mm}{\fontsize{22}{22}\selectfont \sc #1}
-& \faLocationArrow
-& #2 \\
-& \faAt
-& {\sl #3} \\
-& \faPhone
-& #4 \\
-& \faLinkedinSquare
-& \href{#6}{Linkedin - {\sl #5}}\\
-\hline
-\end{tblr}\end{spacing}\vspace{7mm}}
+    \hspace{6mm}{\fontsize{22}{22}\selectfont \sc \restitlekey at name}
+    & \faLocationArrow
+    & \restitlekey at location \\
+    & \faAt
+    & {\sl \restitlekey at email} \\
+    & \faPhone
+    & \restitlekey at phone \\
+    & \faLinkedinSquare
+    & \href{\restitlekey at linkedinurl}{Linkedin - {\sl \restitlekey at linkedinid}}
+\end{tblr}
+\end{spacing}
+\vspace{5mm}
+}
 
 \newenvironment{ressection}[2][Section]
-{\begin{paracol}{2} {\sc #1} \switchcolumn {#2}}
-{\end{paracol}\vspace{5mm}}
+{
+    \begin{paracol}{2}
+        {\sc #1}
+        \switchcolumn
+        {#2}
+}
+{
+    \end{paracol}
+    \vspace{5mm}
+}
 
-\newcommand{\ressep}[0]{\vspace{2mm}}
\ No newline at end of file
+\newcommand{\ressep}[0]{\vspace{2mm}}
+
+
+
+
+
+%%% tcolorbox for documentation purposes %%%
+\newtcbox{\boxedtitle}[1][gray]{
+    on line,
+    arc=3pt,
+    colback=#1!95!white,
+    colframe=#1!95!white,
+    boxrule=1pt,
+    boxsep=0pt,
+    left=3pt,
+    right=3pt,
+    top=3pt,
+    bottom=3pt
+}
+\renewcommand{\theFancyVerbLine}{\rmfamily\textcolor{gray}{\arabic{FancyVerbLine}}}
+\tcbuselibrary{minted}
+\ekvdefinekeys{codeboxkey}{
+    store title=\codeboxkey at title,
+    initial title={},
+    store color=\codeboxkey at color,
+    initial color=LimeGreen
+}
+\ekvsetdef\codeboxkeyset{codeboxkey}
+\newenvironment{codebox}[1][]{
+    \codeboxkeyset{#1}
+    \tcblisting{
+        listing engine=minted,
+        minted style=manni,
+        minted language=tex,
+        minted options={
+            fontsize=\small,
+            breaklines,
+            autogobble,
+            linenos,
+            numbersep=0.25cm,
+            escapeinside=||
+        },
+        enhanced jigsaw,
+        breakable,
+        listing only,
+        left=0.75cm,
+        lefttitle=0.3cm,
+        arc=5pt,
+        boxrule=1pt,
+        colback=\codeboxkey at color!1!white,
+        colframe=\codeboxkey at color!95!black,
+        top=0cm,
+        bottom=0cm,
+        title={\texthr \boxedtitle[\codeboxkey at color]{\bfseries\textcolor{white}{CODE}} \textcolor{\codeboxkey at color}{\codeboxkey at title}},
+        toptitle=0.5ex,
+        bottomtitle=0.5ex,
+        titlerule=0ex,
+        colbacktitle=\codeboxkey at color!10!white,
+        overlay={\begin{tcbclipinterior}
+        \fill[\codeboxkey at color!5!white] (frame.south west) rectangle ([xshift=0.75cm]frame.north west);
+        \end{tcbclipinterior}
+        }
+    }
+}
+{
+    \endtcblisting
+}
+
+%%% Last Update: 2023-07-27 %%%



More information about the tex-live-commits mailing list.