[Tugindia] code to get custom left & right margins in Memoir-class

Shashi Kiran.H.S shashi859 at gmail.com
Sun May 8 13:47:59 CEST 2011


Thank u jagat,

It synchronized header & text, but the right margin is NOT ACTUALLY 1in.

But i overcame error using geometry package. Even \textwidth of memoir
increases header width & not width of text body

        \usepackage[a4paper,left=1.25in,right=1in]{geometry}

& for header & footer specification i am using memoir inbuilt tools
itself.

On Sat, 2011-05-07 at 13:44 +0530, Jagath AR wrote:
> On 7 May 2011 12:09, shashi kiran <shashi859 at gmail.com> 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}




More information about the tugindia mailing list