0

I would like to hide the column number on the first column (cover page).

I have used the following code from: Stack Exchange Answer

\documentclass[paper=A3, landscape]{scrartcl}

\usepackage{multicol}
\usepackage{blindtext}
\usepackage{everypage}

\newcounter{column}

\AddEverypageHook{\ifdim\columnwidth<\textwidth
  \ifodd\value{page}\rlap{\hspace{\oddsidemargin}%
      \raisebox{\dimexpr-\topmargin-\headheight-\headsep-\textheight-    0.5\footskip}[0pt][0pt]%
  {\makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}}}%
\else\rlap{\hspace{\evensidemargin}%
  \raisebox{\dimexpr-\topmargin-\headheight-\headsep-\textheight-0.5\footskip}[0pt][0pt]%
  {\makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\thecolumn}}}%
\fi%
\fi}

\begin{document}
\begin{multicols}{4}
  \blinddocument{} \blindtext
\end{multicols}
\end{document}

I have tried it with

\thispagestyle{empty}

but it did not work.

0

Instead of \thecolumn, you can use a command that will only produce a result if the column counter is different from 1. Here I named it \tehcolumn, based on a common misspelling (yes, that's a joke):

\documentclass[paper=A3, landscape]{scrartcl}

\usepackage{multicol}
\usepackage{blindtext}
\usepackage{everypage}

\newcounter{column}

\newcommand\tehcolumn{\ifnum\value{column}=1 \else\thecolumn\fi}

\AddEverypageHook{\ifdim\columnwidth<\textwidth
  \ifodd\value{page}\rlap{\hspace{\oddsidemargin}%
      \raisebox{\dimexpr-\topmargin-\headheight-\headsep-\textheight-    0.5\footskip}[0pt][0pt]%
  {\makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}}}%
\else\rlap{\hspace{\evensidemargin}%
  \raisebox{\dimexpr-\topmargin-\headheight-\headsep-\textheight-0.5\footskip}[0pt][0pt]%
  {\makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}\hspace{\columnsep}%
   \makebox[\columnwidth]{\stepcounter{column}\tehcolumn}}}%
\fi%
\fi}

\begin{document}
\begin{multicols}{4}
  \blinddocument{} \blindtext
\end{multicols}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.