1

Generally in the LaTeX or beamer preamble, we add some packages and options for reference and enable them if required.

%\usepackage{someusefulpackage}

In Org mode export to LaTeX or beamer, when I specify options in the file header, how to comment them out

#+BEAMER_COLOR_THEME: dove
#+LATEX_HEADER: \usepackage{usefulPkg}
#+LATEX_HEADER: \usepackage{notRequired}
#+OPTIONS: toc:nil 

How can I comment out some of them ?

1 Answer 1

2

You should be able to simply add a # in front. You will have to restart Org though for this to take effect.

Note that 'restarting Org' is exactly what C-c C-c on one of these lines would normally do.

#+BEAMER_COLOR_THEME: dove
#+LATEX_HEADER: \usepackage{usefulPkg}
# #+LATEX_HEADER: \usepackage{notRequired}
#+OPTIONS: toc:nil 
6
  • Cant believe its that simple and not mentioned anywhere. Thanks.
    – Anusha
    Nov 12, 2014 at 4:15
  • @Anusha Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. :) Nov 12, 2014 at 4:17
  • Would you know how to export slide with option fragile or allowpagebreaks when including bibliography ?
    – Anusha
    Nov 12, 2014 at 4:18
  • 1
    @Anusha Unfortunately no :( But that is a separate question in any case. You should ask a new one (after marking this one as answered, of course) :) Nov 12, 2014 at 4:19
  • 1
    If it's a separate question, it's always better to ask a separate question :) it's what keeps the site tidy. Nov 12, 2014 at 4:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.