summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pkgloader/pkgloader-recommended.sty
blob: db98c07cd4462b932848258e930a5c73e42c5e60 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \iffalse %%%%
%                                                                              %
%  Copyright (c) 2018 - Michiel Helvensteijn   (www.mhelvens.net)              %
%                                                                              %
%  https://github.com/mhelvens/latex-pkgloader                                 %
%                                                                              %
%  This work may be distributed and/or modified under the conditions           %
%  of the LaTeX Project Public License, either version 1.3 of this             %
%  license or (at your option) any later version. The latest version           %
%  of this license is in       http://www.latex-project.org/lppl.txt           %
%  and version 1.3 or later is part of all distributions of LaTeX              %
%  version 2005/12/01 or later.                                                %
%                                                                              %
%  This work has the LPPL maintenance status `author-maintained'.              %
%                                                                              %
%  The Current Maintainer of this work is Michiel Helvensteijn.                %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \fi %%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://www.macfreek.nl/memory/LaTeX_package_conflicts>:
%
%    \begin{macrocode}
\Load {fixltx2e}  early              if loaded
\Load {fancyhdr}  before {hyperref}  if loaded
\Load {fncychap}  before {hyperref}  if loaded
\Load {float}     before {hyperref}  if loaded
\Load {hyperref}  before {algorithm} if loaded
\Load {amssymb}   before {xunicode}  if loaded
\Load {amssymb}   before {xltxtra}   if loaded
\Load {graphicx}  before {xltxtra}   if loaded
\Load {graphicx}  before {fontspec}  if loaded
\Load {caption}   before {subfig}    if loaded
\Load {amsmath}   before {wasysym}   if loaded
\Load {todonotes} before {program}   if loaded
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules extracted from the cleveref
%  documentation and uses of |\@ifpackageloaded| in
%  |cleveref.sty|:
%
%    \begin{macrocode}
\Load {cleveref} after   {algorithm2e,algorithmicx,
                          aliascnt,amsmath,amsthm,caption,
                          hyperref,IEEEtrantools,listings,
                          ntheorem,subfig,varioref}
                 if loaded
                 because {cleveref adds special support
                          for this package}
\Load {cleveref} before  {autonum,hypdvips}
                 if loaded
                 because {the cleveref documentation
                          explicitly says to do so}
\Load {varioref} before  {hyperref}
                 if      {varioref && hyperref && cleveref}
                 because {the cleveref documentation
                          explicitly requires varioref
                          before hyperref if all three
                          packages are loaded}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://mirrors.dotsrc.org/ctan/macros/latex/contrib/natbib/natbib.pdf>:
%
%    \begin{macrocode}
\Load {natbib}   before  {citeref}
                 if loaded
                 because {the natbib documentation
                          explicitly requires citeref to
                          be load after natbib}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://mirrors.dotsrc.org/ctan/biblio/bibtex/contrib/apacite/apacite.pdf>:
%
%    \begin{macrocode}
\Load {babel}    before  {apacite}
                 if loaded
                 because {babel's selectlanguage redefines
                          refname and bibname}
\Load {hyperref} before  {apacite}
                 if loaded
                 because {hyperref redefines citation and
                          reference list commands}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://tex.stackexchange.com/questions/64585/incompatibilities-of-cmap-with-fontenc-hyperref/64605#64605>:
%
%    \begin{macrocode}
\Load {hyperref} before  {cmap}
                 if loaded
                 because {hyperref cannot write pdf settings
                          if cmap already wrote to pdf}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/hyperref/README.pdf>:
%
%    \begin{macrocode}
\Load {hyperref} before  {ellipsis,amsrefs,chappg,dblaccnt,
                          linguex}
                 if loaded
                 because {the hyperref documentation
                          explicitly says to do so}
\Load {hyperref} after   {multind,natbib,setspace}
                 if loaded
                 because {the hyperref documentation
                          explicitly says to do so}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://mirrors.dotsrc.org/ctan/macros/latex/contrib/glossaries/glossaries-user.pdf>,
%  <http://mirrors.dotsrc.org/ctan/macros/latex/contrib/glossaries/glossariesbegin.pdf>:
%
%    \begin{macrocode}
\Load {hyperref} before  {glossaries}
                 if loaded
                 because {otherwise terms won't be
                          clickable hyperlinks}
\Load {glossaries} after {babel,polyglossia,inputenc,
                          fontenc,doc}
                 if loaded
                 because {the glossaries documentation
                          explicitly says to do so}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://mirrors.dotsrc.org/ctan/macros/latex/contrib/oberdiek/hypcap.pdf>:
%
%    \begin{macrocode}
\Load {hyperref} before  {hypcap}
                 if loaded
                 because {hypcap redefines hyperref's
                          caption command}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <https://tex.stackexchange.com/questions/419218/how-to-use-selnolig-package-together-with-default-lualalatex-font#comment1049043_419218>:
%
%    \begin{macrocode}
\Load {babel} before  {selnolig}
              if loaded
              because {this was recommended by selnolig's author}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <https://tex.stackexchange.com/questions/64409/proper-use-of-cmap-and-mmap/64457#64457>:
%
%    \begin{macrocode}
\Load {fontenc} after   {cmap,mmap}
                if loaded
                because {otherwise some fonts may be unprocessed}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <https://ctan.org/pkg/listingsutf8>:
%
%    \begin{macrocode}
\Load {listingsutf8} after   {listings}
                     if loaded
                     because {it patches macros defined by listings}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from the cleveref code:
%
%    \begin{macrocode}
\Load {glossaries} before  {cleveref}
                   if loaded
                   because {glossaries loads amsmath, which needs to be loaded before cleveref}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from the refenums
%  documentation and code:
%
%    \begin{macrocode}
\Load {refenums} after   {hyperref,cleveref,csquotes,ifthen}
                 if loaded
                 because {it prevents an options clash}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules derived from
%  <http://texdoc.net/pkg/microtype> (v2.7a, page 23):
%
%    \begin{macrocode}
\Load {babel} before {microtype}
              if loaded
              because {microtype can use the language setting of babel}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  A list of recommended rules extracted from:
%  <http://texdoc.net/pkg/uri> (section 2) and uses of
% |\@ifpackageloaded| and |\RequirePackage| in |uri.sty|:
%
%    \begin{macrocode}
\Load {hyperref} before {uri}
                 if loaded
                 because {uri uses hyperref's commands if hyperref is loaded}
\Load {url} before {uri}
            if loaded
            because {uri has a RequirePackage on url}
%    \end{macrocode}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%