vtex-soft / texsupport.elsevier-book

Elsevier book class and template
https://vtex-soft.github.io/texsupport.elsevier-book/
LaTeX Project Public License v1.3c
4 stars 5 forks source link

p04, Fancyhdr issues? #13

Open andjorhanson opened 3 years ago

andjorhanson commented 3 years ago

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 provideselsevierbook'.

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 commented 3 years ago

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 commented 3 years ago

Hi all - I am putting together a partial rough draft of my proposed book "Visualizing More Quaternions" for Chris to use in his upcoming pitch in two days, and LaTeX just stops at page 255 out of the current ~350 pages (final book will be 500-650 pages) with the message:

                      "TeX capacity exceeded, sorry"

Here are the lines in the book.tex log file containing the error message:

<imgRel1/hyperFP.eps> <imgRel1/velpts-0.9.eps>
./chapterLorentzIntro.tex:693: TeX capacity exceeded, sorry [input stack size=5000].
***@***.*** #1.#2\\->\ifx \\#2
                                   \\\let ***@***.*** \relax \else \edef \...
l.693 }} }
          \\
Output written on book.dvi (255 pages, 978688 bytes)

So how do I continue writing the book?  I assume there are tricks and workarounds,

but I've never had to use them before. Are there ways to manually flush the memory using \clearpage or something like that? Anyway, I am hereby requesting Elsevier to help me figure this out from a professional point of view instead of my doing guesswork by scrambling all over the web. Soon, if possible? Little hope of getting this ready for Chris by this weekend otherwise...

I am running TeXShop Version 4.62 (latest release) on an iMac 27" (2017) with 24 GB of memory, and MacOS Mojave 10.14.6. Note that my IT department has chosen not to support macOS Big Sur 11.x.x at this time, and has warned me not to upgrade to Big Sur under any circumstances until they tell me it is safe to do so (possibly a year from now, they tell me).

On Feb 2, 2021, at 1:22 PM, Deimantas Galčius @.**@.>> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-771863794, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ67L22OPFWOISGNBH6LS5A7EZANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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 commented 3 years ago

Thank you!! However, this was very strange: I commented out all but the one chapter listed in the error log, and it still exceeded capacity. And yet the 300 page document OMITTING that chapter did NOT exceed capacity. So, wondering if there is some odd thing I used in that chapter that is causing the problem, I narrowed it down to the fact that, uniquely in this chapter, I used a number of "parbox{}{eps files)" to insert illustrations into the text exactly at the point they are mentioned. For example,

\parbox[t]{4.8in}{\centering \centerline{ \includegraphics[width=0.9in]{veltlike-0.5.eps} \hfill \includegraphics[width=0.9in]{veltlike-0.2.eps} \hfill \includegraphics[width=1.20in]{veltlike0.eps} \hfill \includegraphics[width=0.9in]{veltlike0.2.eps}\hfill \includegraphics[width=0.9in]{veltlike0.5.eps }}}\ \parbox[t]{4.8in}{\centering \centerline{\large $v= -0.5$ \hfill $v= -0.2$ \hfill $v= 0.0$ \hfill $v= 0.2$ \hfill $v= 0.5$ }}

There were about a dozen of these, and the "TeX capacity exceeded" occurred halfway through, even if this was the ONLY chapter being Included. When I replaced each of those by a Figure, e.g.,

\begin{figure}[h!] \centerline{ \includegraphics[width=0.9in]{veltlike-0.5.eps} \hfill \includegraphics[width=0.9in]{veltlike-0.2.eps} \hfill \includegraphics[width=1.20in]{veltlike0.eps} \hfill \includegraphics[width=0.9in]{veltlike0.2.eps}\ hfill \includegraphics[width=0.9in]{veltlike0.5.eps} } \ \[0.1in] \centerline{\large $v= -0.5$ \hfill $v= -0.2$ \hfill $v= 0.0$ \hfill $v= 0.2$ \hfill $v= 0.5$ } \caption[]{\ifnum\ShowFiles=1 {\bf veltlike-0.5.eps, veltlike-0.2.eps, veltlike0.eps, veltlike0.2.eps, veltlike0.5.eps}\fi } \label{veltilike.fig} \end{figure}

