# How to typeset a continued fraction in the following style? [duplicate]

Possible Duplicate:
How do I typeset continued fractions in Pringsheim's concise notation?

How to type a continued fraction in displaystyle as shown below?

A similar but not quite equal style is the following one due to Alfred Pringsheim adapted from this entry of the Wikipedia:

which was obtained with

$\zeta (3) = \frac{6\mid }{\mid 5} -\frac{1\mid }{\mid 117} -\frac{64\mid }{\mid 535} -\cdots -\frac{n^{6}\mid }{\mid 34n^{3}+51n^{2}+27n+5} -\cdots .$


ADDED. By adapting David Carlisle's code in this answer to the question "How do I typeset continued fractions in Pringsheim's concise notation?" pointed to in the Jake's comment I was finally able to type

I used

\documentclass{article}

\def\cFrac#1#2{%
\begin{array}{@{}c@{}}\multicolumn{1}{c|}{#1}\\%
\hline\multicolumn{1}{|c}{#2}\end{array}}


together with

$\zeta (3) = \cFrac{6 }{5} -\cFrac{1}{117} -\frac{64}{535} -\cdots -\cFrac{n^{6}}{34n^{3}+51n^{2}+27n+5} -\cdots .$


So this question can be considered as a duplicate of the question mentioned above. Thanks to all!

## marked as duplicate by yo', Jake, lockstep, egreg, barbara beetonSep 24 '12 at 13:08

• Note 1. \frac{64}{535} should be replaced with \cFrac{64}{535}. Note 2. It looks better with thick spaces \; between fractions: \def\cFrac#1#2{% \;\begin{array}{@{}c@{}}\multicolumn{1}{c|}{#1}\\% \hline\multicolumn{1}{|c}{#2}\end{array}\;} – Américo Tavares Sep 29 '12 at 19:54