Skip to content

Add script to check cleveref macro uses

Akira Yokosawa perfbook 1 version Applied

Status from this message: Queued and pushed, thank you!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4cleverefcheck: Add check script of cleveref macro usageutilities/cleverefcheck.pl utilities/cleverefcheck.sh+119 -00 replies
2/4intro: Employ \cref{} and its variantsintro/intro.tex+12 -120 replies
3/4cpu: Employ \cref{} and its variantscpu/cpu.tex cpu/hwfreelunch.tex cpu/overheads.tex +2 more+45 -490 replies
4/4toolsoftrade: Employ \cref{} and its variantsperfbook-lt.tex toolsoftrade/toolsoftrade.tex+226 -2070 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -perfbook 0/4] Add script to check cleveref macro uses

Hi Paul,

Now that end-of-sentence periods are at the end of input lines, wrong uses of \Cref{}, \cref{}, and their variants can be detected by a not-that-intelligent script.

Patch 1/4 adds the set of scripts.
They also detect raw \ref{} and \lnref{} commands.

Patches 2/4--4/4 are updates of intro, cpu, and toolsoftrade to satisfy the scripts.

Remaining updates of the other chapters will follow when they are ready.

My plan is to add the check as a make target once the other updates are finished.

In the meantime, you can run the check of each file by:

./utilities/cleverefcheck.pl count/count.tex

, or tree-wide:

./utilities/cleverefcheck.sh

Thanks, Akira

--
Akira Yokosawa (4):
cleverefcheck: Add check script of cleveref macro usage
intro: Employ \cref{} and its variants
cpu: Employ \cref{} and its variants
toolsoftrade: Employ \cref{} and its variants

 cpu/cpu.tex                   |   6 +-
 cpu/hwfreelunch.tex           |  12 +-
 cpu/overheads.tex             |  26 +--
 cpu/overview.tex              |  32 +--
 cpu/swdesign.tex              |  18 +-
 intro/intro.tex               |  24 +-
 perfbook-lt.tex               |  21 ++
 toolsoftrade/toolsoftrade.tex | 412 +++++++++++++++++-----------------
 utilities/cleverefcheck.pl    |  96 ++++++++
 utilities/cleverefcheck.sh    |  23 ++
 10 files changed, 402 insertions(+), 268 deletions(-)
 create mode 100755 utilities/cleverefcheck.pl
 create mode 100755 utilities/cleverefcheck.sh
Signature · 1 line
2.17.1