如何缩进一行中的项目?

如何缩进一行中的项目?

我的目标是制作水平列表并遵循这个问题(请参阅@SDrolet 的回答):如何制作水平列表?

现在我有以下内容(更新

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{tasks}
\usepackage{amssymb}

\begin{document}

\begin{tasks}[counter-format={(tsk[r])}, label-align=left, label-offset={10mm}, label-width={10mm}, label-format={\bfseries}](2)
    \task Robotics
    \task Remote Sensing
    \task Bio-medical Applications
    \task Military Applications
    \task Equipment Monitoring      and Diagnostics
    \task Transportation Systems
\end{tasks}

\end{document}

产生的结果(参见:-item:Equipment Monitoring and Diagnostics其目的并不正确):

enter image description here

我想要对该项目进行(V)如下排序:

 (V) Equipment Monitoring
     and Diagnostics

在这种情况下,如何做出正确的缩进?

答案1

如果不改变label-offset文本行的对齐方式:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{tasks}



\begin{document}

\begin{tasks}[
counter-format={(tsk[r])}, 
label-align=left, 
label-width=1.9em,
label-format={\bfseries}
](2)
    \task Robotics
    \task Remote Sensing
    \task Bio-medical Applications
    \task Military Applications
    \task Equipment Monitoring \par and Diagnostics
    \task Transportation Systems
\end{tasks}

\end{document}

enter image description here

答案2

这里有两个解决方案:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tasks}
\usepackage{ragged2e} 

\begin{document}

\begin{tasks}[counter-format={(tsk[r])}, label-align=left, label-offset={10mm}, label-width={10mm}, label-format={\bfseries}](2)
    \task Robotics
    \task Remote Sensing
    \task Bio-medical Applications
    \task Military Applications
    \task \parbox[t]{4cm}{\RaggedRight Equipment Monitoring and Diagnostics}
    \task Transportation Systems
\end{tasks}

\begin{tasks}[counter-format={(tsk[r])}, label-align=left, label-width={10mm}, label-format={\bfseries}, item-indent =20mm ](2)
    \task Robotics
    \task Remote Sensing
    \task Bio-medical Applications
    \task Military Applications
    \task Equipment Monitoring and Diagnostics
    \task Transportation Systems
\end{tasks}

\end{document} 

enter image description here

相关内容