Skip to content

Instantly share code, notes, and snippets.

@rinx
Created February 9, 2013 05:12
Show Gist options
  • Save rinx/4743925 to your computer and use it in GitHub Desktop.
Save rinx/4743925 to your computer and use it in GitHub Desktop.
\documentclass[a4paper,11pt]{ltjarticle}
% 余白調整
% TOP = 1inch + \voffset + \topmargin + \headheight + \headsep
% BOTTOM = \paperheight - TOP - \textheight
\setlength{\textheight}{\paperheight} %紙面縦幅を本文領域に
\setlength{\topmargin}{4.6truemm} %上部余白を30mm(=1inch+4.6mm)に
\addtolength{\topmargin}{-\headheight}
\addtolength{\topmargin}{-\headsep}
\addtolength{\textheight}{-60truemm} %下部余白を30mmに
% LEFT = 1inch + \hoffset + \oddsidemargin
% RIGHT = \paperwidth - LEFT - \textwidth
\setlength{\textwidth}{\paperwidth} %紙面横幅を本文領域に
\setlength{\oddsidemargin}{4.6truemm} %左余白を30mm(=1inch+4.6mm)に
\setlength{\evensidemargin}{4.6truemm}
\addtolength{\textwidth}{-60truemm} %右余白を30mmに
\renewcommand{\baselinestretch}{1.0} %行間を1.0倍に
\begin{document}
%本文
\end{document}
@rinx
Copy link
Author

rinx commented Feb 9, 2013

lualatex(もしくはその他tex)使用時の余白調整テンプレートとして

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment