Semilogarithmic plots normally mark major ticks with powers of 10 and no mantissa or separator, e.g., 10^3, 10^4,..., rather than 1.10^3, 1.10^4, etc. Pgfplots provides this capability through standard formats using default math fonts.
I need to use sans serif fonts for the tick numbers on both axes, which I've managed to do in the example below. Unfortunately, the ticks that I'd like to have in powers of ten appear with a mantissa and separator as well.
My question: How can I eliminate the mantissa and separator while keeping the other formatting as it is? I am running LuaLaTeX.
\documentclass{article}
\usepackage[svgnames,x11names]{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\pgfplotsset{%
width=0.9\textwidth,
height=0.6\textwidth,
every axis/.append style={thick},
every minor tick/.append style={very thin,black},
every major tick/.append style={thin, black},
major tick length={1.2em},
minor tick length={0.5em},
}
\begin{document}
\begin{tikzpicture}
\begin{semilogyaxis}[
log basis y=10,
minor x tick num=1,
xticklabel={$\mathsf{\pgfmathprintnumber{\tick}}$},
yticklabel={$\pgfmathparse{10.00^(\tick)}\mathsf{\pgfmathprintnumber[std=-2:2, precision=1]{\pgfmathresult}}$},
% does not solve the problem of wanting an 10^\tick with no mantissa.
]
\addplot [domain=0:10, ultra thick, color=blue] {exp(x)};
\end{semilogyaxis}
\end{tikzpicture}
\end{document}
The plot below, obtained by commenting out the yticklabel entry in the code, shows the default semilog layout with no mantissa. (For clarity, my question is not about adjusting the lower values (1, 10, 100) or resetting logarithmic ordinate to fixed point numbers, which can be done by resetting std=
.)