You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use LaTeX commands in my Obsidian notes because that's how I convert to PDF, including stuff like \cite{abc}, \footcite{abc}`, etc.
Could you perhaps add an option to exlude these from the word count? This could be fairly simple to just exclude everything between a backslash \ and a close curly bracket }.
I don't know if regular expressions are at all useful for this, but for the Dynamic Highlights plugin, I use this capture group to highlight all my regex commands:
\\[^{}]+?\{\\[^{}]+?\{([^{}])+?\}|[^{}])+?\})
This also checks if there are nested curly brackets, e.g. \footnote{\cite{abc}, \cite{def}}
Much appreciated!
Thanks :)
The text was updated successfully, but these errors were encountered:
I use LaTeX commands in my Obsidian notes because that's how I convert to PDF, including stuff like
\cite{abc}
, \footcite{abc}`, etc.Could you perhaps add an option to exlude these from the word count? This could be fairly simple to just exclude everything between a backslash
\
and a close curly bracket}
.I don't know if
regular expressions
are at all useful for this, but for the Dynamic Highlights plugin, I use this capture group to highlight all my regex commands:\\[^{}]+?\{\\[^{}]+?\{([^{}])+?\}|[^{}])+?\})
This also checks if there are nested curly brackets, e.g.
\footnote{\cite{abc}, \cite{def}}
Much appreciated!
Thanks :)
The text was updated successfully, but these errors were encountered: