Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

I'm writing an article and I need to put a figure on the top right but only on the first page.

Also on the top left I need to place the type of article

for Example

      Scientific Paper (left header).............................Figure (right header)

                              Title of the Article

                            Author 1, Author 2, Author 3

                       Affiliation1, Affiliation2, Affiliation3, 

               Other Abstract                          Abstract
               Some text                               Some text 
               Some text                               Some text 
               Some text                               Some text 
               Some text                               Some text 

I try to put "Scientific Paper" using fancyhdr but it only shows up from the second page onwards.

the code I've worked with so far is:

\documentclass[12pt,twoside,titlepage]{ingenius}
\usepackage{blindtext}
\usepackage[spanish]{babel}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{subfig}
\usepackage{marvosym}
\usepackage{authblk}
\usepackage{blindtext}
\usepackage{url}
\usepackage{caption}
\captionsetup{font=small}
\captionsetup[figure]{labelfont=bf}%,textfont=it}
\captionsetup[table]{labelfont=bf}%,textfont=it}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{} 
\fancyhead[RE]{Journal Name}
\fancyhead[LE,RO]{{ \thepage }}
\fancyhead[LO]{{Author 1 / Title of the Article}} 
\renewcommand{\headrulewidth}{0.5pt}
\usepackage{amsmath}
\date{}
\title{ 
{\textsc {Title of the Article}}}

\author[1,*]{Author 1}
\author[2]{Author 2}
\author[1]{Author 3}
\affil[1]{\it Department of Mechanical Engineering}
\affil[2]{\it Department of Electrical Engineering}

\begin{document}
\maketitle
\let\oldthefootnote\thefootnote
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\footnotetext[1]{Autor para correspondencia. Email: 
\url{apsarmientoc@gmail.com} }
\let\thefootnote\oldthefootnote

\renewcommand{\tablename}{Table}
\renewcommand{\figurename}{Figure}
\renewcommand{\refname}{References}

\vspace{-.7cm}
\noindent 
\begin{center}
{\bf Received:} 18 -- May -- 2012;  \hspace{0.25cm} {\bf Approved:} 20 -- May -- 2012
\end{center}

\begin{multicols}{2}
\noindent {\bf \large  Abstract}
\vspace{0.5cm}
\blindtext
\palabrasclave{keyword 1, keyword 2, etc}
\vfill
\columnbreak

\noindent {\bf \large Other Abstract}
\vspace{0.5cm}
\blindtext
\keywords{keyword 1, keyword 2, etc}
\end{multicols}
\twocolumn
\section{Introduction}
\blindtext
\blindtext
\blindtext
\section{Conclusions}
\blindtext
\blindtext
\blindtext
\section{Conclusions}
\blindtext
\blindtext
\blindtext
\end{document}

The code of the class to use is

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ingenius}[2011/09/13] 
\LoadClass{article}    
\RequirePackage[latin9]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[english,spanish,es-nolayout]{babel}
%\RequirePackage[font={small},tablename=Tabla,labelfont=
{bf,small},labelsep=period,justification=centerlast]{caption}
\RequirePackage{graphicx}
\RequirePackage{setspace}
\RequirePackage{lmodern}
\RequirePackage[obeyspaces,spaces]{url}
\urlstyle{same}
\RequirePackage[papersize=
{21cm,28cm},twoside,top=2cm,bottom=1.5cm,left=1.2cm,right=1.2cm, 
headheight=1.8cm,headsep=.35cm,footskip=0.85cm]{geometry}


\RequirePackage[colorlinks,linkcolor=black,urlcolor=black,  
citecolor=black,breaklinks=true,%
bookmarks=true,pdfstartview=XYZ]{hyperref}

\newcommand{\keywords}[1]{\vspace{\baselineskip}\parindent 
0pt\textit{\textbf{Keywords}}: #1}
\newcommand{\palabrasclave}[1]{\vspace{\baselineskip}\parindent 
0pt\textbf{\textit{Palabras clave}}: #1}

\newcommand{\tituloingles}[1]%
{\newcommand\@tituloingles{#1}}

Thanks for your help

share|improve this question
    
If I understand your setup correctly, you only need the "fancy" page stuff on the title page. If this is correct, try issuing the statement \thispagestyle{fancy} right after \maketitle instead of having the statement \pagestyle{fancy} in the document's preamble. –  Mico May 23 '12 at 16:34
add comment

marked as duplicate by Claudio Fiandrino, mafp, T. Verron, Heiko Oberdiek, lockstep Jul 4 '13 at 8:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 5 down vote accepted

The document class causes the title (created using \maketitle) to be set within a titlepage environment, which uses \thispagestyle{empty}. You could redefine the empty page style:

\fancypagestyle{empty}{%
  \fancyhf{}% Clear header/footer
  \fancyhead[L]{Scientific Paper}% Your journal/note
  \fancyhead[R]{\rule{100pt}{30pt}}% Your logo/image
}

enter image description here

If this is the only page in your document using the empty page style, redefining it in this way should not be problematic. Otherwise you would have to do some more work to create a different title page style. Of greater concern should be whether or not the journal accepts this modified requirement.

share|improve this answer
    
thanks for your help I will try –  Andres Sarmiento C May 29 '12 at 14:42
add comment

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