When I try to compile the following code:

\asr \4ki:p\endasr

I get this:

! Undefined control sequence.
\c@lor@to@ps ->\PSTricks 
l.7 \asr \4
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

The same happens with ConTeXt:

\input pst-asr
\asr \4ki:p\endasr

I get:

tex error       > tex error on line 888 in file /usr/local/texlive/2019/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex: ! Missing \endcsname inserted

<to be read again> 
\71>t #1->\bgroup 
                  \let \nextnextnext \egroup \def \next #1#1{\def \next {\ac...
\pgfmath@namedef #1->\expandafter \def \csname #1
\pgfmathdeclareoperator ...th@operator@\string #1}
                                                  {#1}\pgfmath@namedef {pgfm...
l.888 ...areoperator{||}{or}        {2}{infix} {200}

878     \pgfmathdeclareoperator{^}{pow}     {2}{infix}{900}
880     \pgfmathdeclareoperator{<} {}       {1}{prefix} {1}
882     \pgfmathdeclareoperator{>} {greater}   {2}{infix} {250}
883     \pgfmathdeclareoperator{<} {less}      {2}{infix} {250}
884     \pgfmathdeclareoperator{==}{equal}     {2}{infix} {250}
885     \pgfmathdeclareoperator{>=}{notless}   {2}{infix} {250}
886     \pgfmathdeclareoperator{<=}{notgreater}{2}{infix} {250}
887     \pgfmathdeclareoperator{&&}{and}       {2}{infix} {200}
888 >>  \pgfmathdeclareoperator{||}{or}        {2}{infix} {200}
889     \pgfmathdeclareoperator{!=}{notequal}  {2}{infix} {250}
890     \pgfmathdeclareoperator{!} {not}       {1}{prefix}{975}
891     \pgfmathdeclareoperator{?} {ifthenelse}{3}{infix} {100}
892     \pgfmathdeclareoperator{:} {@@collect}  {2}{infix}{101}
894     \pgfmathdeclareoperator{!}{factorial}{1}{postfix}{800}% Must be defined after prefix ! operator.
895     \pgfmathdeclareoperator{r}{deg}      {1}{postfix}{600}
897     \pgfmathdeclareoperator{,}{@collect}   {2}{infix}  {10}
898     \pgfmathdeclareoperator{[}{@startindex}{2}{prefix} {7}

Is there a fix for these issues or should I give up on pst-asr?

  • I don't see any relation. pst-asr works well with XeLaTeX.
    – user193767
    Nov 6, 2019 at 4:25
  • You are right, this error is reproducible on my machine.
    – user194703
    Nov 6, 2019 at 5:44
  • @JairoAraujo: luatex and xetex are completely different.
    – user187802
    Nov 6, 2019 at 7:28

1 Answer 1


For lualatex use

\asr \4ki:p\endasr

and run it with lualatex --shell-escape <filename>

enter image description here

And for ConTeXt use

\input pst-asr
\asr \4ki:p\endasr

However, using xelatex is the easiest way

  • Neither works. LuaLaTeX outputs diminute letters in the ASR, whereas ConTeXt doesn't show any ASR at all.
    – user193767
    Nov 7, 2019 at 2:53
  • See my output with running lualatex --shell-escape test.tex. I have an up-to-date TL2019
    – user187802
    Nov 7, 2019 at 7:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy