我如何在 LaTeX 中格式化以下内容:
我当前的 LaTeX 代码提供以下内容:
(暂时忘记粗体文字)
我的代码如下:
\documentclass [a4paper,12pt]{report}
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent
%This is used throughout the rest of my paper to create a new paragraph by pressing 'enter' and indenting every paragraph%
\begin{document}
\section{Standards}
\textbf{ASTM:}
D9-12: Standard Terminology Relating to Wood and Wood-Based Products
D198-15: Standard Test Methods of Static Tests of Lumber in Structural Sizes
D1101-97a: Standard Test Methods for Integrity of Adhesive Joints in Structural Laminated Wood Products for Exterior Use
D2559-12a: Standard Specification for Adhesives for Bonded Structural Wood Products for Use Under Exterior Exposure Conditions
D3737-18: Standard Practice for Establishing Allowable Properties for Structural Glued Laminated Timber (Glulam)
D4688-14: Standard Test Method for Evaluating Structural Adhesives for Finger Jointing Lumber
D6874-12: Standard Test Methods for Nondestructive Evaluation of Wood-Based Flexural Members Using Transverse Vibration
D7199-07: Standard Practice for Establishing Characteristic Values for Reinforced Glued Laminated Timber (Glulam) Beams Using Mechanics-Based Models
\end{docuemnt}
我已尝试在每行的开头以及部分的开头\usepackage{changepage}
使用代码。\begin{adjustment}{2cm}{}
我已经尝试过\usepackage{tabto}
- 虽然我可能\tab
在错误的地方使用了
我已经尝试过\quad
我可能尝试过其他替代方案,我只是记不住我尝试过的所有选项。
也许创建一个列表会有效?或者使每个条目都带有theorem
只是amsthm
想知道是否有更快的方法,因为我有几个要做?
答案1
使用自定义description
列表:
\documentclass [a4paper,12pt]{report}
\edef\restoreparindent{\parindent=\the\parindent\relax}
\usepackage{parskip}
\restoreparindent
%This is used throughout the rest of my paper to create a new paragraph by pressing 'enter' and indenting every paragraph%
\usepackage{enumitem}
\setlist[description]{leftmargin=2\parindent,labelindent=\parindent}
\begin{document}
\section{Standards}
\textbf{ASTM:}
\begin{description}
\item[D9-12:] Standard Terminology Relating to Wood and Wood-Based Products
\item[D198-15:] Standard Test Methods of Static Tests of Lumber in Structural Sizes
\item[D1101-97a:] Standard Test Methods for Integrity of Adhesive Joints in Structural Laminated Wood Products for Exterior Use
\item[D2559-12a:] Standard Specification for Adhesives for Bonded Structural Wood Products for Use Under Exterior Exposure Conditions
\item[D3737-18:] Standard Practice for Establishing Allowable Properties for Structural Glued Laminated Timber (Glulam)
\item[D4688-14:] Standard Test Method for Evaluating Structural Adhesives for Finger Jointing Lumber
\item[D6874-12:] Standard Test Methods for Nondestructive Evaluation of Wood-Based Flexural Members Using Transverse Vibration
\item[D7199-07:] Standard Practice for Establishing Characteristic Values for Reinforced Glued Laminated Timber (Glulam) Beams Using Mechanics-Based Models
\end{description}
\end{document}
答案2
结合使用描述环境和adjustwidth
和linegoal
包的解决方案:
\documentclass [a4paper,12pt]{report}
\usepackage{enumitem}
\edef\restoreparindent{\parindent=\the\parindent\relax} \usepackage{parskip}
\restoreparindent
\usepackage{changepage}
\usepackage{etoolbox, linegoal}
%This is used throughout the rest of my paper to create a new paragraph by pressing 'enter' and indenting every paragraph%
\begin{document}
\section{Standards}
\textbf{ASTM:}
\begin{adjustwidth}{}{-\dimexpr\parindent + \labelsep}
\begin{description}[labelindent=1.5em]
\item[D9-12:]\parbox[t]{\linegoal}{Standard Terminology Relating to Wood and Wood-Based Products}
\item[D198-15:] \parbox[t]{\linegoal}{Standard Test Methods of Static Tests of Lumber in Structural Sizes}
\item[D1101-97a:]\parbox[t]{\linegoal }{Standard Test Methods for Integrity of Adhesive Joints in Structural
Laminated Wood Products for Exterior Use}
\item[D2559-12a:] \parbox[t]{\linegoal}{Standard Specification for Adhesives for Bonded Structural Wood
Products for Use Under Exterior Exposure Conditions}
\item[D3737-18:] \parbox[t]{\linegoal}{Standard Practice for Establishing Allowable Properties for Structural
Glued Laminated Timber (Glulam)}
\item[D4688-14:] \parbox[t]{\linegoal}{Standard Test Method for Evaluating Structural Adhesives for Finger
Jointing Lumber}
\item[D6874-12:] \parbox[t]{\linegoal}{Standard Test Methods for Nondestructive Evaluation of Wood-Based
Flexural Members Using Transverse Vibration}\null
\item[D7199-07:]\parbox[t]{\linegoal}{Standard Practice for Establishing Characteristic Values for Reinforced
Glued Laminated Timber (Glulam) Beams Using Mechanics-Based Models}
\end{description}
\end{adjustwidth}
\end{document}