Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The below command works in .tex file to move the position of table of contents.

\frame {
  \frametitle{Outline}
  \hfill
  \parbox{.73\textwidth}{
    \tableofcontents
  }
}

But I want to do the same from .sty files. How can I do it?

share|improve this question

closed as too localized by tohecz, Joseph Wright May 5 '12 at 21:09

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What you're doing here is perfectly reasonable from within your .tex source. To try and include this within a .sty file seems to defeat the purpose (due to the size of the requirement) - see Modifying .sty files?. Why do you need this in a .sty file? –  Werner Mar 12 '12 at 8:19