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.
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.
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
@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.
@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!
@ari Sorry i messed up using the reply …
run`texdoc symbols` in case you have a local TeX distribution including docs.
or texdoc via web https://texdoc.org/serve/symbols/0 or https://ctan.org/pkg/comprehensive
Concerning fonts there is https://www.tug.org/FontCatalogue/
Though … nowerdays one would just use lualatex anyway which would resolve most issues. In that case the fontspec documentation (same methods as above to access it) would help.
@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
@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.
@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}
@ari Im case you are searching for a font containing special characters, which is already available on your system for #TeXLaTeX (using lualatex) you could use the
#IslandOfTeX's albatross tool.
It will show you a list of fonts which contain all characters you ask for
@ari IMHO all the default LaTeX arrows do not come with straight lines. Interestingly the manual for the TikZ package shows arrows with straight lines:
https://tikz.dev/tikz-arrows#sec-16.5.1
I am pretty sure there is more to be found
@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.
@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? >.<
@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.