Graphics, Figures & Tables ⇒ figure in the first page
figure in the first page
I'd like to insert a figure in the first page of a report I wrote: what do I have to do?
Basically, I want it in the page where the title, author and date of the report are.
Thank you.
Kind regards,
Mattia.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
figure in the first page
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: figure in the first page
I'll try that!
Greetings,
Mattia.
figure in the first page
try this:
Code: Select all
\makeatletter
\providecommand{\@email}{}
\newcommand{\emd}[1]{\renewcommand{\@email}{\href{mailto:#1}{#1}}}
%define a variable that'll contain the word count text.
\providecommand{\@wordcount}{}
\newcommand{\wordcounter}[1]{\renewcommand{\@wordcount}{Word count: #1}}
%define new command for subtitling the thesis
\providecommand{\@subtitle}{}
\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}}\newcommand{\SubmissionText}{\begin{center}
A dissertation submitted to the University of Bristol in accordance with the requirements of the degree of Doctor of Philosophy in the Faculty of Engineering \end{center}}
\newcommand{\MakeThesisTitle}[2]{\vspace{#1}\begin{center} {\LARGE\@title}\end{center}%
\ifthenelse{ \equal{}{\@subtitle}}{}{\begin{center}\@subtitle\par\end{center}}
\vspace{#2}
\begin{center}
\large{University of Bristol}\\
\vspace{0.8cm}
\begin{figure*}[!h]
\centering
\includegraphics[width=4cm]{UoBbadge.eps}
\end{figure*}
\@author\par
\@email\\[1em]
\@date
\end{center}}
%text for the foot of the title page will go in this sbox
\newsavebox{\submissionstatement}
%redefine title page to include footer with university required declarations, and change margins for single sided printing
\newcommand{\ThesisTitle}[2]{%
\newenvironment{ThesisTitlePage}{}{\sbox{\submissionstatement}{\parbox{\textwidth}{ \SubmissionText% Create a new environment
\begin{flushright} \@wordcount. \end{flushright}}} \renewcommand{\@oddfoot}{\usebox{\submissionstatement}}\newpage}%
\begin{ThesisTitlePage}%
\MakeThesisTitle{#1}{#2}%
\end{ThesisTitlePage}%
}
\makeatother
\author{spiegboy}
\emd{*}
\wordcounter{0}
Re: figure in the first page
Kind regards,
Mattia.