# Is there a way to insert mathematical functions while writing a note in TA?

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

It looks like you're new here. If you want to get involved, click one of these buttons!

## Comments

Yes, I have done this for propositional logic symbols. What I did was to google a list of the symbols, then created keyboard shortcuts in Keyboard Maestro to insert those symbols when I typed a specific trigger. e.g e§ gives ∃ for me.

edited to add: I wasn't using TA as my main note taking repository at the time, but I've just tried it out and it seems to work fine.

@GBC I'm not sure if that will work for what I had in mind. A "normal" mathematical equation for me has integrals, differentials, items with both numerator and denominator, etc. It's not finding the symbols so much as how they are arranged in the equation. Does that make sense?

I would normally produce such an equation in MathCad or similar software, but then to reference that in a note, one would have to take a screenshot and insert it as an image - doable, but not ultimately that helpful.

There is a program called MathJax which produces equations that can be viewed in a web browser and I vaguely recall reading somewhere that there was a way of incorporating this into a Markdown document. OK; googling that topic yields the following information:

https://hiltmon.com/blog/2017/01/28/mathjax-in-markdown/

If someone has some experience with this approach, or another one, could they share it here?

Does this help?

IA Writer - plain text on the left, preview mode on the right.

Will Simpson

My peak cognition is behind me. One day I will read my last book, write my last note, eat my last meal, and kiss my sweetie for the last time.

kestrelcreek.com

The proper syntax in iAWriter is actually simpler as in LaTeX;

$(C_8H_8)_n$

$\int(2xCosx-\frac{du}{dm}u)dx= 2x$

produces;

@GeoEng5 oh, of course, aplogies!

@Will and @Splattack

Thank you both for that excellent information! I didn't understand that the capability to preview LaTeX was built into IA Writer.

After some searching around on my iPad, I realized I already had, a year or so ago, downloaded a very useful app called MathKey (it is billed as a LaTex converter). When you run MathKey, it acts as a whiteboard which will convert and send hand-written math equations to the following web site:

https://mathkey-app.com/

This is how it works: You go to the above web site and note the 6-digit number that lets you connect to a remote session. You start up MathKey on your iPad and enter the 6-digit number. Then you hand-write your mathematical equation on the iPad screen and hit "Send". On the web site, your equation shows up in beautiful mathematical symbols, with the associated LaTeX code and MathML code below.

The MathML code worked in IA Writer directly as copied from the MathKey web site but it is long, "bulky" and not that readable (at least to me). Initially the LaTeX code did not translate in IA Writer's preview mode, but I looked at your example above and saw I needed to add a $ at the start and end of the LaTeX string.

This is what MathKey gave me, before the addition of the $ signs:

\int \left( 2x\cos x-\frac {du} {dm}u\right) dx=2x

This LaTeX string is similar to but a bit "wordier" than the one shown by @Splattack. I don't really understand the details of LaTeX (hence why I'm using MathKey in the first place), but I can read through it enough to change a symbol if my handwriting isn't converted accurately.

Your responses have answered my question fully - thank you so much!! This will see a lot of application in my #Technical_knowledge notes.

The Archive doesn't show MathJax preview (yet), but if you happen to have the app Marked installed, you can make use Marked to render MathJax very quickly.

Author at Zettelkasten.de • https://christiantietze.de/

@ctietze , when will there be MathJax functionality?

(One of my uni courses this term is very heavy on formulas; it would be nice to include them in my notes).

I'm sure you've read the earlier part of this thread on generating LaTeX or MathML code for equations. I checked with Marked 2 and it can view either one, so if you set up Marked 2 as an external editor for The Archive, you can view any of your Zettels with embedded equations just fine.

I like Marked 2's rendition of LaTeX code a bit better, but that's just personal preference.

@GeoEng51 , thanks! This is all good to know. While I use Markdown for my Zettels and shorter writings, I write my longer work in TeX (my classes require numerous reports, all ~10-15 pages). I'm also working toward using RMarkdown, which is basically Markdown that plays well with R (the statistics and graphics language) and converts easily to TeX. At least that's the plan for my thesis next year.

All of this to say that the Archive is integrated to my workflow, but I haven't figured out the best text editor yet, since I need R, TeX, and Markdown to all work together.

Can you post here when you figure out a text editor and workflow that functions as you want it ito? I'm interested to hear what you come up with. Thanks!

@GeoEng51 , I will! Believe me, I'm eager, too! I'll look into Marked.

There's no concrete plan for this, but once inline image preview is added, we want to revisit stuff that can be rendered as an image. Math is one of the contenders.

Author at Zettelkasten.de • https://christiantietze.de/

That would be great, for sure! I know a Zettelkasten is supposed to be primarily text, but nevertheless some additions like that would really make it more of my "integrated thinking environment."