我正在使用 minipage。并在 minipage 中制作项目符号。项目符号旁边的文本很长,变成了几行
然而,第二行与项目符号旁边的第一行不对齐
这是我的代码。我需要帮助
\begin{minipage}{\textwidth}
\begin{minipage}[t]{.7\textwidth}
{\bf Text not that long} \\
\end{minipage}
\begin{minipage}{.29\textwidth}
\hfill {\bf MM. YY-}\\ \hspace*{0.83in}{\bf MM. YY}
\end{minipage}
\begin{minipage}[t]{.7\textwidth}
$\bullet$ \it Text very long, Text very long, Text very long, Text very long, Text very long, Text very long, Text very long, \\
\end{minipage}
\end{minipage}
答案1
这与上面的代码完全相同,只是使用 atabular
而不是minipage
s。
\documentclass[12pt,a4paper]{article}
\setlength{\parindent}{0pt}
\usepackage{enumitem,array}
\begin{document}
\begin{tabular}{@{}p{.7\linewidth} @{} >{\raggedleft\bfseries\arraybackslash}p{.3\linewidth}@{}}
\textbf{Text not that long} & MM. YY-\par MM. YY \\
\begin{itemize}[topsep=0pt,partopsep=0pt,itemsep=0pt,leftmargin=*]
\item \textit{Text very long, Text very long, Text very long, Text very long, Text very long, Text very long, Text very long,}
\item \textit{Text very long, Text very long, Text very long, Text very long, Text very long, Text very long, Text very long,}
\end{itemize} & \\
\end{tabular}
\end{document}