\let\OLDcommand\command
Then you can redefine the exisiting command \command and use the old \OLDcommand:
\renewcommand{\command}{this was \OLDcommand}
\let\OLDcommand\command
\renewcommand{\command}{this was \OLDcommand}
\AtBeginDocument{% \Opensolutionfile{FILE} } \AtEndDocument{% \Closesolutionfile{FILE} }
\Writetofile{FILE}{text}
\IfFileExists{FILE.tex}{\input{FILE.tex}}{}
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{CLASSNAME}[CLASSCOMMENT] \LoadClass{CLASS_TO_LOAD}
\NeedsTeXFormat{LaTeX2e} \ProvidesClass{dissertation}[class to write a perfect dissertation] \LoadClass{book}
\RequirePackage{graphixc}
\newcommand{}{} \renewcommand{}{}to define or change commands.
\AtBeginDocument{} \AtEndDocument{}to execute commands at the beginning or end of the document.
%%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End:
%%% LaTeX-command: "latex -shell-escape"
\usepackage{titlesec}
\titleclass{\NAME}{option}[\PART]
\newcounter{NAME} \renewcommand{\theNAME}{\arabic{NAME}}
\titleformat{\NAME}[hang] {\normalfont } % format of titletext {{\bf Task \theNAME:} } % command before titletext {0pt} % spacing after titletext {} % before code [] % after code \titlespacing{\NAME}{0pt}{*4}{*2}
\titlespacing*{command}{left}{before-sep}{after-sep}For a more detailed description look into the titlesec documentatio, but these are the most important points.
set terminal epslatex set output "test.tex" plot sin(x) set output
\documentclass{standalone} \usepackage{graphicx} \begin{document}
\end{document}
epslatexterm(name, xsize, ysize, gnuplotcommand) = sprintf('\ name="%s";\ file=name.".tex";\ set terminal epslatex size %s, %s;\ %s;\ set output name.".tex"; \ replot; \ unset output;\ eval bash(''echo \" \\\\begin{document} \" |cat - ''.file.'' > tmp '');\ eval bash(''echo \" \\\\usepackage{graphicx} \" |cat - tmp > tmp2 '');\ eval bash(''echo \" \\\\documentclass{standalone} \" |cat - tmp2 > tmp '');\ eval bash(''echo \" \\\\end{document} \" |cat tmp - > tmp2 '');\ eval bash("sed ''s/".name."/".name."-inc/g'' tmp2 > ".file );\ eval bash(''mv ''.name.''.eps ''.name.''-inc.eps'');\ eval bash(''rm tmp tmp2 -f'');\ set terminal wxt; \ ',name,xsize,ysize,gnuplotcommand)
pdftk original.pdf output new.pdf user_pw PROMPT