我复制了这些 latex 文件以生成 11pt 字体摘要,但似乎其中有额外的注释,缩小了最终 pdf 文档的大小。我很难找到负责它的命令,我希望得到一些帮助。
我能识别的唯一一行代码是,\tiny
但即使删除它并检查字体大小后,它们仍然不是 11 号。
是否有一行代码可以重置所有设置并强制其为 11 pt?
\documentclass[11pt,a4paper,landscape]{article}
\usepackage{multicol}
\usepackage{calc}
\usepackage{ifthen}
\usepackage[landscape]{geometry}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathstyle}
\usepackage{mathtools}
\usepackage{commath}
% \usepackage{enumerate}
\usepackage{enumitem}
\usepackage{siunitx}
\usepackage{fancyhdr}
\usepackage{extramarks}
\usepackage{titlesec}
\usepackage{listings}
\usepackage{amssymb}
\usepackage{bm}
\usepackage[usenames,dvipsnames]{color}
\usepackage{subfig}
\usepackage{booktabs}
\usepackage{float}
\usepackage{comment}
\ifthenelse{\lengthtest { \paperwidth = 11in}}
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
{\geometry{top=0.4cm,left=0.4cm,right=0.4cm,bottom=0.4cm} }
{\geometry{top=0.4cm,left=0.4cm,right=0.4cm,bottom=0.4cm} }
}
%
% Table Settings
%
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\ifthenelse{\lengthtest { \paperwidth = 11in}}
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
{\geometry{top=0.5cm,left=0.5cm,right=0.5cm,bottom=0.5cm} }
{\geometry{top=0.5cm,left=0.5cm,right=0.5cm,bottom=0.5cm} }
}
\newcommand{\specialcell}[2][c]
{
\begin{tabular}[#1]{@{} c @{}}
#2
\end{tabular}
}
% Turn off header and footer
\pagestyle{empty}
% Redefine section commands to use less space
\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0mm}%
{-1ex plus -.5ex minus -.2ex}%
{0.5ex plus .2ex}%x
{\normalfont\tiny\bfseries}}
% {\normalfont\large\bfseries\sc}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}%
{-1explus -.5ex minus -.2ex}%
{0.5ex plus .2ex}%
{\normalfont\tiny\bfseries}}
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}%
{-1ex plus -.5ex minus -.2ex}%
{1ex plus .2ex}%
{\normalfont\tiny\bfseries}}
\makeatother
% % Define BibTeX command
% \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
% T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
% Don't print section numbers
% \setcounter{secnumdepth}{0}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0pt plus 0.5ex}
%
% Custom Math Operators
%
\DeclareMathOperator{\sinc}{sinc}
\DeclareMathOperator{\rect}{rect}
\DeclareMathOperator{\tri}{tri}
\DeclareMathOperator{\bias}{bias}
\DeclareMathOperator{\se}{se}
\DeclareMathOperator{\mse}{MSE}
\DeclareMathOperator{\ar}{arg}
\DeclareMathOperator{\E}{\mathbb{E}\!}
\DeclareMathOperator{\EE}{\mathbb{E}}
\DeclareMathOperator{\V}{\mathbb{V}\!}
\DeclareMathOperator{\p}{\mathbb{P}\!}
\DeclareMathOperator{\pp}{\mathbb{P}}
\DeclareMathOperator{\dd}{\mathrm{d}\!}
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\argmax}{argmax}
\newcommand{\pfrac}[2]{\left(\frac{#1}{#2}\right)}
% My definitions
\def\*#1{\mathbf{#1}}
\def\L{\mathcal{L}}
\def\N{\mathcal{N}}
\usepackage{enumitem}
\setlist{leftmargin=10pt,topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex}
\def\labelitemi{--}
% -----------------------------------------------------------------------
\makeatletter
\newenvironment{myalign*}{%
\setlength{\abovedisplayskip}{2pt}%
\setlength{\belowdisplayskip}{2pt}%
\start@align\@ne\st@rredtrue\m@ne
}%
{\endalign}
\makeatother
\begin{document}
\raggedright
\footnotesize
\begin{multicols*}{5}
% multicol parameters
% These lengths are set only within the two main columns
\setlength{\columnseprule}{0.25pt}
% \def\columseprulecolor{\color{myblue}}
\setlength{\premulticols}{1pt}
\setlength{\postmulticols}{1pt}
\setlength{\multicolsep}{1pt}
\setlength{\columnsep}{2pt}
\begin{center}
\small{\textbf{PCML Cheat Sheet}} \\
\end{center}
\tiny
\input{summary}
\end{multicols*}
\end{document}
答案1
\footnotesize
在第 135 行。您应该注释掉或者删除它。
在\small{\textbf{PCML Cheat Sheet}}
第 148 行。