基本上我得到了这个代码:
\documentclass{article}
\setlength{\arrayrulewidth}{0.5mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{2.5}
\usepackage{longtable}
\usepackage{array}
\usepackage{booktabs}
\usepackage{url}
\setlength\arrayrulewidth{1pt}
\setlength\tabcolsep{1pt}
\renewcommand\arraystretch{1.5}
\newenvironment{mylongtable}[2]{%
\begin{longtable}{@{\hspace{1em}}#1@{}}
#2}
{
\end{longtable}%
}\setlength\columnwidth{1pt}
\setlength\columnsep{10pt}
\newcommand\myLTleftcolumnwidth{\dimexpr\textwidth*0.1}
\newcommand\myvline{\vrule width 1pt}
\setlength{\parindent}{0pt}
\begin{document}
\begin{mylongtable}{@{}
>{\raggedright\arraybackslash}p{0.6\columnwidth} |
>{\raggedright\arraybackslash}p{0.4\columnwidth}@{}}
\toprule
\begin{minipage}[b]{\linewidth}\raggedright
\large
Gruppenrichtlinieneinstellung
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
\large
Empfohlene Option
\end{minipage} \\
\endhead
\emph{Pfad:}
\path{Computer Configuration\Policies\Administrative Templates\Windows Components\Microsoft Defender Application Guard} & \\
Allow camera and microphone access in Microsoft Defender Application Guard & Disabled \\
Allow auditing events in Microsoft Defender Application Guard & Enabled \\
Allow data persistence for Microsoft Defender Application Guard & Disabled \\
\end{mylongtable}
\end{document}
目前,基本上所有内容都左对齐并粘在边框上,在我看来这看起来真的很糟糕。
我的问题是:如何将每个单元格中的所有内容向右移动 1em?(抱歉代码太差了,3 天前开始使用 LaTeX)