我正在做我的简历,在语言部分,我想填写 6 个级别而不是 5 个;有人知道可以做到这一点的软件包或如何修改 \cvskill 以拥有 6 个级别(6 个圆圈)吗?
谢谢你!
\documentclass[10pt,a4paper,ragged2e,withhyper]{altacv}
\geometry{left=1.25cm,right=1.25cm,top=1.5cm,bottom=1.5cm,columnsep=1.2cm}
\usepackage{paracol}
\usepackage{csquotes}
\usepackage[portuguese]{babel}
% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
% If using xelatex or lualatex:
\setmainfont{Roboto Slab}
\setsansfont{Lato}
\renewcommand{\familydefault}{\sfdefault}
\else
% If using pdflatex:
\usepackage[rm]{roboto}
\usepackage[defaultsans]{lato}
% \usepackage{sourcesanspro}
\renewcommand{\familydefault}{\sfdefault}
\fi
% Change the colours if you want to
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{666666}
\definecolor{EagleGreen}{HTML}{104F55}
\definecolor{Myrtle}{HTML}{32746D}
\definecolor{CambridgeBlue}{HTML}{9EC5AB}
\colorlet{name}{black}
\colorlet{tagline}{Myrtle}
\colorlet{heading}{EagleGreen}
\colorlet{headingrule}{CambridgeBlue}
\colorlet{subheading}{Myrtle}
\colorlet{accent}{Myrtle}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}
% Change some fonts, if necessary
\renewcommand{\namefont}{\Huge\rmfamily\bfseries}
\renewcommand{\personalinfofont}{\footnotesize}
\renewcommand{\cvsectionfont}{\LARGE\rmfamily\bfseries}
\renewcommand{\cvsubsectionfont}{\large\bfseries}
% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}
%% Use (and optionally edit if necessary) this .tex if you
%% want to use an author-year reference style like APA(6)
%% for your publication list
\input{pubs-authoryear}
%% Use (and optionally edit if necessary) this .tex if you
%% want an originally numerical reference style like IEEE
%% for your publication list
% \input{pubs-num}
%% sample.bib contains your publications
\addbibresource{sample.bib}
然后我有开始{document}
(...)
\cvsection{Languages}
\cvskill{Portuguese (Native)}{5}
\divider
\cvskill{English (IELTS)}{5}
\divider
\cvskill{Spanish}{3}
\divider
答案1
该\cvskill
命令使用从 1 到 5 的 for 循环进行定义。您可以将其更改为从 1 到 6 的 for 循环。
为此,您可以从类文件(从 中的第 312 行altacv.cls
)复制此命令的原始定义,将该定义放入您自己的文档中,然后将数字 5 更改为 6。但是,由于您想覆盖原始定义,因此需要使用\renewcommand
而不是\newcommand
。您可以将重新定义放在序言中的任何位置,例如 上方\begin{document}
。
梅威瑟:
\documentclass[10pt,a4paper,ragged2e,withhyper]{altacv}
\geometry{left=1.25cm,right=1.25cm,top=1.5cm,bottom=1.5cm,columnsep=1.2cm}
\usepackage{paracol}
\usepackage{csquotes}
\usepackage[portuguese]{babel}
% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
% If using xelatex or lualatex:
\setmainfont{Roboto Slab}
\setsansfont{Lato}
\renewcommand{\familydefault}{\sfdefault}
\else
% If using pdflatex:
\usepackage[rm]{roboto}
\usepackage[defaultsans]{lato}
% \usepackage{sourcesanspro}
\renewcommand{\familydefault}{\sfdefault}
\fi
% Change the colours if you want to
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{666666}
\definecolor{EagleGreen}{HTML}{104F55}
\definecolor{Myrtle}{HTML}{32746D}
\definecolor{CambridgeBlue}{HTML}{9EC5AB}
\colorlet{name}{black}
\colorlet{tagline}{Myrtle}
\colorlet{heading}{EagleGreen}
\colorlet{headingrule}{CambridgeBlue}
\colorlet{subheading}{Myrtle}
\colorlet{accent}{Myrtle}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}
% Change some fonts, if necessary
\renewcommand{\namefont}{\Huge\rmfamily\bfseries}
\renewcommand{\personalinfofont}{\footnotesize}
\renewcommand{\cvsectionfont}{\LARGE\rmfamily\bfseries}
\renewcommand{\cvsubsectionfont}{\large\bfseries}
% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}
\renewcommand{\cvskill}[2]{%
\textcolor{emphasis}{\textbf{#1}}\hfill
\BeginAccSupp{method=plain,ActualText={#2}}
\foreach \x in {1,...,6}{%
\ifdimequal{\x pt - #2 pt}{0.5pt}%
{\clipbox*{0pt -0.25ex {.5\width} {\totalheight}}{\color{accent}\ratingmarker}%
\clipbox*{{.5\width} -0.25ex {\width} {\totalheight}}{\color{body!30}\ratingmarker}}
{\ifdimgreater{\x bp}{#2 bp}{\color{body!30}}{\color{accent}}\ratingmarker}%
}\EndAccSupp{}\par%
}
\begin{document}
\name{Person Name}
\tagline{Guten Tag}
\personalinfo{on need to know basis}
\makecvheader
\columnratio{0.6}
% Start a 2-column paracol. Both the left and right columns will automatically
% break across pages if things get too long.
\begin{paracol}{2}
\cvsection{Languages}
\cvskill{Portuguese (Native)}{6}
\divider
\cvskill{English (IELTS)}{5}
\divider
\cvskill{Spanish}{2}
\divider
\end{paracol}
\end{document}
结果: