Is there a possibility, in SVG, to determine a vertical position as being the "baseline" for that SVG graphics?
Context: we include a lot of inline SVG in tasks I prepare for students (see the attached screenshot, in which the circled 2 and 3 are actually SVG data). This text with inline SVG is published as HTML and in LaTeX. I'd like to find a way to include in my SVG files some marker such that later I don't have to manually specify a vertical offset for each graphic files to be perfectly aligned.
In this example, for instance, the bottom of the "2" within the circle should be determined as baseline, such that it can be automatically aligned with the bottom the of other characters that have no descender.

No, there is no such marker. The best you can do for a workaround is probably this: Set the bottom of the
viewBoxsuch that it represents the baseline. Then, if you globally setoverflow: visiblefor all of your SVG icons, it doesn't matter if you have grafical content outside the viewBox, especially below the baseline.