#Creating symbols
46 messages · Page 1 of 1 (latest)
?render
#let identast = $ident #place(dy: -0.85em, dx: -0.65em)[#text(size: 2em, $ast$)]$
$ident ast "vs" identast$
theres gotta be a better way hm
Svg would work too if necessary
yea the part where not all lines of the ident symbol are equal in length/disappear into the asterisk is kinda hard to recreate
Actually there's an additional - to make the middle line of equiv longer
ah lol
Ok so place is the thing to use
yea id try that first
Thank youuuu
?render theme=light ```
#let astar = style((s) => {
set text(font: "New Computer Modern Math")
let ast = text(top-edge: "x-height", sym.ast)
let (w, h) = measure(ast, s).values()
box(width: 1.5 * w, height: h, {
place(left + horizon, dy: -0.03em, line(length: 75%, stroke: 0.03em))
place(left + horizon, dy: -0.11em, line(length: 50%, stroke: 0.03em))
place(left + horizon, dy: +0.05em, line(length: 50%, stroke: 0.03em))
place(right, ast)
})
})
$ a astar b = c ast d $
(yes at this point I might as well go with an svg)
yea i wanted to use h first too but the baseline is kinda fucky with the increased text size
yeah, scrap that idea
yeah baseline's weird af
but h should work better because of auto spacing
I wasn't able to get an ast in a box to look like a regular ast
?render $ ast#box(text(top-edge: "x-height", sym.ast))ast $
old man yells at pixels
impressive, ok
And so much more readable than the latex counterpart hahahahaha
how bad does the latex look?
{\displaystyle\equiv\kern-1.6ex-\kern-1.5ex\smash{\scalerel*{\vphantom-\ast}{\sum}}\kern-0.2ex}
?render $\u{273b}$
And it doesn't adapt at all to a change of font
it does, it's just that your set font doesn't have the symbol, so it falls back
?render
#let identast = $ident #h(-0.5em) - #h(-0.5em) #box(baseline: 2.75pt, text(size: 2em, $ast$))$
$a identast b$
the extra minus
yes yes 🙂
no place
the - doesnt match sadly
but write something after the identast to show that it doesnt clip
this would honestly be a good use of custom fonts and private area codepoints