all the "TeX capacity exceeded" output truncations disappeared.

SO I HAVE ANOTHER QUESTION :-) -> 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. I have seen people do this, and presumably it's possible without the parbox{ } memory limitations, but I do not know the best way to do this. Of course I could increase the memory limit in texmf.cnf until it can handle all the parbox's, but this seems like the least intelligent way to accomplish this. Do you know some better way to insert dozens of figure rows, as in the examples above, with no automatic Figure Numbers, at a known spot in the text without using up the TeX static memory for no real reason?

Thanks, Andy

On Apr 22, 2021, at 3:00 AM, Deimantas Galčius @.**@.>> wrote:



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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-824592840, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ64LJTY5RO7E4ZPCFOTTJ7CR3ANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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 commented 3 years ago

Hello again! Thanks very much - in all my years of LaTeX I had not been aware of the float package! That is perfect, solves all my questions for now. Very helpful, thank you! -Andy Hanson

Sent from my iPhone X

On Apr 22, 2021, at 11:25 PM, Deimantas Galčius @.***> wrote:



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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-825359499, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ6YGBLSCJL2JZGH5I2DTKDSCRANCNFSM4W5XJSMA.

andjorhanson commented 3 years ago

Hello again- The last several communications have been very useful as I continue to go more deeply into composing my next book "Visualizing More Quaternions" for Elsevier. I had one more question:

The header of my book.tex file uses [p04]{elsevierbook}, which causes an error message in the book.log file that you previously said was of no importance:


book.tex %% Book layout models: a02, a08a, p04 %% choose one of three models %\documentclass{elsevierbook} %\documentclass[a02]{elsevierbook} %\documentclass[a08a]{elsevierbook}

\documentclass[p04]{elsevierbook}

% models = a02,a08a,p04 %\documentclass[,]{elsevierbook}%


book.log

