如何删除空白页、页眉和页码(回忆录、甘特图)

如何删除空白页、页眉和页码(回忆录、甘特图)

我正在使用pgfgantt带有回忆录的包,但我得到的是一张空白页,我找不到命令来帮助删除页眉和在此处输入图片描述页码。

  \documentclass[12pt,a4paper,oneside]{memoir} % Change font size here (allowable values are 9pt-12pt), change the paper size, specify one or two sided printing and specify whether to show trimming lines
%
\usepackage{color} % Required for custom colors
 \definecolor{lava}{rgb}{0.81, 0.06, 0.13}
\usepackage{afterpage}
\usepackage{pdflscape}
\usepackage{pgfgantt}
%Used to draw gantt charts, which I will use for the calendar.
%Let's define some awesome new ganttchart elements:
\definecolor{foobaryellow}{RGB}{234,187,0}

\newganttchartelement{blackmain}{
    blackmain/.style={
        inner sep=0pt,
        draw=red!66!black,
        thick,
        top color=white,
        bottom color=black
    },
    blackmain label font=\bfseries \footnotesize,
 blackmain left shift=0,
 blackmain right shift=0,
}

\newganttchartelement{blackbar}{
    blackbar/.style={
draw=black,
  bottom color=red,
       rounded corners=3pt
    },
   blackbar label font=\slshape \footnotesize,
    blackbar left shift=.1,
   blackbar right shift=-.1
}

\begin{document}


\afterpage{\begin{landscape}


\small

\begin{ganttchart}[expand chart=0.95\paperwidth,
    hgrid style/.style={black, dotted},
    vgrid={*5{black,dotted}, *1{white, dotted}},
    x unit=0.2mm,
    y unit chart=8mm,
    y unit title=9mm,
    time slot format=isodate,
    title/.append style={shape=rectangle, fill=black!10},
    title height=0.7,
    group label font=\bfseries \footnotesize,
    milestone label font=\bfseries \footnotesize\color{lava},
    milestone inline label node/.append style={left=5mm},
    link/.style={->, thick},
    group left shift=0,
group right shift=0,
  group peaks tip position=0.2,
  group peaks width=1mm,
  group peaks height=.4,
  milestone left shift=-2mm,
  milestone right shift=2mm,
  milestone height=0.2mm,
    ]{2022-01-01}{2022-12-31}
    \gantttitlecalendar{year, month}\\

    \ganttgroup[]{Proof of Concept}{2022-01-01}{2022-04-29}\\ [grid]
    \ganttblackbar[name=Circuit design 
    ]{Circuit design}{2022-01-01}{2022-01-23}\\ [grid]
    \ganttblackbar[
    ]{Procure equipment}{2022-01-24}{2022-01-31}\\ [grid]
    \ganttblackbar[
    ]{Provision Circuits}{2022-02-01}{2022-04-07}\\ [grid]
    \ganttblackbar[]{Paper Drafting}{2022-04-08}{2022-04-29}\\ [grid]
        \ganttmilestone{Submission}{2022-04-29}\\ [grid]
        
      \ganttgroup[]{Performance Evaluation}{2022-04-29}{2022-07-29}\\ [grid]
    \ganttblackbar{Develop Models}{2022-04-29}{2022-05-29}\\ [grid]
        \ganttblackbar{Obtain Results}{2022-05-29}{2022-07-7}\\ [grid]
        \ganttblackbar[name=Paper Drafting]{Paper Drafting}{2022-07-7}{2022-07-29}\\ [grid]

    \ganttmilestone{Submission}{2022-07-29}\\ [grid]



      \ganttgroup[]{Practical Outdoor Evaluation}{2022-07-29}{2022-12-31}\\ [grid]
    \ganttblackbar{Circuit design}{2022-07-29}{2022-08-29}\\ [grid]
    \ganttblackbar{Provision Circuits}{2022-08-29}{2022-09-29}\\ [grid]
    \ganttblackbar{Results Evaluation}{2022-09-29}{2022-10-15}\\ [grid]
    \ganttblackbar{Results Fine Tuning}{2022-10-15}{2022-10-30}\\ [grid]
    \ganttblackbar{Paper Drafting}{2022-10-30}{2022-11-30}\\ [grid]
     \ganttmilestone{Submission}{2022-11-30}\\ [grid]
    \ganttblackbar{Submitting for Funding}{2022-11-15}{2022-12-31}


\end{ganttchart}
\end{landscape}}

\end{document}

答案1

图表gantt太宽太长,无法放在一页上。考虑将其分成两页。

A

用于\pagestyle{empty}隐藏页眉和页码,

\documentclass[12pt,a4paper,oneside]{memoir} % Change font size here (allowable values are 9pt-12pt), change the paper size, specify one or two sided printing and specify whether to show trimming lines
%
\usepackage{xcolor} % Required for custom colors
\definecolor{lava}{rgb}{0.81, 0.06, 0.13}
\usepackage{afterpage}
\usepackage{pdflscape}
\usepackage{pgfgantt}


