2
votes
1answer
67 views

Suppress fontaxes warnings

I'm using MyriadPro. When compiling, I'm getting a lot of fontaxes warnings: Package fontaxes Warning: I don't know how to decode (fontaxes) family `cmr' on input line 632. I ...
2
votes
1answer
126 views

How to automatically detect overfull \hboxes for inline maths mode

I am trying to create a macro which should have the following behaviour: Write the mathematical expression with the inline mode \( \) if it doesn't give rise to an overfull \hbox warning, Write the ...
13
votes
2answers
246 views

Persuading (la)tex “silently to go beyond the envelope of 'good taste' ” to avoid an overfull hbox

My understanding, based on reading this website, is that (la)tex performs at most three passes when trying to typeset a paragraph: one based on \pretolerance, one based on \tolerance, and one based on ...
3
votes
1answer
430 views

How can I get rid of an Underfull \hbox message in my macro?

I can't find the reason for getting this message: Underfull \hbox (badness 10000) in paragraph This is my test case: \newcommand{\ruler}{\noindent\rule[1ex]{\textwidth}{1pt}\\} ...
5
votes
1answer
526 views

Warning when using a command as label argument for a list?

I'm having difficulties with a list where the label is defined as a command. Below is a minimal example: \documentclass[a4paper, 11pt]{article} \usepackage{enumerate} \newcommand{\myLabel}{1)} ...
25
votes
1answer
492 views

Is there a \die command?

Is there a command that generates the error or warning of my choice? I'm planning to put it in an \ifthenelse, so it can't be a syntax error.
17
votes
3answers
3k views

Is there any way to generate custom errors/warnings in LaTeX?

I want something like \ifmmode\else\GenerateWarning{The command \backslash uzuka is supported only in math mode.}\fi, which is supposed to generate a warning "The command \uzuka is supported only in ...