When using off-the-shelf "\frac" to display a continued fraction,
such as in:
-a a_0+\frac{1}{a_1+\frac{1}{\ldots+\frac{1}{a_k}}}
things get unreadably small pretty quickly. I'd like to be able to
display them with all coefficients the same size as the leading
coefficient. An example of what I'm seeking is: <https://sites.millersville.edu/bikenaga/number-theory/finite-continued- fractions/finite-continued-fractions.html>
(This certainly looks as if it was generated by TeX/LaTeX.) Does
anybody here have an example of how to achieve this effect?
On 28/02/2026 15:00, Michael F. Stemper wrote:
When using off-the-shelf "\frac" to display a continued fraction,
such as in:
-a-a a_0+\frac{1}{a_1+\frac{1}{\ldots+\frac{1}{a_k}}}
things get unreadably small pretty quickly. I'd like to be able to
display them with all coefficients the same size as the leading
coefficient. An example of what I'm seeking is:
<https://sites.millersville.edu/bikenaga/number-theory/finite-continued- fractions/finite-continued-fractions.html>
(This certainly looks as if it was generated by TeX/LaTeX.) Does
anybody here have an example of how to achieve this effect?
The image alt text on the page you referenced contains LaTeX code, for example:
$$\dfrac{4}{\pi} = 1 + \dfrac{1^2}{2 + \dfrac{3^2}{2 + \dfrac{5^2}{2 + \cdots}}}.$$
\dfrac is provided by amsmath.
On 28/02/2026 09.14, Nicola Talbot wrote:
The image alt text on the page you referenced contains LaTeX code, for
example:
$$\dfrac{4}{\pi} = 1 + \dfrac{1^2}{2 + \dfrac{3^2}{2 + \dfrac{5^2}{2 +
\cdots}}}.$$
\dfrac is provided by amsmath.
That works great. Thanks!
Just out of curiousity, is it common to put TeX in as the alt attribute? Being lazy, I would have just put the whole pdf up. Screenshotting each equation or derivation and inserting them into an HTML replication of
the original text is something that I never would have thought of.
Just out of curiousity, is it common to put TeX in as the alt attribute? >Being lazy, I would have just put the whole pdf up. Screenshotting each >equation or derivation and inserting them into an HTML replication of
the original text is something that I never would have thought of.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 18:04:30 |
| Calls: | 810 |
| Calls today: | 1 |
| Files: | 1,287 |
| D/L today: |
10 files (21,017K bytes) |
| Messages: | 193,396 |