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

p04, Fancyhdr issues? #13

Open
andjorhanson opened this issue Feb 2, 2021 · 26 comments
Open

p04, Fancyhdr issues? #13

andjorhanson opened this issue Feb 2, 2021 · 26 comments

Comments

@andjorhanson
Copy link

Why when I use p04
(see info page: https://vtex-soft.github.io/texsupport.elsevier-book/
elsevierbook.cls - class file
elsevierbook-{a02,a08a,p04}.cls - model class files )
does it always flag an error:

Package: etoolbox 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count79
)
(./sty/elsevierbook.cls (./sty/elsevierbook-p04.cls

LaTeX Warning: You have requested document class elsevierbook-p04', but the document class provides elsevierbook'.

and why do I get hundreds of error messages of the form:

Package Fancyhdr Warning: \headheight is too small (22.0pt):
Make it at least 36.10004pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.

@dgalcius
Copy link
Collaborator

dgalcius commented Feb 2, 2021

These are not errors but warnings which you can all ignore.
You could try to update latex style files in your sty/ subfolder from the repo,
but then probably you will get some new warnings.

@andjorhanson
Copy link
Author

andjorhanson commented Apr 22, 2021 via email

@dgalcius
Copy link
Collaborator

Please increase variable stack_size in your texmf.cnf file. Eg. stack_size = 50000 % simultaneous input sources.
$ kpsewhich texmf.cnf will show you the location of the texmf.cnf file.

@andjorhanson
Copy link
Author

andjorhanson commented Apr 23, 2021 via email

@dgalcius
Copy link
Collaborator

The "Figure" method automatically inserts a Figure number in a Caption position
that is ugly and disrupts the presentation, and even using {figure}[h!] is not enough
to reliably keep this in the right place in the text.

-1- You won't get Figure number if you don't use \caption command in {figure} environment.
-2- You can use [H] placement from {float} package to prevent {figure} environment from being floating object

\usepackage{float}
\begin{figure}[H]
...

You can check {float} package documentation by $ texdoc float.

@andjorhanson
Copy link
Author

andjorhanson commented Apr 23, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented Apr 24, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented Apr 26, 2021 via email

@dgalcius
Copy link
Collaborator

LaTeX Warning: You have requested document class elsevierbook-p04', but the document class provides elsevierbook'.

I fixed the warning some time ago. You can download updated style files from https://github.com/vtex-soft/texsupport.elsevier-book/tree/master/sty and put them into your ./sty subfolder.

The problem I am having is that a lot of my Equations and preferred Figure sizes are larger
than the default text width: the apparent default width is 4 5/8" out of 8 1/2". I am not
sure how that integrates into the final book size, as no cut marks are displayed -- in the
earlier book, "Visualizing Quaternions", after taking the cut marks on the 8 1/2" printout
into account, the actual book page size is 7 1/2" and the print width is 4 1/2".
I occasionally used margin notes that are placed 1 1/4" to the left/right of the print,
but that is a stylistic choice - if necessary, I could avoid margin notes in the new volume.

P04 layout model specs for Text Area - Drop 185.737 mm x Width 118.71 mm
P05 layout model specs for Text Area - Drop 185.737 mm x Width 143.757 mm

P05 model is very similar to the P04 model except that P05 is wider. However both models
do not provide margin notes. If you want to use margin notes you will probably have to use
different layout model (e.g. T04).

So - is there a "legal" modification we could make to the Style I am using now that would
extend the print width beyond 4 1/2' or 4 5/8' to add 1/2" or so, or should I forget about that
and just do whatever I have to do to adapt to the current default 4 5/8" printable text width?

My suggestion is to alter the text width (to match P05 layout) and to make an arrangement
with Elsevier editorial manager to use P05 layout model in the production.
(this is an important step as in the production it might revert to P04 otherwise).

To alter the text width please set in the preamble of .tex file:
\geometry{body={143.757mm,185.737mm}}
or
\geometry{body={143.757mm,185.737mm},showframe}
if you want to see textbox frame.

@andjorhanson
Copy link
Author

andjorhanson commented May 3, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented May 4, 2021 via email

@dgalcius
Copy link
Collaborator

dgalcius commented May 6, 2021

On 5/3/21 9:54 PM, andjorhanson wrote:

Package Fancyhdr Warning: \headheight is too small (22.0pt):
Make it at least 23.80003pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.

I removed dependency on fancyhdr package. You won't see
these warnings again (please update with new style version).

Meanwhile, I have another couple of formatting questions. A simple one
is that I do not particularly like the way this Style formats the TOC - there is
a WIDE separation between Chapters, but almost NO separation preceding
a new Part - it is very confusing and hard to look at for the reader, and I hope
you will consider taking a look at that and improving the design.

I set some space before Part entry and increased font size. Hope it helps.

There are a number
of other spacing and formatting conventions that do not seem as well designed
as my original book - "Visualizing Quaternions" from 2006. That style was also
done by VTeX, so I was wondering just what is going to happen in final production -
is there going to be any effort to coordinate the styles of the earlier and current books?

This template class is about to help author to write her/his book, so that
author can concentrate on the book content and not the layout.

In production we take content and typeset it according the order and specs that
come from Elsevier. In general we typeset according one of many predefined layout models.
Production latex class is very different from template latex class you use.
Your question about the style of the previous book and current book should be addressed to
Elsevier.

Then I have an issue with chapter options: In this book, unlike that first one,
I have a number of Chapters that correspond to published papers that had extensive
supplementary Appendices. I have never used Appendices in Chapters before,
but it seems like it would be easier for the reader in this case if some chapters
had their own Appendices, instead of lumping ALL Appendices together at the
very end of the book as we did in "Visualizing Quaternions." But I cannot do it -
if I put \appendix inside a chapter, EVERY SINGLE subsequent chapter thinks
it is an Appendix!. So can you tell me what options I have in the P4/P5 style
to put in some appendices that are local to a CHAPTER, instead of spreading
through the entire book?

In "article" class the definition of \appendix is

> \appendix=\long macro:
->\par \setcounter {section}{0}\setcounter {subsection}{0}\gdef \thesection {\@
Alph \c@section }.

In "book" class the definition of \appendix is

>\appendix=\long macro:
->\par \setcounter {chapter}{0}\setcounter {section}{0}\gdef \@chapapp {\append
ixname }\gdef \thechapter {\@Alph \c@chapter }.

What you want is "appendix as section" (the former definition) instead you get "appendix as chapter" (the latter definition)
which is correct because template class is "book" based class.

I would suggest to define your own macro (say \sectionappendix) which corresponds
to "appendix as section" version:

\newcommand*\sectionappendix{%
  \par\setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \gdef\thesection{\thechapter.\Alph{section}}%
}

Then you can say \appendix if you want chapter level appendix, and \sectionappendix if you want section level appendix.

best, -d.

@dgalcius
Copy link
Collaborator

dgalcius commented May 6, 2021

I'm sorry I cannot see any image on the github.

On 5/4/21 8:45 AM, andjorhanson wrote:

This seems to be a formatting bug occurring regularly for long section titles, repeated words, multiple lines...

[cid:DAC5C3E9-2358-4242-AFC5-B99CEF73D917-L0-001]

Sent from my iPhone X

@andjorhanson
Copy link
Author

andjorhanson commented May 6, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented May 6, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented May 7, 2021 via email

@andjorhanson
Copy link
Author

andjorhanson commented May 7, 2021 via email

@dgalcius
Copy link
Collaborator

dgalcius commented May 7, 2021

Hi, Andy,
-1- (resetting \sectionappendix)
section counter value is reset at \chapter macro. We need to reset the \thesection macro too.
\appto\frontmatter{\gdef\thesection{\thechapter.\arabic{section}}} will do the trick.

-2- (pdf attachment)
No luck. I cannot see any pdf attached. My guess is, that one has to use web interface to attach files or images, otherwise they are dropped.

-3- (long section title running off the page)
I cannot reproduce the issue on my machine.
image

Could you provide with minimal (non-)working example (MWE) showing the issue (please include *.log file and all dependencies/packages, so that I could compile on my machine) and upload as a zip file?

Thank you and
best regards, - deimi

@andjorhanson
Copy link
Author

andjorhanson commented May 7, 2021 via email

@dgalcius
Copy link
Collaborator

dgalcius commented May 7, 2021

Thank you. I misunderstood the problem of long section title.
If you say:
\section[short-title]{Analyzing the Map from a 3D Rotation Matrix to its Quaternion Using the Bar-Itzhack Method}
short-title (optional argument to \section) will go to the headers and into the table of contents.

best regards, -d.

@andjorhanson
Copy link
Author

andjorhanson commented Mar 8, 2022 via email

@dgalcius
Copy link
Collaborator

dgalcius commented Mar 8, 2022

Thank you for the issue report. I will look into it.

@andjorhanson
Copy link
Author

andjorhanson commented Mar 8, 2022 via email

@dgalcius
Copy link
Collaborator

dgalcius commented Mar 9, 2022

Hello Andy,
I've update class file. Please update your ./sty folder with files from
https://github.com/vtex-soft/texsupport.elsevier-book/tree/master/sty

I've made corrections for CHAPTER label in TOC (table of contents).
This should fix CHAPTER/APPENDIX label if you compile tex file few times.

I do not have a quick-fix for the alignment problem. Nevertheless
I suggest to leave it as it is, as the style on github (the one you are using)
is not the final production version, but merely a mock of it.
The alignment will be ok in the final production version.
I hope it is ok with you.

thank you and best regards, - deimi

PS. Please open new issue on the github page,
if you have any other question/problem.

@andjorhanson
Copy link
Author

andjorhanson commented Mar 9, 2022 via email

@dgalcius
Copy link
Collaborator

Hello Andy,

https://github.com/vtex-soft/texsupport.elsevier-book/issues is the place to file
issues. Our correspondence is via github interface. What you write in your email
is not what I get.
Please check #13 page
to see what email text I receive.

Initial issue you filed was about "fancyhdr" and it was fixed a year ago.
Opening new issues would help me to keep tracking/managing issues.

thank you, - 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