이력서 여백 길이를 변경하는 방법

이력서 여백 길이를 변경하는 방법

저는 다음을 사용하여 이 이력서를 작성하고 있습니다.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 <<<<<<<<<<<<<<<<<
}

ㅏ

이제 코드는 다음과 같이 시작됩니다.

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

관련 정보