履歴書の余白の長さを変更する方法

履歴書の余白の長さを変更する方法

私は、この履歴書を40秒テンプレートテンプレートはとても気に入っていますが、右マージンが小さすぎると思います。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 <<<<<<<<<<<<<<<<<
}

1つの

コードは次のように始まるはずです

% !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}

関連情報