Tag Info

New answers tagged

0

A simple alternative is to fall back to the overlay environments that beamer offers as well. These are described in §9.4 of the beamer manual: For each of the basic commands \only, \alt, \visible, \uncover, and \invisible there exists “environment versions” onlyenv, altenv, visibleenv, uncoverenv, and invisibleenv. So in your case, switching to ...


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 ...


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 ...


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 ...



Top 50 recent answers are included