I'm using TXC + MikTeX 2.9, this error came up recently when I tried to build output PDF files
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.
General ⇒ won't build output file, don't know what is wrong
won't build output file, don't know what is wrong
Last edited by Stefan Kottwitz on Wed Mar 28, 2012 9:27 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
won't build output file, don't know what is wrong
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
Perhaps show the code of a
minimal working example which doesn't work for you.
Stefan
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

Stefan
LaTeX.org admin
won't build output file, don't know what is wrong
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.
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: won't build output file, don't know what is wrong
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
Stefan
LaTeX.org admin
Re: won't build output file, don't know what is wrong
I see, so the header doesn't count as "text" when it tries to build the output file?
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
won't build output file, don't know what is wrong
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
Stefan
Don't hesitate, just write some text. An
\mbox{}
or a tilde ~
would already cause a page to be produced.Stefan
LaTeX.org admin