-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify cv templates to work in swiftlatex
- Loading branch information
Showing
122 changed files
with
691 additions
and
7,605 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
%sty file | ||
|
||
\usepackage{minimal-resume} | ||
|
||
% custom command and packages | ||
|
||
\input{custom-command} |
2 changes: 1 addition & 1 deletion
2
...emplate6/inputs/config/minimal-resume.sty → ...ic/templates/template6/minimal-resume.sty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%% start of file `moderncvcollection.sty'. | ||
%% Copyright 2013-2015 Xavier Danaux ([email protected]), 2020-2022 moderncv maintainers (github.com/moderncv). | ||
%% start of file `collection.sty'. | ||
%% Copyright 2013-2013 Xavier Danaux ([email protected]). | ||
% | ||
% This work may be distributed and/or modified under the | ||
% conditions of the LaTeX Project Public License version 1.3c, | ||
|
@@ -10,7 +10,7 @@ | |
% identification | ||
%------------------------------------------------------------------------------- | ||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{moderncvcollection}[2022-02-21 v2.3.1 moderncv collections] | ||
\ProvidesPackage{collection}[2013/03/28 v1.0.0 collections] | ||
|
||
|
||
%------------------------------------------------------------------------------- | ||
|
@@ -27,66 +27,59 @@ | |
|
||
% creates a new collection | ||
% usage: \collectionnew{<collection name>} | ||
\NewDocumentCommand\collectionnew{m}{% | ||
\newcounter{collection@#1@count}% | ||
}% | ||
\newcommand*{\collectionnew}[1]{% | ||
\newcounter{collection@#1@count}} | ||
|
||
% adds an item to a collection | ||
% usage: \collectionadd[<optional key>]{<collection name>}{<item to add>} | ||
\NewDocumentCommand\collectionadd{ O{} m m }{% | ||
\newcommand*{\collectionadd}[3][]{% | ||
\expandafter\def\csname collection@#2@item\roman{collection@#2@count}\endcsname{#3}% | ||
\def\optional@FirstArg{#1}% | ||
\ifdefempty{\optional@FirstArg}{% | ||
\relax% if #1 is empty | ||
}{% | ||
\expandafter\def\csname collection@#2@key\roman{collection@#2@count}\endcsname{#1}% | ||
}% | ||
\stepcounter{collection@#2@count}% | ||
}% | ||
\if\relax\noexpand#1\relax% if #1 is empty | ||
\else\expandafter\def\csname collection@#2@key\roman{collection@#2@count}\endcsname{#1}\fi% | ||
\stepcounter{collection@#2@count}} | ||
|
||
% returns the number of items in a collection | ||
% usage: \collectioncount{<collection name>} | ||
\NewDocumentCommand\collectioncount{m}{% | ||
\value{collection@#1@count}% | ||
}% | ||
\newcommand*{\collectioncount}[1]{% | ||
\value{collection@#1@count}} | ||
|
||
% gets an item from a collection | ||
% usage: \collectiongetitem{<collection name>}{<element id>} | ||
% where <element id> is an integer between 0 and (collectioncount-1) | ||
\NewDocumentCommand\collectiongetitem{m m}{% | ||
\csname collection@#1@item\romannumeral #2\endcsname% | ||
}% | ||
\newcommand*{\collectiongetitem}[2]{% | ||
\csname collection@#1@item\romannumeral #2\endcsname} | ||
|
||
% gets a key from a collection | ||
% usage: \collectiongetkey{<collection name>}{<element id>} | ||
% where <element id> is an integer between 0 and (collectioncount-1) | ||
\NewDocumentCommand\collectiongetkey{m m}{% | ||
\csname collection@#1@key\romannumeral #2\endcsname% | ||
}% | ||
\newcommand*{\collectiongetkey}[2]{% | ||
\csname collection@#1@key\romannumeral #2\endcsname} | ||
|
||
% loops through a collection and perform the given operation on every element | ||
% usage: \collectionloop{<collection name>}{<operation sequence>} | ||
% where <operation sequence> is the code sequence to be evaluated for each collection item, | ||
% code which can refer to \collectionloopid, \collectionloopkey, \collectionloopitem and | ||
% \collectionloopbreak | ||
\newcounter{collection@iterator} | ||
\NewDocumentCommand\collectionloopbreak{}{\let\iterate\relax} | ||
\NewDocumentCommand\collectionloop{m m}{% | ||
\newcommand*{\collectionloopbreak}{\let\iterate\relax} | ||
\newcommand*{\collectionloop}[2]{% | ||
\setcounter{collection@iterator}{0}% | ||
\loop\ifnum\value{collection@iterator}<\value{collection@#1@count}% | ||
\def\collectionloopid{\arabic{collection@iterator}}% | ||
\def\collectionloopitem{\collectiongetitem{#1}{\collectionloopid}}% | ||
\def\collectionloopkey{\collectiongetkey{#1}{\collectionloopid}}% | ||
#2% | ||
\stepcounter{collection@iterator}% | ||
\repeat% | ||
} | ||
\repeat} | ||
|
||
% loops through a collection and finds the (first) element matching the given key | ||
% usage: \collectionfindbykey{<collection name>}{key>} | ||
\NewDocumentCommand\collectionfindbykey{m m}{% | ||
\newcommand*{\collectionfindbykey}[2]{% | ||
\collectionloop{#1}{% | ||
\ifthenelse{\equal{\collectionloopkey}{#2}}{\collectionloopitem\collectionloopbreak}{}}% | ||
}% | ||
\ifthenelse{\equal{\collectionloopkey}{#2}}{\collectionloopitem\collectionloopbreak}{}}} | ||
|
||
|
||
\endinput | ||
|
||
|
||
%% end of file `moderncvcollection.cls'. | ||
%% end of file `collection.cls'. |
Oops, something went wrong.