Tag Archives: Latex

LaTeX, apacite and bibliographies

LaTeX LogoJust a LaTeX issue and solution, in case anyone else ever spends half an afternoon banging their heads against this particular brick wall.
Read More →


LaTeX Includes

Latex offers a very nice way to divide large documents into manageable files – the include command.  Combined with the includeonly command you have a very powerful method of compiling your document.

Typically,  each included file is a chapter – this is apparently how it was designed, and is certainly how I – and every other LaTeX user I know – use it.  Today I decided that one chapter was far too big, and split it up into a few smaller files for easy management.  Took seconds, no problem.

Only later, when I was annotating a hard copy for my supervisor did I realise that every include finished with an implicit clearpage.  Just what you want when you’re starting a chapter, and so I’d never noticed it.  When you’re starting a new section though, that’s not what you want.

In this case, use the input command  – same format, same effect, but no implicit clearpage.  You lose the includeonly functionality, but it fixes your section breaks.

tldr/

Problem: Unwanted page breaks around include statements.

Solution:  Use the near-identical input command instead.


Unexpected LaTeX!

Somehow I forgot to mention that as well as delving into the world of C# I’m just finishing up my PhD thesis.  Having experienced the horrors of trying to manage a large document in Word, I set about learning to use LaTeX, which for this kind of work is superior in just about every imaginable way.

Once you decide on a style sheet, LaTeX pretty much manages everything for you, and lays it all out beautifully.  When it works, it works sublimely.  When it doesn’t work, you can really end up stuck.

So, I’m going to post a bunch of LaTeX problems too, since it can be really hard to find solutions when you don’t know the right vocabulary.