Guide

Typesetting in Tzuras HaDaf: the main text in the middle, the commentaries around it

In Tzuras HaDaf the main text stands in the middle of the page and the commentaries wrap around it, as on a page of Gemara. Ariach typesets this layout by itself: every dibbur on the page of the word it explains, the sides flipping between right-hand and left-hand pages, and the pages full to the last line.

Updated November 2, 2026 · 8 min read

A diagram of an open sefer in Tzuras HaDaf: on each page the Gemara in the middle, Rashi on the binding side and Tosafos on the outer sideGemaraTosafosRashiGemaraRashiTosafos
The main textThe commentary on the binding sideThe commentary on the outer side

What Tzuras HaDaf is

Tzuras HaDaf, “the form of the page,” is the way the Talmud has been printed since the first printed editions, and it became fixed in the Vilna Shas: the classic Vilna page layout. The Gemara stands in the middle of the page in square letters, Rashi on the inner side, next to the binding, and Tosafos on the outer side, both in Rashi script. The first lines of the commentaries are wide and stand above the Gemara, and the longer commentary continues below it as well.

Because Rashi is always on the side of the binding, the sides flip between the right-hand and the left-hand page. When the sefer lies open, the Rashi of both pages meets in the middle, and Tosafos stands at the two outer edges.

The layout isn't only the Gemara's. A Mishnah with its commentators, Shulchan Aruch with its nosei keilim, Mikraos Gedolos, and new seforim whose authors want the commentary to stand opposite the text: all of them are multi-text works, several texts on one page that depend on one another.

Two pages of Maseches Berachos with Rashi and Tosafos, typeset in Ariach. The sides flip between the right-hand and the left-hand page.

Why it is hard to typeset by hand

On an ordinary page there is one question: how many lines fit. In Tzuras HaDaf every decision depends on the others:

  • How much Gemara fits on the page depends on how much Rashi and Tosafos there is on those lines, because they have to fit on the same page.
  • The width of the columns changes down the page: wide at the top, narrow beside the Gemara, and wide again at the bottom.
  • When one commentary is short and the other long, someone has to decide which one gets the space under the Gemara.
  • Correcting one word on page 3 changes how every page after it is divided.

An experienced typesetter solves this page after page, and after every round of proofreading solves it again. That is why multi-text typesetting is the most expensive and the slowest work in the field.

How Ariach typesets Tzuras HaDaf

In Ariach you don't arrange one page after another. The engine works out the whole book at once, and works it out again after every change:

  • Every dibbur on the page of its word. Each piece of a commentary is anchored to a word in the main text, and the engine divides the pages so that they stay together.
  • The sides flip by themselves. You set once which commentary goes by the binding and which on the outside.
  • Pages full to the last line. The columns end on the same line, without pushing lines by hand.
  • A page that didn't work out says why. It is flagged for review, with the reason and with what you can do. Nothing is fixed behind your back.
  • What you set by hand stays. “New page here” or “keep with the next paragraph” are anchored to words, not to a place on the page, so they don't move when the text changes.
  • Less open space, fewer pages. An open line is the last resort: the engine would rather let a note continue on the next page. In Maseches Berachos, for example, the pages with open space went down from 35 to 2.
  • The details of the daf. The commentaries' lines above the Gemara, a narrow column in the margin like Ein Mishpat, a commentary on a commentary, and lines of two commentaries that stand opposite each other.

What the typesetter decides by hand

The engine's decisions are good, but the sefer is yours. Layout instructions give you the last word: end the page before this word, one line less or more, start this section on the next page. An instruction is anchored to words, not to a place on the page, so it stays right even after the proofreader has added a line on page 3.

And in the page division view you drag the bottom of each text on the page itself: how much Gemara, how much Rashi, how much Tosafos. You see at once what moved to the next page. An instruction whose situation has changed (its word was deleted, for example) is switched off and flagged, not quietly applied somewhere else. And how the engine decides where a page ends in the first place: why didn't this page work out.

Not only Gemara: up to sixteen commentaries on a page

The same engine typesets any multi-text sefer. The same chapter can stand with notes at the bottom of the page, or with the commentaries on both sides of it. Change the layout, and the text stays as it is.

Mishnah Berurah: Shulchan Aruch, Mishnah Berurah, Biur Halacha, Be'er Heitev, Shaarei Teshuvah and Shaar HaTziyun. Six texts on a page, each with its own width, font and size.
Mikraos Gedolos, Parshas Bereishis: the pasuk and the Targum at the top, and the commentators beneath them in tiers.

Weighing software for a sefer like this? Ariach, Tag, InDesign or Word.

Frequently asked questions

Have a question? We're glad to help.

About your book, a problem or an idea. We usually answer within a business day.

What is Tzuras HaDaf layout?

A layout in which the main text stands in the middle of the page and the commentaries wrap around it on both sides, as on a page of Gemara in the Vilna edition: the Gemara in the middle, Rashi on the side of the binding and Tosafos on the outer side. Every dibbur of a commentary is on the same page as the word it explains.

What software is used to typeset Tzuras HaDaf?

Typesetting software built for multiple texts on a page. Professional typesetters work mostly in Tag. Ariach is new software that typesets Tzuras HaDaf in the browser, with no codes: you choose the layout, and the pages fall into place.

Can I typeset a sefer I wrote in Tzuras HaDaf?

Yes. Tzuras HaDaf is a layout, and not only the Gemara's. Your own sefer with two commentaries, or a Mishnah with its commentators, can be set the same way. Upload the text and the commentary files, and each dibbur is placed beside its word.

What happens when one commentary is much longer than the other?

The engine balances the page: the longer commentary gets the lines under the main text, and the amount of main text on the page is set so that its commentaries fit. A page that couldn't be filled is flagged, with the reason.

How many texts can go on one page?

Up to sixteen commentaries and notes around the main text. A page of Mishnah Berurah has six texts, and Mikraos Gedolos has the pasuk, the Targum and the commentators in tiers.

Can I get the Gemara itself with Rashi and Tosafos?

Yes. You can bring in a sefer from the Otzaria library together with the commentaries you choose, and it is built as a book you can typeset, edit and add your own commentary to.

More from the blog

Found a mistake, or something missing? Write to us: support@ariach.com

Open the sample book, and change something in it

The sample book opens at once, with no sign-up. When you want to typeset a book of your own, open an account and upload the file.

Open a free account

A question before you start? Write to us, and we usually answer within a business day.