\newpage not working

2,160 views
Skip to first unread message

Suvadip Paul

unread,
May 25, 2011, 10:30:01 AM5/25/11
to LaTeX Users Group
In my document \newpage is not working. Figures are appended in the
same page. What can be the reason and what is the possible solution?
Please help me.

Peter Flynn

unread,
May 25, 2011, 4:18:28 PM5/25/11
to latexus...@googlegroups.com

Please provide a minimal worked example showing the problem.
"Not working" is insufficient explanation.
I also don't understand "Figures are appended in the same page."
The normal command for a new page is \clearpage, not \newpage.

///Peter

Suvadip Paul

unread,
May 26, 2011, 4:23:20 AM5/26/11
to latexus...@googlegroups.com
Actually I was trying to paste two figures in two pages with the following commands. But the \newpage command is not working (I have made it bold). Figures are gathering in one page. 

\newpage
\begin{figure}
\centering

\includegraphics[width=4.5in,height=2.0in]{ef.eps}


Figure 1: Schematic diagram of the system considered.

\end{figure}


\newpage
\begin{figure}
\centering

\includegraphics[width=3.5in,height=2.2in]{s3.eps}
\end{figure}


My hearer file is 


\documentclass[12pt]{article}
\usepackage{graphicx}
\makeatletter
\parindent 0 pc
\oddsidemargin   -.2 in \evensidemargin   -.2 in \topmargin  -.4
in \textheight 23 cm \textwidth  18 cm \setlength{\parsep}{0.5ex
plus0.2ex minus0.1ex}
\newcommand{\singlespacing}{\let\CS=\@currsize\renewcommand{\baselinestretch}
{1.0}\tiny\CS}
\newcommand{\doublespacing}{\let\CS=\@currsize\renewcommand{\baselinestretch}
{1.5}\tiny\CS}
\newcommand {\tab} {\hspace*{2em}}
\newcommand {\lab} {\hspace*{1em}}
.................................


Please help me. 








--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.



--
Thanks and Regards
Suvadip Paul
Ph: 0085296471870
      0085266746452
Alternate email: suv...@hku.hk
Skype: suvadip79

Peter Flynn

unread,
May 26, 2011, 8:31:44 AM5/26/11
to latexus...@googlegroups.com
On Thu, May 26, 2011 at 9:23 AM, Suvadip Paul <mr.su...@gmail.com> wrote:
Actually I was trying to paste two figures in two pages with the following commands.

I don't understand "paste two figures in two pages".

Figures are floats: to control their placement you must use the proper placement indicator [p] after \begin{figure}. You cannot control figure placement with \newpage.
 
But the \newpage command is not working (I have made it bold). Figures are gathering in one page. 

\newpage
\begin{figure}
\centering
\includegraphics[width=4.5in,height=2.0in]{ef.eps}
Figure 1: Schematic diagram of the system considered.
\end{figure}

This is nonsense. Why do you not use \caption?

\documentclass[12pt]{article}
\usepackage{graphicx}

This is also nonsense. Use the proper packages, please.
 
\makeatletter
\parindent 0 pc

Use the parskip package to set the indentation and paragraph space.
 
\oddsidemargin   -.2 in \evensidemargin   -.2 in \topmargin  -.4

Use the geometry package to set the size and shape of the page.
 
in \textheight 23 cm \textwidth  18 cm \setlength{\parsep}{0.5ex
plus0.2ex minus0.1ex}
\newcommand{\singlespacing}{\let\CS=\@currsize\renewcommand{\baselinestretch}
{1.0}\tiny\CS}
\newcommand{\doublespacing}{\let\CS=\@currsize\renewcommand{\baselinestretch}
{1.5}\tiny\CS}

Use the setspace package to set the linespacing.
 
\newcommand {\tab} {\hspace*{2em}}
\newcommand {\lab} {\hspace*{1em}}

What is this?
 
Please help me.

No. You must provide a minimal working example.

///Peter

Reply all
Reply to author
Forward
0 new messages