Kapitel/Chapter 9

Einführung in LaTeX / Introduction into LaTeX

9.7.9

Special chaines of fractions

\documentclass[12pt,a5paper]{article}% Heiko Oberdiek
\usepackage{amsmath}
\newcommand*\cofrac[2]{%
  {%
    \rlap{$\dfrac{1}{\phantom{#1}}$}%
    \genfrac{}{}{0pt}{0}{}{#1+#2}%
  }%
}
\begin{document}
\[
  a_0 +
  \cofrac{a_1}{
    \cofrac{a_2}{
      \cofrac{a_3}{
        \genfrac{}{}{0pt}{0}{}{\ddots}
  }}}
\]
\end{document}

Ergänzungen

Theorem-like environments

\documentclass[12pt,a5paper]{book}
\usepackage{amsmath,amsthm}
\usepackage{fouriernc}
\newtheorem{theorem}{Theorem}
\usepackage{lipsum}
\newtheoremstyle{Special}%
  {3pt}%      ⟨Space above⟩
  {3pt}%      ⟨Space below⟩
  {\large\fontfamily{qzc}\selectfont}%⟨Body font⟩
  {}%         ⟨Indent amount⟩1
  {\itshape\bfseries}% ⟨Theorem head font⟩
  {:}%        ⟨Punctuation after theorem head⟩
  {.5em}%     ⟨Space after theorem head⟩2
  {Theorem~\arabic{Theorem}}% ⟨Theorem head spec (empty is ‘normal’)⟩
\theoremstyle{Special}
\newtheorem{Theorem}{Special}
\begin{document}
\chapter{These Real Numbers}
\lipsum[1]
\begin{Theorem}
This is a theorem Pythagore
$$a^2 + b^2 = c^2.$$
\end{Theorem}
\lipsum[2]
\end{document}

Zurück zur Hauptseite/Back to main page
Copyright $Id: chapter09.html 2 2022-12-28 16:38:18Z voss $