LaTeX-Beamer: How to have two columns and center pictures in one of them












1















Thx to this life-saving forum, I was able to create a slide in LaTeX-Beamer that looks almost as I want it to:



documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
includegraphics[width=0.6textwidth {imgs/Image1.jpg}
includegraphics[width=0.6textwidth]{imgs/Image2.jpg}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Now, I want the two images in the right column to be centered. They are left-aligned. Furthermore I want to have a little vertical space between them. I have tried addvspace{2pt}, vspace*{2pt} but non of these seem to work.










share|improve this question























  • Your code is not compileable !

    – AndréC
    Mar 6 at 18:13











  • hmm... ok. Did you add your own images?

    – user503842
    Mar 6 at 18:18











  • It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

    – AndréC
    Mar 6 at 18:31
















1















Thx to this life-saving forum, I was able to create a slide in LaTeX-Beamer that looks almost as I want it to:



documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
includegraphics[width=0.6textwidth {imgs/Image1.jpg}
includegraphics[width=0.6textwidth]{imgs/Image2.jpg}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Now, I want the two images in the right column to be centered. They are left-aligned. Furthermore I want to have a little vertical space between them. I have tried addvspace{2pt}, vspace*{2pt} but non of these seem to work.










share|improve this question























  • Your code is not compileable !

    – AndréC
    Mar 6 at 18:13











  • hmm... ok. Did you add your own images?

    – user503842
    Mar 6 at 18:18











  • It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

    – AndréC
    Mar 6 at 18:31














1












1








1








Thx to this life-saving forum, I was able to create a slide in LaTeX-Beamer that looks almost as I want it to:



documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
includegraphics[width=0.6textwidth {imgs/Image1.jpg}
includegraphics[width=0.6textwidth]{imgs/Image2.jpg}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Now, I want the two images in the right column to be centered. They are left-aligned. Furthermore I want to have a little vertical space between them. I have tried addvspace{2pt}, vspace*{2pt} but non of these seem to work.










share|improve this question














Thx to this life-saving forum, I was able to create a slide in LaTeX-Beamer that looks almost as I want it to:



documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
includegraphics[width=0.6textwidth {imgs/Image1.jpg}
includegraphics[width=0.6textwidth]{imgs/Image2.jpg}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Now, I want the two images in the right column to be centered. They are left-aligned. Furthermore I want to have a little vertical space between them. I have tried addvspace{2pt}, vspace*{2pt} but non of these seem to work.







beamer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 18:09









user503842user503842

1206




1206













  • Your code is not compileable !

    – AndréC
    Mar 6 at 18:13











  • hmm... ok. Did you add your own images?

    – user503842
    Mar 6 at 18:18











  • It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

    – AndréC
    Mar 6 at 18:31



















  • Your code is not compileable !

    – AndréC
    Mar 6 at 18:13











  • hmm... ok. Did you add your own images?

    – user503842
    Mar 6 at 18:18











  • It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

    – AndréC
    Mar 6 at 18:31

















Your code is not compileable !

– AndréC
Mar 6 at 18:13





Your code is not compileable !

– AndréC
Mar 6 at 18:13













hmm... ok. Did you add your own images?

– user503842
Mar 6 at 18:18





hmm... ok. Did you add your own images?

– user503842
Mar 6 at 18:18













It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

– AndréC
Mar 6 at 18:31





It is up to you to make sure that users can help you by giving a fully compileable code. By putting example images: tex.stackexchange.com/q/454454/138900

– AndréC
Mar 6 at 18:31










1 Answer
1






active

oldest

votes


















3














Beamer uses TeX's normal rules to position text and graphics. So, for example, you can use a center environment for your images. As for the vertical space, make sure you end the paragraph first with e.g. a blank line (see this answer for info).



documentclass{beamer}
usepackage{graphicx}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
begin{center}
includegraphics[width=0.5textwidth]{example-image-a}

vspace{1cm}
includegraphics[width=0.5textwidth]{example-image-b}
end{center}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Output:



output






share|improve this answer
























  • thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

    – user503842
    Mar 6 at 19:24











  • You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

    – Pippip19
    Mar 7 at 6:30













  • yeah I managed, thx a lot!

    – user503842
    Mar 7 at 16:26











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478067%2flatex-beamer-how-to-have-two-columns-and-center-pictures-in-one-of-them%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Beamer uses TeX's normal rules to position text and graphics. So, for example, you can use a center environment for your images. As for the vertical space, make sure you end the paragraph first with e.g. a blank line (see this answer for info).



documentclass{beamer}
usepackage{graphicx}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
begin{center}
includegraphics[width=0.5textwidth]{example-image-a}

vspace{1cm}
includegraphics[width=0.5textwidth]{example-image-b}
end{center}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Output:



output






share|improve this answer
























  • thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

    – user503842
    Mar 6 at 19:24











  • You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

    – Pippip19
    Mar 7 at 6:30













  • yeah I managed, thx a lot!

    – user503842
    Mar 7 at 16:26
















3














Beamer uses TeX's normal rules to position text and graphics. So, for example, you can use a center environment for your images. As for the vertical space, make sure you end the paragraph first with e.g. a blank line (see this answer for info).



documentclass{beamer}
usepackage{graphicx}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
begin{center}
includegraphics[width=0.5textwidth]{example-image-a}

vspace{1cm}
includegraphics[width=0.5textwidth]{example-image-b}
end{center}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Output:



output






share|improve this answer
























  • thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

    – user503842
    Mar 6 at 19:24











  • You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

    – Pippip19
    Mar 7 at 6:30













  • yeah I managed, thx a lot!

    – user503842
    Mar 7 at 16:26














3












3








3







Beamer uses TeX's normal rules to position text and graphics. So, for example, you can use a center environment for your images. As for the vertical space, make sure you end the paragraph first with e.g. a blank line (see this answer for info).



documentclass{beamer}
usepackage{graphicx}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
begin{center}
includegraphics[width=0.5textwidth]{example-image-a}

vspace{1cm}
includegraphics[width=0.5textwidth]{example-image-b}
end{center}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Output:



output






share|improve this answer













Beamer uses TeX's normal rules to position text and graphics. So, for example, you can use a center environment for your images. As for the vertical space, make sure you end the paragraph first with e.g. a blank line (see this answer for info).



documentclass{beamer}
usepackage{graphicx}
usetheme{Hannover}
begin{document}
begin{frame}{MyTitle}
begin{columns}[T]
begin{column}{.5textwidth}
begin{block}{}
begin{itemize}
item Item1
item Item2
item Item3
end{itemize}
end{block}
end{column}
begin{column}{.5textwidth}
begin{block}{}
begin{center}
includegraphics[width=0.5textwidth]{example-image-a}

vspace{1cm}
includegraphics[width=0.5textwidth]{example-image-b}
end{center}
end{block}
end{column}
end{columns}
end{frame}
end{document}


Output:



output







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 6 at 18:20









Pippip19Pippip19

1,6338




1,6338













  • thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

    – user503842
    Mar 6 at 19:24











  • You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

    – Pippip19
    Mar 7 at 6:30













  • yeah I managed, thx a lot!

    – user503842
    Mar 7 at 16:26



















  • thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

    – user503842
    Mar 6 at 19:24











  • You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

    – Pippip19
    Mar 7 at 6:30













  • yeah I managed, thx a lot!

    – user503842
    Mar 7 at 16:26

















thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

– user503842
Mar 6 at 19:24





thx a lot, Pippip19 ! ... do you know how to add captions to these figures? It seems captions need for example a minipage. But I don't want to have so many nested-structures, I already have columns and boxes!

– user503842
Mar 6 at 19:24













You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

– Pippip19
Mar 7 at 6:30







You can place each image in a figure environment and then use caption{} in the normal way. I would recommend loading the caption package. If you want the figures to be numbered, put setbeamertemplate{caption}[numbered]{} in your preamble.

– Pippip19
Mar 7 at 6:30















yeah I managed, thx a lot!

– user503842
Mar 7 at 16:26





yeah I managed, thx a lot!

– user503842
Mar 7 at 16:26


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478067%2flatex-beamer-how-to-have-two-columns-and-center-pictures-in-one-of-them%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?