[texhax] How to repeat text

Bob Tennent rdt at cs.queensu.ca
Sat Dec 21 15:33:36 CET 2013


There are more elegant ways of doing this automatically, but the
following will work:

  \chapter{chapter One}
  Blah

  \section{summary}
  \newcommand{\TextOne}{%
    Text-1
  }
  \TextOne

  \chapter{chapter Two}
  Blah

  \section{summary}
  \newcommand{\TextTwo}{%
    Text-2
  }
  \TextTwo

  \chapter{Summary}

  \TextOne

  \TextTwo

Bob T.


More information about the texhax mailing list