(./book.tex LaTeX2e <2017-04-15> Babel <3.10> and hyphenation patterns for 84 language(s) loaded. (/usr/local/texlive/2017/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (./sty/elsevierbook.cls (./sty/elsevierbook-p04.cls

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

Document Class: elsevierbook 2018/11/19 v0.1.1 Elsevier book class

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.

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?

Thanks, Andy Hanson

On Apr 22, 2021, at 11:25 PM, Deimantas Galčius @.**@.>> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-825359499, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ6YGBLSCJL2JZGH5I2DTKDSCRANCNFSM4W5XJSMA.

andjorhanson commented 3 years ago

Here is an example of my typical frequent equation formatting challenge with the 4 1/2” width:

[cid:8DA314B3-AD99-402C-9C34-D09C6CF69E62-L0-001]

Sent from my iPhone X

On Apr 24, 2021, at 2:04 PM, Hanson, Andrew J. @.***> wrote:

 Hello again- The last several communications have been very useful as I continue to go more deeply into composing my next book "Visualizing More Quaternions" for Elsevier. I had one more question:

The header of my book.tex file uses [p04]{elsevierbook}, which causes an error message in the book.log file that you previously said was of no importance:


book.tex %% Book layout models: a02, a08a, p04 %% choose one of three models %\documentclass{elsevierbook} %\documentclass[a02]{elsevierbook} %\documentclass[a08a]{elsevierbook}

\documentclass[p04]{elsevierbook}

% models = a02,a08a,p04 %\documentclass[,]{elsevierbook}%


book.log

(./book.tex LaTeX2e <2017-04-15> Babel <3.10> and hyphenation patterns for 84 language(s) loaded. (/usr/local/texlive/2017/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (./sty/elsevierbook.cls (./sty/elsevierbook-p04.cls

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

Document Class: elsevierbook 2018/11/19 v0.1.1 Elsevier book class

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.

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?

Thanks, Andy Hanson

On Apr 22, 2021, at 11:25 PM, Deimantas Galčius @.**@.>> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-825359499, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ6YGBLSCJL2JZGH5I2DTKDSCRANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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

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 commented 3 years ago

Hi again - thank you very much for all the help so far. I did download the four new elsevierbook*.cls files, and the log errors have become fewer, though I still get three or four hundred of these each time I run LaTex:

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.

The wider page seems to help - I will experiment with that.

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. 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?

 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?

Thanks, Andy Hanson

On Apr 26, 2021, at 3:08 AM, Deimantas Galčius @.***> wrote:

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 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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-826567898, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFYZ657PXXA6ECWR3PSISTTKUGN5ANCNFSM4W5XJSMA.

andjorhanson commented 3 years ago

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

On May 3, 2021, at 2:54 PM, Andrew Hanson/ajhanson @.***> wrote:

Hi again - thank you very much for all the help so far. I did download the four new elsevierbook*.cls files, and the log errors have become fewer, though I still get three or four hundred of these each time I run LaTex:

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.

The wider page seems to help - I will experiment with that.

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. 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?

 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?

Thanks, Andy Hanson

On Apr 26, 2021, at 3:08 AM, Deimantas Galčius @.**@.>> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-826567898, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ657PXXA6ECWR3PSISTTKUGN5ANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Hi- thanks for the update- if you can’t see my screenshot of the error, let me try to get a pdf. It is a pretty serious formatting error.

Sent from my iPhone X

On May 6, 2021, at 12:49 PM, Deimantas Galčius @.***> wrote:

 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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

andjorhanson commented 3 years ago

Here is the pdf - you should be able to download the attachment. Let me know if you can't. Basically, the long subsection title causes the page number "27" to be repeated 3 times in the same line, along with the text from the last part of the subsection title.

Andy

On May 6, 2021, at 12:49 PM, Deimantas Galčius @.**@.>> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-833680673, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ67GTY7O5USE3NNF2FDTMLCCXANCNFSM4W5XJSMA.

andjorhanson commented 3 years ago

Hi -- it looks like the page 27 glitch has been fixed -- what I sent you was apparently a version that did not use the changes in the .cls files that appeared on github in the last 18 hours. SO it looks good now! Thanks, Andy

On May 6, 2021, at 12:49 PM, Deimantas Galčius @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-833680673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFYZ67GTY7O5USE3NNF2FDTMLCCXANCNFSM4W5XJSMA.

andjorhanson commented 3 years ago

Hi - As you suggeste, I tried this,

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

In the chapter (4) in question, I put this where I would put "\appendix" in an 'article'. This gave at, each new \section, the labels 4.A, 4.B etc. which is exactly what I wanted.

HOWEVER, I just noticed that chapter 5 now starts with section 5.A, 5.B, ... not 5.1 , 5.2 ... and chapter 6 now starts with section 6.A. 6.B. etc instead of 6.1, 6.2

So we must need to put a 'counter' reset someplace between the last appendix of Chapter 4, and first Section of Chapter 5? And similarly for every Chapter where I use \sectionappendix to add parenthetical material at the end of the Chapter. Where, how, does this go?

ALSO - It seems I have another section title that is too long -- 6.C Analyzing the Map from a 3D Rotation Matrix to its Quaternion Using the Bar-Itzhack Method 121

The above runs OFF THE PAGE to the right after I used this:

\section{Analyzing the Map from a 3D Rotation Matrix to its Quaternion Using the Bar-Itzhack Method}

Thanks, Andy

On May 6, 2021, at 12:49 PM, Deimantas Galčius @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-833680673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFYZ67GTY7O5USE3NNF2FDTMLCCXANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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 commented 3 years ago

Hi - Thanks for the Chapter number fix -- I ALMOST figured it out for myself, with a manual "\arabic" ! re: Headers: I'll try an entirely different way: I'll put a link to the pdf files from Dropbox, so you can take that link to any computer, outside of github, and locally download it without needing any involvement of the email system:

The running odd-page header runs OFF THE PAGE to the right after I used this:

\section{Analyzing the Map from a 3D Rotation Matrix to its Quaternion Using the Bar-Itzhack Method}

https://www.dropbox.com/s/ub5zbp7xe1y1pg9/6.3glitch.pdf?dl=0

and the previous behavior, which you FIXED in the last elsevierbook.cls update, was

https://www.dropbox.com/s/3m7azh0ujbbebf6/4.3glitch.pdf?dl=0

If that is still insufficient, I can try to put together a minimal example, but ANYTHING with the length of a \section or \subsection title in the above seems to overrun the odd-page running header. It is true that these titles are probably too long anyway, so perhaps, since you fixed the worst one, I should just shorten the titles until the header is printable? Not that hard, just let me know.

Thanks, Andy

On May 7, 2021, at 1:00 AM, Deimantas Galčius @.**@.>> wrote:

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]https://user-images.githubusercontent.com/10126095/117399145-7f94f600-af08-11eb-86ab-9046a5653062.png

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-834067772, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ65G67I5DXNM6M7422TTMNXXJANCNFSM4W5XJSMA.

dgalcius commented 3 years ago

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 commented 2 years ago

Hello again - Some combination of addresses to reach VTEX for Elsevier Book Author support worked last time, and I'm hoping to reach the same branch of VTEX this time. I received the Elsevier LaTeX book format template \documentclass[p04]{elsevierbook} and I am now closing in on finishing 500 pages of a first draft (hopefully many months before the date actually in my contract). I had a number of issues in the early stages of using the P04 format that you helped with, including showing how to add "local" appendices to single chapters, which I think I will probably end up using in a handful of chapters. But I just noticed a strange problem with the whole-book chapters that perhaps you can help with: the Appendix labels and index do not say just "A", "B", "C"... as in my previous book, nor do they say "Appendix A", "Appendix B", ... but the index goes straight from chapters to appendices without notice:

CHAPTER 21 Blah Blah 21.1 Blah Blah 21.2 Blah Blah 21.3 Blah Blah CHAPTER A BLah Blah A.1 Blah A.2 Blah CHAPTER B etc.

Certainly this is not what was intended for the format of my book.  Perhaps 

there is a separate Index format step that does a better job. But if this IS the index format, it needs to be fixed, to add sub-major title "Appendices" on a separate page and index line as in my previous book, and to replace "CHAPTER A" by either "APPENDIX A" or perhaps just "A" as in my previous book. In addition, the index ALIGNMENT of 21 and 21.1 DIFFERS from the alignment of A and A.1, which also seems to be an inconsistent format implementation.

 As I get closer to the finish, I will surely have other questions and concerns, so

I thought it would be a good idea to re-establish our communication channels!

Best wishes,
  Andrew Hanson
 ("Visualizing Quaternions" 2006, and "Visualizing More Quaternions", in progress)
dgalcius commented 2 years ago

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

andjorhanson commented 2 years ago

HI - Thanks! I notice that my Email system keeps switching my "home email", and somehow this went back and forth to my private @.**@.>": I am 'trying' to keep my email on the Book on my University account, @.**@.>". which is equivalent to @.**@.>" Thanks, Andy

On Mar 8, 2022, at 6:58 AM, Deimantas Galčius @.**@.>> wrote:

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

— Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-1061702218, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ62LQIZWUVH36UCX3S3U646GVANCNFSM4W5XJSMA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

dgalcius commented 2 years ago

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 commented 2 years ago

Hello- Thank you very much! One question: you say below "open a new issue on the github page if new problem". I have been completely mystified by what this procedure IS: the emails make no sense, as they are totally generic, @.**@.> is what I see under "Deimantas Galčius". So I've been making guesses as to which email I use to ask your help - can you tell me:

  1. If I have a new question to ask about the LaTeX book format, what email do I use to make sure I reach you, to "open a new issue on the github page"? I have no idea what precisely is the meaning of "the github page" -what is that????

    1. If I have continuing information to provide in a conversation already begun, how do I get back to that thread without "opening a new github page"? I see that this email I am replying to is NOT the one listed in the attached copy just below, but is @.**@.> I've always eventually reached you, but I do not understand what the "right way" is to do that.

      Thanks, Andy

On Mar 9, 2022, at 1:51 AM, Deimantas Galčius @.**@.>> wrote: 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.

— Reply to this email directly, view it on GitHubhttps://github.com/vtex-soft/texsupport.elsevier-book/issues/13#issuecomment-1062606901, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADFYZ6YX7VMIFKQQXK7PFW3U7BC65ANCNFSM4W5XJSMA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

dgalcius commented 2 years ago

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 https://github.com/vtex-soft/texsupport.elsevier-book/issues/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