Skip to content

Commit

Permalink
started adding support for multiple languages
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparJohannesSchneider committed Mar 24, 2021
1 parent 9f6742e commit 00d6707
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 22 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## About this FORK
This fork is a derivative of [TwentySecondsCurriculumVitae-LaTex](https://github.com/spagnuolocarmine/TwentySecondsCurriculumVitae-LaTex) created by [Carmine Spagnuolo](https://github.com/spagnuolocarmine). Mainly the following changes have been made to the original repo:
- This version uses A4 paper
- Support for multiple Languages has been added
- `fontawesome` has been updated to `fontawesome5` that supports fixed-width icons and consists of more icons
- Some optional blue icons for the sidebar have been added
- The skill bar graphs have been equipped with icons
Expand All @@ -19,6 +20,38 @@ This fork is a derivative of [TwentySecondsCurriculumVitae-LaTex](https://github
***
![sample résumé](https://raw.githubusercontent.com/KasparJohannesSchneider/TwentySecondsCurriculumVitae-LaTex/kaspar/Twenty-Seconds-Icons_cv.png)
***

## Languages
⚠ This feature is still experimental

The desired language for the generated PDF can be set by either putting `\entrue` or `\detrue` right after `\documentclass[icon]{twentysecondcv}`.
```tex
\documentclass[icon]{twentysecondcv}
%%%%%%%%%%%%%%%
%% Languages %%
%%%%%%%%%%%%%%%
% set language either by \entrue or \detrue
\detrue
```
Setting one language to true has the effect that either the content of `\en{}` or `\en{}` will be used in the generated PDF.

ℹ️ Text outside `\en{}` or `\en{}` will just be outputted regardless of the language set, neither of them have to be used.

### Supported Languages
At the moment the following languages are supported:

|language|enable|usage|
|:---:|:---:|:---:|
|English|`\entrue`|`\en{}`|
|German|`\detrue`|`\de{}`|

### Example
The following code snippet either

```tex
\cvdate{\en{26 November 1865}\de{1. August 1291}} % date of birth
```

## HOT!

- Support Fontawesome Icons, new class option ```\documentclass[icon]{twentysecondcv}```, using the name of the icon available in the documentation of the package [here](https://github.com/spagnuolocarmine/TwentySecondsCurriculumVitae-LaTex/raw/master/fontawesome.pdf).
Expand Down
Binary file modified Twenty-Seconds-Icons_cv.pdf
Binary file not shown.
57 changes: 36 additions & 21 deletions Twenty-Seconds-Icons_cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,43 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[icon]{twentysecondcv}
%%%%%%%%%%%%%%%
%% Languages %%
%%%%%%%%%%%%%%%
% set language either by \entrue or \detrue
\entrue

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%
%% PROFILE SIDE BAR %%
%%%%%%%%%%%%%%%%%%%%%%
% personal info
\profilepic{alice.jpeg} % path of profile pic
\cvname{Kaspar Johannes\\Schneider} % your name
\cvjobtitle{Adventurer} % your actual job position
\cvdate{26 November 1865} % date of birth
\cvaddress{<address>} % address
\cvlocation{United Kingdom} % location
\cvdriving{Cat. B} % Driver's license
\cvnumberphone{+39 0325658974} % telephone number
\cvmail{[email protected]} % e-mail
\cvstack{Alice} % Stack Overflow profile name
{https://stackoverflow.com/} % Stack Overflow profile link
\cvgithub{torvalds} % GitHub username
\cvlinkedin{linustorvalds} % LinkedIn custom url name
\profilepic{alice.jpeg} % path of profile pic
\cvname{\en{Alice} % your name
\de{Kaspar Johannes\\Schneider}}
\cvjobtitle{\en{Adventurer} % your actual job position
\de{Abenteurerin}} %
\cvdate{\en{26 November 1865} % date of birth
\de{1. August 1291}} %
\cvaddress{\en{<address>} % address
\de{<Adresse>}}
\cvlocation{\en{United Kingdom} % location
\de{Schweiz}}
\cvdriving{\en{Cat. B} % Driver's license
\de{Kat. B}}
\cvnumberphone{\en{+39 0325658974} % telephone number
\de{+41 79 000 00 00}}
\cvmail{[email protected]} % e-mail
\cvstack{Alice} % Stack Overflow profile name
{https://stackoverflow.com/} % Stack Overflow profile link
\cvgithub{torvalds} % GitHub username
\cvlinkedin{linustorvalds} % LinkedIn custom url name

\aboutme{

Alice is a sensible prepubescent girl from a wealthy English family who finds herself in a strange world ruled by imagination and fantasy. Alice feels comfortable with her identity and has a strong sense that her environment is comprised of clear, logical, and consistent rules and features. Alice's familiarity with the world has led one critic to describe her as a "disembodied intellect".
\en{Alice is a sensible prepubescent girl from a wealthy English family who finds herself in a strange world ruled by imagination and fantasy. Alice feels comfortable with her identity and has a strong sense that her environment is comprised of clear, logical, and consistent rules and features. Alice's familiarity with the world has led one critic to describe her as a "disembodied intellect".}%
\de{Alice ist ein sensibles vorpubertäres Mädchen aus einer wohlhabenden englischen Familie, das sich in einer fremden, von Phantasie und Vorstellungskraft beherrschten Welt wiederfindet. Alice fühlt sich wohl mit ihrer Identität und hat ein starkes Gefühl dafür, dass ihre Umgebung aus klaren, logischen und konsistenten Regeln und Merkmalen\\ besteht. Alices Vertrautheit mit der Welt hat einen Kritiker dazu gebracht, sie als "körperlosen Intellekt"\\ zu beschreiben.}
} % about me section

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -68,10 +82,10 @@
%%%%%%%%%%%%%%%%%%%%
%% SIMPLE SECTION %%
%%%%%%%%%%%%%%%%%%%%
\sectionicon{\faAddressCard}{interests}
\sectionicon{\faAddressCard}{\en{interests}\de{Interessen}}
The heroine and the dreamer of Wonderland; Alice is the principal character.

\sectionicon{\faUniversity}{education}
\sectionicon{\faUniversity}{\en{education}\de{Bildung}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%% TWENTY LIST ITEMS %%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -108,7 +122,7 @@
%%%%%%%%% TWENTY LIST SHORTITEMS %%%%%%%%%%%%%%
%%% Two arguments: date; title/description %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\sectionicon{\faBook}{publications}
\sectionicon{\faBook}{\en{publications}\de{Publikationen}}
\begin{twentyshort}
\twentyitemshort
{1865}
Expand All @@ -127,7 +141,7 @@
{Chapter Five, Advice from a Caterpillar.}
\end{twentyshort}

\sectionicon{\faAward}{awards}
\sectionicon{\faAward}{\en{awards}\de{Auszeichnungen}}
\begin{twentyshorticon}
\twentyitemshorticon
{\faBolt}
Expand All @@ -139,7 +153,7 @@
{All-Time Best Fantasy Novel before 1990.}
\end{twentyshorticon}

\sectionicon{\faLaptopCode}{experience}
\sectionicon{\faLaptopCode}{\en{experience}\de{Erfahrung}}
\begin{twenty}
\twentyitem
{1900}
Expand All @@ -158,8 +172,9 @@
{Walt Disney brings Lewis Carroll's fantasy story to life in this well done animated classic. Even though many elements from the book were dropped, such as the duchess with the baby pig and mock turtle, this version is without a doubt the most famous Alice adaption made.}
\end{twenty}

\sectionicon{\faInfoCircle}{other information}
Alice approaches Wonderland as an anthropologist, but maintains a strong sense of noblesse oblige that comes with her class status. She has confidence in her social position, education, and the Victorian virtue of good manners. Alice has a feeling of entitlement, particularly when comparing herself to Mabel, whom she declares has a “poky little house,” and no toys. Additionally, she flaunts her limited information base with anyone who will listen and becomes increasingly obsessed with the importance of good manners as she deals with the rude creatures of Wonderland. Alice maintains a superior attitude and behaves with solicitous indulgence toward those she believes are less privileged.
\sectionicon{\faInfoCircle}{\en{other information}\de{Weitere Informationen}}
\en{Alice approaches Wonderland as an anthropologist, but maintains a strong sense of noblesse oblige that comes with her class status. She has confidence in her social position, education, and the Victorian virtue of good manners. Alice has a feeling of entitlement, particularly when comparing herself to Mabel, whom she declares has a “poky little house,” and no toys. Additionally, she flaunts her limited information base with anyone who will listen and becomes increasingly obsessed with the importance of good manners as she deals with the rude creatures of Wonderland. Alice maintains a superior attitude and behaves with solicitous indulgence toward those she believes are less privileged.}%
\de{Alice nähert sich dem Wunderland als Anthropologin, behält aber ein starkes Gefühl von noblesse oblige bei, das mit ihrem Klassenstatus einhergeht. Sie hat Vertrauen in ihre soziale Position, Bildung und die viktorianische Tugend der guten Manieren. Alice hat ein Gefühl des Anspruchs, besonders wenn sie sich mit Mabel vergleicht, der sie erklärt, dass sie ein "schäbiges kleines Haus" und kein Spielzeug hat. Darüber hinaus stellt sie ihre begrenzte Informationsbasis mit jedem zur Schau, der zuhören will, und wird zunehmend besessen von der Bedeutung guter Manieren, während sie mit den unhöflichen Kreaturen des Wunderlandes umgeht. Alice behält eine überlegene Haltung und verhält sich mit fürsorglicher Nachsicht gegenüber denen, von denen sie glaubt, dass sie weniger privilegiert sind.}

%%%%%%%%%%%%%%%%%%%%%%
%%%%% ENDBODY %%%%%%%%
Expand Down
11 changes: 10 additions & 1 deletion twentysecondcv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@

\usetikzlibrary{calc}

%%%%%%%%%%%%%%%
%% Languages %%
%%%%%%%%%%%%%%%
\newif\ifen
\newif\ifde

\newcommand{\en}[1]{\ifen#1\fi}
\newcommand{\de}[1]{\ifde#1\fi}

%%%%%%%%%%
% colors %
%%%%%%%%%%
Expand Down Expand Up @@ -245,7 +254,7 @@
\end{tabular}

% about me text
\profilesection{About me}{3.2cm}
\profilesection{\en{About me}\de{Über mich}}{3.2cm}
\givenaboutme

% skills with scale
Expand Down

0 comments on commit 00d6707

Please sign in to comment.