在个人资料部分添加中等个人资料

在个人资料部分添加中等个人资料

我想添加我的中等的profile 在我的简历的个人部分。鉴于这是我第一次使用 TeX,有什么办法可以做到这一点。由于支持 Font Awesome,所以我添加了以下几行:

\newcommand{\mediumsymbol}{\famedium}
\newcommand{\medium}[1]{\printinfo{\mediumsymbol}{#1}} 

但这会引发错误。此外,个人部分中的链接间距不均等。有什么方法可以纠正它吗?

\personalinfo{%

  \email{[email protected]}
  \location{XYZ}
  \twitter{@abc}
  \linkedin{linkedin.com/in/abc}
   \github{github.com/abc}

编辑:正如评论中指出的那样,我提供了我在背面使用的文件的片段:

\documentclass[10pt,a4paper,ragged2e]{altacv}

%% AltaCV uses the fontawesome and academicon fonts
%% and packages.
%% See texdoc.net/pkg/fontawecome and http://texdoc.net/pkg/academicons for full list of symbols. You MUST compile with XeLaTeX or LuaLaTeX if you want to use academicons.

% Change the page layout if you need to
\geometry{left=2cm,right=10cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm}

% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
  % If using xelatex or lualatex:
  \setmainfont{Carlito}
\else
  % If using pdflatex:
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage[default]{lato}
\fi

% Change the colours if you want to
\definecolor{VividPurple}{HTML}{000000}
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{2E2E2E}
\colorlet{heading}{VividPurple}
\colorlet{accent}{VividPurple}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}

% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}

%% sample.bib contains your publications
\addbibresource{sample.bib}

\begin{document}
\name{abc}
\tagline{AAAA}
% Cropped to square from https://en.wikipedia.org/wiki/Marissa_Mayer#/media/File:Marissa_Mayer_May_2014_(cropped).jpg, CC-BY 2.0
%\photo{3.3cm}{profile.jpg}
\personalinfo{%
  % Not all of these are required!
  % You can add your own with \printinfo{symbol}{detail}
  \email{[email protected]}
%   \phone{000-00-0000}
%  \mailaddress{Address, Street, 00000 County}
  \location{loc}
  \medium{meidum.com/abc}
%  \twitter{@marissamayer}
  \linkedin{linkedin.com/in/abc}
   \github{github.com/abc} % I'm just making this up though.
%   \orcid{orcid.org/0000-0000-0000-0000} % Obviously making this up too. If you want to use this field (and also other academicons symbols), add "academicons" option to \documentclass{altacv}
}

答案1

嗯,您没有告诉我们您遇到的错误。请务必添加您收到的完整错误消息,以帮助我们帮助您……

基于你的悲伤不可编译的代码片段(迫使我们猜测你在做什么,这不是帮助你的一个好起点......)我可以猜出你的台词

\newcommand{\mediumsymbol}{\famedium} % <===============================

抛出错误,即控制序列famedium未定义。当然,因为定义的正确命令fontawesome\faMedium(见大写字母 M):

\newcommand{\mediumsymbol}{\faMedium} % <===============================

我向您的代码片段添加了缺失的代码以使其可编译,请参阅以下可编译的 MWE(没有错误):

\documentclass[10pt,a4paper,ragged2e]{altacv}

%% AltaCV uses the fontawesome and academicon fonts
%% and packages.
%% See texdoc.net/pkg/fontawecome and http://texdoc.net/pkg/academicons for full list of symbols. You MUST compile with XeLaTeX or LuaLaTeX if you want to use academicons.

% Change the page layout if you need to
\geometry{left=2cm,right=10cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm}

% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
  % If using xelatex or lualatex:
  \setmainfont{Carlito}
\else
  % If using pdflatex:
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage[default]{lato}
\fi

% Change the colours if you want to
\definecolor{VividPurple}{HTML}{000000}
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{2E2E2E}
\colorlet{heading}{VividPurple}
\colorlet{accent}{VividPurple}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}

% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}

%% sample.bib contains your publications
\addbibresource{sample.bib}

\newcommand{\mediumsymbol}{\faMedium} % <===============================
\newcommand{\medium}[1]{\printinfo{\mediumsymbol}{#1}} 


\begin{document}
\name{abc}
\tagline{AAAA}
% Cropped to square from https://en.wikipedia.org/wiki/Marissa_Mayer#/media/File:Marissa_Mayer_May_2014_(cropped).jpg, CC-BY 2.0
%\photo{3.3cm}{profile.jpg}
\personalinfo{%
  % Not all of these are required!
  % You can add your own with \printinfo{symbol}{detail}
  \email{[email protected]}
%   \phone{000-00-0000}
%  \mailaddress{Address, Street, 00000 County}
  \location{loc}
  \medium{meidum.com/abc}
%  \twitter{@marissamayer}
  \linkedin{linkedin.com/in/abc}
   \github{github.com/abc} % I'm just making this up though.
%   \orcid{orcid.org/0000-0000-0000-0000} % Obviously making this up too. If you want to use this field (and also other academicons symbols), add "academicons" option to \documentclass{altacv}
}

%% Make the header extend all the way to the right, if you want.
\begin{fullwidth}
\makecvheader
\end{fullwidth}

%% Depending on your tastes, you may want to make fonts of itemize environments slightly smaller
\AtBeginEnvironment{itemize}{\small}

\cvsection{Experience} % [mmayer-p1sidebar]

\cvevent{President \& CEO}{Yahoo!}{July 2012 -- Ongoing}{Sunnyvale, CA}
\begin{itemize}
\item Led the \$5 billion acquisition of the company with Verizon -- the entity which believed most in the immense value Yahoo!\ has created
\item Acquired Tumblr for \$1.1 billion and moved the company's blog there
\item Built Yahoo's mobile, video and social businesses from nothing in 2011 to \$1.6 billion in GAAP revenue in 2015
\item Tripled the company's mobile base to over 600 million monthly active users and generated over \$1 billion of mobile advertising revenue last year
\end{itemize}

\divider

\cvevent{Vice President of Location \& Services}{Google}{Oct 2010 -- July 2012}{Palo Alto, CA}
\begin{itemize}
\item Position Google Maps as the world leader in mobile apps and navigation
\item Oversaw 1000+ engineers and product managers working on Google Maps, Google Places and Google Earth
\end{itemize}

\divider

\cvevent{Vice President of Search Products \& UX}{Google}{2005 --  2010}{Palo Alto, CA}

\divider

\cvevent{Product Manager \& UI Lead}{Google}{Oct 2001 -- July 2005}{Palo Alto, CA}

\begin{itemize}
\item Appointed by the founder Larry Page in 2001 to lead the Product Management and User Interaction teams
\item Optimized Google's homepage and A/B tested every minor detail to increase usability (incl.~spacing between words, color schemes and pixel-by-pixel element alignment)
\end{itemize}

\cvsection{A Day of My Life}

\wheelchart{1.5cm}{0.5cm}{%
  10/10em/accent!30/Sleeping \& dreaming about work,
  25/9em/accent!60/Public resolving issues with Yahoo!\ investors,
  5/13em/accent!10/\footnotesize\\[1ex]New York \& San Francisco Ballet Jawbone board member,
  20/15em/accent!40/Spending time with family,
  5/8em/accent!20/\footnotesize Business development for Yahoo!\ after the Verizon acquisition,
  30/9em/accent/Showing Yahoo!\ employees that their work has meaning,
  5/8em/accent!20/Baking cupcakes
}
\end{document} 

及其结果:

结果

正如您所看到的,使用更正后的代码,个人部分中的链接间距相等。不要误解简短的意思loc,它会产生间距不相等的视觉错觉……

相关内容