Graphics, Figures & Tables ⇒ How to insert figures followed by text
-
- Posts: 10
- Joined: Thu Jul 15, 2010 5:01 pm
How to insert figures followed by text
I am still new using latex but I am able to insert figures and tables without a problem but this one is a bit more challenging. I am trying to insert a 1.5 inches figure at the beginning of the page followed by some text and then another 1.5 inches figure after the text. I could find the way to insert the image but with the picture attached you can see what I am trying to accomplish. Thanks
Edit by localghost: No external links! Attachments go onto the forum server (see Board Rules).
- Attachments
-
- SamplePic.jpg (17.45 KiB) Viewed 3492 times
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
How to insert figures followed by text
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage{babel}
\begin{document}
\rule{1.5in}{1.5in}\hfill Title here between two figures\hfill\rule{1.5in}{1.5in}
\end{document}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 10
- Joined: Thu Jul 15, 2010 5:01 pm
How to insert figures followed by text
The name of my figures are: bar.jpg and I replaced \hrule with my picture name
but my pictures get printed one on the left upper corner and one on the right lower corner and the text between them dissappears. Also,Since I am going to put the title between
the 2 figures,do I still need to have \maketitle in my document?
Code: Select all
\documentclass[11pt]{article}
\usepackage{longtable,verbatim}
\usepackage{longtable,pdflscape,graphicx}
\usepackage{fmtcount,hyperref} % displaying latex counters
\usepackage[hmargin=1in,vmargin=1in]{geometry}
[color=#0040FF]\title{United States Department of the Interior}[/color]\begin{document}
\includegraphics{bar.jpg}{1.5in}{1.5in}\hfill Title here between twofigures\includegraphics{bar.jpg}{1.5in}{1.5in}
[color=#FF0040]\maketitle[/color]
{end{document}
-
- Posts: 10
- Joined: Thu Jul 15, 2010 5:01 pm
Re: How to insert figures followed by text
How to insert figures followed by text
two possible solutions:
1) Using minipages:
Code: Select all
\documentclass{article}
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\newlength\mylen
\setlength\mylen{\textwidth}
\addtolength\mylen{-3in}
\begin{document}
\noindent\begin{minipage}{1.5in}
\rule{1.5in}{1.5in}
\end{minipage}
\begin{minipage}{\mylen}
\centering
Title here between two figures
\end{minipage}
\begin{minipage}{1.5in}
\rule{1.5in}{1.5in}
\end{minipage}
\end{document}
Code: Select all
\documentclass{article}
\usepackage[hmargin=1in,vmargin=1in]{geometry}
\begin{document}
\noindent\rule{1.5in}{1.5in}\hfill\raisebox{0.65in}{Title here between two figures}\hfill\rule{1.5in}{1.5in}
\end{document}
-
- Posts: 10
- Joined: Thu Jul 15, 2010 5:01 pm
Re: How to insert figures followed by text
I'll go with \raisebox for now. Thanks again for your help.