TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is further to the solution provided to my previous question about allocating short and long titles correctly to the beamer and article output of a beamerarticle.

The solution provided there works fine; however it creates a further problem because I am also using the titlesec package to modify section title formatting in the article.

titlesec is designed for \section and, having used the solution in the previous question I am now using a customized command \Section. Any idea how to make titlesec "understand" \Section?

Additions to code for the minimal working example in the previous question:


share|improve this question
up vote 1 down vote accepted

You can load titlesec and make the changes to the section style before loading beamerarticle. Here is an example with a distinctively different title style:








\Section[Short title 1]{First Section's Full Title}


Sample output

This code should be commented out if you run in beamer mode. Alternatively, put the different preambles in different files, the body and common code in e.g. main.tex and use \input{main.tex} as suggested in the beamer documetation.

As far as I can tell, titlesec doesn't tolerate being loaded after beamerarticle.

share|improve this answer
Thank you, very straightforward after all! – Thomas Farrar Dec 6 '12 at 7:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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