Questions tagged [warnings]

{warnings} is about dealing with and (hopefully) getting rid of compiler warnings.

Filter by
Sorted by
Tagged with
1 vote
2 answers
33 views

Unused global option(s) with kvoptions string option

\begin{filecontents}{foo.cls} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{foo} \RequirePackage{kvoptions} \SetupKeyvalOptions{family=myoptions,prefix=myoptions@} \DeclareStringOption[scriptsize]{bibsize}...
Tom de Geus's user avatar
0 votes
0 answers
47 views

How do you fix underfull hbox warning?

I am trying to write my thesis proposal paper in Latex. Here's the summarized code since most of it is all about the paper I wrote: \documentclass[a4paper,12pt]{report} \usepackage{indentfirst} \...
Kenneth Ligutom's user avatar
0 votes
1 answer
57 views

XeLaTeX and svg - Package transparent Warning: Loading aborted, because pdfTeX is not running in PDF mode

I am using XeLaTex to compile the following LaTeX-code: \documentclass[]{book} \usepackage[UKenglish]{babel} % main language \usepackage{xeCJK} % for Japanese fonts (requires XeLaTeX) \...
edgar's user avatar
  • 1
7 votes
1 answer
139 views

Why do I get "unused global options warning" for options forwarded to a package except for the first option?

I am working on a custom package for my macros and shortcuts, and a custom class for my preferred style of the document. I am using DeclareKeys to define key-value options in my package, and then my ...
Shai Avr's user avatar
  • 685
1 vote
0 answers
33 views

Warning when putting a math command in \section regarding "Token not allowed in a PDF string (Unicode)" [duplicate]

I am very new to LaTeX and I have been playing around with it by trying to transcribe my math notes into it. For some reasons when i wrote \begin{math}\sqrt{2}\end{math} after \section Overleaf ...
Nadia K's user avatar
  • 11
1 vote
1 answer
26 views

Split inside Align raises overfull hbox - need a local solution

When using a split environment inside a align environment, I get the Overfull hbox warning. \documentclass{article} \usepackage{amsmath} \setlength\textwidth{.5\textwidth}% force narrow text to get ...
Euler_Salter's user avatar
0 votes
1 answer
34 views

Warning messages related to superscript and mathshift in my latex file with hyperref

I am writing a manuscript. I am trying to use hyperref. I have two warning messages. Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `math shift' on input line 215. ...
Alex Poyser's user avatar
0 votes
0 answers
59 views

Question regarding microtype package

I am using the inofficial thesis template from my university. However, when I compile I get several warnings in the manner of Package microtype Warning: tracking amount list `output.tex/85' will ...
clearseplex's user avatar
1 vote
1 answer
104 views

error using htlatex and no output file is generated :(

I am very new to using LaTeX so please be kind :) Specs: Using Windows OS, TexLive, Overleaf(initially). Used the accessible package from https://libguides.lib.msu.edu/c.php?g=995742&p=8207771 ...
Locke's user avatar
  • 13
2 votes
1 answer
60 views

Enforcing the Use of for Acronyms in LaTeX

I am working on a document where I want to enforce the use of acronyms via the glossaries package. My intention is to ensure that each acronym is used properly with the \gls{} command so that I can ...
Highnoon's user avatar
10 votes
3 answers
536 views

Avoid spurious warnings in a parasitic class with key-value options (LaTeX3 \DeclareKeys)

This is a modified version of "Unused global options(s)" when using arguments in options of class. The question is how to create a parasitic class (i.e. one which loads another) which ...
cfr's user avatar
  • 196k
0 votes
4 answers
70 views

Underfull \hbox (badness 10000) in paragraph within nested minipages

I am generating a PDF using a .tex file of similar name. Generating the PDF with pdflatex generates a number of Underfull \hbox (badness 10000) in paragraph at lines 539--542, with each set of line ...
MTecknology's user avatar
0 votes
1 answer
49 views

`TU/KpMath-Regular.otf(4)/b/n' undefined error in kpfonts-otf when useing \mathversion{bold}

\documentclass{article} \usepackage{kpfonts-otf} \begin{document} Some text.\mathversion{bold}$a$ \end{document} The code compiles fine using without any errors and gives the expected output. ...
Apoorv Potnis's user avatar
0 votes
0 answers
59 views

Two playing cards packages show vastly different performance

I am experimenting typesetting poker hands with two packages. I unexpectedly spotted a huge performance difference between the two. $ cat pst-poker.tex \documentclass{article} \usepackage{pst-poker} \...
mhj67163's user avatar
0 votes
0 answers
73 views

VSCode & MacTex: clicking on a problem does not navigate to the source

Recently, I've just shifted from Win to Mac, but I encountered a problem on the setup of Microsoft VSCode with MacTex. After one builds a tex project, there might be warnings and errors shown in the ...
Sway's user avatar
  • 1
4 votes
1 answer
92 views

unsupported document class detected with Copernicus Latex Package

I’m trying to compile the template of the Copernicus Latex package (used for Copernicus journals). I downloaded the package from Copernicus website: https://publications.copernicus.org/for_authors/...
Clmt's user avatar
  • 43
6 votes
2 answers
101 views

Why overfull in terms of pts and underfull in terms of badness?

I am reading Knuth's The TeXbook, and experimenting around as directed in Chapter 6, I found that the quality of overfull warnings is reported by x pt too wide where x is a decimal; whereas, that of ...
Atom's user avatar
  • 655
3 votes
1 answer
50 views

hfuzz not working in table environment

dear internet stranger. I just wanted to turn off some overfull hbox warnings when I ran into a problem. I could not turn off warnings inside a table environment. What can I do to fix this? Here is a ...
Florian's user avatar
  • 199
3 votes
1 answer
164 views

Which LaTeX command prints a warning message about "Overfull \hbox"?

I want to override the command that prints Overfull \hbox..., but it seems that it's not \GenericWarning. What is it?
yegor256's user avatar
  • 12k
4 votes
1 answer
123 views

How to generate a warning message when the contents of a specific page exceeds half a page in length?

Consider the following MWE: \documentclass{toptesi} \usepackage{lipsum} % just for dummy text \begin{document} \sommario \lipsum[1-3] \end{document} Typically, the “sommario” (or “abstract” in ...
miticollo's user avatar
  • 173
3 votes
1 answer
111 views

Why do I receive warnings after using biblatex?

First of all, I'm quite new to LaTex. I watched some tutorials but this is my first real document i want to create. I wanted to add a bibliography to my document, so i did some googling around. But ...
Enter name here's user avatar
2 votes
1 answer
56 views

lua-widow-control: is it possible to change warnings into infos

I am using the nice package lua-widow-control to slightly improve the appearance of the document. However, the warning messages "Widow/Orphan/Broken Hyphen NOT removed on page ..." was too ...
Jinwen's user avatar
  • 8,266
0 votes
0 answers
38 views

\gls is not compatible with hyperref

I got this warning message: Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `\gls' on input line 39 Line 39 is the following: \subsection{\gls{tev} protease cleavage} ...
Kristof's user avatar
0 votes
1 answer
426 views

XeLaTeX Font Warning: Font shape `TU/pcr/m/n' undefined (Font)

The commands \textbf and \texttt don't have an effect. XeLaTeX Font Warning: Font shape `TU/pcr/m/n' undefined .cls file: \RequirePackage{fmtcount} \newcommand{\setthesistype}[1]{\def\@thesistype{#1}}...
Ukias's user avatar
  • 1
1 vote
3 answers
110 views

Roboto light condensed undefined font shape warning

I'm using the Roboto light condensed font, and always get the following font warning: Font shape OT1/cmr/lc/n' undefined(Font) using OT1/cmr/m/n' instead An example document to generate the warning ...
dikdirk's user avatar
  • 73
0 votes
1 answer
110 views

Suppress providing message of package

The package infwarerr is included in quite a few packages (by means of \RequirePackage{infwarerr}and most of the times an option with a date) and it results (once) in the line: Package: infwarerr 2019/...
albert's user avatar
  • 1,313
0 votes
0 answers
44 views

Importing siunitx gives warning "file [...] does not appear to be a dictionary"

Why does the following minimal document result in the warning? \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{inputenc} \usepackage[catalan]{babel} \usepackage{siunitx} \begin{document} ...
Adrià Vilanova's user avatar
5 votes
2 answers
757 views

What's wrong with the xwatermark package?

On a relatively old MacTeX distribution (2015), the following code was compiling fine without any issue. But with the latest MacTeX, it doesn't compile well anymore. I'm getting some mysterious ...
Cham's user avatar
  • 2,200
6 votes
1 answer
805 views

Silencing 'siunitx' and 'physics' package \qty warning

I want to use the siunitxand the physicspackage, using the \qty definition of siunitx. Following the issued warning Package siunitx Warning: Detected the "physics" package: omitting ...
Tim's user avatar
  • 63
0 votes
0 answers
69 views

Duplicated warnings?

MiKTeX engine. I'm writing a book document class file, and it seems that the warnings are duplicated. These are my MWEs: main.tex: \documentclass[a4paper,oneside]{book} \usepackage{mypackage} \...
FueledByPizza's user avatar
2 votes
1 answer
226 views

Warning: Extended allocation already in use. etex.sty code will not be used

These are the imports for my latex project. I am wondering how to fix the compile time following the warning, I don't know which package is causing it. Apparently, this question has been asked before ...
Node.JS's user avatar
  • 685
2 votes
1 answer
303 views

Trying to fix warning: 'pdfTeX warning (dest): name{theorem.1} has been referenced but does not exist, replaced by a fixed one'

