python – sympy in jupyter notebook cannot give answer in latex form

I encountered a problem when using sympy in Jupyter Notebook. Here is the code
(!(enter image description here)(1))(1)

import sympy as sp
x,y = sp.symbols('x,y')
expr = x**2 + y**2

Adding sympy.init_printing() will cause cessation of jupyter notebook. How could I solve this problem? Thanks!!
p.s. configuration: win10 + python3 + TexLive

export – Exporting string with newline and tab symbols to LaTeX

We have a string that has “tab” symbol between letters “B” and “C” and “newline” symbol between letters “C” and “D”:


"A BtCnD"


enter image description here

The output is formatted accordingly to special symbols used.

But when I export the same string to LaTeX, the special symbols n and t are interpreted literally like so:


ExportString["A btcnd", "TeXFragment"]


[text{A b$backslash $tc$backslash $newlined}]

If you put this Latex code into some TeX file the document will display literally “A BtCnD” and without “tab” and “newline” symbols.

How to tell the Mathematica to export the special symbols into LaTeX accordingly?

latex – “Render mathematics” is inactive in Inkscape

I recently installed Inkscape on Ubuntu 20 LTS, and I’d like to use the builtin latex support, but when I go to Extensions > Render > Mathematics > pdflatex, the button is grey, so clicking triggers no event.
I installed texlive using the ctan installer and not via apt.

plotting – How to properly write multiline text with LaTeX symbol in a frame and with background

I wanted to include a number of text-box with background color white inside a plot. The text inside the box will also have LaTex expressions as well as multiple lines.

Is there any way to include multiline text (including LaTeX symbol) inside a plot?

In addition I want to set frame and background color for the box.
I am currently using Epilog and Prolog to include such text.

  PDF(BinomialDistribution(50, p), k)}, {p, {0.3, 0.5, 0.8}}, {k, 0,50}), 
  Filling -> Axis, 
  FillingStyle -> Automatic,
  Epilog -> Text(Style(ToExpression("\text{E}_{x} \n text2", TeXForm, HoldForm),Bold),{30, 0.13}),
  Prolog -> {Inset(Framed( "E_{x}ntext2" , RoundingRadius -> 5,Background -> White), {45, 0.13})}
(*Prolog -> {Inset(Framed( MaTeX("E_{x}\n text2" ) , RoundingRadius -> 5,Background ->White),{45,0.13})}*)

Option-1 fails writing E_{x} as well as breaking line.
Option-2 fails writing E_{x} but breaks line.
Option-3 is the one I wanted but it fails in breaking line.

Is there any way to achieve this.

Moreover I also wanted to ask, what should one do if one has to include say more that two text boxes?

having problem inserting image in latex, only draws a square

I have uploaded an image .jpeg in overleaf and tried to include it my document but it does not show anything. It just draws a square but no image inside it. My code is below:

    includegraphics[width = .5textwidth]{Images/plot01.jpeg}

Can someone please help me with this

latex – Missing files after installing texlive-extra-utils

I’ve recently switched from U16.04 to U20.04.

For my work, I use a lot latex. After installing the all packages, including texlive-extra-utils, the scripts/programs pdfjoin, pdf90, pdf180, and pdf270 are missing.

They were available after the installation of latex on U16.04.
Why are they no present in U20.04?

Notice that pdfjam is present on my computer.

Generating PDF with LaTeX source using PHP on webhosting

I am preparing for my students some tests that should be generated by PHP on a webhosting. I have stored latex-source codes in database and I would like to get PDF together using PDFLaTeX. Is there any solution for that? I can not find anything in PHP.

The obvious answer would be to generate the tex-file and then use shel_exec with texlive install on my machine. But since it is on the webhosting where I can not install texlive, I can’t do that in general. I would use mPDF or FPDF, but I need mathematical environment.

If it is not with PHP, is there any change to use some JavaScript libraries on frontend to generate PDF for download?

Thank you.

How can I do the Pfaffian d operator in LaTeX?

It is a ‘d’ with a slash on the top. Like hslash.

Export styled grid to latex

I’d like to write a ExportString for Grid and/or TextGrid with basic style elements into Latex tables.

I would it at least support three things: styled text, styled dividers, and background colors.

Here is a basic example of what I want to be able to generate. Given this TextGrid in Mathematica:

TextGrid({{"","x","y","w","z"},{Style("variable 1",Italic),"a","b","c","d"},{Style("variable 2",Bold),"a","b","c","d"},
{Style("variable 3",Blue),"a","b","c","d"},{"variable 4","a","b","c","d"},{"variable 5","a","b","c","d"}},

enter image description here

A good solution would export something like the begin{tablular}...end{tabular} block below:

documentclass{article} (* assume these structure for the document *)

begin{table} (* the generated table code *)
begin{tabular}{l | a | b | a | b}
mc{1}{}  & mc{1}{x} & mc{1}{y} & mc{1}{w} & mc{1}{z} \
variable 1 & a & b & c & d \
variable 2 & a & b & c & d \ 
variable 3 & a & b & c & d \
variable 4 & a & b & c & d \
variable 5 & a & b & c & d \ hline


enter image description here

latex – How to convert 99 images of ansi symbols into a font with open-source?


Suppose one has 100 <ansi number>.svg (or .png images) (of +-400 kb each), starting at ansi code 32, up to ansi code 130. Each image contains the drawn symbol of the ansi code. How could one convert those images into a font that latex can read/use, using open source software?


  1. I verified one possible option of output specification for a custom latex font, which consists of the following 3 filetypes: output_font.fd, output_font.tfm and output_font.woff.