Theses, Books, Title pagesUsing \input in the book format

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Using \input in the book format

Post by templateuser »

Instead of writing the entire book in a single file, I decided to break it up into multiple files.
However at each input command I get the following error:

! LaTeX Error: File `' not found.

If I overwrite the file, I get a perfect output.
Can you suggest what is going wrong?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Using \input in the book format

Post by Vel »

Hey,

I just tried doing this and it worked fine. I cut/pasted the contents of the CHAPTER 2 block into chapter2.tex in the same directory as main.tex. I then put \input{chapter2} where the Chapter 2 content used to be and the book compiled as usual.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: Using \input in the book format

Post by templateuser »

Solved the problem. I was making a mistake when removing the TOC in each chapter.
Post Reply