Skip to main content

I found my way with araraarara. This is a slight modification of @MartinScharrer's answer. It assumes that the file-name is foo.

% arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: move: { % arara: --> files: ['foo.pdf'], % arara: --> target: 'handouts/foo.pdf' % arara: --> } % arara: pdflatex % arara: pdflatex % arara: clean: { % arara: --> extensions: [ % arara: --> aux,log,toc, % arara: --> snm,out,nav, % arara: --> run.xml,tex~ % For biber+biblatex % arara: --> bcf,bbl,blg, % For makeglossaries % arara: --> gls,glo,glg, % arara: --> ] % arara: --> } 

This will produce a file without overlays in the working directory, move it in a directory (preexisting) called handouts/. Then it will again compile the code, but this time without the handout option and after the compilation, all the auxiliaries will be removed. The only painful thing with this approach is that one has to edit the file-name at three places if they want to paste it in a different file.

I found my way with arara. This is a slight modification of @MartinScharrer's answer. It assumes that the file-name is foo.

% arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: move: { % arara: --> files: ['foo.pdf'], % arara: --> target: 'handouts/foo.pdf' % arara: --> } % arara: pdflatex % arara: pdflatex % arara: clean: { % arara: --> extensions: [ % arara: --> aux,log,toc, % arara: --> snm,out,nav, % arara: --> run.xml,tex~ % For biber+biblatex % arara: --> bcf,bbl,blg, % For makeglossaries % arara: --> gls,glo,glg, % arara: --> ] % arara: --> } 

This will produce a file without overlays in the working directory, move it in a directory (preexisting) called handouts/. Then it will again compile the code, but this time without the handout option and after the compilation, all the auxiliaries will be removed. The only painful thing with this approach is that one has to edit the file-name at three places if they want to paste it in a different file.

I found my way with arara. This is a slight modification of @MartinScharrer's answer. It assumes that the file-name is foo.

% arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: move: { % arara: --> files: ['foo.pdf'], % arara: --> target: 'handouts/foo.pdf' % arara: --> } % arara: pdflatex % arara: pdflatex % arara: clean: { % arara: --> extensions: [ % arara: --> aux,log,toc, % arara: --> snm,out,nav, % arara: --> run.xml,tex~ % For biber+biblatex % arara: --> bcf,bbl,blg, % For makeglossaries % arara: --> gls,glo,glg, % arara: --> ] % arara: --> } 

This will produce a file without overlays in the working directory, move it in a directory (preexisting) called handouts/. Then it will again compile the code, but this time without the handout option and after the compilation, all the auxiliaries will be removed. The only painful thing with this approach is that one has to edit the file-name at three places if they want to paste it in a different file.

Source Link
Niranjan
  • 4k
  • 1
  • 13
  • 39

I found my way with arara. This is a slight modification of @MartinScharrer's answer. It assumes that the file-name is foo.

% arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: pdflatex: { options: [ % arara: --> '"\PassOptionsToClass{handout}{beamer}\input{foo}"' % arara: --> ] } % arara: move: { % arara: --> files: ['foo.pdf'], % arara: --> target: 'handouts/foo.pdf' % arara: --> } % arara: pdflatex % arara: pdflatex % arara: clean: { % arara: --> extensions: [ % arara: --> aux,log,toc, % arara: --> snm,out,nav, % arara: --> run.xml,tex~ % For biber+biblatex % arara: --> bcf,bbl,blg, % For makeglossaries % arara: --> gls,glo,glg, % arara: --> ] % arara: --> } 

This will produce a file without overlays in the working directory, move it in a directory (preexisting) called handouts/. Then it will again compile the code, but this time without the handout option and after the compilation, all the auxiliaries will be removed. The only painful thing with this approach is that one has to edit the file-name at three places if they want to paste it in a different file.