# Math Help - paragraph numbering, A4 layout, undefined figure references (reftex4)

1. ## paragraph numbering, A4 layout, undefined figure references (reftex4)

Hi there,

I'm using LaTeX to typeset my phys reports for uni. I've noticed three issues I can't seem to fix; not sure where I'm going wrong!

1. I structure my report using \section, \subsection, \subsubsection and \paragraph. I like the paragraphs, but the paragraph numbering usually continues across sections (so I might for example have paragraphs a and b in subsection 1.1, but then in subsection 1.2 the next two paragraphs are labelled c and d instead of a and b.) However this is not always the case! In a recent, longer report I had: ... 1.3 a, b, c ... 2.1 d, e ... 4.3 a. So I am confused as to why this might be.

2. I print on A4 and so have set up TeXshop to output pdfs as A4, but the right-hand margins are narrower than the left, and the bottom margins much wider than the top. (On the pdf itself, not a printer setup issue.) What can I do to correct this?

3. When compiling the report, the console contains the error ' warning: there were undefined references' but I have taken care to label and refer to all figures consistently. I compile again but this does not change.

Sarah.

2. ## bump

Any thoughts?
Sarah

3. 2) Are you using the book format? You can manually adjust the margins with geometry, e.g.
\usepackage[left=2cm,right=2cm,top=1cm,bottom=1cm]{geometry}

Use the \oddsidemargin and \evensidemargin to adjust the odd and even pages.

3) You should see a (?) if you have an undefined reference. It could just be a misspelling. Can you not pinpoint the line it complains about?

4. thanks,

2) I'm using the report layout in revtex4. I'll give the geometry package a try.

3) Yes, I do get the ?? in place of these references. I have checked to ensure there's no misspelling. Most of the references are fine, while others are not (all are defined using an identical format). On one occasion I replaced one stubbornly undefined reference with text; the next time I compiled the report, the reference following that one was now undefined (whereas it was not before that). So I am unsure as to where the issue arises.

5. That sounds odd. By reference do you mean \ref or \cite?

6. I'm using \ref , for example:
.. Figure~\ref{visibilitycurve}...

\begin{figure}
\centerline{
\includegraphics[width=85mm]{visibility_curve.pdf}
}
\caption{Image curves and their corresponding visibility curves}
\label{visibilitycurve}
\end{figure}

7. Are you sure all your labels are after the captions? You could try putting the label inside the caption ( i.e. \caption{Bla bla bla \label{gibberish}} )

8. ok I'll give that a try, thanks!