I am using the Overleaf web site to put together an article, and this uses this code. I am getting the error I posted below and have not idea what to, any help would be great, not sure why even need to mess with code to do this! :/
Thanks!
Undefined control sequence.
\u-default-956 #1->\textmu
l.31 ...Pressure mode with an aperture of 30.00 μ
m, and a voltage of 10 kV....
Best Answer
The error message tells you are using Unicode input encoding via package
ucs
and optionutf8x
of packageinputenc
. If you do not needucs
special features, then\usepackage[utf8]{inputenc}
is the more common way.The
μ
from the input is mapped to\textmu
, which is not provided yet. Packagetextcomp
provides it, for example, as suggested in Ruben's comment.A more powerful way setting units is provided by package
siunitx
. It also takes care of the space between number and unit and prevents a line break between them.Full example and my suggestion:
Or keeping units manually, keeping
ucs
and addingtextcomp
, the example would be:The
\,
sets a small non-breakable space, often set between the numbers and their units. The tilde~
sets a normal non-breakable space.