latex设置页面大小边距行距等

来源

开题中期毕业论文写作,但是找到的模板页边距等太大,需要调整。

设置行距

  • 方法一
\usepackage{setspace}                   % set line space
\linespread{1.25}
  • 方法二
    这个是我的模板默认的,不清楚需要啥 package
% \doublespacing            % setting line space

设置页边距

  • 方法一
\usepackage[a4paper]{geometry}
\geometry{left=0.5cm, right=0.5cm, top=0.5cm, bottom=0.5cm,}
\setlength{\footskip}{3cm}
% 另外一种调用方式
% \usepackage[paperwidth=5.5in, paperheight=8.5in]{geometry}
  • 方法二
    这个不需要 package
    这个链接有详细介绍
% 设置上边和左边留白,还有正文高度和宽度
% \columnsep                          % 列间距
\topmargin              0.0 cm        % 页眉到页边的距离
\topskip                0.5 cm        % 页眉与正文的距离
\textheight             23 cm         % 正文的高度
\textwidth              17 cm         % 文本的宽度
\hoffset                -1 cm          % 左侧到 oddsidemargin 距离
% \marginparwidth           1 cm          % 右侧空白
% \oddsidemargin                      % 奇数页的左面页边距
% \evensidemargin                     % 偶数页的左面页边距

%% 段落
% \parindent                          % 段落缩进距离
% \parskip                            % 段落间的距离
% % 浮动图表
% \floatsep                           % 浮动对象之间的距离
% \textfloatsep                       % 最后一个浮动对象顶端或第一个浮动对象底端与正文之间的距离
% \intextsep                          % 文中浮动顶端与底端所留的距离
% \dbltextfloatsep                    % 是在双列输出时用 \textfloatsep 的数值
% \dblfloatsep                        % 是在双列输出时用 \floatsep 的数值
% \abovecaptionskip                   % 标题上方的距离
% \belowcaptionskip                   % 标题下方的距离


我的引言区


% ************************************  Table  ************************************ 
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tabularx,ragged2e,caption}
% \RequirePackage{ctable}
\usepackage{dcolumn}
\usepackage{array}
\usepackage{multicol}
\usepackage{makecell}
% \usepackage{array, booktabs, tabularx,makecell}   % may solve '\multirowcell' problem
% enable line break in table cell
\newcommand{\specialcell}[2][c]{\begin{tabular}[#1]{@{}r@{}}#2\end{tabular}}
\RequirePackage{pdflscape}              % landscape environment


% ************************************  Math  ************************************ 
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{textcomp}           %generic commands \degree,\celsius,\perthousand,\micro and \ohm
\usepackage{gensymb}
\usepackage{leftidx}             %Left and right subscripts and superscripts in math mode
\usepackage{mathptmx}
% double brackets like \llbracket
\usepackage{stmaryrd}



% ************************************  Figure  ************************************ 
\usepackage{graphicx}                       % figure
\graphicspath{{images/}{../images/}}
              
\usepackage{epsfig} %% for loading postscript figures
\usepackage{subfig} 

\usepackage{times}
\usepackage{url}
\usepackage{latexsym}



% ************************************  tikz  ************************************ 
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{trees}




% *********************************** Emphasize  ***********************************
\usepackage{color,xcolor}                 % color of text
\usepackage{soul}                         % Strikethrough text
\usepackage{ulem}                         % underline



% ****************************** CITATION PACKAGES *********************************
\usepackage{cite}
\usepackage{dsfont}
\normalem	            % cancel the underline in the reference section




% ******************************     Others      *********************************
\usepackage{microtype}              % solve overfull \hbox problem
\usepackage{indentfirst}            % space in front of paragraph
\setlength{\parindent}{2em}         % 2em代表首行缩进两个字符


  • 5
    点赞
  • 31
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值