In addition to the very useful discussion Figures on left pages, text on right ones with class book, numbering only on right pages, I would like to handle 2 other features:
- the suppression of blank pages automatically inserted by book,
- the possibility to switch between figure and table captions.
Regarding the first, 3 blank pages are added before a new chapter (probably also before a new part) where only 1 should be. I managed to remove one redefining \chapter as follows (removing the first line involving \clearpage) but not the other.
\renewcommand\chapter{
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
For the second, I defined a new command \switchcaption as follows which I call before and after a table respectively with "table" and "figure" as argument.
\newcommand\switchcaption[1]{\def\@captype{#1}}
By the way, I would be very interested in better understanding
- when it is useful to use directly
\definstead of\(re)newcommand(\newcommand\@captype{figure}seems to work just as well as\def\@captype{figure}), - when it is needed to work within
\makeatletter\makeatother(apparently\newcommandworks differently in both cases: it "reads" the new command name with subsequent braces outside\makeatletter\makeatotherand without braces otherwise), - why
\addfigdefinition needs two statements (one for\@addfigand another apparently for its argument).
Thank you very much in advance for your help!
\def, and for (2b): it's needed when you tamper with TeX internal macros which have@in their names. – Axioplase Oct 27 '11 at 00:48\include(I am writing a thesis...). Using\inputinstead solves the problem (without redefining\chapter). In addition, I managed to avoid blank pages at the end of the document redefining\blankpageto stop recursion (\renewcommand{\blankpage}{}). To define table captions, I realised that I could use the command\captionofprovided by the caption package I am using anyway. – Benoît Bidaine Oct 27 '11 at 00:51\includeor\input, also see: http://tex.stackexchange.com/questions/246/when-should-i-use-input-vs-include – Werner Oct 27 '11 at 01:45