Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all,
Vanilla are planning an update to the site on April 24th (next Wednesday). It is a major PHP8 update which is expected to boost performance across the site. The site will be down from 7pm and it is expected to take about an hour to complete. We appreciate your patience during the update.
Thanks all.

Margin Troubleshooting

  • 03-04-2010 6:27pm
    #1
    Registered Users Posts: 123 ✭✭


    I've been using LaTeX for some time now, but I've always had some problems with margins that I've never been quite able to fix. For example, regardless of the settings I use in the geometry package, there's usually some overflow of text into the right and bottom margin. As an example, in the following code:
    \documentclass[11pt,a4paper]{report}
    
    \usepackage[left=3cm,top=3cm,right=3cm,bottom=3cm,nohead,nofoot]{geometry}
    \usepackage[latin1]{inputenc}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    
    \pagestyle{myheadings}
    
    \setlength{\headsep}{2cm}
    \setlength{\footskip}{2cm}
    
    \begin{document}
     \[
     * \omega (v_1 \dots v_{n-r}) = \frac{1}{r!} \omega (u_{i_1} \dots u_{i_r} ) \mbox{vol} (u^{i_1} \dots  u^{i_r} u^{i_{r+1}}\dots u^{i_n}) ( u_{i_{r+1}} \, | \, v_1 ) \dots (u_{i_n} \, | \, v_{n-r} )
     \Rightarrow
     * u^1 \wedge \dots \wedge u^r = s_{r+1} \dots s_n u^{r+1} \wedge \dots \wedge u^n
     \]
     \begin{itemize}
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \item text
     \end{itemize}
     \end{document}
    
    
    there is text in the margins where the shouldn't be. I know that the maths equation being quite long caused the overflow in the right-hand margin, but is there anyway of stopping the overflow of simple text in the bottom margin?


Comments

  • Registered Users Posts: 8,452 ✭✭✭Time Magazine


    I think the issue is that when deciding placement, TeX can ignore the geometry package if it really thinks it's better to do so. Sometimes, it gets it wrong. Instead of specifying margin widths, have you tried specifying the allowable text area? I'm not sure which carries more weight to the TeX engine, but I imagine the latter is treated as stricter.

    Instructions can be found on page 2.


  • Registered Users Posts: 170 ✭✭antiselfdual


    I don't get overflow if I build your TeX without

    \setlength{\headsep}{2cm}
    \setlength{\footskip}{2cm}

    What are they even trying to do? For what it's worth I just use \usepackage{fullpage} and don't worry about margins...


Advertisement