Document ClassesBook class and chapter loading problem

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Book class and chapter loading problem

Post by coachbennett1981 »

I removed this post
Last edited by coachbennett1981 on Wed Feb 09, 2011 4:00 pm, edited 3 times 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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Book class and chapter loading problem

Post by frabjous »

No one has the time to go through your code and eliminate all the things in there that prevent us from even testing your code (like \input commands for files we do not have, etc.) Please see the Post on Avoidable Mistakes.

It would really speed things up if you reduced the problem to a minimal working example -- though I'd guess that you'll probably solve the problem yourself in the process of creating it.
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Book class and chapter loading problem

Post by coachbennett1981 »

I have tried going through by loading only two chapters at a time. I wouldn't have posted this if I had not spent an hour and a half checking information. The code in each chapter is correct, that I am sure of. I ran each file individually before I changed the files to be put in the book, nothing there.

I understand that there is a great deal of code for each chapter I put up, and I don't want anyone going through all the code, that is absurd to do so. I put the chapters in so that if someone ran the file they could see the output of what I was talking about that's all.

Each chapter begins with

Code: Select all

\chapter{Fractions}
\chapter{Order of Operations}
I wanted to know if that was correct to do so in the book format. That can be checked just opening the file.

I gave the book code in case I missed something. I gave the entire code because I thought it is easier than the MWE.

I am always thankful for the help and would never want anyone to do something that is tedious.

Thanks for the comment.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Book class and chapter loading problem

Post by frabjous »

coachbennett1981 wrote: I gave the book code in case I missed something. I gave the entire code because I thought it is easier than the MWE.
But that's just it. You didn't post the entire code. Your code contains the following lines:

\input{longdiv(2).tex}

\include{Intro}

\include{ch2}
\include{ch3}
\include{ch4}
\include{ch5}

\include{index}

But you only uploaded ch2.tex, ch3.tex, ch4.tex. So we cannot process your code at all, and so having your code at all is worthless.

Secondly, what do you we would do with your code once we got it? Obviously, we would have to test it, and in order to isolate the problem, we'd eliminate more and more until we see where the problem arises. Isn't it simpler if you just do that on your own before you post?

It may be easier for you just to post parts of your code without bothering to try to do any of the work isolating where the problem is on your own beforehand, but it makes things much harder on those who would otherwise volunteer to help you, such as myself.

Please read "How to Ask Questions the Smart Way".
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Book class and chapter loading problem

Post by coachbennett1981 »

I am not trying to make you made.. I apologize, my first post showed all the code for the book feature. I will remove the post, so I don't frustrate anyone else.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Book class and chapter loading problem

Post by frabjous »

I was just trying to explain under what conditions you're more likely to get help. There's no need to overreact to the situation.

Anyway, I think you have a stray \end{document} in line 255 of ch3.tex, and I suspect that's your problem. But I'm not sure because (1) you removed the original and I'm not entirely sure that I didn't accidentally insert that when playing around with it, and (2) I was never able to test your code as it was.
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Book class and chapter loading problem

Post by coachbennett1981 »

I spent three hours and I fixed the chapters that I needed to. Added the code that needed to be added. You were right, I had to go back through all the files. I still have one more that I have no clue what is going on. Thanks for the advice.

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

Book class and chapter loading problem

Post by localghost »

coachbennett1981 wrote:I removed this post
That is very bad practice! Those who tried to help wasted their time. The thread is completely useless now. Well, at least it can serve as cautionary tail.
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Book class and chapter loading problem

Post by coachbennett1981 »

@localghost. Sorry for doing that, I know I have messed up on posting over the last year, I did not want to offend anyone else. I won't do it again.

Nick
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Book class and chapter loading problem

Post by frabjous »

No one is angry and no one is offended. I was just trying to explain why it's difficult to help without a proper minimal working example to test with, and Thorsten is just trying to explain that the thread is going to be more useful to others with all the information intact, that's all.
Post Reply