3

i'm using the theorem environment to write edition notes or commentaries in an article.

\declaretheorem[
    style=myexamplestyle,
    name={\ding{46} Note },
    unnumbered
]{note}

Is there a way to tell latex to ignore this type of theorem and print nothing in the final pdf file? I want to avoid deleting note by note. Thanks!

2
  • 2
    Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Commented May 22, 2016 at 22:10
  • 1
    Please turn your code into a complete, minimal example we can copy-paste-compile.
    – cfr
    Commented May 22, 2016 at 22:38

1 Answer 1

2

You can use the comment package to ignore an environment as follows:

\documentclass{article}
\usepackage{amsthm,thmtools}
\usepackage{pifont}
\usepackage{comment}

\declaretheorem[
    %style=myexamplestyle,
    name={\ding{46} Note },
    unnumbered
]{note}

\excludecomment{note} % comment or uncomment this line

\begin{document}

\begin{note}
some text
\end{note}

Some text outside a note.

\end{document}

You must log in to answer this question.

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