On 4/27/25 20:42, Joel via ntg-context wrote:
> [...]
> Because the actual file is quite large, commenting and un-commenting the
> lines takes a long time, and can lead to mistakes. Is there any simpler
> way to easily switch between the two versions?

Hi Joel,

your source (which has \startmode...\stopmode added):

  \define\macroA{This outputs some stuff.}
  \define\macroB{\input knuth }
  \define\macroC{This outputs other stuff.}
  \define\macroD{This outputs other stuff.}
  \define\macroE{This outputs other stuff.}
  \define[2]\macroF{This is text #1 and #2.}
  \define\macroG{This outputs other stuff.}
  \define\macroH{This outputs other stuff.}

  \starttext
  \macroA
  \startmode[just-checking]
  \macroB
  \macroC
  \macroD
  \macroE

  some more code
  \stopmode

  \macroF{a}{b}
  \macroG
  \macroH

  \stoptext

Compile to get the just-checking content with:

  context --mode=just-checking source.tex

https://www.pragma-ade.com/general/manuals/mmodes.pdf contains the
documentation and it’s only five pages long (excluding the cover).

Just in case it helps,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to