# Question:small issue in Latex. Use of mathrm for ln

## Question:small issue in Latex. Use of mathrm for ln

Maple 2020

I am still checking output using latest Latex and Maple 2020.2. I noticed a small problem.

Current Latex uses \mathrm{ln} instead of as before, which is just \ln this casues the space before the operator now to be lost, cause hard to read math.

It is better not to use \mathrm on ln

Here is an example

restart;
Latex:-Settings(UseImaginaryUnit=i,
UseColor = false,
powersoftrigonometricfunctions= computernotation,
leavespaceafterfunctionname = true
):
expr:= 4*exp(3*x)+3*ln(x);
Latex(expr)

4 {\mathrm e}^{3 x}+3 \mathrm{ln}\left(x \right)



It should be

4 {\mathrm e}^{3 x}+3 \ln\left(x \right)

Without even \, between the letter before \ln as old latex() did:

latex(expr)

4\,{{\rm e}^{3\,x}}+3\,\ln  \left( x \right)


As the Latex engine itself takes care of the spacing around math operators best.

Here is the difference when the Latex is compiled. The use of mathrm with exponential is not an issue, since it is one letter operator, but not with ln.

\documentclass[12pt]{book}
\usepackage{amsmath}
\usepackage{mleftright}
\mleftright

\begin{document}
This is how it is now
$4 {\mathrm e}^{3 x}+3 \mathrm{ln}\left(x \right)$

This is what it is better to be
$4 {\mathrm e}^{3 x}+3 \ln\left(x \right)$
\end{document}

Compiled with lualatex compiler gives

The above shows the space problem.

Using Maple 2020.2 and Physics   879

﻿