I need to print what the publisher calls "a starlet" (asterisk).
I devised the code below, but I am not sure if it is a sound code, i.e., it won't cause problems later on, within other commands and the text stream.
Is that the idiomatic way to print a special character (in this case, mathabx
's \varstar
), centered and with 1 blank line above and below?
I am using \vgrid
in order to check the vertical alignment is preserved as precisely as possible, in respect to the underlying grid.
\documentclass[
DIV=calc,
twoside,
openright,
twocolumn=false,
titlepage,
numbers=noenddot,
headinclude=true,
footinclude=true,
]{scrbook}
\usepackage{kantlipsum}
\usepackage{mathabx}
\newcommand{\aster}{$\varstar$}
\usepackage{vgrid}
\makeatletter
\newcommand{\starlet}{%
\par
\vskip -0.5pt
\noindent
\parbox{\linewidth}{
\begin{center}
\aster
\end{center}
}
\par
\vskip 0.6pt % make it fit the grid
\noindent
}
\makeatother
\begin{document}
\kant[1]
\starlet
\kant[1]
\end{document}
\vskip
if at all possible. See alsofourier-orns
\varstar
symbol. I did not see that infourier-orns
. I am usingvskip
in order to precisely align the text to the grid. Try to remove it, and you will see the difference. Is there a safer alternative?\vskip
is\vspace
… see my answer below.