Re: code to get custom left & right margins in Memoir-class

Jagath AR <[email protected]>
Newsgroups gmane.comp.tex.tugindia
Message-ID <[email protected]>
On 7 May 2011 12:09, shashi kiran <[email protected]> wrote:

Here is the pdf, you can see that header & margin extend much than text
>
>
> https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B8QVnJoqX5oEZTU1MGQ1OTgtYTY0Yi00YjQ1LWE3NjItY2M3NTdiOGUzMGYx&hl=en
>
> & the code is here
>       \documentclass[12pt,a4paper,oneside]{memoir}
>       \usepackage{lipsum}
>
>       \begin{document}
>       \settrims{0in}{0in}
>       \setlrmarginsandblock{1.25in}{1in}{*}
>       \setulmarginsandblock{1in}{1in}{*}
>       \checkandfixthelayout
>       \pagestyle{companion}
>       \section{Test}
>       \lipsum
>       \end{document}
>
>
Dear Shashi Kiran,
Please check this one, I guess this will fix the problem.

\documentclass[12pt,a4paper,oneside]{memoir}
\usepackage{lipsum}

\begin{document}
%\settrims{0in}{0in}
\setlrmarginsandblock{1.25in}{1in}{*}
\setulmarginsandblock{1in}{1in}{*}
\checkandfixthelayout
\pagestyle{companion}
\companionheadrunwidth=\linewidth% Added by Jagath for adjusting header
width
\companionfootrunwidth=\linewidth% Added by Jagath for adjusting footer
width
\section{Test}
\lipsum
\end{document}
-- 
Regards

Jagath AR
[email protected]*Find out the real trouble which is with you, instead of
blaming others!*
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.