如何更改履歷頁邊距的長度

如何更改履歷頁邊距的長度

我正在使用此簡歷四十秒模板。我真的很喜歡這個模板,但我發現右邊距太小了。我想將其更改為大於 0.002,但是按照程式碼的編寫方式,如果我更改該值,它也會更改左邊距,在我看來,這沒有問題。那麼,有沒有辦法讓左邊距為 0.002,右邊距為 0.004?

%set page margins
\newlength\sidebarwidth%
\newlength\topbottommargin%
\newlength\leftrightmargin%
\newlength\sidebartextwidth
% default values
\setlength{\sidebarwidth}{0.34\paperwidth}
\setlength{\topbottommargin}{0.02\paperheight}
\setlength{\leftrightmargin}{0.02\paperwidth}
% user overwrites
\DeclareOptionX{sidebarwidth}{\setlength{\sidebarwidth}{#1}}
\DeclareOptionX{topbottommargin}{\setlength{\topbottommargin}{#1}}
\DeclareOptionX{leftrightmargin}{\setlength{\leftrightmargin}{#1}}

多謝

答案1

添加後\documentclass[ ....

\geometry{% added <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    top=\topbottommargin,
    bottom=\topbottommargin,
    left=\sidebarwidth + \leftrightmargin,
    right=0.04\paperwidth, % set the right margin <<<<<<<<<<<<<<<<<
}

A

您的程式碼現在應該開始為

% !TeX TS-program = xelatex

\documentclass[
    a4paper,
     showframes, % ONLY to show the margins <<<<<<<<<<<<<<<<
]{fortysecondscv}


\geometry{
    top=\topbottommargin,
    bottom=\topbottommargin,
    left=\sidebarwidth + \leftrightmargin,
    right=0.04\paperwidth, % set the right margin <<<<<<<<<<<<<<<<<
}

......

側(左)寬度可以從類別選項中更改,例如:

\documentclass[
    a4paper,
    showframes, % ONLY to show the margins <<<<<<<<<<<<<<<<
    sidebarwidth=0.4\paperwidth,
]{fortysecondscv}

相關內容