Login
You're viewing the mstdn.social public feed.
  • Jan 23, 2026, 8:09 PM

    anyone know their way around latex here?

    I'd like to have → (rightarrow), but rendered like approximately everywhere else with straight lines for the arrowhead instead of latex's curved arrowhead. Changing the font doesn't seem to change the arrow.

    #latex

    💬 2🔄 3⭐ 0

Replies

  • Jan 25, 2026, 9:47 AM

    thanks everyone, especially @TeXhackse for helping!

    I learned that math font is not the same as the font for regular text, and of the albatross utility.

    Solution by Marei:
    package that configures fonts like : \usepackage[default]{sourcesanspro}

    Or use unicode-math to configure the mathfont separately, and enable unicode in math too:
    \usepackage{unicode-math}
    \setmathfont{STIX-Regular}

    This produces a → different from the one I originally had in mind, but I actually like it more

    #texlatex

    💬 0🔄 0⭐ 0
  • Jan 23, 2026, 8:16 PM

    @ari it depens a lot on your specific font setup.

    Changing the font does usually not change the math font. And it would be necessary that the font includes the corresponding glyph.

    So its hard to answer in General.

    Alternativly you can look up the symbols list... If you find an arrow there which you would like to use.

    💬 1🔄 0⭐ 0
  • Jan 23, 2026, 9:19 PM

    @TeXhackse I guess the symbol list is something I wanted to look into anyway. Could you tell me / point towards how I do that?

    I searched for "latex font browser" and a few variations and didn't find anything :/

    thanks already!

    💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • Jan 23, 2026, 10:02 PM

    @ari and … just because i know it can be confusing for users …

    In case you let me know about your current config I might be able to make a more detailed suggestion

    💬 0🔄 0⭐ 0
  • Jan 24, 2026, 6:20 AM

    @TeXhackse maybe my confusion is: from ca the rest of the world, the appearance of concept chars like U+2192 are rendered into → by the font: when I change the font, as long as the font has the character, it will change it. Is this not the case in latex?
    Plus elsewhere I can browse fonts with custom text.
    tbh if I'd start this kind of document again, I'd try with something that's not tex at all.
    I'm really on a script-kiddy level with *tex but a lot of things I see make me want to run away.

    💬 1🔄 0⭐ 0
  • Jan 24, 2026, 8:12 AM

    @ari Well … actually it does if the font contains the character. LaTeX had an issue which led to characters just being lost if the font did not contain it. There was a message to detect it but one would have to pay attention.

    So now those symbols which are available n the standard font will be rendered using that one if the font itself does not change that.

    As an example for a font which contains the arrow you could use \usepackage[default]{sourcesanspro}

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jan 25, 2026, 10:02 AM

    @ari Great and you are very welcome.

    Would not call it solution, rather an example… As I didn't know what fonts you used. ;-)

    But good to know you were talking about math mode. Your first question made me rather think of text.

    unicode-math also allows you to combine fonts, so it would also be possible to just take as specific range from one font and rest from another. As math fonts usually are focusing on some specific part of unicode, that might helpful.

    💬 1🔄 0⭐ 0
  • Jan 25, 2026, 10:18 AM

    @TeXhackse Actually it's regular text, but since inline-math is a thing, it's an option.

    IIRC There's still a ton of Q&A on the web that says you'd have to use inline-math for arrows, so it can't be too bad right? >.<

    💬 1🔄 0⭐ 0
  • Jan 25, 2026, 10:25 AM

    @ari Well…

    It was necessary before unicode. Issue with web search concerning LaTeX is, that most of the content you find is outdated.

    So yes it can be bad. And a lof of things you read online concerning LaTeX are not longer valid.

    I mean the default did exactly that. It was switching to your math default.

    i would switch as little as possible. Inline math is okay, if it really is math content. If it's about a single symbol in text I would not switch the font or mode if not required.

    💬 0🔄 0⭐ 0