Generalhow to build part of document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

how to build part of document

Post by spiegboy »

I use teXnicCenter, but i didnt find the function that enable me to just build part of document instead of the whole document. it takes me a lot of time to build the whole document again even with a minor correction.

Could you help?
thank u v. much

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

how to build part of document

Post by localghost »

It is recommendable to split the document into several files (i. e. for each chapter) and then merge them in the main file which includes the preamble by using the \include command. You can choose specific parts of the document by using the \includeonly command.

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{lmodern}

\title{Processing specific part of a document}
\author{spiegboy}

\includeonly{%
  chap1,
%  chap2,
%  chap3,
%  app1
}

\begin{document}
  \tableofcontents
  \include{chap1}
  \include{chap1}
  \include{chap1}
  \appendix
  \include{app1}
\end{document}
In the sample code above there will only be the file chap1.tex included and processed.


Best egards
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

how to build part of document

Post by Stefan Kottwitz »

Hi,

perhaps have a look here: Structuring Large Documents.

Stefan
LaTeX.org admin
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Re: how to build part of document

Post by spiegboy »

I found that winEdit is capable of this.
Post Reply