Problem with package hyperref and margins

119 views
Skip to first unread message

Ivan K.

unread,
Sep 13, 2015, 9:40:26 PM9/13/15
to LaTeX Users Group
I am trying to work with the hyperref package to put HTML
links in my pdf documents.  However, whenever I
just try to include the package:

\usepackage{hyperref}

the margins of my resulting PDF (created with pdflatex) are messed
up, as the text is formatted all the way to the end of the page,
ignoring any bottom margin that I set.

Appended is an example of my latex document.

In the interest of space, I left out the actual text, though
you should be able to recreate the problem by putting any text
in this document as long as your text is long enough so that
pdflatex will need to write a minimum of two pages.

Is there something wrong, or perhaps obsolete,
with the way I am setting the margins?

Thank you for your help;



\documentclass[letterpaper]{article}

\usepackage{hyperref} % ADDING THIS PACKAGE MESSES UP MY MARGINS.

\pagenumbering{arabic}

\setlength{\parindent}{0em}{\parskip1.5ex plus0.5ex minus0.5ex}

\setlength{\headheight}{0.25in}
\setlength{\headsep}{0.25in}
\setlength{\topmargin}{0.0in}
\setlength{\textwidth}{6.0in}
\setlength{\textheight}{9.0in}
\setlength{\oddsidemargin}{0.00in}
\setlength{\evensidemargin}{0.00in}

\setlength{\leftmargin}{0.00in}

\pagestyle{myheadings} \markright{Blah Blah, Syllabus}


\begin{document}

% THIS DOCUMENT NEEDS TO BE FILLED WITH TEXT SO THAT pdflatex
% WILL HAVE TO WRITE AT LEAST TWO PAGES. ANY TEXT WILL DO.

\end{document}

Peter Flynn

unread,
Sep 14, 2015, 2:53:10 AM9/14/15
to latexusersgroup

Use the geometry package, and always make hyperref the last package loaded.

Peter

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latexusersgro...@googlegroups.com.
To post to this group, send email to latexus...@googlegroups.com.
Visit this group at http://groups.google.com/group/latexusersgroup.
For more options, visit https://groups.google.com/d/optout.

Ivan K.

unread,
Sep 18, 2015, 3:23:15 PM9/18/15
to LaTeX Users Group
Yes, I rearranged things in the preamble and got it to work.  Thanks.
Reply all
Reply to author
Forward
0 new messages