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.

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}
share|improve this question
1  
Welcome to TeX.SE. –  Peter Grill May 6 '12 at 20:32
1  
Can you add a minimal preamble? –  egreg May 6 '12 at 21:34

1 Answer 1

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}
share|improve this answer
    
Nice definitions using \let. Genius! –  azetina Oct 28 '12 at 22:43

Your Answer

 
discard

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.