3

I need to write a text at the center of my page document in LaTeX.

I also need that text to be quite big (so I need a command for increasing the font dimension), together with the fact that this text will be a maths formula

For example, be this image the prototype of what I need:

enter image description here

Can someone help me with the code?

I already found a way to colorize the whole background with

\documentclass{article}
\usepackage{pagecolor}
\begin{document}
\pagecolor{green!5!}


\end{document}

But now I need the centering landscape way, plus fond increasing for a maths formula (hence not a pure text, and I know there are problems, usually, for that [or better: I also did have problems in the past with the font dimension related to the maths environment]).

Thanks in advance!

2
  • 1
    Based on this question and the pdflscape page you should be able to do something like this.
    – epR8GaYuh
    Feb 2, 2017 at 15:25
  • @epR8GaYuh Thank you so much! I answered to my own question, inserting the code. Hope it will be helpful for other persons!
    – Henry
    Feb 2, 2017 at 15:55

2 Answers 2

2
\documentclass[a4paper,landscape,fontsize=50pt]{scrartcl}
\usepackage{lmodern}
\usepackage{xcolor}
\pagestyle{empty}
\begin{document}
\color{red}
\[e^{i\pi} + 1 = 0\]
\end{document}

enter image description here

Or larger:

\documentclass[a4paper,landscape,fontsize=100pt,DIV=50]{scrartcl}
\usepackage{lmodern}
\usepackage{xcolor}
\pagestyle{empty}
\begin{document}
\color{red}
\[e^{i\pi} + 1 = 0\]
\end{document}

enter image description here

1

Here is the code for realizing such a thing.

\documentclass{article}
\usepackage{pagecolor}
\pagecolor{green!5!}
\usepackage{amsmath}
\usepackage{graphicx} % \scalebox
\usepackage{environ}
\usepackage{pdflscape}
\pagenumbering{gobble}% Remove page numbers (and reset to 1)
\NewEnviron{myequation}{%
\begin{equation*}
\scalebox{8.5}{$\BODY$}
\end{equation*}
}
\begin{document}
\begin{landscape}
\begin{center}
\vspace*{\fill}
\begin{myequation}
e^{\pi i} + 1 = 0
\end{myequation}
\vspace*{\fill}
\end{center}
\end{landscape}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.