github lattice-writer/lattice v0.20.11
Lattice v0.20.11

3 hours ago

Highlights since 0.20.10

  • The Agent can read folders outside the project. In the native Lattice, you can let the Agent read a folder that isn't part of the project, such as your Zotero storage or a sibling project with the house style. Add it under Settings › Agent › Display › Outside this project with Add Folder…, and take it away there with Remove. When the Agent needs a folder you haven't listed, it asks first, in Lattice's own dialog: Allow Once, Always Allow, which keeps the folder for this project until you remove it in Settings, or Don't Allow. Folders are kept per project on this Mac, so a cloned project brings none with it, and the home folder or anything above it, its hidden folders, the keychains and Lattice's own files can't be added. In both apps, the Agent now also reads a file outside the project that you name in the conversation or attach to a message, or that your sources reference by path, instead of refusing it. This guides the Agent; it isn't a sandbox. (#1497, #1502)
  • Format a selection in Visual view. In the native Lattice, selecting text in a .tex file's Visual view now shows a small toolbar, drawn like the source editor's, with Bold, Italic, Underline, Strikethrough and Quote. A format that is already applied shows as pressed, and pressing it again takes it off. A selection that crosses a paragraph, a command, an environment or math, which could not be wrapped cleanly, shows no toolbar. Escape puts the toolbar away. (#1503)
  • Typewriter mode and a smooth caret in the Markdown editor. In the native Lattice's visual Markdown editor, Settings › Editor & builds › Typewriter mode keeps the line you are writing in the middle of the pane, gliding there as you type or move; it is off until you turn it on, and the command palette's Turn on typewriter mode switches it too. The caret now glides to where an arrow key or a click puts it, stays solid while you type, and fades gently instead of blinking once you stop. With Reduce motion on in macOS, typewriter mode jumps instead of gliding, and the caret stays still and solid. (#1494, #1499)
  • Smart punctuation, when you want it. In the native Lattice's visual Markdown editor, Settings › Editor & builds › Smart punctuation curls the quotes you type, turns -- into an en dash, --- into an em dash and ... into an ellipsis. It is off by default, leaves code, math, links and Markdown syntax as typed, follows Chinese text when it picks a quote's direction, and Backspace right after a change gives the plain characters back. macOS's own smart quotes and dashes, on by default in System Settings, no longer apply anywhere in the native Lattice's web-based editors, the Markdown and Visual editors and the Agent's message box included, so a .md or .tex file no longer gains curly quotes or dashes you didn't ask for. (#1490)
  • Chinese and Japanese read better in the Markdown editor. In the native Lattice's visual Markdown editor, Chinese or Japanese text now gets a thin space next to Latin letters and digits, and the first of two punctuation marks in a row, such as 」。, is set at half width, as Chinese and Japanese typesetting asks. Only the drawing changes: the file keeps exactly the characters you typed, so Overleaf sync and Git diffs stay clean. (#1487)

Notable fixes

  • A typed letter shows a frame sooner. In the native Lattice's source editor, a key reached the screen about a frame after it was drawn. It is now shown with the keystroke itself: on a 60 Hz display, typical typing latency fell from about 61 ms to 36 ms. (#1488)
  • Visual view follows Line width. In the native Lattice, Settings › Appearance › Visual editor › Line width only ever changed the Markdown editor; a .tex file's Visual view kept a fixed column. It now follows the setting too. The group that holds it is now called Visual editor instead of Visual Markdown editor, since it styles both visual views. (#1496, #1500)
  • Labels on a PDF figure draw at their size. In the native Lattice's Visual view, the labels drawn on an editable figure that is a PDF came out at twice the size they were set to. They now match it. (#1498)
  • Highlights. In the native Lattice, a highlight full of bold text, formulas or citations no longer runs into the margin of the PDF, and a document that still has 0.20.10's \latticehl definition gets the new one on its next highlight. In both apps, highlighting a selection that holds only half of a pair of braces, or starts or ends inside a comment, is refused with a short notice instead of writing broken LaTeX. (#1485)
  • Settings fields sit inside their rows. In the native Lattice's Settings, a key or address field, such as the OpenAlex key under Literature services, no longer sits on the divider under its row. (#1486)
  • The Agent refuses a file it can't take. In the classic Lattice, dropping a PDF or other non-image file over 25 MB on the Agent now says it is over the limit, instead of looking attached while the Agent never got it. (#1495)
  • Building the native Lattice for Windows. For anyone building the native app for Windows from source: interface text is upright instead of slanted, the window has minimize, maximize and close buttons in its title bar, the app carries Lattice's icon, and PDF figures show in Visual view, on Linux too. (#1491, #1492, #1493, #1501)

Thanks

  • @JER-ry for reporting the native Windows build's problems, the missing Visual toolbar and the ignored Line width among them (#1489).

Changes in v0.20.11

  • Highlights: dense highlights stay inside the margin; refuse brace-crossing selections (#1485) (de6ae41e)
  • Settings: a key's field joins its row instead of sitting on the row's hairline (#1486) (df83c2ba)
  • Markdown: CJK spacing and punctuation width in the visual editor, drawn only (#1487) (53373cb2)
  • gpui-fast: present a key's frame with its own transaction, a frame sooner (#1488) (f61afb9a)
  • Markdown: opt-in smart punctuation, and no macOS smart quotes in webviews (#1490) (9e0c6f34)
  • GPUI: the Windows app binary carries Lattice's icon and its manifest (#1491) (b47600b2)
  • fix(gpui): draw Windows interface text upright by dropping Inter's STAT (#1493) (1cc3c419)
  • LaTeX Visual follows Settings' line width; e2e for Other font… under the pointer (#1496) (e2c09564)
  • Markdown: typewriter mode, in Settings and the command palette (#1494) (d0762290)
  • GPUI LaTeX Visual: draw PDF figures on Windows and Linux (#1492) (47cda731)
  • Classic app: refuse a dropped PDF over 25 MB at the drop (#1495) (b45c9135)
  • GPUI: folders outside the project the Agent may read, and its request_folder_access dialog (#1497) (947731a3)
  • Markdown: a smooth caret that glides and fades in the native app (#1499) (ddf61fc8)
  • GPUI: size a Visual figure's labels from the PDF page width the host reports (#1498) (79e8e2dc)
  • Settings: the group that styles both visual editors is "Visual editor" (#1500) (1644fd60)
  • GPUI: a Windows window's minimize, maximize and close are drawn in the title bar (#1501) (954ab562)
  • Pin Synara c705f93ac: the Agent reads what the writer names, attaches or grants outside the project (#1502) (69aad54c)
  • GPUI: Visual mode's selection toolbar, matching the source editor's (#1503) (2d239e70)

Install (Apple silicon Mac)

Download Lattice-native_*_aarch64.dmg below (the native app, which
every Mac runs from 0.20.0), open it, and drag Lattice to Applications.

Lattice is signed with an Apple Developer ID and notarized by Apple.

Already running Lattice? It updates itself automatically — no need to
re-download.

Full Changelog: v0.20.10...v0.20.11

Install (Linux, experimental)

Download the .AppImage below, make it executable
(chmod +x Lattice_*.AppImage), and run it. It needs an x86_64
distribution at least as new as Ubuntu 22.04 (tested on Ubuntu
22.04, 24.04 and 26.04 and Fedora 45), and your own TeX Live from the
distribution's packages. If FUSE 2 is missing, run it with
--appimage-extract-and-run.

On Linux, Lattice does not update itself — download each new release
here — and the built-in Agent is not available yet.

Install (Intel-based Mac)

On a Mac with an Intel processor, download Lattice-native_0.20.11_x64.dmg below
instead, open it, and drag Lattice to Applications. It needs macOS 14
or later, is signed and notarized like the Apple silicon download,
and updates itself the same way.

Don't miss a new lattice release

NewReleases is sending notifications on new releases.