Document ClassesSize of Title Block in Presentation

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Size of Title Block in Presentation

Post by manojg »

Hello everyone,

I want to change the title block size and its background color in beamer. Also, I want to change the vertical spacing between the title, author name and date. I searched but no luck. Any suggestions?

Thanks.

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

tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

Size of Title Block in Presentation

Post by tommytex »

hi manojg,

here is some basic example for you ;-)

Code: Select all

Code, edit and compile here:
\documentclass[12pt]{beamer}
\usepackage[english]{babel}
\usetheme{Berlin}
\usecolortheme{orchid}%crane
\title{How to use blocks in \LaTeX~Beamer}
\author{Tommytex}
\date{\today}
\defbeamertemplate*{title page}{customized}[1][]
{
\centering
\begin{beamercolorbox}[wd=\paperwidth,ht=3.8ex]{palette primary}
\centering \usebeamerfont{title}\inserttitle
\end{beamercolorbox}
\vspace{1.4cm}
\bigskip
\insertauthor\par
\insertdate\par
}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}{Example}
\begin {block}{Blue block} this is the blue block \end{block}
\begin {alertblock}{Red block} this is the red block \end{alertblock}
\begin {exampleblock}{Green block} this is the green block \end{exampleblock}
\end{frame}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

for the block widths see http://tex.stackexchange.com/questions/ ... -in-beamer.


tommytex ;)
Attachments
beamerblock.pdf
(43.56 KiB) Downloaded 644 times
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Size of Title Block in Presentation

Post by manojg »

Thank you very much tommytex for you reply.

I encountered another error in latex (not beamer) and have a question about it. I am using mdframed package to make frame around the long text. Before, I got error about pgf, so I installed new version of pgf. Now, I am getting different error like this:

Code: Select all

hs.code.tex))) (/usr/share/texmf/tex/latex/mdframed/md-frame-1.mdf))
(/usr/share/texmf/tex/latex/lipsum/lipsum.sty)
(/usr/share/texmf/tex/latex/geometry/geometry.sty)
LaTeX Warning: Unused global option(s):
[letter].
(./main.aux) (/usr/share/texmf/tex/latex/psnfss/ot1ptm.fd)
ABD: EveryShipout initializing macros
! Undefined control sequence.
\mdfsetup ->\kvsetkeys
{mdf}
l.42 test text
? x
No pages of output.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Any suggestion?
Thanks.
User avatar
tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

Size of Title Block in Presentation

Post by tommytex »

hi manojg,

maybe you should make this be a new topic...
have you already tried the examples on http://www.tex.ac.uk/CTAN/macros/latex/ ... /mdframed/
(mdframed-example-default.pdf)?

mdframed

tommtex
Post Reply