CVPR_Template icon indicating copy to clipboard operation
CVPR_Template copied to clipboard

Why is the content not horizontally centered in the page? It is slightly left tilted

Open PeterL1n opened this issue 1 year ago • 2 comments

Look at the margin of the page. The left margin is smaller than the right margin. The whole content is left tilted. Can we fix this thing? Bugging me like crazy...

PeterL1n avatar Feb 17 '24 09:02 PeterL1n

已收到邮件,谢谢

hust-lidelong avatar Feb 17 '24 09:02 hust-lidelong

Ah I figured it out.

Here is the problem: https://github.com/MCG-NKU/CVPR_Template/blob/15c2d748f9da8c2aed1913acb15a9f104f3f5184/cvpr.cls#L435

You gotta change

\setlength{\oddsidemargin}{-0.304in}
\setlength{\evensidemargin}{-0.304in}

to

\setlength{\oddsidemargin}{-0.1875in}
\setlength{\evensidemargin}{-0.1875in}

The old margin value was designed for a4paper, but our document is actually a letterpaper!

Letterpaper width is 8.5in, our textwidth is defined as 6.875in, so the margin on each side should be (8.5-6.875)/2=0.8125. The default margin is 1in, therefore we need to subtract 1-0.8125=0.1875in!!

PeterL1n avatar Feb 17 '24 10:02 PeterL1n