Symbols of your own
The segment modality $\segment_X\, \varphi$ cuts a word at the positions in
$X$ and asks $\varphi$ to hold on every piece. It nests like any
quantifier, so
\[
\exists p\; \exists X\; \segment_X\; \exists a\;
\bigl(p \not\sim a \land \forall p'\,(a \le p' \lor p' \sim p)\bigr)
\]
says that the word splits into pieces, each with a value $a$ that differs
from the one at $p$ and comes first among the values of its piece.website/ the Hugo site
├── latex-fonts/
│ └── SegmentSymbol.otf the glyph, at U+01A7
└── content/docs/typesetting/
└── custom-symbols.md this page
examples/symbol/ --demos-dir: where file="…" is found
├── preamble.tex declares \segment
└── segment.tex the text above
SegmentSymbol.otf 2 glyph slots, 1000 units per em
- 0.notdefno code point
- 1segmentSymbolU+01A7
Slot 1, segmentSymbol, drawn large:
% Accessible formulas: tagging on and luamml loaded, so that LaTeX writes
% every formula's MathML (with classic fonts LaTeX loads luamml only when
% asked). Reflow TeX reads it for screen readers.
\DocumentMetadata{tagging=on}
\tagpdfsetup{math/mathml/luamml/load=true}
% A symbol no font has: the segment modality, one glyph drawn in FontForge and
% saved as an OpenType font, SegmentSymbol.otf, at U+01A7 ("Ƨ", the reversed S
% it resembles, so that copying it gives a real character). The build puts the
% font next to the document, so it is loaded by its file name; declared as a
% symbol font, it takes the script sizes from the math machinery.
\DeclareFontFamily{TU}{segmentsymbol}{}
\DeclareFontShape{TU}{segmentsymbol}{m}{n}{<->"[SegmentSymbol.otf]"}{}
\DeclareSymbolFont{segmentsymbols}{TU}{segmentsymbol}{m}{n}
% An ordinary math symbol, like \exists: \segment_X takes its variable as
% a subscript.
\Umathchardef\segment="0 \symsegmentsymbols "01A7\relax
% Character protrusion and font expansion, as in the PDF: the viewer
% protrudes and expands as the document says, and only then.
\usepackage{microtype}The segment modality $\segment_X\, \varphi$ cuts a word at the positions in
$X$ and asks $\varphi$ to hold on every piece. It nests like any
quantifier, so
\[
\exists p\; \exists X\; \segment_X\; \exists a\;
\bigl(p \not\sim a \land \forall p'\,(a \le p' \lor p' \sim p)\bigr)
\]
says that the word splits into pieces, each with a value $a$ that differs
from the one at $p$ and comes first among the values of its piece.{{< latex file="segment.tex" preamble="../examples/symbol/preamble.tex" />}}