1
$\begingroup$

enter image description here

This is my first time using Wolfram Mathematica and writing in TeX. I'm on the free trial version of Mathematica, and I'm writing in a notebook, using the "Inline TeX Input" option on the "Insert" tab. Previously, I have only ever written mathematics in MathJax.

I tried the above first without the dollar signs. enter image description here

It didn't work then either. I figured maybe the problem was the lack of dollar signs. It appears not. A further confusing detail here is that the slash in front of the sum is red in the last picture, whereas it isn't in the one above. So I thought, maybe I have to add a dollar sign in front of all of them (not that that makes any sense to me, but I have no idea what I'm doing). enter image description here

It still didn't work, but in this instance, the slashes aren't red anymore. I don't understand why this isn't working, according to this guide, sigma functions are displayed by writing "\sum".

EDIT:

I tried doing as instructed in the answer by @Nasser, but upon pressing enter, the box turned red. Here's the code:

 Failure["TeXAssistantError", Association[
   "MessageTemplate" -> "Errors: `Errors`", 
   "MessageParameters" -> Association["Errors" -> {}], 
   "Input" -> "crtl$ \\sum_{j=0}^{3} j"]]
$\endgroup$
2

1 Answer 1

3
$\begingroup$

You have to first type ctrl$ then type the LATEX there with no $'s, since it is implied math mode. like this

Mathematica graphics

Which was entered using

enter image description here

Then hit the return key.

For more info, see InlineTeXInput.html

btw, no one really writes * in Latex as multiplication is implied with just the space. Better not use * in Latex.

Here is a video. Hitting CTRL$ is just a short cut for using the menu. Both work the same.

enter image description here

$\endgroup$
13
  • $\begingroup$ I tried doing this, but it didn't work. I have edited my question to include my faulty code. Not sure how I did it wrong. $\endgroup$
    – user110391
    Oct 28, 2021 at 0:15
  • $\begingroup$ @user110391 Could you post the latex on its own in your question that you are trying to input? as plain text? i.e. type the latex only. It could be your latex is not well formed. do not use double backslash. Only ONE backslash. You type normal latex in the input windows. I just tried it and it worked for me. $\endgroup$
    – Nasser
    Oct 28, 2021 at 0:16
  • $\begingroup$ Not sure what typing the latex as plain text means. Does it mean like this: "\sum_{j=0}^{3} j". That is the last expression I tried to put in, when I tried putting the "ctrl$" in front of it. $\endgroup$
    – user110391
    Oct 28, 2021 at 0:21
  • $\begingroup$ @user110391 You need to first type ctrl with dollar, then this should open a new small window like I showed. Only then you type the Latex there. are you using version 12.3? If you like I can post a video showing how. But first you need to have that little new window open. You do NOT type ctrl with dollar inside the little window that opens up. Only pure latex goes there. $\endgroup$
    – Nasser
    Oct 28, 2021 at 0:24
  • 1
    $\begingroup$ @user110391 I just tried it. Mathematica does not understand the latex command \floor. Looks like a bug. This is all new stuff and will have bugs in it. So basically try not to use these commands in your Input Latex for now. As for your sigma function solving, I suggest you make separate question on that, not related to Latex at all and keep it all using Mathematica code. Else this is getting confusing to have it all here with the latex issues involved. $\endgroup$
    – Nasser
    Oct 28, 2021 at 1:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.