Troubles writing an equation with more than one letter in subscript

Hi everyone,

I tried to write an equation for the first time in Obsidian, that contains multiple letters in the subscript. I looked on the internet what I could find, using the {} but now I have a problem it does not include the whole equation anymore.

Edit mode vs view mode

How could I fix that? If I remove the {}, then there is only the first letter subscripted.

Many thanks!

@KrKAlex What is the actual source text of your equation? Please include the source text here as pre-formatted text (wrapped in three backtics ```).

P.S. I think, the percent sign causes the problem. It is used in LaTeX as comment delimiter, and should be escaped here using a backslash: \%.

2 Likes

Hi @saf-dmitry,

Initial equation

As pre-formatted text: FCcible = [(FCmax – FCrepos) × % VMAdésiré] + FCrepos

However, in the pre-formatted text and on the screenshot, the subscripts are not subscripted, they are just in lowercase …

I am not sure where should I add the backslash? Instead of the closing dollar sign?

Many thanks!

It does indeed seem like you should escape the percentage sign, as it comments out the rest of the equation. See image below for the difference:

So you need to add the backslash in front of the percentage sign.

1 Like

@KrKAlex

I am not sure where should I add the backslash? Instead of the closing dollar sign?

You should add the backslash in front of the percent sign: \%:

$FC_{cible} = [(FC_{max} – FC_{repos}) \times \%VMA_{désiré}] + FC_{repos}$

P.S. Actually, the correct way to write text indices would be

$FC_{\text{cible}} = [(FC_{\text{max}} – FC_{\text{repos}}) \times \%VMA_{\text{désiré}}] + FC_{\text{repos}}$
1 Like

Thank you @saf-dmitry and @holroy, it works!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.