Graphics, Figures & Tablesbeamer | \Longrightarrow between two Graphics

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Jike
Posts: 4
Joined: Mon Dec 12, 2011 9:34 pm

beamer | \Longrightarrow between two Graphics

Post by Jike »

Dear experts,

I am using beamer, I have two equal sized graphics having the same height. I want to insert a Longrightarrow between them and keep the arrow exactly in the central-height position. Thanks any advice .

Cheers,
Jike
Last edited by Jike on Thu Dec 22, 2011 11:44 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

beamer | \Longrightarrow between two Graphics

Post by Stefan Kottwitz »

Hi Jike,

welcome to the board!

For vertical centering, you could use `\vcenter` in math mode. For example:
Define macros, so you could make adjustments easily.

Code: Select all

\newcommand*{\vcenterimage}[1]{\vcenter{\hbox{\includegraphics{#1}}}}
\newcommand*{\vcenterarrow}{\vcenter{\hbox{$\Longrightarrow$}}}
...
$\vcenterimage{filename}\vcenterarrow\vcenterimage{filename}$
Stefan
LaTeX.org admin
Jike
Posts: 4
Joined: Mon Dec 12, 2011 9:34 pm

beamer | \Longrightarrow between two Graphics

Post by Jike »

Hi Stefan,

It works. Thanks !


Cheers,
Jike
Stefan_K wrote:Hi Jike,

welcome to the board!

For vertical centering, you could use `\vcenter` in math mode. For example:
Define macros, so you could make adjustments easily.

Code: Select all

\newcommand*{\vcenterimage}[1]{\vcenter{\hbox{\includegraphics{#1}}}}
\newcommand*{\vcenterarrow}{\vcenter{\hbox{$\Longrightarrow$}}}
...
$\vcenterimage{filename}\vcenterarrow\vcenterimage{filename}$
Stefan
Post Reply