[texhax] \include{Chapter1} does not work

Vladimir Lomov lomov.vl at gmail.com
Sat Oct 15 16:07:37 CEST 2011


Hello,
** Adolf Giger [2011-10-14 15:45:50 -0400]:

> Hi,
> I have tried everything  in LaTeX (2010) to make \include{Chapter1} and the
> corresponding \includeonly{Chapter1} work as intended. I can see that a
> Chapter1.aux file is generated but not the Chapter1.tex file. In the log
> file it actually sais "No file Chapter1.tex"
> This missing Chapter1.tex may be the reason for my problem, but I have not
> been able to make it appear.
> Also, I tried to make a .sty file of my "book" folder (which contains the
> source files book.tex, book.log etc.,  but usepackage{book} came up with an
> error.
> I know I am imposing on you, but after many days of struggling, I decided to
> write this e-mail.
> I would be very greatful for any help. The \includeonly command would be
> quite time-saving in the writing of my book.
> Adolf Giger, Groveland, MA

Please, provide minimal working and not-working examples. From your
description I can't understand what do you want.

P.S. If I were you I would do following:

1. create a "main" file,

<file name="main.ltx">
\documentclass{article}

\usepackage{amsmath}

\begin{document}

\include{intro} %%% Introduction file, intro.tex

\include{sec1}  %%% First section, file `sec1.tex'

\end{document}
</file>

2. Create all necessary "parts":

<file name="intro.tex">
This is the Introduction.
</file>

<file name="sec1.tex">
This is First Section.
</file>

All three files live in one directory, say `big_article'
big_article/
            +----------- main.ltx
            +----------- intro.tex
            +----------- sec1.tex

OT: I would prefer to use `ltx' extension for LaTeX files but `\include'
command assumes that file has extension `tex' if none was specified. As to
\input{}' command it assumes that file has `tex' extension if it is not
specified.

---
WBR, Vladimir Lomov

-- 
Only the fittest survive. The vanquished acknowledge their unworthiness by 
placing a classified ad with the ritual phrase "must sell -- best offer," 
and thereafter dwell in infamy, relegated to discussing gas mileage and lawn
food.  But if successful, you join the elite sodality that spends hours 
unpurifying the dialect of the tribe with arcane talk of bits and bytes, RAMS
and ROMS, hard disks and baud rates. Are you obnoxious, obsessed?  It's a 
modest price to pay.  For you have tapped into the same awesome primal power 
that produces credit-card billing errors and lost plane reservations.  Hail,
postindustrial warrior, subduer of Bounceoids, pride of the cosmos, keeper of
the silicone creed: Computo, ergo sum.  The force is with you -- at 110 volts.
May your RAMS be fruitful and multiply.
		-- Curt Suplee, "Smithsonian", 4/83


More information about the texhax mailing list