forked from yochju/general_relativity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshaddap.sty
29 lines (29 loc) · 1.22 KB
/
shaddap.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--------- silencing unhelpful messages ---------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{silence}
\hfuzz=999pt % reduce overfull hbox errors
\hbadness=10000 % reduce underfull hbox errors
% silence package:
\WarningFilter{Fancyhdr}{\headheight is too small}
\WarningFilter{textpos}{environment textblock}
%---------- get rid of warnings from pdftex about inkscape pdfs -----------------
% http://tex.stackexchange.com/questions/183149/cant-silence-a-pdftex-pdf-inclusion-multiple-pdfs-with-page-group-error
% http://tex.stackexchange.com/questions/198586/conditional-based-on-the-version-of-pdflatex
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfsuppresswarningpagegroup\endcsname\relax
\else
\pdfsuppresswarningpagegroup=1\relax
\fi
%---------- get rid of messages about every included graphic -----------------
% http://tex.stackexchange.com/questions/124634/can-i-silence-pdfpages-output
\makeatletter
\let\GPT@error\@gobble
\let\GPT@warn\@gobble
\let\Gin@log\@gobble
\let\GPT@info\@gobble
\def\@providesfile#1[#2]{%
\@addtofilelist{ #2}%
\endgroup}
\makeatother
%------------------------------------------------