connorferster / handcalcs

Python library for converting Python calculations into rendered latex.
Apache License 2.0
5.68k stars 435 forks source link

Optionally disable subscripting #97

Open altaic opened 3 years ago

altaic commented 3 years ago

First off, this project is awesome. Many thanks for your diligent work.

The only trouble I'm running into is the underscore character being commandeered for subscripts. Is there any way to disable subscripts on a per-variable basis, per-cell basis, or even globally?

connorferster commented 3 years ago

Hi @altaic,

Thanks for the feedback! I have been thinking it would be worthwhile to have a global set_options system, similar to what pandas has, with potential to override at the cell level.

Currently, this behaviour is hard-wired. For me, I adapt my naming scheme to work with the subscripts but there certainly have been times when I would have liked to be override it!

I will keep this issue up as a reminder to me to add this to the "settings" feature when I get to it. Sadly, it may be a while as I have been asked to develop a large application for my office that has been taking many of my extra-hours :(

altaic commented 3 years ago

Understood; I look forward to it whenever it lands. Thanks again!