# latex minipage wider than textwidth

In normale minipage examples allways textwidth would be used to determine width of minipage. But also the paperwidth could be used too.

example

\documentclass{article}

\begin{document}
\noindent
\begin{minipage}{0.5\textwidth}
\fbox{frame around dummy text and more}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\fbox{second framed dummy text and more}
\end{minipage}
\begin{minipage}{0.5\paperwidth}
\fbox{frame around dummy text and more}
\end{minipage}
\begin{minipage}{0.5\paperwidth}
\fbox{second framed dummy text and more}
\end{minipage}
\begin{minipage}{\paperwidth}
\fbox{third framed dummy text and more dummy text to show how big is paperwidth instead of textwidth}
\end{minipage}
\end{document}


How it looks:

# latex minipage text beside figure

How to put text beside figure with minipage?

We use two minipages side by side in first one we put the figure e.g. pic1 und in second one the text. The vspace command in the second minipage is only a hint, for example if the text is not enough you could push it up by using vspace. (There are better ways to do this, but this is the fast version).

\begin{minipage}{0.5\textwidth}
\includegraphics[width=\textwidth]{pic1}
\end{minipage}
\begin{minipage}{0.5\textwidth}
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\\
on pic 1 you find the word pic 1\ \vspace{2.5cm}\\
\end{minipage}


# latex minipage side by side figures

To get two figures side by side just use this example:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 1}
\end{minipage}
\begin{minipage}[c]{0.5\textwidth}
\includegraphics[width=\textwidth]{figure 2}
\end{minipage}
\end{document}


It also works with two tables side by side.

# latex beamer change font size table

One of the typical problem by using beamer class are tables respectively showing tables. If they are to big to be shown on one frame there are two possibilities to solve this problem.

Frist, use the plain option at the frame where you want to set the table

\begin{frame}[plain]
\frametitle{a table is to big}
\begin{table}
\begin{tabular}{|r|c|l|}
\hline
test 1 & test 2 & test 3\\
\hline
A & B & C \\
\hline
\dots & \dots & \dots \\
\hline
\end{tabular}
\end{table}
\end{frame}

By using plain you just get a little bit more space to fill.

Second, just change the font size within the table:
\begin{frame}
\frametitle{a table is to big}
\begin{tiny}
\begin{tabular}{|r|c|l|}
\hline
AAA & BBB & CCC \\
\hline
111 & 222 & 333 \\
\hline
\end{tabular}
\end{tiny}
\end{frame}

Now the font is tiny and has a size of 6 pt because normalsize is 11 pt.
An overview about the size and commands you will find here even for other documentclasses.

# latex font size 20pt

How to get a document with font size 20pt?

If your using one of the default documentclass e.g. article with default font size 10 pt then just use the command \huge and size will be increase to 20 pt.

\documentclass{article}
\begin{document}
\huge
text text ...
\end{document}