| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>Showlabels</title> |
| 6 |
<link href="https://nxg.me.uk" rev="author"/> |
| 7 |
|
| 8 |
<style type='text/css'> |
| 9 |
/* Installed from repo: 2021-09-14T22:35:45+01:00, Hg:1d9954537983 */ |
| 10 |
|
| 11 |
body { |
| 12 |
color: #333; |
| 13 |
background: white; |
| 14 |
margin-left: +30%; |
| 15 |
width: 50%; /* body is 50% of screen width */ |
| 16 |
padding: 0.5em; /* this will make a difference if I decide to |
| 17 |
have the background a different colour */ |
| 18 |
/* I can't decide on font: Optima's always nice, but Gill looks |
| 19 |
agreeably intense. Helvetica's a decent fallback. */ |
| 20 |
font-family: "Helvetica Neue", Helvetica, "Gill Sans", gill, sans-serif; |
| 21 |
/* font-family: Optima, "Gill Sans", gill, Helvetica, sans-serif; */ |
| 22 |
/* font-family: "Gill Sans", gill, Helvetica, sans-serif; */ |
| 23 |
/* I seem to have used 11pt at some point in the past, but this |
| 24 |
is far too big -- did I ever have a reason for that, or is it |
| 25 |
just due to browser changes? */ |
| 26 |
font-size: 10pt; |
| 27 |
line-height: 150%; |
| 28 |
} |
| 29 |
|
| 30 |
/* adapt to wider screens */ |
| 31 |
@media screen and (min-width: 700pt) { |
| 32 |
body { |
| 33 |
margin-left: 210pt; |
| 34 |
width: 350pt; |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
/* The following appears not to work in Safari or Chrome |
| 39 |
-- don't know why, yet. |
| 40 |
@media print { |
| 41 |
@page :right { |
| 42 |
size: auto; |
| 43 |
body { |
| 44 |
margin-top: 2cm; |
| 45 |
margin-bottom: 3cm; |
| 46 |
margin-left: 10%; |
| 47 |
width: 60%; |
| 48 |
margin-right: 30%; |
| 49 |
color: #d33; |
| 50 |
} |
| 51 |
} |
| 52 |
@page :left { |
| 53 |
size: auto; |
| 54 |
body { |
| 55 |
margin-top: 2cm; |
| 56 |
margin-bottom: 3cm; |
| 57 |
margin-left: 30%; |
| 58 |
width: 60%; |
| 59 |
margin-right: 10%; |
| 60 |
color: #33d; |
| 61 |
} |
| 62 |
} |
| 63 |
} |
| 64 |
*/ |
| 65 |
|
| 66 |
/* The class='topsidebar' is formatting, typically div or ul, |
| 67 |
for auxiliary stuff, placed at the top of the right-hand column. |
| 68 |
The element with this class should go just _after_ the <h1> heading. */ |
| 69 |
.topsidebar { |
| 70 |
float: right; |
| 71 |
width: 50%; /* ...of the body width (ie, 50% x 50% of screen) */ |
| 72 |
font-size: smaller; |
| 73 |
line-height: 140%; /* ...of the font size*/ |
| 74 |
margin-left: 1em; |
| 75 |
padding-left: 1em; |
| 76 |
border-left: solid thin #AAA; |
| 77 |
} |
| 78 |
|
| 79 |
/* |
| 80 |
I have in the past styled `.topsidebar li` like this, |
| 81 |
but I think this is too much detail for this location: |
| 82 |
I should restrict the styling here to the location and general appearance of the sidebar |
| 83 |
and I should leave such details to more local stylesheets |
| 84 |
(and in any case I think it's only my blog that actually uses this class) |
| 85 |
.topsidebar li { |
| 86 |
list-style-type: none; |
| 87 |
text-align: right; |
| 88 |
line-height: 150%; |
| 89 |
} |
| 90 |
*/ |
| 91 |
|
| 92 |
/* On wider screens, move the sidebar out to the right hand side */ |
| 93 |
/* This uses CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/ */ |
| 94 |
@media screen and (min-width: 700pt) and (max-width: 850pt) { |
| 95 |
body { |
| 96 |
margin-left: 210pt; |
| 97 |
width: 350pt; /* 50% of 700pt */ |
| 98 |
margin-right: auto; |
| 99 |
} |
| 100 |
.topsidebar { |
| 101 |
position: absolute; |
| 102 |
/* I feel this size should be 595pt (350 + 210 + 0.05*700), |
| 103 |
but that's clearly not right -- I don't think I understand what the -5% |
| 104 |
in the h1 spec below is actually 5% of! */ |
| 105 |
left: 570pt; |
| 106 |
width: auto; |
| 107 |
margin-left: 0pt; |
| 108 |
padding-left: 0pt; |
| 109 |
border: none; |
| 110 |
} |
| 111 |
/* .topsidebar li { text-align: center; } */ |
| 112 |
} |
| 113 |
/* On still-wider screens, expand the left-margin, keeping the sidebar attached to the right-hand edge. |
| 114 |
When the screen is 850pt wide (expanding from the @media case above), |
| 115 |
the left margin will be 210pt, the width 350pt, and the right margin therefore 290pt.*/ |
| 116 |
@media screen and (min-width: 850pt) { |
| 117 |
body { |
| 118 |
margin-right: 290pt; /* 290 = 850-(210+350) */ |
| 119 |
width: 350pt; |
| 120 |
margin-left: auto; /* ...takes up the slack */ |
| 121 |
} |
| 122 |
.topsidebar { |
| 123 |
position: absolute; |
| 124 |
width: 290pt; /* same 290pt as above */ |
| 125 |
left: auto; |
| 126 |
right: 0%; |
| 127 |
padding-left: 0pt; |
| 128 |
border: none; |
| 129 |
} |
| 130 |
/* .topsidebar li { text-align: center; } */ |
| 131 |
} |
| 132 |
|
| 133 |
|
| 134 |
code, pre { |
| 135 |
font-family: Monaco, fixed; |
| 136 |
font-size: 9pt; |
| 137 |
} |
| 138 |
|
| 139 |
a { text-decoration: none; } |
| 140 |
a:link { color: #66C; } |
| 141 |
a:visited { color: #669; } |
| 142 |
a[href]:hover { background: #EEE; } |
| 143 |
|
| 144 |
div.abstract { |
| 145 |
font-style: oblique; |
| 146 |
text-align: left; |
| 147 |
} |
| 148 |
div.abstract em { font-style: normal; } |
| 149 |
div.abstract code { |
| 150 |
font-style: normal; |
| 151 |
font-size: 80%; |
| 152 |
} |
| 153 |
|
| 154 |
/* a span/div style for attracting attention */ |
| 155 |
.attention { |
| 156 |
color: #822; |
| 157 |
} |
| 158 |
|
| 159 |
h1, h2, h3, h4, h5, h6 { |
| 160 |
color: #822; |
| 161 |
font-weight: 100; /* few fonts have ultra-light weights */ |
| 162 |
line-height: 100%; /* no need to spread out titles */ |
| 163 |
} |
| 164 |
|
| 165 |
h1 { |
| 166 |
margin-left: -40%; |
| 167 |
margin-right: -5%; |
| 168 |
padding: 0.5em; |
| 169 |
border: solid thin #666; |
| 170 |
text-align: right; |
| 171 |
} |
| 172 |
|
| 173 |
h2 { |
| 174 |
margin-left: -40%; |
| 175 |
margin-right: -5%; |
| 176 |
padding: 0.2em; |
| 177 |
border-top: solid thin #666; |
| 178 |
clear: both; |
| 179 |
} |
| 180 |
|
| 181 |
h2.appendices { |
| 182 |
margin-top: 10ex; |
| 183 |
border-top: double medium #666; |
| 184 |
} |
| 185 |
|
| 186 |
h3 { |
| 187 |
margin-left: -30%; |
| 188 |
float: left; |
| 189 |
width: 25%; |
| 190 |
display: block; |
| 191 |
text-align: right; |
| 192 |
vertical-align: bottom; |
| 193 |
padding-top: 0pt; |
| 194 |
padding-right: 0.5em; |
| 195 |
margin-top: 0pt; |
| 196 |
line-height: 120%; |
| 197 |
} |
| 198 |
|
| 199 |
/* |
| 200 |
h4 { |
| 201 |
color: #C66; |
| 202 |
} |
| 203 |
*/ |
| 204 |
|
| 205 |
pre, table { background: #dde; } |
| 206 |
|
| 207 |
pre { |
| 208 |
padding: 1em; |
| 209 |
line-height: 130%; |
| 210 |
} |
| 211 |
|
| 212 |
table { |
| 213 |
font-size: smaller; |
| 214 |
} |
| 215 |
td { |
| 216 |
padding: 0.5ex; |
| 217 |
} |
| 218 |
|
| 219 |
Q:before { content: "“"; } |
| 220 |
Q:after { content: "”"; } |
| 221 |
|
| 222 |
img.smallimage { |
| 223 |
float: right; |
| 224 |
margin: 24pt; |
| 225 |
margin-right: -30%; |
| 226 |
} |
| 227 |
|
| 228 |
div.signature { |
| 229 |
margin-left: -40%; |
| 230 |
margin-right: -5%; |
| 231 |
margin-top: 4ex; |
| 232 |
text-align: right; |
| 233 |
border-top: solid thin #666; |
| 234 |
padding-top: 0.3em; |
| 235 |
clear: both; |
| 236 |
} |
| 237 |
|
| 238 |
/* ============================================================ |
| 239 |
* Some other curiosities of my one-time formatting for web pages |
| 240 |
*/ |
| 241 |
.doc-history { |
| 242 |
font-size: xx-small; |
| 243 |
background: #eee; |
| 244 |
line-height: 100%; |
| 245 |
} |
| 246 |
|
| 247 |
div.subtoc, div.subsubtoc { display: none; } |
| 248 |
|
| 249 |
/* ============================================================ |
| 250 |
* Special formatting for ToC |
| 251 |
*/ |
| 252 |
|
| 253 |
/* |
| 254 |
If there's significant amount of text in front of the first subsection, |
| 255 |
then the following are good to put in the per-document stylesheet: |
| 256 |
width: 25%; |
| 257 |
float: right; |
| 258 |
*/ |
| 259 |
div#toc { |
| 260 |
color: #888; |
| 261 |
padding: 0; |
| 262 |
font-size: smaller; |
| 263 |
text-align: right; |
| 264 |
} |
| 265 |
div#toc a:link { color: #888; } |
| 266 |
div#toc > ul { |
| 267 |
padding: 0pt; |
| 268 |
margin: 0pt; |
| 269 |
list-style: none; |
| 270 |
} |
| 271 |
div#toc li { |
| 272 |
padding: 0pt; |
| 273 |
display: inline-block; |
| 274 |
} |
| 275 |
div#toc li:before { |
| 276 |
content: "§ "; |
| 277 |
margin-left: 1em; |
| 278 |
} |
| 279 |
/* the following elements aren't currently generated by structure.lx */ |
| 280 |
div#toc li ul { |
| 281 |
padding-left: 1em; |
| 282 |
margin-left: 0; |
| 283 |
font-style: italic; |
| 284 |
display: inline; |
| 285 |
} |
| 286 |
div#toc li ul:before { |
| 287 |
content: "( "; |
| 288 |
} |
| 289 |
div#toc li ul:after { |
| 290 |
content: " ) "; |
| 291 |
} |
| 292 |
div#toc li li { |
| 293 |
padding-left: 0pt; |
| 294 |
} |
| 295 |
div#toc li li:after { |
| 296 |
content: "; "; |
| 297 |
} |
| 298 |
</style> |
| 299 |
<style type='text/css'> |
| 300 |
/* a span/div style for attracting attention */ |
| 301 |
.attention { |
| 302 |
color: #822; |
| 303 |
} |
| 304 |
</style> |
| 305 |
</head> |
| 306 |
|
| 307 |
<body> |
| 308 |
<h1>Showlabels</h1> |
| 309 |
<div class="abstract"> |
| 310 |
<p>Put the names of <code>\label</code>s and other commands into |
| 311 |
the margins of a draft document.</p> |
| 312 |
|
| 313 |
<p>Version 1.9.3-rcbfafc628d39, 2025 August 18, |
| 314 |
<a href='https://purl.org/nxg/dist/showlabels' |
| 315 |
><code>https://purl.org/nxg/dist/showlabels</code></a>.</p> |
| 316 |
</div> |
| 317 |
|
| 318 |
<p>This class option helps you keep track of all the labels in your |
| 319 |
documents, by putting the name of the new label into the margin |
| 320 |
whenever either the <code>\label</code> command is used, or an |
| 321 |
equation is automatically numbered. It is compatible with the |
| 322 |
<code>amsmath</code> and <code>hyperref</code> packages.</p> |
| 323 |
|
| 324 |
<p>You invoke this package with the command |
| 325 |
<code>\usepackage{showlabels}</code> in the preamble. You can control |
| 326 |
where the labels appear – in the margins or in the interline gaps – |
| 327 |
and you can change the appearance of the formatted labels to some |
| 328 |
extent.</p> |
| 329 |
|
| 330 |
<p>As well, you can have the arguments to other commands besides |
| 331 |
<code>\label</code> displayed. This is fairly obviously useful for |
| 332 |
the <code>\cite</code> command, but it can be useful for |
| 333 |
<code>\ref</code> or <code>\begin</code> as well.</p> |
| 334 |
|
| 335 |
<p>The package will also work in the presence of the |
| 336 |
<code>[twocolumn]</code> option. In this case, the options |
| 337 |
<code>[inner]</code> and <code>[outer]</code> will be ignored, and the |
| 338 |
label will be placed in the nearer margin.</p> |
| 339 |
|
| 340 |
<h3>Compatibility and problems</h3> |
| 341 |
|
| 342 |
<p>For reasonably obvious reasons, this package will <em>not</em> work at |
| 343 |
all well with the multicol package, and for possibly less obvious |
| 344 |
reasons, it won't work with the <code>[leqno]</code> option either (at |
| 345 |
some point it should be modified to at least recognise and warn of the |
| 346 |
conflict in either case). The package can occasionally place labels |
| 347 |
in the wrong margins, near the top of a page – see the documentation |
| 348 |
for a discussion of this.</p> |
| 349 |
|
| 350 |
<p>The <code>{showlabels}</code> package has a large overlap in |
| 351 |
functionality with David Carlisle's <code>{showkeys}</code>, although |
| 352 |
the latter will only handle <code>\label</code> and <code>\cite</code> keys. If |
| 353 |
<code>{showlabels}</code> fails in some particular situation, you might |
| 354 |
want to try using <code>{showkeys}</code>, but please do mention the |
| 355 |
problem, typically by email to me.</p> |
| 356 |
|
| 357 |
<h3>Download and installation</h3> |
| 358 |
|
| 359 |
<ol> |
| 360 |
<li>Download the file |
| 361 |
<a href="showlabels-1.9.3-rcbfafc628d39.tar.gz" |
| 362 |
>showlabels-1.9.3-rcbfafc628d39.tar.gz</a> |
| 363 |
or |
| 364 |
<a href="showlabels-1.9.3-rcbfafc628d39.zip" |
| 365 |
>showlabels-1.9.3-rcbfafc628d39.zip</a> |
| 366 |
and unpack it.</li> |
| 367 |
|
| 368 |
<li>Run LaTeX on the file <code>showlabels.ins</code> – this will |
| 369 |
unpack the style file <code>showlabels.sty</code> amongst other files. |
| 370 |
Place this somewhere where TeX can find it. </li> |
| 371 |
|
| 372 |
<li>Run LaTeX on the file <code>showlabels.dtx</code> to obtain the |
| 373 |
documentation.</li> |
| 374 |
</ol> |
| 375 |
|
| 376 |
<p>Links:</p> |
| 377 |
<ul> |
| 378 |
<li>Canonical package home page: |
| 379 |
<a href="https://purl.org/nxg/dist/showlabels" |
| 380 |
><code>https://purl.org/nxg/dist/showlabels</code></a>. |
| 381 |
<em>Please use this URL</em> to refer to the package, |
| 382 |
instead of the URL it redirects to.</li> |
| 383 |
|
| 384 |
<li>On CTAN: |
| 385 |
<a href='https://ctan.org/pkg/showlabels' |
| 386 |
>macros/latex/contrib/showlabels</a></li> |
| 387 |
|
| 388 |
<li>The source code for the package is maintained |
| 389 |
<a href='https://heptapod.host/nxg/showlabels'>online</a> |
| 390 |
at <a href='https://heptapod.host'>heptapod.host</a>.</li> |
| 391 |
|
| 392 |
<li>There's an issue tracker there |
| 393 |
(the issues which had accumulated on the bitbucket |
| 394 |
tracker were effectively lost when Bitbucket dropped support for |
| 395 |
Mercurial; there were few outstanding ones anyway). |
| 396 |
Or you can just mail me.</li> |
| 397 |
|
| 398 |
</ul> |
| 399 |
|
| 400 |
<p>This work is Copyright 1999, 2001-09, 2013-22, 2025, Norman Gray, and may be distributed and/or modified under the |
| 401 |
conditions of the <a href='http://www.latex-project.org/lppl.txt'>LaTeX Project Public Licence</a>, |
| 402 |
either version 1.3c of this licence or (at your option) any later version.</p> |
| 403 |
|
| 404 |
<h2>History</h2> |
| 405 |
|
| 406 |
<h:dl xmlns:h="http://www.w3.org/1999/xhtml"> |
| 407 |
|
| 408 |
<h:dt><h:span class="attention">1.9.3, 2025 August 20</h:span></h:dt><h:dd> |
| 409 |
<p xmlns="http://www.w3.org/1999/xhtml">Feedback suggests the reported problems seems resolved in practice. |
| 410 |
No changes from 1.9.3-b1, beyond some minor documentation and |
| 411 |
bundling adjustments.</p> |
| 412 |
</h:dd> |
| 413 |
|
| 414 |
<h:dt>1.9.3-b1, 2025 August 10</h:dt><h:dd> |
| 415 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 416 |
<li>Fixed an (invisible) duplication in the amsmath support. |
| 417 |
Thanks to the discussion on a |
| 418 |
<a href="https://github.com/latex3/latex2e/issues/118">LaTeX3 issue</a> |
| 419 |
for the clue here.</li> |
| 420 |
<li>Fix: handling of colours |
| 421 |
(<a href="https://heptapod.host/nxg/showlabels/-/issues/3">issue 3</a>; |
| 422 |
thanks to Aaron Montgomery for reporting).</li> |
| 423 |
<li>Fix: when marking non-<code>\label</code> commands, if |
| 424 |
these were found within non-display maths mode, then they didn't |
| 425 |
appear as shown labels |
| 426 |
(<a href="https://heptapod.host/nxg/showlabels/-/issues/4">issue 4</a>; |
| 427 |
thanks to Mike Schroeder for reporting).</li> |
| 428 |
<li>Fix: labels were being spuriously reported when using |
| 429 |
amsmath's <code>\eqref</code> command |
| 430 |
(<a href="https://heptapod.host/nxg/showlabels/-/issues/6">issue 6</a>; |
| 431 |
thanks to Tamas Lakoba for reporting)</li> |
| 432 |
</ul> |
| 433 |
</h:dd> |
| 434 |
|
| 435 |
<h:dt>1.9.2, 2022 July 18</h:dt><h:dd> |
| 436 |
<p xmlns="http://www.w3.org/1999/xhtml">No code changes from 1.9.2-b1, but the documentation notes a new home repository.</p> |
| 437 |
</h:dd> |
| 438 |
|
| 439 |
<h:dt>1.9.2-b1, 2022 June 11</h:dt><h:dd> |
| 440 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 441 |
<li>Fixed a spacing bug when used with the <code>wrapfig</code> package |
| 442 |
(<a href="https://heptapod.host/nxg/showlabels/-/issues/2">issue 2</a>;. |
| 443 |
Thanks to Romano Giannetti for the report).</li> |
| 444 |
<li>Added a <code>\showlabelsmarginal</code> command.</li> |
| 445 |
<li>The code has moved (again) to |
| 446 |
<a href="https://heptapod.host">heptapod.host</a>: the new |
| 447 |
repository is |
| 448 |
<a href="https://heptapod.host/nxg/showlabels">https://heptapod.host/nxg/showlabels</a>. |
| 449 |
The issues links in the list below are therefore broken.</li> |
| 450 |
</ul> |
| 451 |
</h:dd> |
| 452 |
|
| 453 |
<h:dt>1.9.1, 2021 October 27</h:dt><h:dd> |
| 454 |
<p xmlns="http://www.w3.org/1999/xhtml">Commands with optional arguments, such as |
| 455 |
<code>\bibitem[P\'olya]{polya_54}</code> are now handled with the |
| 456 |
correct catcodes. |
| 457 |
Fixes <a href="https://heptapod.host/nxg/showlabels/-/issues/1">issue 1</a> |
| 458 |
(<em>Note:</em> new sequencing for issues, after a repo change). |
| 459 |
Thanks to Michael Levitin for the report here.</p> |
| 460 |
</h:dd> |
| 461 |
|
| 462 |
<h:dt>1.9, 2021 October 9</h:dt><h:dd> |
| 463 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 464 |
<li>Robustness fix: macros in arguments are now handled, so that |
| 465 |
(after <code>\showlabel{index}</code>), |
| 466 |
<code>\index{Poincar\'e}</code> doesn't cause an error.</li> |
| 467 |
<li>The <code>\showlabel[optarg]{command}</code> optional argument |
| 468 |
can now take a one-argument command.</li> |
| 469 |
<li>The macro <code>\showlabeltype</code> expands to the current |
| 470 |
label type, for possible use in <code>\showlabelsetlabel</code>.</li> |
| 471 |
</ul> |
| 472 |
</h:dd> |
| 473 |
|
| 474 |
<h:dt>1.8, 2016 June 9</h:dt><h:dd> |
| 475 |
<p xmlns="http://www.w3.org/1999/xhtml">The <code>ntheorem</code> package exposed an apparently |
| 476 |
long-standing incompleteness in the handling of <code>amsmath</code> |
| 477 |
documents. |
| 478 |
Fixes <a href="https://bitbucket.org/nxg/showlabels/issues/9/">issue 9</a>.</p> |
| 479 |
</h:dd> |
| 480 |
|
| 481 |
<h:dt>1.7, 2015 December 8</h:dt><h:dd> |
| 482 |
<p xmlns="http://www.w3.org/1999/xhtml">Release v1.7.</p> |
| 483 |
</h:dd> |
| 484 |
|
| 485 |
<h:dt>1.7b2, 2015 December 7</h:dt><h:dd> |
| 486 |
<p xmlns="http://www.w3.org/1999/xhtml">Make the combination of amsmath and [inline] mode work |
| 487 |
(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/8/">issue 8</a> |
| 488 |
– thanks to A L Dukeman for the report; |
| 489 |
what is it about showlabels and 6 December?!).</p> |
| 490 |
</h:dd> |
| 491 |
|
| 492 |
<h:dt>1.7b1, 2014 December 6</h:dt><h:dd> |
| 493 |
<p xmlns="http://www.w3.org/1999/xhtml">This is a much-delayed bugfix release (by coincidence |
| 494 |
<em>exactly</em> a year after the previous release!).</p> |
| 495 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 496 |
<li>Give <code>\showlabels</code> an optional formatting argument |
| 497 |
(implements <a href="https://bitbucket.org/nxg/showlabels/issue/1/">issue 1</a> |
| 498 |
– thanks to Francesco Biccari for the suggestion).</li> |
| 499 |
<li>Special-case the IEEEtrantools package |
| 500 |
(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/2/">issue 2</a> |
| 501 |
– thanks to Boris Kheyfets for the report and test case, and to |
| 502 |
Ben William Carabelli for additional analysis and a draft fix).</li> |
| 503 |
<li>The <code>[final]</code> option now works with the |
| 504 |
<code>{amsmath}</code> package |
| 505 |
(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/3/">issue 3</a> |
| 506 |
– thanks to Guillermo Garza and Enno Nagel for the report, and to |
| 507 |
Guillermo for the test case).</li> |
| 508 |
<li>Handle the hyperref package's <code>\ref*{label}</code> variant |
| 509 |
(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/4/">issue 4</a> |
| 510 |
– thanks to Alex Watson for the report and test case).</li> |
| 511 |
<li>Handle the case where a label is in a display, but not in maths mode |
| 512 |
(fixes <a href="https://bitbucket.org/nxg/showlabels/issue/5/">issue 5</a> |
| 513 |
– thanks to ‘bartgol’ on Stackexchange for the report and test case).</li> |
| 514 |
</ul> |
| 515 |
</h:dd> |
| 516 |
|
| 517 |
<h:dt>1.6.6, 2013 December 6</h:dt><h:dd> |
| 518 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 519 |
<li>Add configuration interface <code>\showlabelrefline</code> and |
| 520 |
ensure that <code>\color</code> works in |
| 521 |
<code>\showlabelfont</code>.</li> |
| 522 |
<li>Various documentation tweaks.</li> |
| 523 |
<li>Change licence from GPL to LPPL.</li> |
| 524 |
<li>Fix link to repository.</li> |
| 525 |
</ul> |
| 526 |
</h:dd> |
| 527 |
|
| 528 |
<h:dt>1.6.5, 2009 May 27</h:dt><h:dd> |
| 529 |
<p xmlns="http://www.w3.org/1999/xhtml">Fixed a bug in the way that labels including underscores (and |
| 530 |
other ‘exotic’ characters) were displayed.</p> |
| 531 |
</h:dd> |
| 532 |
|
| 533 |
<h:dt>1.6.4, 2008 October 10</h:dt><h:dd> |
| 534 |
<p xmlns="http://www.w3.org/1999/xhtml">Fixed another poor interaction between eqnarray and amsart. Now |
| 535 |
we get equation labels in eqnarray, and we don't get marginal notes |
| 536 |
about <code>\eqref</code> (which is good; might this finally be fixed?).</p> |
| 537 |
</h:dd> |
| 538 |
|
| 539 |
<h:dt>1.6.3, 2008 July 24</h:dt><h:dd> |
| 540 |
<p xmlns="http://www.w3.org/1999/xhtml">Release 1.6.2 broke compatibility with the <em>rest</em> of |
| 541 |
amsmath (<code>eqnarray</code> became the only thing that worked |
| 542 |
within amsmath)! Fixed. Doh!</p> |
| 543 |
</h:dd> |
| 544 |
|
| 545 |
<h:dt>1.6.2, 2008 June 27</h:dt><h:dd> |
| 546 |
<p xmlns="http://www.w3.org/1999/xhtml">The reimplementation of eqnarray within amsart was such that |
| 547 |
equation labels disappeared in that case. Fixed.</p> |
| 548 |
</h:dd> |
| 549 |
|
| 550 |
<h:dt>1.6.1, 2007 June 17</h:dt><h:dd> |
| 551 |
<p xmlns="http://www.w3.org/1999/xhtml">Fix an errant test, which mangled equation labels starting |
| 552 |
with two identical letters.</p> |
| 553 |
</h:dd> |
| 554 |
|
| 555 |
<h:dt>1.6, 2006 May 26</h:dt><h:dd> |
| 556 |
<p xmlns="http://www.w3.org/1999/xhtml">The <code>\showlabels</code> command will now work with commands |
| 557 |
(such as <code>\cite</code> or <code>\includegraphics</code>) which |
| 558 |
take an optional argument.</p> |
| 559 |
</h:dd> |
| 560 |
|
| 561 |
<h:dt>1.5a, 2005 March 17</h:dt><h:dd> |
| 562 |
<p xmlns="http://www.w3.org/1999/xhtml">Defined <code>\showlabelfont</code> using |
| 563 |
<code>\ttfamily</code> rather than <code>\tt</code> (I'd |
| 564 |
avoided doing this before to avoid a seemingly pointless |
| 565 |
incompatibility with LaTeX 2.09, but (a) I imagine the |
| 566 |
package is incompatible with that for other reasons, and (b) |
| 567 |
it's really not worth the hassle...).</p> |
| 568 |
</h:dd> |
| 569 |
|
| 570 |
<h:dt>1.5, 2004 October 8</h:dt><h:dd> |
| 571 |
<p xmlns="http://www.w3.org/1999/xhtml">Added <code>\showlabelfont</code> and |
| 572 |
<code>\showlabelsetlabel</code> commands, allowing |
| 573 |
customisation of the printed labels. Added and documented |
| 574 |
options [final], [draft] (the former makes this package do |
| 575 |
nothing; the latter is the default behaviour).</p> |
| 576 |
</h:dd> |
| 577 |
|
| 578 |
<h:dt>1.4a, 2003 January 28</h:dt><h:dd> |
| 579 |
<p xmlns="http://www.w3.org/1999/xhtml">Acquired the <code>[left]</code> and |
| 580 |
<code>[right]</code> options, and fixed a bug which affected |
| 581 |
<code>\label</code> commands in captions.</p> |
| 582 |
</h:dd> |
| 583 |
|
| 584 |
<h:dt>1.4, 2001 July 24</h:dt><h:dd> |
| 585 |
<p xmlns="http://www.w3.org/1999/xhtml">Became (more) compatible with the |
| 586 |
wrapfig package. Also, I added the |
| 587 |
<code>\showlabels</code> command, to have the package display |
| 588 |
references to commands other than <code>\label</code> |
| 589 |
(<code>\cite</code> and <code>\ref</code> are obvious ones), |
| 590 |
and an <code>[inline]</code> option to have labels (etc.) |
| 591 |
displayed inline where possible, rather than always in the |
| 592 |
margin.</p> |
| 593 |
</h:dd> |
| 594 |
|
| 595 |
<h:dt>1.3e, 2001 May 30</h:dt><h:dd> |
| 596 |
<p xmlns="http://www.w3.org/1999/xhtml">Became compatible with the hyperref package in |
| 597 |
particular, and in general with other packages which |
| 598 |
themselves modify the <code>\label</code> command. This will |
| 599 |
work, however, only if the showlabels package is loaded after |
| 600 |
other packages which do this. Notwithstanding Sebastian |
| 601 |
Rahtz's excellent general advice on this, showlabels should |
| 602 |
indeed be loaded after hyperref.</p> |
| 603 |
</h:dd> |
| 604 |
|
| 605 |
<h:dt>1.3e, 2001 May 31</h:dt><h:dd> |
| 606 |
<p xmlns="http://www.w3.org/1999/xhtml">After a long delay, here is an updated version of my showlabels |
| 607 |
package. It corrects all the reported bugs which I could reproduce, |
| 608 |
namely:</p> |
| 609 |
<ul xmlns="http://www.w3.org/1999/xhtml"> |
| 610 |
<li>The package now formats labels correctly when the |
| 611 |
<code>\label</code> command appears outside either an equation or a |
| 612 |
<code>\caption</code> (silly of me).</li> |
| 613 |
|
| 614 |
<li>A couple of people reported problems in the interaction with the |
| 615 |
amsmath package. Either these were confined to that package's earlier |
| 616 |
incarnations as AMS-LaTeX or the amstex package, or else there's some |
| 617 |
arcane circumstance I can't reproduce, so I haven't found anything to |
| 618 |
fix on this matter. Note that the |
| 619 |
<code>\usepackage{showlabels}</code> command must come <em>after</em> |
| 620 |
the <code>\usepackage{amsmath}</code> command. Bug-sightings here |
| 621 |
will be warmly appreciated.</li> |
| 622 |
|
| 623 |
<li>I haven't worried too much about the precise formatting of the |
| 624 |
labels – this is, after all, supposed to be a draft-only |
| 625 |
package.</li> |
| 626 |
</ul> |
| 627 |
</h:dd> |
| 628 |
|
| 629 |
<h:dt>1.1, 2001 January 1</h:dt><h:dd> |
| 630 |
<p xmlns="http://www.w3.org/1999/xhtml">Modified to conform to the slightly |
| 631 |
different mechanism that <code>amsmath</code> uses to produce equation |
| 632 |
numbers. I don't habitually use <code>amsmath</code>, so I won't |
| 633 |
discover any bugs or weaknesses with its support here, and I'd |
| 634 |
consequently be glad to be informed of any that appear. Do note that |
| 635 |
the <code>\usepackage{showlabels}</code> command <em>must</em> appear |
| 636 |
after the <code>\usepackage{amsmath}</code> if it is to detect that |
| 637 |
you are using the amsmath package. Note also that, since these |
| 638 |
additions appeared, AMS-LaTeX and the <code>amstex</code> package seem |
| 639 |
to have been declared ‘obsolete’ in favour of the <code>amsmath</code> |
| 640 |
package. This package now claims conformance with the |
| 641 |
<code>amsmath</code> package alone, though it will probably work with |
| 642 |
older versions in fact.</p> |
| 643 |
|
| 644 |
<p xmlns="http://www.w3.org/1999/xhtml">This is the first version of the package to be distributed under |
| 645 |
the name <code>showlabels</code>.</p> |
| 646 |
</h:dd> |
| 647 |
|
| 648 |
<h:dt>Updated, 1992 January 29</h:dt><h:dd> |
| 649 |
<p xmlns="http://www.w3.org/1999/xhtml">On 1992 January 29, Darrel Hankerson |
| 650 |
(<code>[email protected]</code>), made the update to NFSS, and |
| 651 |
changed the name to <code>showlabel.sty</code>.</p> |
| 652 |
</h:dd> |
| 653 |
|
| 654 |
<h:dt>Original, 1991 September 21</h:dt><h:dd> |
| 655 |
<p xmlns="http://www.w3.org/1999/xhtml">The package was originally released by me on 1991 September 21, under the name |
| 656 |
<code>labels.sty</code>.</p> |
| 657 |
</h:dd> |
| 658 |
|
| 659 |
</h:dl> |
| 660 |
|
| 661 |
<div class="signature"> |
| 662 |
<a href="https://nxg.me.uk">Norman Gray</a><br/> |
| 663 |
2025 August 18 |
| 664 |
</div> |
| 665 |
|
| 666 |
</body> |
| 667 |
</html> |
| 668 |
|
| 669 |
|
| 670 |
|
| 671 |
|
| 672 |
|
| 673 |
|
| 674 |
|