Page LayoutNeed to start page numbering on page 2,4,6 or 8.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Need to start page numbering on page 2,4,6 or 8.

Post by Lumy »

Hi!


I have a problem: Need to start page numbering on page 2,4,6,8 "\firstpageno{8}" and after compile, the header (with journal title) don't appear.

If I set page 1,3,5,7,9 "\firstpageno{3}" header is Ok with journal title. Please see the code with journal style.

Can you help me?


Thank you in advance!

Code: Select all

\documentclass[twoside,11pt,leqno]{article}

\usepackage{journal2}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

\usepackage{graphicx}

\itfjournalheading{N.}{35--}{2016 (1--12)}

\ShortHeadings{article}{authors}
\firstpageno{3}

\begin{document}
\title{..................}

\author{\name Author
}


\maketitle

\begin{abstract}
............
\end{abstract}

\begin{keywords}
......................
\end{keywords}
\end{document}
Journal style

Code: Select all

\typeout{ July 2017.}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                             REQUIRED PACKAGES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{epsfig}
\RequirePackage{amssymb}
%\RequirePackage{natbib}
\RequirePackage{graphicx}

%
\renewcommand{\topfraction}{0.95}
\renewcommand{\textfraction}{0.05}

\oddsidemargin .25in
\evensidemargin .25in
\marginparwidth 0.07 true in

\topmargin -0.5in
\addtolength{\headsep}{0in}
\textheight 21cm
\textwidth 13.3cm
\widowpenalty=10000
\clubpenalty=10000
\@twosidetrue \@mparswitchtrue \def\ds@draft{\overfullrule 5pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                               S E C T I O N S
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\@startsiction#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
     {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sict{#1}{#2}{#3}{#4}{#5}{#6}}}}

\def\@sict#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \def\@svsec{}\else
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname}\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@
        \begingroup #6\relax
          \@hangfrom{\hskip #3\relax\@svsec.\hskip 0.1em}
                    {\interlinepenalty \@M #8\par}
        \endgroup
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #7}\else
        \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
                      {#7}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                       #7}}\fi
     \@xsect{#5}}

\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \def\@svsec{}\else
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 0.5em }\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@
        \begingroup #6\relax
          \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
        \endgroup
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #7}\else
        \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
                      {#7}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                       #7}}\fi
     \@xsect{#5}}

\def\thesection {\arabic{section}}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\section{\@startsiction{section}{1}{\z@}{-0.24in}{0.10in}
             {\normalsize\bf\raggedright}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-0.20in}{0.08in}
                {\normalsize\bf\raggedright}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-0.18in}{0.08in}
                {\normalsize\sc\raggedright}}
\def\paragraph{\@startsiction{paragraph}{4}{\z@}{1.5ex plus
  0.5ex minus .2ex}{-1em}{\normalsize\bf}}
\def\subparagraph{\@startsiction{subparagraph}{5}{\z@}{1.5ex plus
  0.5ex minus .2ex}{-1em}{\normalsize\bf}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                               A B S T R A C T
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewenvironment{abstract}
{\noindent{\normalsize\bf Abstract.}%
  \bgroup\leftskip 0pt\rightskip 0pt\small\noindent}%
{\par\egroup\vskip 0.25ex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                               KEYWORDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newenvironment{keywords}
{\bgroup\leftskip 0pt\rightskip 0pt \small\noindent{\bf Keywords:} }%
{\par\egroup\vskip 0.25ex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                        FIRST PAGE, TITLE, AUTHOR
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newlength\aftertitskip     \newlength\beforetitskip
\newlength\interauthorskip  \newlength\aftermaketitskip

\setlength\aftertitskip{0.1in plus 0.2in minus 0.2in}
\setlength\beforetitskip{0.05in plus 0.08in minus 0.08in}
\setlength\interauthorskip{0.08in plus 0.1in minus 0.1in}
\setlength\aftermaketitskip{0.3in plus 0.1in minus 0.1in}

\def\maketitle{\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}}
   \@maketitle \@thanks
 \endgroup
\setcounter{footnote}{0}
 \let\maketitle\relax \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\@startauthor{\noindent \normalsize\bf}
\def\@endauthor{}

\def\@maketitle{\vbox{\hsize\textwidth
 \linewidth\hsize \vskip \beforetitskip
 {\begin{flushleft} \large\bf \@title \par \end{flushleft}} \vskip \aftertitskip\vskip \aftertitskip\vskip \aftertitskip\vskip \aftertitskip
 {\def\and{\unskip\enspace{\rm and}\enspace}%
  \def\addr{\small\it}%
  \def\email{\small\it}%
  \def\name{\normalsize\bf}%
  \def\AND{\@endauthor\rm\hss \vskip \interauthorskip \@startauthor}
  \@startauthor \@author \@endauthor}

  \vskip \aftermaketitskip
}}

\def\firstpageno#1{\setcounter{page}{#1}}

\def\itfjournalheading#1#2#3{\def\ps@itfjournaltps{\let\@mkboth\@gobbletwo%
\def\@oddhead{\scriptsize JOURNAL TITLE -- #1\,#2#3 \hfill \small\thepage}%
\def\@evenhead{}\def\@evenfoot{}}%
\thispagestyle{itfjournaltps}}


\def\ShortHeadings#1#2{\def\ps@itfjournalps{\let\@mkboth\@gobbletwo%
\def\@oddhead{\noindent {\scriptsize\sc #1} \hfill\thepage}%
\def\@oddfoot{\hfill \scriptsize\rm  \hfill}%
\def\@evenhead{\noindent {\scriptsize\sc #2} \hfill\thepage}%
\def\@evenfoot{\hfill \scriptsize\rm  \hfill}}%
\pagestyle{itfjournalps}}
Last edited by Lumy on Fri Aug 11, 2017 10:36 am, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

Need to start page numbering on page 2,4,6 or 8.

Post by thomasb »

It doesn't compile... Post a compiling example !
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Need to start page numbering on page 2,4,6 or 8.

Post by Lumy »

Attachments
odd numbers.pdf
(6.6 KiB) Downloaded 449 times
even numbers.pdf
(3.97 KiB) Downloaded 224 times
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Need to start page numbering on page 2,4,6 or 8.

Post by Lumy »

Problem resolved. Thank you!
Post Reply