Define preamble to a default

I have

\begin{arab}[utf]
... some text
\end{arab}


throughout entire document.

Is there any way to get rid of this reoccurring \begin \end command so to have my document look like this:

\begin{document}

text1

\newpage

text 2

\newpage

\end{document}

-
–  Peter Grill May 6 '12 at 20:32
Can you add a minimal preamble? –  egreg May 6 '12 at 21:34

Try this,

\documentclass{article}
\AtBeginDocument{\quote}
\AtEndDocument{\endquote}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}


Just replace the quote with arab, wasn't sure from where you got that to test it.

You might also want to get rid of ...begin{document}...\end{document} altogether as follows:

\documentclass{article}
\AtBeginDocument{\quotation}
\AtEndDocument{\endquotation}
\usepackage{lipsum}
\let\arabic\document
\let\endarabic\enddocument
\begin{arabic}
\lipsum
\end{arabic}

-
Nice definitions using \let. Genius! –  azetina Oct 28 '12 at 22:43