尽管任务名称很长,如何优化用 pgfgantt 制作的甘特图?

尽管任务名称很长,如何优化用 pgfgantt 制作的甘特图?

我正在为欧洲 H2020 创新征集起草提案,使用 EU RIA H2020 LaTeX 模板。提供几张甘特图是有意义的。我面临的情况是,征集中所列的任务名​​称很长,不可能符合强制性的垂直 A4 格式(参见 MWE)。我尝试了不同的技巧,但都不起作用,而将任务写在两行上似乎是显而易见的途径。不建议将任务名称更改为较短的名称,因为评估人员会检查提案与征集要求的匹配程度。有什么建议吗?

\documentclass[11pt, a4paper]{article} 
\usepackage{pgfgantt}

\begin{document}
\begin{ganttchart}[vgrid] {1}{12}
\gantttitle{2018}{12} \\
\gantttitlelist{1,...,12}{1} \\
\ganttbar{State of the art \& prior art analysis}{1}{3} \\ 
\ganttbar{Define development orientations}{4}{5} \\
\ganttbar{Specify device utility management System physical interface}{6}{07} \\
\ganttbar{Develop/adapt/produce required sets of physical interface elements}{8}{12} 
\end{ganttchart}
\end{document}

答案1

您可以打破这些线条,也可以将标签与图例一起引入。

在此处输入图片描述

\documentclass[11pt, a4paper]{article} 
\usepackage{pgfgantt}
\usepackage{tabularx}
\begin{document}
\noindent
\begin{ganttchart}[vgrid,bar label node/.append style={align=right}] {1}{12}
\gantttitle{2018}{12} \\
\gantttitlelist{1,...,12}{1} \\
\ganttbar{State of the art \& prior art analysis}{1}{3} \\ 
\ganttbar{Define development orientations}{4}{5} \\
\ganttbar{Specify device utility management\\ System physical interface}{6}{07} \\
\ganttbar{Develop/adapt/produce required\\ sets of physical interface elements}{8}{12} 
\end{ganttchart}
\bigskip
\hrule
\bigskip

\noindent
\begin{ganttchart}[vgrid] {1}{12}
\gantttitle{2018}{12} \\
\gantttitlelist{1,...,12}{1} \\
\ganttbar{Task A}{1}{3} \\ 
\ganttbar{Task B}{4}{5} \\
\ganttbar{Task C}{6}{07} \\
\ganttbar{Task D}{8}{12} 
\end{ganttchart}
\medskip

\noindent
\begin{tabularx}\linewidth{@{}lX@{}}
  Task A & State of the art \& prior art analysis\\
  Task B & Define development orientations\\
  Task C & Specify device utility management System physical interface\\
  Task D & Develop/adapt/produce required sets of physical interface elements
\end{tabularx}
\end{document}

答案2

在此处输入图片描述

\documentclass[11pt, a4paper]{article} 
\usepackage{pgfgantt}

\begin{document}
\begin{ganttchart}[vgrid] {1}{12}
\gantttitle{2018}{12} \\
\gantttitlelist{1,...,12}{1} \\
\ganttbar{State\footnotemark}{1}{3} \\ 
\ganttbar{Define\footnotemark}{4}{5} \\
\ganttbar{Specify\footnotemark}{6}{07} \\
\ganttbar{Develop\footnotemark}{8}{12} 
\end{ganttchart}

\footnotetext[1]{State of the art \& prior art analysis}

\footnotetext[2]{Define development orientations}

\footnotetext[3]{Specify device utility management System physical interface}

\footnotetext[4]{Develop/adapt/produce required sets of physical interface elements}

\end{document}

相关内容