
我如何在 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}