Page LayoutProblem with Index (packages conflicts ?)

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Problem with Index (packages conflicts ?)

Post by Cham »

My project is a huge book of about 900 pages, with lots of equations (vectors, tensors, matrices, ...) and figures. Is 30 packages in the preamble typical, for that kind of project ?

On a side note, the log file also gives many warning about symbols in URL links:
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
I'm using the hyperref package. Do I need another package for URLs in a PDF ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with Index (packages conflicts ?)

Post by localghost »

Cham wrote:[…] Is 30 packages in the preamble typical, for that kind of project ? […]
You can load 100 packages if you need them. Just don't load packages you don't need.
Cham wrote:[…] On a side note, the log file also gives many warning about symbols in URL links:
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
I'm using the hyperref package. Do I need another package for URLs in a PDF ?
Presumably you have math expressions in headings. For a remedy search the hyperref manual for the \texorpdfstring command.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Problem with Index (packages conflicts ?)

Post by Cham »

localghost wrote: Presumably you have math expressions in headings. For a remedy search the hyperref manual for the \texorpdfstring command.
Yep, I have several math expressions in chapter/section titles. Thanks for that one.

But what is the relation between the microtype package and the index ?

And I want to insist : Thank you VERY much for all of your precious help ! Without you, this project could not have come true ! ;)
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Problem with Index (packages conflicts ?)

Post by Cham »

I'm still getting lots of warning messages in the log file, despite the fact that I did used the \texorpdfstring command for all the headers with some maths expressions :
Underfull \hbox (badness 10000) in paragraph at lines ...
...
Package hyperref Warning: Token not allowed in a PDF string (Unicode):
(hyperref) removing `math shift' on input line ...
The "\hbox" warning messages may be related to pictures commands. I don't know how to interpret the warning messages.

There's also a special case for a formula I asked on the forum, few weeks ago :
LaTeX Font Warning: Command \scriptsize invalid in math mode on input line 222.
The formula associated to this warning message is this :

Code: Select all

\sum_{\scriptsize\begin{aligned} i, j &= 1 \\[-4pt] i &\ne j \end{aligned}}^{N}
Apparently, the \scriptsize command is not allowed, while the compiled formula is nicely looking on the PDF version. What's going on here ?

Any idea of what this is all about ?
Post Reply