[問題] 關於margin的問題
想請問關於margin的問題,我使用的是XeLaTeX
以下是我的程式碼
\documentclass[twoside,12pt]{article}
\usepackage[parfill]{parskip}
\usepackage{layout}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
\font\lih="LiHei Pro" at 10pt
\font\optima="Optima" at 10pt
\begin{document}
\oddsidemargin =2.6cm
\evensidemargin=1cm
\paperwidth = 27.3cm
\paperheight = 21.1cm
\textheight= 24.2cm
\layout
\optima
\paragraph{{Section 1}}
It looks as if all the pieces of the puzzle are coming together,
Mark Regev, a spokesman for Prime Minister Ehud Olmert, said Friday. “There
will be discussions tomorrow morning, and it looks like a cabinet meeting will
take place tomorrow night. Everyone is very upbeat.”
Meanwhile, Israeli tank fire killed two boys at a United Nations-run school
on Saturday in the northern Gaza Strip town of Beit Lahiya, a U.N. official
told Reuters. Adnan Abu Hasna, a spokesman for the U.N. Relief and Works
Agency, said two brothers had been killed and 14 people had been wounded in
the attack, including the boys' mother. An Israeli army spokesman said that
he was checking the report.
\paragraph{Section 2}
\paragraph{Section 3}
\paragraph{Section 4}
\paragraph{Section 5}
\end{document}
根據這樣設定後,跑出的pdf檔,用layout跑出來的是 奇數頁
1 one inch + \hoffset 2 one inch + \voffset
3 \oddsidemargin = 17pt 4 \topmargin = 17pt
5 \headheight = 12pt 6 \headsep = 25pt
7 \textheight = 548pt 8 \textwidth = 390pt
9 \marginparsep = 10pt 10 \marginparwidth = 95pt
11 \footskip = 30pt \marginparpush = 7pt (not shown)
\hoffset = 0pt \voffset = 0pt
\paperwidth = 614pt \paperheight = 794pt
偶數頁
1 one inch + \hoffset 2 one inch + \voffset
3 \evensidemargin = 62pt 4 \topmargin = 17pt
5 \headheight = 12pt 6 \headsep = 25pt
7 \textheight = 548pt 8 \textwidth = 390pt
9 \marginparsep = 10pt 10 \marginparwidth = 95pt
11 \footskip = 30pt \marginparpush = 7pt (not shown)
\hoffset = 0pt \voffset = 0pt
\paperwidth = 614pt \paperheight = 794pt
不過實際上在pdf上用尺規的結果,奇數頁時內文距離左側頁緣為 2 inches,
距離上側頁緣約1.75 inches。
偶數頁時內文距離左側頁緣為1.25 inches,距離上側頁緣1.75 inches。
想請問不知道我的preamblr是不是有什麼地方設錯了呢??
謝謝!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.78
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章