Here is a small MWE which creates a warning: \documentclass[12pt]{book} \usepackage{amsthm} \usepackage{thmtools} \usepackage{enumitem} \usepackage{hyperref} \declaretheorem[name=Theorem,refname={...
Linear Christmas's user avatar
2 votes
1 answer
245 views

typearea warning for large DIV values

The KOMA-Script documentation (scrguide-en.pdf/scrguien.pdf) has the following in section 2.6 “Adjusting the Type Area and Page Layout”: Example: Suppose you are writing up the minutes of a meeting ...
Socob's user avatar
  • 1,683
0 votes
1 answer
67 views

Underfull warning in place where text wraps

I created a table and I have multiple underfull warings in places where text wraps. What am I doing wrong? \documentclass[12pt,a4paper,notitlepage, twoside]{article} \usepackage[utf8]{inputenc} \...
Anna S's user avatar
  • 25
0 votes
0 answers
305 views

saving cls. files in different folder than .tex file

Is it possible to use a document class from a different folder than the .tex-files? My documentclass is used in more than 1 document. I want to use the document class for all of them. In my document I ...
Steven Schneiders's user avatar
2 votes
1 answer
933 views

Package caption warning: The option `hypcap=true' will be ignored for this particular \caption

I am getting a warning regarding the \caption package when I try to put the caption to a Table. This is my code: \begin{center} \begin{tabular}{|l|c|r|} \hline \textbf{Course} & \...
Ranji Raj's user avatar
  • 169
0 votes
1 answer
210 views

Underline overfull \hbox

I am getting the following Overfull \hbox (0.10945pt too wide) in paragraph at lines 12--13. How could I prevent this? I am using \, inside \dotuline because I want to use a little bit longer dotted ...
mala97's user avatar
  • 312
0 votes
0 answers
36 views

hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): removing `\@ifnextchar' [duplicate]

Update - 12/28/2022 I have included below my MWE per @Miyase's comment. The error is coming from placement of color{blue} in line \addcontentsline{toc}{chapter} ... What to do to remove the Package ...
Shahmeer's user avatar
0 votes
0 answers
26 views

Command \underbar has changed [duplicate]

\documentclass[12pt]{report} \usepackage{sectsty} % \usepackage[a4paper,width=150mm,top=20mm,bottom=20mm,bindingoffset=6mm]{geometry} \usepackage[a4paper,top=20mm,bottom=20mm,left=20mm,right=20mm]{...
Ариж Аль Адел's user avatar
1 vote
0 answers
1k views

Why do I get the Package caption Warning?

While compiling my document, I get the following warning: Package caption Warning: Unknown document class (or package), standard defaults will be used. See the caption package documentation for ...
Emil's user avatar
  • 370
0 votes
1 answer
84 views

So what's the right way to set the preferred line spacing? Changing default line spacing in Book returns underfull \vbox warnings

Simple task: book-class document, 12pt font size, 6x9 page size. With the default book settings (I don't really know what's the default line spacing in book-class document) the document is typeset ...
tryingout's user avatar
  • 115
0 votes
0 answers
30 views

How to suppress Underfull an Overfull warnings [duplicate]

How can I suppress Underfull an Overfull warnings?
L. Flis's user avatar
  • 53
2 votes
1 answer
141 views

Placement of page number when page is rotated, plus warning

Consider the following MWE: \documentclass{article} \usepackage{pdflscape} \usepackage{everypage} \newcommand*\Lpagenumber{\ifdim\textwidth=\textwidth\else\bgroup \dimendef\margin=0 %use \margin ...
Svend Tveskæg's user avatar
1 vote
1 answer
470 views

Suppress empty bibliography warnings

I have solution (due to "moewe") for my specific problem of sorting in BiBLaTeX and numbering. BiBLaTeX Part 1 and BiBLaTeX Part 2 The both problems has been solved like below: \...
L. Flis's user avatar
  • 53
2 votes
2 answers
61 views

Defining and calling a function in sagetex not working as expected

In the code below I use sagetex to define a function f(n) that returns the nth fibonacci number. I used sagesilent so that the contents of the function are not typeset. Then I call and print the value ...
ging82798's user avatar
2 votes
1 answer
66 views

Produce error from macro with "incorrect" argument

I have made a macro that takes certain arguments. However, I would like it to output an error when it encounters an unexpected argument. Something like this: MWE: \documentclass{article} \usepackage{...
Vebjorn's user avatar
  • 1,778
0 votes
0 answers
42 views

Is it possible to print the warning/error - log? [duplicate]

Is it possible to print the Errors and Warning - log? Because I want to have a better overview over the logged warnings in a separate document
Steven Schneiders's user avatar
0 votes
2 answers
632 views

Tabularray warning: Table width is too small

I tried to use the tabularray package to create an environment for my CV template, which works fine. However, I get an error: Package tabularray Warning: Table width is too small, need 8.0036pt more! ...
Vebjorn's user avatar
  • 1,778
3 votes
1 answer
337 views

Warning when unicode-math and mathtools are loaded [duplicate]

This is a follow-up question to "Switching from PDFLaTeX to LuaLaTeX". Consider the following MWE: \documentclass{article} \usepackage{mathtools} \usepackage{unicode-math} \begin{document} ...
Svend Tveskæg's user avatar
0 votes
1 answer
90 views

Authors{} throws '@ifnextchar' warning, why?

Me and my co-author are writing a paper in latex and we want to have the author's names under the title with their email addresses directly under their names and their institutional affiliation (same ...
Dasi's user avatar
  • 105

1
2 3 4 5
16