2

I want to make a title that will follow the following structure:

\documentclass[12pt]{article}

\usepackage[pass,showframe]{geometry}% just to show the page margins

\usepackage[demo]{graphicx}% remove demo option in actual document

\begin{document}
\noindent\begin{minipage}{0.3\textwidth}% adapt widths of minipages to your needs
\includegraphics[width=\linewidth]{yourimage}
\end{minipage}%
\hfill%
\begin{minipage}{0.6\textwidth}\raggedleft
Yesterday,\\
all my troubles seemed so far away\\
Now it looks as though they're here to stay\\
Oh, I believe in yesterday.
\end{minipage}
\end{document} 

enter image description here

(code found here How do I put an image on the left of right-aligned text)

That is the text of the \title will be right aligned and there will be an image on the left of the text

How is it possible this?

Dimitris
  • 1,405
  • What is your question? – AboAmmar May 06 '19 at 22:55
  • @AboAmmar I gave this MWE as an indication of the title structure I want to achieve. The title's text will right aligned and the image on the left. – Dimitris May 06 '19 at 22:58
  • Will the title be the text Yesterday all my troubles... or will it be something else? – M. Al Jumaily May 06 '19 at 22:59
  • @M.AlJumaily No something else. If the way I asked the question is misleading I will modify it. – Dimitris May 06 '19 at 23:00
  • @Dimitris - Yes, I mean do you need this for a title page using \maketitle or something else, the question is not very specific. – AboAmmar May 06 '19 at 23:04
  • @AboAmmar Yes I want it for a title page using maketitle. Searching here for relevant questions I found the code and the image and I thought will be helpful to explain what I am looking for:-)! – Dimitris May 06 '19 at 23:07

3 Answers3

2

I have updated the answer.

Output

\documentclass[12pt]{article}
\usepackage[pass,showframe]{geometry}% just to show the page margins
\usepackage[demo]{graphicx}
\usepackage{adjustbox}

\begin{document}
    \title{Paper Title}
    \author{Your name}
    \date{\today}
    \noindent\adjustbox{valign = t}{%
    \includegraphics[width = 0.3\textwidth, height = 3in]{yourimage}}\hfill%Image
    \begin{minipage}[t]{0.6\textwidth}\raggedleft
        Yesterday,\\
        all my troubles seemed so far away\\
        Now it looks as though they're here to stay\\
        Oh, I believe in yesterday.\\        
        \begingroup
        \let\center\flushright
        \maketitle
        \endgroup
    \end{minipage}\\
    Stuff stuff stuff...
\end{document}
M. Al Jumaily
  • 4,035
  • 2
  • 11
  • 26
2

mwe

\documentclass[12pt]{article}
\usepackage{graphicx,lipsum}

\makeatletter         
\def\@maketitle{
\noindent\begin{minipage}{0.3\textwidth}
\includegraphics[width=\linewidth]{example-image-duck}
\end{minipage}%
\hfill\begin{minipage}{0.69\textwidth}
\raggedleft{\bfseries\@title}\par\medskip(\@author,
\@date)\end{minipage}\vspace{3em}}
\makeatother

\begin{document}

\title{Yesterday,\\
all my troubles seemed so far away.\\
Now it looks as though they're here to stay\\
Oh, I believe in yesterday.}

\author{The Beatles}

\date{1965}

\maketitle

\lipsum[1-2]

\end{document} 
Fran
  • 80,769
1

OK, just wrap what you wrote inside a \title{..} command. Is this what you want?

\documentclass[12pt]{article}
\usepackage[pass,showframe]{geometry}% just to show the page margins
\usepackage[demo]{graphicx}% remove demo option in actual document

\begin{document}

\title{\begin{minipage}{0.3\textwidth}% adapt widths of minipages to your needs
\includegraphics[width=\linewidth]{yourimage}
\end{minipage}%
\hfill%
\begin{minipage}{0.6\textwidth}\raggedleft
Yesterday,\\
all my troubles seemed so far away\\
Now it looks as though they're here to stay\\
Oh, I believe in yesterday.
\end{minipage}}
\date{}
\author{}
\maketitle

\end{document} 
AboAmmar
  • 46,352
  • 4
  • 58
  • 127