Skip to content

Commit

Permalink
v1.7.1 bugfix for \printinfo to better support some symbol commands e…
Browse files Browse the repository at this point in the history
….g. academicons
  • Loading branch information
liantze committed Aug 25, 2023
1 parent a41572b commit 74bc05d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# AltaCV, yet another LaTeX CV/Résumé class

v1.7 (9 Aug 2023), by LianTze Lim (liantze@gmail.com)
v1.7.1 (25 Aug 2023), by LianTze Lim (liantze@gmail.com)

* v1.7 (9 Aug 2023) changes:
- `\itemmarker` and `\ratingmarker` renamed to `\cvItemMarker` and `\cvRatingMarker`
- Added `\cvLocationMarker` and `\cvDateMarker` so that these icons in `\cvevent`
can be re-defined
- Added `\locationname` and `\datename` for replacement text of the location and date
markers in `\cvevent`
- Other tweaks with `accsupp`
- Other tweaks with `accsupp` (with another bugfix in v1.7.1.)
* Added `\mynames{...}` to specify names to be highlighted in the publication list on 3 Nov 2022
* Starred `\NewInfoField*` command to handle Mastodon; Icons, `\cvskills`, `\wheelchart` have "copyable" text values; `\cvskill` supports numerical values {0.5, 1, ..., 4.5, 5} on 21 May 2021
* Moved `biblatex`-related code to `*.cfg` files for easier edit on 8 May 2021
Expand Down
14 changes: 6 additions & 8 deletions altacv.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%
% This is altacv.cls (v1.7, 9 Aug 2023) written by
% This is altacv.cls (v1.7.1, 25 Aug 2023) written by
% LianTze Lim (liantze@gmail.com).
%
%% It may be distributed and/or modified under the
Expand All @@ -19,7 +19,7 @@

%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{altacv}[2023/08/09 AltaCV v1.7, yet another alternative class for a resume/curriculum vitae.]
\ProvidesClass{altacv}[2023/08/25 AltaCV v1.7.1, yet another alternative class for a resume/curriculum vitae.]

%% v1.1: Optionally load academicons
%% v1.4: Nope, academicons is unnecessary; fontawesome5 has \faOrcid.
Expand Down Expand Up @@ -117,7 +117,6 @@
\RequirePackage{dashrule}
\RequirePackage{multirow,tabularx}
\RequirePackage{changepage}
% \RequirePackage{marginfix}

\setlength{\parindent}{0pt}
\newcommand{\divider}{\textcolor{body!30}{\hdashrule{\linewidth}{0.6pt}{0.5ex}}\medskip}
Expand Down Expand Up @@ -147,26 +146,25 @@
%% v1.6: Use accsupp so that when copying/pasting the icon from PDF to a text
%% file, the icon name is pasted
%% v1.7: Some tweaks/corrections so that accsupp is for icons only
%% v1.7.1: Bugfix to support some symbol commands e.g. academicons commands
\ExplSyntaxOn
\NewDocumentCommand{\printinfo}{m m o}{%
% \BeginAccSupp{method=escape,ActualText={#1:~#2}}
\IfNoValueTF{#3}{%
\mbox{\textcolor{accent}%
{\BeginAccSupp{method=escape,ActualText={#1:}}\normalfont #1\EndAccSupp{}}%
{\BeginAccSupp{method=escape,ActualText={\detokenize{#1}:}}\normalfont #1\EndAccSupp{}}%
~\utffriendlydetokenize{#2}\hspace{2em}}%
}{%
\if@withhyper%
\mbox{\textcolor{accent}%
{\BeginAccSupp{method=escape,ActualText={#1:}}\normalfont #1\EndAccSupp{}}%
{\BeginAccSupp{method=escape,ActualText={\detokenize{#1}:}}\normalfont #1\EndAccSupp{}}%
~\href{#3}{\utffriendlydetokenize{#2}}\hspace{2em}}
\else%
\ClassWarning{Please specify [withhyper] option to enable hyperlinks. Printing out full hyperlink prefix #1 for now.}%
\mbox{\textcolor{accent}
{\BeginAccSupp{method=escape,ActualText={#1:}}\normalfont #1\EndAccSupp{}}%
{\BeginAccSupp{method=escape,ActualText={\detokenize{#1}:}}\normalfont #1\EndAccSupp{}}%
~{\utffriendlydetokenize{#3#2}}\hspace{2em}}%
\fi%
}%
% \EndAccSupp{}
}%


Expand Down
Binary file modified mmayer.pdf
Binary file not shown.
Binary file modified sample.pdf
Binary file not shown.

0 comments on commit 74bc05d

Please sign in to comment.