# latex put an long arrow in text

How to put an long arrow in text? Quit easy, but don’t forget the math environment!

\documentclass{article}

\begin{document}

Some text around the long arrow $\longrightarrow$ just for showing it.

\end{document}


More about the different kind of arrows you will find here.

# minipage with defined height

Could I create a minipage with defined height? Yes, but it wouldn’t work the way I or you want.

For example here is a minipage with a defined height of 2cm:

\documentclass{article}
\usepackage[showboxes,overlay]{textpos}
\begin{document}
\setlength{\parindent}{0cm}

\TPshowboxestrue
\begin{textblock*}{\textwidth}(1cm,1cm)
\begin{minipage}[t][2cm][t]{0.4\textwidth}
The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm. The height of this minipage is 2cm.
\end{minipage}
\end{textblock*}
\end{document}


And here how it looks:

The framed box is only to show that there is a minipage with a height of 2cm, but this doesn’t count.

# 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 set font size points footnotesize normal=11

How to change font size of footnotesize to 11pt?


\documentclass[12pt]{article}

\begin{document}
\noindent
Just a dummy text\footnote{more senseless text in 10pt}.\\
\noindent
\renewcommand{\footnotesize}{\small}
Just a dummy text\footnote{more senseless text now in 11pt}.

\end{document}


And how it look:

# latex no new page in chapter

Or, how to stop the new page if a new chapter starts?

The real question is why there is allways a new page, if chapter is used?
If you take a look on book.cls you will find this:

\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}


to stop the new page clearpage and cleardoublepage must be deleted and chapter command has to re-newed in a way like this:

\makeatletter
\renewcommand\chapter{\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother


# latex new page command

How to make a new page in Latex?

The command \newpage will make new page but only there is somethink on the new i.e. even an empty space sign would be enough.

\documentclass{article}
\begin{document}

How to make a new page in \LaTeX{}?

\newpage

command \newpage make a page break

\newpage
\newpage

but only there is somethink on this new page i.e. a quad or space
\end{document}


# latex noindent

How to set noindent for all paragraphs?

For all paragraphs just put after \begin{document} the command
\setlength{\parindent}{0em}

For one paragrah just put a \noindent before the paragraph starts.

# 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 title without date

How to get a title wihtout date?

The problem is not so easy to solve because just leaving the \date command away is not a solution which works. If you want a title without date you have to use the \date command in a different way.

...
\title{Title}
\author{Author}
\date{}
\begin{document}
\maketitle
...
\end{document}


Only if you use date like this: \date{} there would be no date. More about titlepage you will find here.