语言 pgfgantt -> 翻译成葡萄牙语

语言 pgfgantt -> 翻译成葡萄牙语

如何将文本翻译成葡萄牙语?-Complete 到 completo -Today 到 hoje

    \documentclass[tikz]{standalone}
\usepackage{pgfgantt}
\title{Gantt Charts with the pgfgantt Package}
\begin{document}

%
% A fairly complicated example from section 2.9 of the package
% documentation. This reproduces an example from Wikipedia:
% http://en.wikipedia.org/wiki/Gantt_chart
%
\definecolor{barblue}{RGB}{153,204,254}
\definecolor{groupblue}{RGB}{51,102,254}
\definecolor{linkred}{RGB}{165,0,33}
\renewcommand\sfdefault{phv}
\renewcommand\mddefault{mc}
\renewcommand\bfdefault{bc}
\setganttlinklabel{s-s}{Disciplina cursada UTFPR - 1S2019}
\setganttlinklabel{f-s}{Início 2021}
\setganttlinklabel{f-s}{Ingresso ao Programa de Pós Graduação UNIFESP - 2S2021}
\setganttlinklabel{f-f}{Finalização}
\sffamily
\begin{ganttchart}[
    canvas/.append style={fill=none, draw=black!5, line width=.75pt},
    hgrid style/.style={draw=black!5, line width=.75pt},
    vgrid={*1{draw=black!5, line width=.75pt}},
    today=12,
    today rule/.style={
      draw=black!64,
      dash pattern=on 3.5pt off 4.5pt,
      line width=1.5pt
    },
    today label font=\small\bfseries,
    title/.style={draw=none, fill=none},
    title label font=\bfseries\footnotesize,
    title label node/.append style={below=7pt},
    include title in canvas=false,
    bar label font=\mdseries\small\color{black!70},
    bar label node/.append style={left=2cm},
    bar/.append style={draw=none, fill=black!63},
    bar incomplete/.append style={fill=barblue},
    bar progress label font=\mdseries\footnotesize\color{black!70},
    group incomplete/.append style={fill=groupblue},
    group left shift=0,
    group right shift=0,
    group height=.5,
    group peaks tip position=0,
    group label node/.append style={left=.6cm},
    group progress label font=\bfseries\small,
    link/.style={-latex, line width=1.5pt, linkred},
    link label font=\scriptsize\bfseries,
    link label node/.append style={below left=-2pt and 0pt}
  ]{1}{13}
  \gantttitle[
    title label node/.append style={below left=7pt and -3pt}
  ]{Meses:\quad1}{1}
  \gantttitlelist{2,...,24}{1} \\
  \ganttgroup[progress=57]{Programa de Pós-Graduação em Engenharia Química}{1}{24} \\
  \ganttbar[
    progress=100,
    name=WBS1A
  ]{\textbf{Disciplina} TERMODINÂMICA DA ENGENHARIA QUÍMICA}{1}{1} \\
  \ganttbar[
    progress=100,
    name=WBS1B
  ]{\textbf{Disciplina} ENGENHARIA DE POLÍMEROS}{1}{7} \\
  \ganttbar[
    progress=100,
    name=WBS1C
  ]{\textbf{Disciplina} CINÉTICA APLICADA E REATORES QUÍMICOS}{8}{12} \\
  \ganttbar[
    progress=100,
    name=WBS1D
  ]{\textbf{Disciplina} METODOLOGIA CIENTÍFICA}{8}{12} \\ 
    \ganttbar[
    progress=100,
    name=WBS1E
  ]{\textbf{Disciplina} PROCESSOS DE SEPARAÇÃO COM MEMBRANAS}{8}{12} \\
  
  \ganttbar[
    progress=0,
    name=WBS1F
  ]{\textbf{Disciplina} SEMINÁRIOS EM ENGENHARIA QUÍMICA}{14}{18}
  
  \\[grid]
   \ganttbar[progress=65]{\textbf{Dissertação} Revisão Bibliográfica}{1}{16} \\
  \ganttbar[progress=0]{\textbf{Dissertação} Activity F}{6}{8} \\
  \ganttbar[progress=0]{\textbf{Dissertação} Activity G}{9}{10}
  \ganttlink[link type=s-s]{WBS1A}{WBS1B}
  \ganttlink[link type=f-s]{WBS1B}{WBS1C}
  \ganttlink[
    link type=f-f,
    link label node/.append style=left
  ]{WBS1C}{WBS1D}
\end{ganttchart}


\end{document}

答案1

检查CTAN 上的 pgfgantt

  • 第 11 页:/pgfgantt/today 标签 =<text>
  • 第 35 页:/pgfgantt/progress 标签文本 =<text>
    • \pgfmathprintnumber[precision=0, verbatim]{#1}\% complete

根据这些信息,插入\begin{ganttchart}[以下命令的选项中

progress label text = {#1\% Completo},
today label = {Hoje}

在您的文件中,它可能在最后完成。抱歉,我不会在这里复制整个文件。

在此处输入图片描述

下图是结果。百分比数字后面添加了“Completo”字样(“ #1\%”是必须的),末尾出现了“Hoje”。

在此处输入图片描述

奖励回合:pgfgantt 具有与彩色盒子包。当你理解了一个,另一个就是自然的延伸。

答案2

扩展评论:有选项today labelprogress label text。第 11 页(今日标签)和第 35 页(进度标签)pgfgantt 手册

代码:

\begin{ganttchart}[
    canvas/.append style={fill=none, draw=black!5, line width=.75pt},
    hgrid style/.style={draw=black!5, line width=.75pt},
    vgrid={*1{draw=black!5, line width=.75pt}},
    today=12,
    today rule/.style={
      draw=black!64,
      dash pattern=on 3.5pt off 4.5pt,
      line width=1.5pt
    },
    today label=hoje,
    progress label text={%
    \pgfmathprintnumber[precision=0, verbatim]{#1}\% completo%
    },
    today label font=\small\bfseries,

结果:

在此处输入图片描述

相关内容