Picking glyphs with Alt

A formula is made of glyphs: the letters, the digits, the signs. Hold Alt in the Preview and click a glyph to pick it. Pick a few, in one formula or across several, and colour them, hide them, or put a brace or a shape on them.

Picking with Alt

In the Preview, hold Alt and:

A click on the 2 of 2ab; Alt+Shift+click on the b picks the range; an Alt+drag from the formula picks what a rectangle touches (here the a²), in place of the glyphs picked before.

A click does not have to hit the glyph's ink: a glyph whose box is within about 6 pixels of the pointer is picked, so a thin stroke or the gap of an = is not hard to aim at (the circle selector goes further). A click on a formula but not on a glyph clears the pick. Alt held before you press, on empty space, pans the view instead.

The picked glyphs wear a faint yellow fill and a yellow outline, and so does the rectangle; the clip they belong to is selected. Their colour is a preference (below).

The bar

While glyphs are picked, a bar appears in the top-left corner of the Preview. It says what is picked and offers what can be done with it.

The bar of picked glyphs: '6 glyphs of 2 formulas', then Colour, Brace and Shape menus and a close button.
(1) What is picked; (2) Colour ▾; (3) Brace ▾; (4) Shape ▾; (5) the button that clears the pick.

The same gestures in the glyph view

The formula editor's glyph view picks glyphs in the same three ways, without Alt:

To pickIn the PreviewIn the glyph view
One glyph; again, take it outAlt+clickclick picks only that one; Ctrl+click toggles it
A rangeAlt+Shift+clickShift+click
What a rectangle touchesAlt+drag from a formula; Shift addsdrag over the drawing; Ctrl or Shift adds

Across formulas

Pick a glyph of one formula and then Alt+click a glyph of another: it joins the pick. A rectangle takes the glyphs it touches in every formula it crosses. The bar then says, for instance, “6 glyphs of 2 formulas”, and the formulas that have picked glyphs are the selected clips for as long as the pick lasts. (A range is always within one formula.)

Two identities, one under the other, with the 2ab of each in yellow and a teal box round each formula; over them a bar that reads 6 glyphs of 2 formulas.
Six glyphs of two formulas, picked: the yellow glyphs, the two selected formulas, the bar, and the hint at the bottom.

With glyphs of several formulas picked, the bar and the menu offer:

The last glyph of each identity, the exponent of its b², is picked in both formulas, and Brace ▾ ▸ Right puts one brace to their right, spanning both formulas. Deleting the clip of one of the formulas does not delete the brace: it stays where it is, detached.

Hiding at the start, the colour sequence and On some glyphs… are for the glyphs of one formula, so they are not there for a pick across several.

What picked glyphs are for

MenuWhat it does with the picked glyphs
Colour ▾A colour for them — from the Manim palette, from the roles of the active editor palette if there is one, or any #RRGGBB typed in the Hex field — or, with Clear colour, none of their own. The colour belongs to the formula, so it shows in every clip of it. Copy colour to clipboard (for a single glyph) puts its colour on the system clipboard; Copy colour sequence and Paste colour sequence carry the colours of a pick to another pick of the same symbols. Hide at the start and Show at the start, for the glyphs of one formula: hidden glyphs wait out of the picture when the formula appears, until an Appear block or a relation brings them in.
Brace ▾A brace on them: Below, Above, Left or Right; for one formula, On some glyphs… opens the dialog with them picked.
Shape ▾A shape on them: Box, Circle, Underline, Cross, Cross line or Highlight; again On some glyphs… for one formula.

The clip's own right-click menu does the same when the glyphs are picked: its Add brace and Add shape entries say “on the selected glyphs”.

The Colour menu of picked glyphs: swatches, Clear colour, Copy colour sequence, Paste colour sequence, Hide at the start and Show at the start.
The Colour ▾ menu of glyphs of one formula.
The Brace menu for glyphs of several formulas: Below, Above, Left, Right.
The Brace ▾ menu for glyphs of several formulas: four sides, and no dialog.

Colours, braces and shapes are described in Colouring glyphs and objects, Braces and Shapes. Two neighbouring tools pick glyphs with plain clicks instead of Alt: Align by symbol and the copying of colours glyph by glyph in order (Shift+C, described in Colouring glyphs and objects).

The selection colour

The colour of picked glyphs, and of the rectangle that picks them, is a preference: Preferences ▸ Glyph selection colour. It offers the same six colours as the snapping guides — Yellow, Orange, Magenta, Cyan, Green and White — and starts at yellow. It is separate from Guide colour: changing one does not move the other. The choice is kept in the browser.

The Preferences menu with the Glyph selection colour submenu open: six colours, Yellow marked.
Pick another colour if the glyphs you are working on are yellow themselves.

Thin glyphs

A minus, a dot, the bar of a fraction: the thin symbols are the hardest to hit. Two aids make them reachable.

The circle selector in the Preview

Press S, or the second button of the view toolbar (Circle selector). The pointer becomes a dashed circle, and a click takes the symbol nearest to the pointer within the circle. A plain click takes its formula; Alt+click takes the symbol itself. Shift and the wheel change the reach, and S again gives the pointer back. The choice is kept. The two pair editors, the relation editor and the pair editor of a Morph block, always take glyphs with the same circle, at the same size.

An Alt+click a little above the minus picks nothing. With the circle selector on (S), the same click picks the minus.

The glyph view

The formula editor has a Glyphs view, which draws every glyph of the formula and lets you click, range-select (Shift), toggle (Ctrl) or drag a box over glyphs, to colour or hide them at the start. In it, every glyph has a frame that is at least 10 pixels each way, whatever the zoom, drawn under all the glyphs: the bar of a fraction and a minus sign take clicks, show their state — selected, hidden, coloured — and glow like a letter.

The glyph view of a formula with a fraction and a minus: the fraction bar and the minus sign are selected, each with a frame.
The bar of the fraction and the minus sign, picked in the glyph view.

The Glyph list button beside the Glyphs title lists the glyphs under the drawing, each with its index and label; with the list shown you can pick glyphs from the keyboard. It stays off until you press it.

Try it

Open the start file: two identities, one under the other.