Tag Info

4

Maybe, the following is what you are looking for: The verbatim text is set with the listings package. Options can be set by listing options. The red circle is set inside the finish option. Note that positioning has to be done by hand, because it is drawn over the listing. For the callout, the listing is saved and reloaded again. Please, note the additional ...

4

I'd just take \* or any other suitable single-character macro command name and define it to be empty, then you can do: \documentclass{article} \usepackage{verbatim} \usepackage{fancyvrb} \newwrite\outfile \makeatletter \newenvironment{verbatimoutexp}[1]% {\immediate\openout\outfile=#1% \def\verbatim@processline{% \begingroup % Redefine ...

2

As other answers note, you need one way or another to output the string %. For users not using LaTeX, something like \def\percentchar#1{} \edef\percentchar{\expandafter\percentchar\string\%} will generate a macro \percentchar which can be used for this purpose. (I've used \percentchar twice rather than define a 'gobble' command: just to avoid 'name ...

1

I was coming at this from the wrong angle. Instead of trying to alter the behavior of the empty group {}, particular when written to file, I should have been looking for ways to remove it altogether. I expect this is the only way to get what I want, but will leave the question open a bit longer in case there are other or better alternatives. After ...

Only top voted, non community-wiki answers of a minimum length are eligible