7

I have an Image, and I would like to add the image above the Title. The Downbelow Code gives the entire page to the Image. I want the image and the Title, Autother to be displayed on the same page

\includegraphics[width=0.1\textwidth]{images/Company_Groups.jpg}~\\[1cm]
\title{xxxxxxx
\\In xxxxx }
\author{N. N. Arif
\\ xxxx in headquarters, xxxxx}
\date{June 18, 2015}
\maketitle
1
  • 1
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – user31729
    Jun 21, 2015 at 18:40

1 Answer 1

8

I don't recommend that \\[...] stuff there, but it's possible to include the graphic file as part of the title itself.

(Remove the demo option afterwards)

\documentclass{article}

\usepackage[demo]{graphicx}
\begin{document}

\title{%
\includegraphics[width=0.1\textwidth]{images/Company_Groups.jpg}~ 
\\[1cm]
xxxxxxx
\\In xxxxx 
}
\author{N. N. Arif
\\ xxxx in headquarters, xxxxx}
\date{June 18, 2015}
\maketitle

\end{document}

enter image description here

Some update, with the famous CTAN TeX Lion (copyright by Duane Bibby)

\documentclass{article}

\usepackage{graphicx}
\begin{document}

\title{%
%\includegraphics[width=0.1\textwidth]{images/Company_Groups.jpg}~ 
\includegraphics[width=0.4\textwidth]{ctanlion}~\\[1cm]
xxxxxxx\\
In xxxxx 
}
\author{N. N. Arif
\\ xxxx in headquarters, xxxxx}
\date{June 18, 2015}
\maketitle

\end{document}

enter image description here

7
  • Thanks for the help. The structure became good, but the image appear as Black Square.
    – Arif
    Jun 21, 2015 at 18:49
  • Why Would u not recommend to include the Graphical file part of the title?
    – Arif
    Jun 21, 2015 at 18:50
  • I removed the DEMO, But I got different errors and the image is moved to right side. The errors that I got was: There is not line here to end, Cannot determine size of the image...
    – Arif
    Jun 21, 2015 at 18:55
  • @Arif: I meant the \\[...] spacing stuff, not the graphics
    – user31729
    Jun 21, 2015 at 18:55
  • @Arif: It works for me, without demo too, when using a specific graphics.
    – user31729
    Jun 21, 2015 at 19:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .