parbox 的垂直对齐方式如下

parbox 的垂直对齐方式如下

我想垂直对齐所有 parbox,以便左角与左侧的日期等距偏移

\documentclass{article} 
\usepackage{enumitem}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{tabularx}
\renewcommand*\familydefault{\sfdefault}


\begin{document}
                \begin{center}{\large \textbf{HANDING / TAKING OVER}}\end{center}
            \begin{description}         

\item AON for CHT
\subitem 11 Nov 2019--\parbox{\textwidth}{Preetha check progress with IFA}
\subitem 12 Nov 2019--\parbox{\textwidth}{Preetha to liaise with IFA}
\subitem 14 Nov 2019--\parbox{\textwidth}{ IFA has asked to come on next Wednesday}

\item Video Conferencing with ADGQA
\subitem 13 Nov 2019--\parbox[t]{\textwidth}{ pts for discussion}
\subsubitem Padmavathy for Digital DGQA--\parbox[t]{\textwidth}{She will be available for guidance but Kannan should take over \\--if required he can got to Bangalore}
\subsubitem Component Level Repair CLR--\parbox[t]{\textwidth}{  83 items\\{-- }to be decided by CQAL, Bangalore\\Action by Debnath}
\subsubitem FR 56j--\parbox[t]{\textwidth}{  List upto Jun 2020 to be sent \\{--}list again faxed on 14 Nov 2019\\ Vishwanath case--decision already conveyed as told by Col Vibhor}
\subsubitem Cover assembly BMP--\parbox[t]{\textwidth}{  2017 pending?\\ FFT?\\ Delay to be pinpointed \\Delay in G1 Form? \\Action by Kambli}
\subsubitem Digital DGQA--\parbox{\textwidth}{  Action by  --Kannan}
\end{description}
\end{document}

编辑:回复@Johannes_B:没有编译,只需运行它就可以编译——从屏幕截图中抛出下面的图像

在此处输入图片描述

代码No Error No Warnings如下所示

在此处输入图片描述

答案1

我擅自调整了分隔线。我从article.cls 中的和--定义中获得了 20pt 和 30pt 。\subitem\subsubitem

\documentclass{article} 
\usepackage{enumitem}
\usepackage[showframe]{geometry}% use showframe for debugging only
\usepackage{xcolor}
\usepackage{tabularx}
\renewcommand*\familydefault{\sfdefault}

\newlength{\datewidth}
\settowidth{\datewidth}{\begin{tabular}{@{}l@{}}% overkill
  11 Nov 2019-- \\
  12 Nov 2019-- \\
  14 Nov 2019-- \\
  13 Nov 2019--
\end{tabular}}
%\settowidth{\datewidth}{22 Nov 2019--}% IIRC 2 is the widest digit

\newcommand{\myitem}[2]% #1 = date, #2 = text
  {\subitem \makebox[\datewidth][r]{#1}\parbox[t]{\dimexpr \linewidth-\datewidth-20pt}{#2}}
\newcommand{\mysubitem}[2]% #1 = heding, #2 = text
  {\sbox0{#1}\subsubitem \usebox0\parbox[t]{\dimexpr \linewidth-\wd0-30pt}{#2}}

\begin{document}
                \begin{center}{\large \textbf{HANDING / TAKING OVER}}\end{center}
            \begin{description}         

\item AON for CHT
\myitem{11 Nov 2019--}{Preetha check progress with IFA}
\myitem{12 Nov 2019--}{Preetha to liaise with IFA}
\myitem{14 Nov 2019--}{ IFA has asked to come on next Wednesday}

\item Video Conferencing with ADGQA
\myitem{13 Nov 2019--}{ pts for discussion}
\mysubitem{Padmavathy for Digital DGQA--}{She will be available for guidance but Kannan should take over \\ \llap{--}if required he can got to Bangalore}
\mysubitem{Component Level Repair CLR--}{  83 items\\ \llap{--}to be decided by CQAL, Bangalore\\Action by Debnath}
\mysubitem{FR 56j--}{  List upto Jun 2020 to be sent \\ \llap{--}list again faxed on 14 Nov 2019\\ Vishwanath case--decision already conveyed as told by Col Vibhor}
\mysubitem{Cover assembly BMP--}{  2017 pending?\\ FFT?\\ Delay to be pinpointed \\Delay in G1 Form? \\Action by Kambli}
\mysubitem{Digital DGQA--}{  Action by  --Kannan}
\end{description}
\end{document}

相关内容