Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Margin Troubleshooting

  • 03-04-2010 06:27PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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