Let's say I am on the left column. If I exceed the vertical length of the page then the text continues on the right column. I would like it to continue on the left column of the next page.
I want this because the layout what I have imagined (and I try to implement) has the two columns as independent. There is a different issue on each column and on some pages one of the columns is empty.
but I can't see any artifacts inside the DVI/PDF apart from the columns issue, so I have been ignoring them so far. I imagine that they are not related but I had to point it out.
I have included a screenshot, my source Latex document and the output log at the end of this post. Unfortunatelly the Latex file has to be leangthy in order to show how do I plan to use the columns and how the text wraps on the next column if it's too lengthy. Including the log file as part of this post would be too lengthy so I am using a Pastebin link.
Concerning the warnings you get about underfull \hboxes, they are probably caused by the \\ command you put several times. They serve to introduce line breaks inside paragraphs, but they should never be used to mark the end of a paragraph. For the latter purpose, it suffices to add a blank line or the \par command. As a rule of thumb, out of tabular and multiline math environments, the use of \\ should be the exception, not the rule.
Likewise, the \large command has no arguments, so a pair of braces after it is completely useless: "\large{text}" is exactly the same as "\large text". If you want to bound the scope of \large, put it and the corresponding text inside the same pair of braces: {\large text}. Environments also limit the scope. The same comments apply to similar commands, as \small, \Large, \bfseries, \itshape, etc.
Finally, the teTeX distribution has become outdated. You should move to TeX Live.
Can I ignore it? I don't see anything wrong in the layout.
2. The \peartitle{} in my original layout had some vertical space under it to make it distinguish from the text. But when I add vertical space on your layout it doesn't respond:
even if I make \vspace{5cm}. What is see is that when I try to add vertical space like that I instead get the text inside \peartitle{} getting a little space on it's left side. A sample of this you can see here:
Is there a way to vertical space between \peartitle{} and the text under it?
3. I want to find the most correct way of giving one line space between two paragraphs of text. \par will make the text go to the next paragraph but I need an empty line between two two paragraphs. I mean this:
Since I can't use \\ to do that, I have managed to do it with \newline\newline. Is that an acceptable practice?
And since I am on this, do I have to use \par at some point inside the document?
4. I like "spacey" code and I do this in CSS and Bash script too because it helps me see where a snip of code begins and ends. What I mean is going from this:
Can I ignore it? I don't see anything wrong in the layout.
By default, in the book class, LaTeX tries to fill all the page. If there is not enough material to do that, LaTeX issues a warning. You can get rid off it by putting a \raggedbottom command in the preamble.
Anyway, in general, a warning always means that something didn't go as expected. It may be or may be not important, depending on cases. As a rule of thumb, I recommend to pay attention to warnings, especially when preparing the final version of a document.
2. The \peartitle{} in my original layout had some vertical space under it to make it distinguish from the text. But when I add vertical space on your layout it doesn't respond:
In the definition of \peartitle given in your code, the first \vspace had no effect. So I removed it. However, I didn't realized that, inside \colchunk, \vspace seems to not work properly. I don't know why. Try this definition:
The trick is to write an invisible character having some depth, i.e. extending a bit below the line; 1cm in the above definition. Put the lentgh you wish.
No, it is just a matter of taste. Anyway, with the above settings for \chead, in the \geometry command, change headheight=25pt by headheight=55pt, at least.
3. I want to find the most correct way of giving one line space between two paragraphs of text. \par will make the text go to the next paragraph but I need an empty line between two two paragraphs. I mean this:
Since I can't use \\ to do that, I have managed to do it with \newline\newline. Is that an acceptable practice?
And since I am on this, do I have to use \par at some point inside the document?
\newline and \\ are the same command: both mean "break here the current line and continue writing the same paragraph starting a new line". So \newline\newline or \\ \\ are not good ideas. To finish a paragraph, write \par or simply leave a blank line after it.
The space between paragraphs is given by a length called \parskip. For example, if you provide the command
you increase by 15 pt the space between paragraphs. Unfortunately, inside \colchunk, vertical spaces seem to behave differently from usual. So a change of \parskip apparently has no effect. A "dirty" trick could be to define
Perhaps you should take a look at the parallel package and see if it does not give these problems with vertical spaces.
4. I like "spacey" code and I do this in CSS and Bash script too because it helps me see where a snip of code begins and ends. What I mean is going from this:
As far as I understand these are comments, so I tried removing it and things remained the same. Is it safe to remove it or it necessary?
The % prevents TeX from reading characters on the same line. Anything written after % on the same line is skipped. This allows to introduce comments in the source file. But this also serves to avoid superfluous spaces in the output which are produced by blank spaces or "end of line" characters in the source file. For example, if you compile a piece of code like this one
yields "vertical space", which is correct. The % signs make TeX to skip the "end of line", so no blank space is introduced bewteen "verti" and "cal", for example. Take into account that the leading blank spaces in each line are always ignored.
Consequently, to mimic your coding style, it is necessary to add some % signs:
If you remove the first %, you get errors, since LaTeX does not expect "nothing" after the optional argument of \colchunk. If you remove the second %, the "end of line" character of the second line yields a blank space which appears on the left of the title.
I tried changing from Book to Article and putting a \raggedbottom at the premable but I still get the the Underfull \hbox warnings. I can live with it though, I don't mind a few warnings if they are not important.
and it worked, it added vertical space. Problem is that it adds vertical space to both columns. I tried the package Parellels too, and the same thing happens there. So I went back to \newline.
and it worked, it added vertical space. Problem is that it adds vertical space to both columns.
I didn't consider the case of two \peartitle in the same column. In this case, the code I gave fails. It seems that both columns are typeset at the same time. Hence, any variation in the interline space of one column affects also to the other one. I don't know an effective hack for this. I can only suggest to add blank lines. For example, you can put this in the preamble: