ReflowEd
ReflowEd
A LA TEX editor in your browser
ReflowEd is a free LA TEX editor that runs in your browser.
The problem. With LA TEX, you compile the whole document into pages again and again while you are still writing it. Figures move away from their text, lines run into the margin, and one cryptic error stops everything.
What ReflowEd does. It keeps writing apart from page layout:
• No pages. The text fits the window, wide or narrow, so there is nothing to fix while you write.
• Blocks. Each block is typeset on its own: only the block you edit is typeset again, and an error stays in its block.
ReflowEd is in an early alpha stage. Expect bugs, missing features and changes between releases, and keep a copy of anything important outside the browser.
To learn more, read the introduction to ReflowEd below.
An Introduction to ReflowEd
1 What ReflowEd is
ReflowEd is a LaTeX editor that runs in your browser. A document is a list of blocks: a paragraph, a heading, a theorem, a proof, a figure. Each block is typeset by a TeX engine running on your machine, and the result is broken into lines again for the width of the window, so the same document reads well on a wide screen and on a phone.
ReflowEd keeps writing a document apart from setting it in pages. While you write, the content keeps changing, and it does not need to be broken into pages yet. Nor should one cryptic LaTeX error stop the whole document. So a ReflowEd document is:
• pageless: there are no pages, so there are no figures to push around and no line breaks to fix, and the text does not jump about while you edit;
• made of blocks: each block is typeset on its own and changes nothing for the others, so only the block you edit is typeset again, and an error stays in its block.
Both come from the approach of ReflowTEX, which breaks TEX’s lines again for any width.
In ReflowEd, clicking on a block opens its source; change it, and the block is typeset again as you type.
The same document can be open twice, side by side, as in Fig. 1; an edit in one pane shows in the other.
Figure 1: A split view: the same document in two panes.
The side panel lists the document’s sections in the Outline (Fig. 2), and each section has a menu of its own (Fig. 3).
Figure 2: The side panel with the Outline.
Figure 3: The section menu.
The View options set the width of the text and the theme; Fig. 4 shows the four themes.
Figure 4: The View options and the four themes.
2 Editing a block
Clicking on a paragraph in ReflowEd opens its LaTeX source next to it, with the caret at the place of the click. While you type, the block is typeset again and the preview follows. Escape closes the source.
Figure 5 shows the source of a block open in the code popover.
Figure 5: The code popover open on a block.
A long paragraph can be split into two blocks at the caret, and two neighbouring paragraphs can be joined again. Blocks can be moved by dragging them.
3 Mathematics
Theorems, proofs and numbered equations are blocks like any other. The numbers are worked out for the whole document, so a block typeset on its own still shows the right number.
Definition 3.1. The nth triangular number is Tn = 1 + 2 + · · · + n.
Theorem 3.2. For every n 1,
Tn = n(n + 1) 2 .(1)
Proof. Write the sum twice, once forwards and once backwards, and add the two term by term: each of the n pairs sums to n + 1, so 2Tn = n(n + 1).
Theorem 3.2 and Eq. (1) above are cross-references. Pointing at one shows its target, here as in ReflowEd. In the editor, a change to the label in the theorem shows as a problem at the reference straight away.
Figure 6 shows the card a cross-reference opens.
Figure 6: The reference card of a cross-reference.
4 Citations
This paragraph cites [1] and [2]. Pointing at a citation shows its entry. In ReflowEd, the bibliography at the end is a block like any other.
5 Figures
In ReflowEd, a TikZ picture such as Fig. 8 is typeset by the engine in your browser.
A picture can also be drawn in the figure editor (Fig. 7).
Figure 7: The figure editor.
Figure 8: The fourth triangular number.
6 Notes and TODOs
A \todo note shows as a small mark in the text, and in ReflowEd the TODOs panel lists every note of the document.
A note like this one.
7 Tables and lists
Tables and lists are blocks too.
• a paragraph is one block;
• a theorem, a proof or a figure is one block;
• the preamble is shared by every block.
Block What it holds Paragraph text and inline maths Theorem a statement, with its number Figure a picture and its caption
Table 1: Some kinds of block.
8 Where your document lives
ReflowEd’s engine runs in your browser, and your documents are kept in the browser’s storage, so a document never leaves your machine unless you export it.
References
[1] Donald E. Knuth. The TEXbook. Addison-Wesley, 1984.
[2] Leslie Lamport. LA TEX: A Document Preparation System. Addison-Wesley, second edition, 1994.