Moderncv 左列中的文字與右列重疊

Moderncv 左列中的文字與右列重疊

我試圖編譯一份簡歷,但我無法弄清楚為什麼只有第二行有疊加的文本。下面是程式碼。

\documentclass{moderncv}
\moderncvtheme[blue]{casual}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\firstname{Abhilash}
\familyname{Sukumari}
\email{[email protected]}
\homepage{www.asn.web.nsce}

\newcommand\Colorhref[3][cyan]{\href{#2}{\small\color{#1}#3}}

\begin{document}
\maketitle
\section{Professional network}

\cvline{Linkedin.com}        {\Colorhref{http://www.linkedin.com/pub/abhilash-sukumari/10/8a6/1a4}             {abhilash sukumari}   - Professional profile and links.    }
\cvline{Stackoverflow.com}       {\small\href{http://stackoverflow.com/users/51197/adam-matan}             {Adam Matan}   - My software questions and answers. } 
\cvline{twitter.com}         {\Colorhref[red]{http://twitter.com/justnoticed}{@justnoticed} - My tech tweets.}

\end{document}

這是我得到的輸出的快照。

輸出

答案1

變更\hintscolumnwidth為有效的值,例如 3cm。您可以在大量註釋中找到這一點以及更多內容template.tex作為moderncv文檔。

\documentclass{moderncv}
\moderncvtheme[blue]{casual}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\firstname{Abhilash}
\familyname{Sukumari}
\email{[email protected]}
\homepage{www.asn.web.nsce}

\newcommand\Colorhref[3][cyan]{\href{#2}{\small\color{#1}#3}}

\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates

\begin{document}
\maketitle
\section{Professional network}

\cvline{Linkedin.com}        {\Colorhref{http://www.linkedin.com/pub/abhilash-sukumari/10/8a6/1a4}             {abhilash sukumari}   - Professional profile and links.    }
\cvline{Stackoverflow.com}       {\small\href{http://stackoverflow.com/users/51197/adam-matan}             {Adam Matan}   - My software questions and answers. } 
\cvline{twitter.com}         {\Colorhref[red]{http://twitter.com/justnoticed}{@justnoticed} - My tech tweets.}

\end{document}

輸出

相關內容