%Used to draw gantt charts, which I will use for the calendar.
%Let's define some awesome new ganttchart elements:
\definecolor{foobaryellow}{RGB}{234,187,0}

\newganttchartelement{blackmain}{
    blackmain/.style={
        inner sep=0pt,
        draw=red!66!black,
        thick,
        top color=white,
        bottom color=black
    },
    blackmain label font=\bfseries \footnotesize,
    blackmain left shift=0,
    blackmain right shift=0,
}

\newganttchartelement{blackbar}{
    blackbar/.style={
        draw=black,
        bottom color=red,
        rounded corners=3pt
    },
    blackbar label font=\slshape \footnotesize,
    blackbar left shift=.1,
    blackbar right shift=-.1
}

\begin{document}
    

\begin{landscape}   

\pagestyle{empty}% suppress headers and page numbers <<<<<<<<<<

\small  

\noindent\begin{ganttchart}[expand chart=0.95\paperwidth,
    hgrid style/.style={black, dotted},
    vgrid={*5{black,dotted}, *1{white, dotted}},
    x unit=0.2mm,
    y unit chart=8mm,
    y unit title=9mm,
    time slot format=isodate,
    title/.append style={shape=rectangle, fill=black!10},
    title height=0.7,
    group label font=\bfseries \footnotesize,
    milestone label font=\bfseries \footnotesize\color{lava},
    milestone inline label node/.append style={left=5mm},
    link/.style={->, thick},
    group left shift=0,
    group right shift=0,
    group peaks tip position=0.2,
    group peaks width=1mm,
    group peaks height=.4,
    milestone left shift=-2mm,
    milestone right shift=2mm,
    milestone height=0.2mm,
    ]{2022-01-01}{2022-08-15}
    \gantttitlecalendar{year, month}\\
    
    \ganttgroup[]{Proof of Concept}{2022-01-01}{2022-04-29}\\ [grid]
    \ganttblackbar[name=Circuit design 
    ]{Circuit design}{2022-01-01}{2022-01-23}\\ [grid]
    \ganttblackbar[
    ]{Procure equipment}{2022-01-24}{2022-01-31}\\ [grid]
    \ganttblackbar[
    ]{Provision Circuits}{2022-02-01}{2022-04-07}\\ [grid]
    \ganttblackbar[]{Paper Drafting}{2022-04-08}{2022-04-29}\\ [grid]
    \ganttmilestone{Submission}{2022-04-29}\\ [grid]
    
    \ganttgroup[]{Performance Evaluation}{2022-04-29}{2022-07-29}\\ [grid]
    \ganttblackbar{Develop Models}{2022-04-29}{2022-05-29}\\ [grid]
    \ganttblackbar{Obtain Results}{2022-05-29}{2022-07-7}\\ [grid]
    \ganttblackbar[name=Paper Drafting]{Paper Drafting}{2022-07-7}{2022-07-29}\\ [grid]
    
    \ganttmilestone{Submission}{2022-07-29}\\ [grid]
\end{ganttchart}                

    
\noindent\begin{ganttchart}[expand chart=0.95\paperwidth,
    hgrid style/.style={black, dotted},
    vgrid={*5{black,dotted}, *1{white, dotted}},
    x unit=0.2mm,
    y unit chart=8mm,
    y unit title=9mm,
    time slot format=isodate,
    title/.append style={shape=rectangle, fill=black!10},
    title height=0.7,
    group label font=\bfseries \footnotesize,
    milestone label font=\bfseries \footnotesize\color{lava},
    milestone inline label node/.append style={left=5mm},
    link/.style={->, thick},
    group left shift=0,
    group right shift=0,
    group peaks tip position=0.2,
    group peaks width=1mm,
    group peaks height=.4,
    milestone left shift=-2mm,
    milestone right shift=2mm,
    milestone height=0.2mm,
    ]{2022-07-01}{2022-12-31}
    \gantttitlecalendar{year, month}\\      
    
    \ganttgroup[]{Practical Outdoor Evaluation}{2022-07-29}{2022-12-31}\\ [grid]
    \ganttblackbar{Circuit design}{2022-07-29}{2022-08-29}\\ [grid]
    \ganttblackbar{Provision Circuits}{2022-08-29}{2022-09-29}\\ [grid]
    \ganttblackbar{Results Evaluation}{2022-09-29}{2022-10-15}\\ [grid]
    \ganttblackbar{Results Fine Tuning}{2022-10-15}{2022-10-30}\\ [grid]
    \ganttblackbar{Paper Drafting}{2022-10-30}{2022-11-30}\\ [grid]
    \ganttmilestone{Submission}{2022-11-30}\\ [grid]
    \ganttblackbar{Submitting for Funding}{2022-11-15}{2022-12-31}  
\end{ganttchart}
\end{landscape}

\end{document}

第二页也可以绘制重复元素,以将图表链接到前一个时间线。

b

相关内容