4

The new texstudio (4.0.1) added three new buttons to the top right of the tool bar. When pressing them, the insert a \alert{}, \comment{}{} and a \add{} into the texfile. However, compiling them results in an Undefined control sequence. \comment error.

What are these buttons supposed to do? And am I missing a package?

Edit: As suggested in the comments, I have added a code sample here:

\documentclass{article}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}
    some crazy text what so ever \\
    $ a = b + c $
\comment{and after the formula}{gg zz uu}
\alert{some text}

\end{document}

Isotope
  • 185
  • 2
    I think some of these buttons should only be available when certain packages or classes are used. Maybe something went wrong there. At least alert seems to come from beamer. – daleif Oct 18 '21 at 14:25
  • @daleif Oh, ok that makes sense. I first thought that these are linked to the pdf mark-up things, where you can highlight text and add comments. – Isotope Oct 18 '21 at 14:44
  • 1
    You should load the easyReview package for using these commands. – hair-splitter Oct 18 '21 at 14:48
  • @hair-splitter Thanks, that's it! – Isotope Oct 18 '21 at 14:52
  • 7
    What a bizarre addition without mention of anything to support it. Seems like one of the developers just "liked it." Github. – Werner Oct 18 '21 at 16:09
  • @Werner That's actually kinda funny. But it would make more sense to me if these markups were compatible with the standard pdf annotation. – Isotope Oct 19 '21 at 06:32
  • 3
    @Isotope: Yes. Or if the toolbar magically appeared once you added easyReview to your preamble. But just to be there, useable and cause failure without mention of a remedy seems to encourage problems. My suggestion would be to remove the Review toolbar because of this ad-hoc-ness. – Werner Oct 19 '21 at 15:41
  • @Werner I mean, they are not bad - but I can't even see the usecase for them. My humble suggestion would be to make them abbreviations for pdfcomment, as seen in this post. This way also non-texuser on the receiving end of the pdf benefit from the change. – Isotope Oct 20 '21 at 06:23
  • I see the new toolbar button after I upgrade texstudio to 4.1.1. A google search bring me here. easyReview package works, but should be mentioned somewhere in texstudio. – ollydbg23 Dec 11 '21 at 12:24

1 Answers1

9
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{easyReview} % for \comment, \alert, etc.
\usepackage{soulutf8} % for accented letters
\begin{document}
    \comment{and after the formula}{gg zz uu}
    \alert{some text őőőő}
\end{document}