Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geting rid of extra page at beginning? #16

Open
andjorhanson opened this issue May 17, 2022 · 5 comments
Open

geting rid of extra page at beginning? #16

andjorhanson opened this issue May 17, 2022 · 5 comments

Comments

@andjorhanson
Copy link

Hi - I am working on my new Elsevier book, in latex/dvips mode (not pdflatex),
and have a nice cover page, both in eps and pdf. \includepdf fails because it's
a dummy action in dvips mode. So I tried this using \includegraphics

\begin{frontmatter}
%\begin{minipage}{8in}
\vspace*{-2in}
\hspace*{-1.6in}
\includegraphics[width=8.5in]{00CoverImages/QuatBookII-Cover}
% \end{minipage}
\end{frontmatter}

and it actually works perfectly, the correct appearance (even if it is cheat),
but it pops out a preceding empty page "i" . I know this is a really stupid
question, but there must be a way to put in the cover page at the beginning
in a clean way that goes gracefully in the titlepage.tex from the above cover.tex
Do you have a trick to do that? The eBook for my first book "Visualizing
Quaternions" has the cover page from the hardcopy placed very nicely,
and I'd like to duplicate that in my book-2 drafts that I send to Elsevier.
Everything else seems to be working pretty well so far, thanks for
your previous assistance!

Andy

@dgalcius
Copy link
Collaborator

Hi Andy,
my guess is that your cover image is too large to fit into page.
I would try something like this:

\begin{titlepage}%
  \setcounter{page}{0}% put cover image on page 0, titlepage on page 1
  %
  % set  cover image into a box of zero-height and textwidth.
  %
  \vbox to 0pt{%
    \makebox[\textwidth]{\includegraphics[width=8.5in]{00CoverImages/QuatBookII-Cover}}%
  }
  %
  % Or, alternatively, put cover image into {picture} environment, e.g.,
  % \begin{picture}(400,600)(40,60)
  %     \makebox(400,600){\includegraphics[width=8.5in]{00CoverImages/QuatBookII-Cover}}
  % \end{picture}
  %
  \clearpage % force next page to print titlepage
  \begin{titlepagerule}
  \title{.....}

Hope it helps.
best regards, - deimi

@andjorhanson
Copy link
Author

andjorhanson commented Jul 13, 2022 via email

@dgalcius
Copy link
Collaborator

Dear Andy,

The running head rules on the titlepage is a side effect of the cover image being put on the preceding page.
There should be no running head rules nor page number on the titlepage. The heading rules should appear starting from
Chapter 1. Your approach is correct, - please use \thisispagestyle{empty} to remove the page number and rules from the titlepage.

best regards, - deimi

@andjorhanson
Copy link
Author

andjorhanson commented Jul 24, 2022 via email

@dgalcius
Copy link
Collaborator

Dear Andy,

Answer to Q1: Please use lowercase letters (a), (b), (c), etc. for different figure parts.

Answer to Q2: Table of contents will be auto generated in production stage. Please leave it as it is.

Answer to Q3: It might be tricky:

  • Option 1: Leave it as it is.
  • Option 2: on my machine (linux+emacs) I would set some tracing options in book.tex preamble:
    \tracingcommands2
    \tracingmacros2
    \tracinggroups2
    \tracingnesting2

After compilation which should produce a huge log file I would grep the book.log for lines:

$ grep -a '(level 1)'  book.log 

which would produce a list of lines from book.log which contains line '(level 1)' .
Going from bottom to top in the list it might be possible to pin down to the location.
(Do not forget to delete tracing commands in the preamble afterwards)
Anyway, probably I would stick with Option 1.

thanks you.
Regards, - deimi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants