![如何缩进一行中的项目?](https://linux22.com/image/374539/%E5%A6%82%E4%BD%95%E7%BC%A9%E8%BF%9B%E4%B8%80%E8%A1%8C%E4%B8%AD%E7%9A%84%E9%A1%B9%E7%9B%AE%EF%BC%9F.png)
我的目标是制作水平列表并遵循这个问题(请参阅@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
其目的并不正确):
我想要对该项目进行(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}
答案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}