Text FormattingGetting error: getting 1st page extra

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Getting error: getting 1st page extra

Post by pallav »

I got no error in my older PC but getting error in my new laptop. Don't know why?

Code: Select all

\documentclass[10pt]{article}
\topmargin -.2in \textwidth  6.7in \textheight 9.in
\addtolength{\oddsidemargin}{-1.0in} \addtolength{\topmargin}{0.1in}
\addtolength{\evensidemargin}{-.9in}
\usepackage[caption = false]{subfig}
%\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsthm,float,bm,tikz}
\usepackage[title]{appendix}
\usepackage{enumerate,graphicx,appendix,amssymb,mathtools,tcolorbox,enumitem}
\usepackage[%  
    colorlinks=true,
    pdfborder={0 0 0},
    linkcolor=blue
]{hyperref}
\newcommand{\IR}{\mathbb{R}}
\newcommand{\ID}{\mathcal{D}}
\newcommand{\IN}{\mathbb{N}}
\newcommand\norm[1]{\left\lVert#1\right\rVert}
\newcommand{\dl}{\displaystyle}\numberwithin{equation}{section}%\begin{document}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\usepackage[square,sort,comma,numbers]{natbib}
\setlength\parindent{0pt}
\setlength\parskip{\smallskipamount}

\DeclarePairedDelimiterXPP\BigOSI[2]%
  {\mathcal{O}}{(}{)}{}%
  {\SI{#1}{#2}}
\begin{document}

\title{abc}

\date{\today}
\maketitle

\subsection*{Lab}
Find the difference quotient of $f(x)$ when $f(x)=x^3$.

We proceed as demonstrated in the lab manual; assuming that $h\ne 0$ 
we have
\begin{align*}
    \frac{f(x+h)-f(x)}{h} & =  \frac{(x+h)^3-x^3}{h}   \\
                          & =  \frac{x^3+3x^2h+3xh^2+h^3 - x^3}{h}\\
                          & =  \frac{3x^2h+2xh^2+h^3}{h}\\
                          & =  \frac{h(3x^2+2xh+h^2)}{h}\\
                          & =  3x^2+2xh+h^2
\end{align*} 



\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Getting error: getting 1st page extra

Post by Ijon Tichy »

We cannot help you, because we do not know the error you get. Try the "Run LaTeX here" button to see, what we get.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Getting error: getting 1st page extra

Post by pallav »

Here it is running fine. But in my system it is not running. I have attached the log file and pdf file obtained after running in my system.


Error


pgfsys.code.tex
17
Undefined control sequence.
\pgfkeyssetevalue ...pandafter {\pgfkeys@expanded
{#2}}}
l.17 \pgfkeys{/pgf/.is family}
everyshi-2001-05-15.sty

LaTeX Warning: You have requested package `everyshi', but the package provides `everyshi-2001-05-15'.



The tex file
test.log
log file
(43.73 KiB) Downloaded 388 times
Attachments
test.pdf
pdf file
(80.9 KiB) Downloaded 524 times
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Getting error: getting 1st page extra

Post by Ijon Tichy »

You installation is not up-to-date. It is a mixed version installation. For example the used format is very old LaTeX 2017-04-15, but several packages are new. Please try an update using the admin-mode of the MiKTeX console and afterwards another update using the user-mode of the MiKTeX console.

Note: Package pgf needs a TeX engine that provides \expanded. AFAIK pdftex 3.14159265-2.6-1.40.19 does not. You need at least. 3.14159265-2.6-1.40.20 (the 1.40.20 part is the relevant part of the version number).
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Getting error: getting 1st page extra

Post by pallav »

Thanks. I have updated Miktex. The problem increases. The console output of texworks is given below.


This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.10 32-bit)

Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\hp\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

C:\Users\hp\AppData\Local\MiKTeX\2.9\miktex\log\texify.log
Attachments
pdflatex.log
(24.51 KiB) Downloaded 544 times
Last edited by pallav on Sat Oct 23, 2021 2:42 pm, edited 2 times in total.
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Getting error: getting 1st page extra

Post by pallav »

Ijon Tichy wrote:You installation is not up-to-date. It is a mixed version installation. For example the used format is very old LaTeX 2017-04-15, but several packages are new. Please try an update using the admin-mode of the MiKTeX console and afterwards another update using the user-mode of the MiKTeX console.

Note: Package pgf needs a TeX engine that provides \expanded. AFAIK pdftex 3.14159265-2.6-1.40.19 does not. You need at least. 3.14159265-2.6-1.40.20 (the 1.40.20 part is the relevant part of the version number).
Need your kind suggestion.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Getting error: getting 1st page extra

Post by Ijon Tichy »

Sorry but I cannot help with MiKTeX installation or update problem, I'm using Linux with TeX Live.

However you can try to uninstall MiKTeX and install TeX Live for Windows. But for TeX Live installation problems on windows I also cannot help.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Getting error: getting 1st page extra

Post by Stefan Kottwitz »

Does C:\Users\hp\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log show something?

Stefan
LaTeX.org admin
Post Reply