我的论文快要完成了,但我意识到我需要 1.5 倍行距和 12pt 字体大小。当我从 切换\documentclass[table]{article}
到\documentclass[table, 12pt]{article}
并使用 时\renewcommand{\baselinestretch}{1.5}
,它会影响我的所有表格,我不想再次开始编辑我的表格。是否可以在不影响表格的情况下更改字体大小和行距?
这是我的所有包裹的清单:
\documentclass[table]{article}
% Importing document settings from our file "packages.sty"
\usepackage{packages}
\usepackage{amsmath}
\usepackage{tocloft}
\usepackage{tabularx}
\newlistof{equations}{eqn}{\Large List of Equations}
\usepackage{float}
\usepackage{romannum}
\usepackage{subscript}
\usepackage{multirow}
\usepackage{array} % Legg til array-pakken for tilpasset kolonnetype
\usepackage{xcolor}
\definecolor{lightblue}{RGB}{173,216,230} % Definer lys blå farge
\definecolor{lightgray}{RGB}{211,211,211} % Definer lys grå farge
\usepackage{makecell}
\makeatletter
\newcommand{\speciallabel}[2]{% \speciallabel{<stuff>}{<label>}
\edef\@currentlabel{#1}\label{#2}%
}
答案1
我建议您在序言中运行以下代码:
\usepackage{etoolbox} % for '\AtBeginEnvironment' macro
\AtBeginEnvironment{table}{\fontsize{10}{12}\selectfont}
\AtBeginEnvironment{tabular}{\fontsize{10}{12}\selectfont}
% ditto for any 'tabularx', 'tabular*', etc environments
\usepackage[nodisplayskipstretch]{setspace}
\setstretch{1.5} % this doesn't affect the line spacing in 'table' environments