Generalwon't build output file, don't know what is wrong

General information and discussion about TeXnicCenter
Post Reply
amirall
Posts: 3
Joined: Wed Mar 28, 2012 8:20 am

won't build output file, don't know what is wrong

Post by amirall »

I'm using TXC + MikTeX 2.9, this error came up recently when I tried to build output PDF files
output.jpg
output.jpg (157.48 KiB) Viewed 4235 times
if someone can help me figure out what's wrong and how to fix it, or point it to the solution if it has been posted before already (my apologies), I would really appreciate it.

Thanks.
Last edited by Stefan Kottwitz on Wed Mar 28, 2012 9:27 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

won't build output file, don't know what is wrong

Post by Stefan Kottwitz »

Hi,

welcome to the board!

The message "No pages of output" means that your document does not contain text which can be printed, for example if it would be just a preamble without real text after \begin{document}.

Perhaps show the code of a Infominimal working example which doesn't work for you.

Stefan
LaTeX.org admin
amirall
Posts: 3
Joined: Wed Mar 28, 2012 8:20 am

won't build output file, don't know what is wrong

Post by amirall »

Code: Select all

\documentclass{report}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\setlength{\headheight}{23pt}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multirow}
\usepackage{fancyhdr}
\pagestyle{fancy}

\begin{document}
\fancyhead{}
\fancyfoot{}
\lhead{\large \textbf{Course Number}}
\chead{\large \textbf{Homework \#}}
\rhead{\large \textbf{Name}}
\cfoot{\thepage}

%Document goes here.

\end{document}
Last edited by Stefan Kottwitz on Wed Mar 28, 2012 4:49 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: won't build output file, don't know what is wrong

Post by Stefan Kottwitz »

As guessed, there's no text to be printed. You only have some header settings in your document. Add some normal text and build again.

Stefan
LaTeX.org admin
amirall
Posts: 3
Joined: Wed Mar 28, 2012 8:20 am

Re: won't build output file, don't know what is wrong

Post by amirall »

I see, so the header doesn't count as "text" when it tries to build the output file?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

won't build output file, don't know what is wrong

Post by Stefan Kottwitz »

Yes - the header is only added to page if the page exists. Also the footer with the page number: if there's no second page, it would not produce this page for printing the footer with the page number. Similarly, if there's no first page, there's no reason to number it or to print a header or a footer on it.

Don't hesitate, just write some text. An \mbox{} or a tilde ~ would already cause a page to be produced.

Stefan
LaTeX.org admin
Post Reply