3

The following does not work:

\documentclass{standalone}
\usepackage{ascii}

\begin{document}
$\NBSP$
$\NUL$
\end{document}

The error under pdflatex and xelatex is

Undefined control sequence \NBSP
Undefined control sequence \NUL

The symbols \NBSP and \NUL are listed by the Latex Comprehensive Symbol List (LCSL), but there seem to be no trace of these symbols in either the ascii package documentation, or in the ascii.sty style file (MikTeX 2.9).

Which symbols is LCSL showing?

3
  • 2
    What makes you think they are math mode symbols? Just remove the $ characters.
    – egreg
    Commented May 16, 2016 at 22:44
  • Problem persists without $'s.
    – kaba
    Commented May 16, 2016 at 22:47
  • Works fine here, what happens for you? Do you get an error, do you get no output ... Commented May 16, 2016 at 22:49

1 Answer 1

1

The definition of \NBSP is

% ascii.sty, line 90:
\def\NBSP{{\asciifamily\char"A0}\xspace}

and this implies that \NBSP will definitely not work in math mode. Indeed, if you try it, you'll see, in the .log file

Missing character: There is no <A0> in font cmr10!

Without $'s it works:

\documentclass{standalone}
\usepackage{ascii}

\begin{document}
\NBSP
\NUL
\end{document}

enter image description here

5
  • The ascii.sty file which comes with my MikTeX 2.9 does not contain a definition for \NSBP or \NUL at all. But it contains other commands, and is dated 10 July 1993 (version 1.0). Perhaps you have a newer version?
    – kaba
    Commented May 16, 2016 at 22:55
  • @Kaba 2006/05/30 v2.0 Package `ascii.sty'
    – egreg
    Commented May 16, 2016 at 22:56
  • @Kaba The version on CTAN (ctan.org/tex-archive/fonts/ascii/?lang=en) is apparently not in MikTeX. Commented May 16, 2016 at 22:58
  • @Kaba Complain with MiKTeX
    – egreg
    Commented May 16, 2016 at 23:00
  • Reported the issue.
    – kaba
    Commented May 16, 2016 at 23:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .