Presentations and PostersAligning block titles and giving them borders

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
cheesesofnazareth
Posts: 8
Joined: Mon May 10, 2021 2:11 pm

Aligning block titles and giving them borders

Post by cheesesofnazareth »

In one of my slides, I am trying to make two adjacent blocks. I want the block sizes to be the same size, so that the titles are at the same level/height. I also want border around the blocks of the same colour as its title.
Here is my MWE:

Code: Select all

Code, edit and compile here:
\documentclass[xcolor=dvipsnames]{beamer}
\usetheme{default}
\usepackage[latin1]{inputenc}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{color}
\setbeamersize{text margin left=10mm, text margin right=10mm}
\setbeamertemplate{blocks}[rounded]
\setbeamertemplate{blocks}[framed]
\setbeamercolor{block title}{fg=MidnightBlue}
\setbeamertemplate{footline}{\hspace{.5cm}\scriptsize{\insertshorttitle
\hspace{25pt} \hfill\insertframenumber\hspace{0.5cm}}
\vspace{9pt}}
\setbeamercolor{title}{fg=MidnightBlue}
\setbeamercolor{titlelike}{fg=MidnightBlue}
\setbeamertemplate{itemize items}[circle]
\setbeamercolor{caption name}{fg=MidnightBlue}
\beamertemplatenavigationsymbolsempty
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{microtype}
\setbeamertemplate{frametitle}{
\vspace*{4mm}\hspace*{-0.1mm}\insertframetitle\vspace*{1mm}\hrule}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usetikzlibrary{calc}
\title[\textsc{My Name}]{My Name\\~\\ My education and career}
%%% Until here marks the preamble
\begin{document}
\begin{frame}{Internships}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Last edited by Stefan Kottwitz on Tue Jun 15, 2021 9:06 am, edited 1 time in total.
Reason: \end{document} added

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

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Aligning block titles and giving them borders

Post by Bartman »

You could test the example with one click if you didn't have to add the end of the document environment first. Please make sure your example is complete before you send it.
cheesesofnazareth wrote:I want the block sizes to be the same size, so that the titles are at the same level/height.
Read section 12.7 "Splitting a Frame into Multiple Columns" in the beamer manual.
cheesesofnazareth
Posts: 8
Joined: Mon May 10, 2021 2:11 pm

Aligning block titles and giving them borders

Post by cheesesofnazareth »

Oh apologies. I have this MWE compiled and working. Just a copy-paste error. Apologies.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10328
Joined: Mon Mar 10, 2008 9:44 pm

Aligning block titles and giving them borders

Post by Stefan Kottwitz »

Hi,

I added the missing \end{document}. So the code compiles here in the forum when I click the "Run LaTeX here" button.

Did you already get the information from the manual, as Bartman posted the link above? Does it work?

Stefan
LaTeX.org admin
Post Reply