Revert "Remove required version of 'epigraph'"
PATCH 1/2 Revert "Remove required version of 'epigraph'"
From 3686a767517066f5212f97e2b2ac026c772af48f Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sun, 9 Feb 2020 07:38:12 +0900
Subject: [PATCH 1/2] Revert "Remove required version of 'epigraph'"
This reverts commit 4c6ee39761a0991e93f147151d71f965b2e433e0.
Now that TeX Live 2015/Debian with the up-to-date "epigraph" does not suffer from the excessively wide vertical spaces, we can revert commit 4c6ee39761a0 ("Remove required version of 'epigraph'") and make the up-to-date epigraph mandatory.
--- FAQ-BUILD.txt | 28 +++++----------------------- Makefile | 21 --------------------- perfbook.tex | 2 +- 3 files changed, 6 insertions(+), 45 deletions(-)
FAQ-BUILD.txt +5 -23
@@ -179,13 +179,14 @@ tlmgr install newtx 10. Building perfbook fails with a warning of buggy cleveref/listings, - version mismatch of titlesec/draftwatermark/fvextra, or missing - fvextra. What can I do? + version mismatch of titlesec/draftwatermark/epigraph/fvextra, or + missing fvextra. What can I do? A. They are known issues on Ubuntu Xenial (titlesec), Ubuntu Bionic (cleveref), TeX Live 2014/2015 (listings), TeX Live releases prior to 2015 (draftwatermark), - and TeX Live releases prior to 2017 (fvextra). + TeX Live releases prior to 2017 (fvextra), + and TeX Live releases prior to 2020 (epigraph). This answer assumes Ubuntu, but it should work on other distros.
@@ -194,6 +195,7 @@ http://mirrors.ctan.org/macros/latex/contrib/cleveref.zip http://mirrors.ctan.org/macros/latex/contrib/listings.zip http://mirrors.ctan.org/macros/latex/contrib/draftwatermark.zip + http://mirrors.ctan.org/macros/latex/contrib/epigraph.zip http://mirrors.ctan.org/macros/latex/contrib/fvextra.zip 2. Install it by following instructions at:
@@ -255,23 +257,3 @@ "make neatfreak; make" will rebuild all the figures. The "-jN" option should accelerate the rebuild. - -13 Building perfbook has succeeded, but I find some of the - epigraphs at bottom of columns/pages. - What can I do? - - A. A new version of "epigraph" package recently released - has resolved the issue. You can upgrade it by following - the instructions at #10 above. - The Up-to-date package can be downloaded from: - http://mirrors.ctan.org/macros/latex/contrib/epigraph.zip - - NOTE: On Tex Live 2015/Debian (Ubuntu Xenial) and TeX Live 2016, - the up-to-date "epigraph" does not work properly along - with the "nowidow" package. - If you'd really like to get rid of orphaned epigraphs, - upgrading TeX Live to 2017/Debian (Ubuntu Bionic) or - later is the way to go. - The updated "epigraph" package is expected to be - distributed in upstream TeX Live 2020 and Tex Live 2019/Debian - (Ubuntu Focal).
Makefile +0 -21
@@ -131,23 +131,6 @@ LINEREF_ENV_END := $(shell grep -l -F '\end{lineref}' $(LATEXSOURCES)) LINELABEL_ENV := $(sort $(LINELABEL_ENV_BEGIN) $(LINELABEL_ENV_END)) LINEREF_ENV := $(sort $(LINEREF_ENV_BEGIN) $(LINEREF_ENV_END)) -OLD_EPIGRAPH := $(shell grep -c '2009/09/02' `kpsewhich epigraph.sty`) -TEXLIVE_2015_DEBIAN := $(shell pdftex --version | grep -c 'TeX Live 2015/Debian') -TEXLIVE_2016 := $(shell pdftex --version | grep -c 'TeX Live 2016') -ifeq ($(OLD_EPIGRAPH),1) - ifeq ($(TEXLIVE_2015_DEBIAN),1) - SUGGEST_UPGRADE_EPIGRAPH := 0 - else - ifeq ($(TEXLIVE_2016),1) - SUGGEST_UPGRADE_EPIGRAPH := 0 - else - SUGGEST_UPGRADE_EPIGRAPH := 1 - endif - endif -else - SUGGEST_UPGRADE_EPIGRAPH := 0 -endif - SOURCES_OF_SNIPPET_ALL := $(shell grep -r -l -F '\begin{snippet}' CodeSamples) SOURCES_OF_LITMUS := $(shell grep -r -l -F '\begin[snippet]' CodeSamples) SOURCES_OF_LTMS := $(patsubst %.litmus,%.ltms,$(SOURCES_OF_LITMUS))
@@ -186,10 +169,6 @@ mslmmsg: $(PDFTARGETS): %.pdf: %.tex %.bbl sh utilities/runlatex.sh $(basename $@) -ifeq ($(SUGGEST_UPGRADE_EPIGRAPH),1) - @echo "Consider upgrading 'epigraph' to prevent orphaned epigraphs." - @echo "See #13 in FAQ-BUILD.txt." -endif $(PDFTARGETS:.pdf=.bbl): %.bbl: %.aux $(BIBSOURCES) bibtex $(basename $@)
perfbook.tex +1 -1
@@ -72,7 +72,7 @@ \usepackage[bookmarks=true,bookmarksnumbered=true,pdfborder={0 0 0},linktoc=all]{hyperref} \usepackage{footnotebackref} % to enable cross-ref of footnote \usepackage[all]{hypcap} % for going to the top of figure and table -\usepackage{epigraph} +\usepackage{epigraph}[2020/01/02] % latest version prevents orphaned epigraph \setlength{\epigraphwidth}{2.6in} \usepackage[xspace]{ellipsis} \usepackage{braket} % for \ket{} macro in QC section
Signature · 1 line
2.17.1
PATCH 2/2 utilities/toarxiv: Copy up-to-date 'fvextra and 'epigraph'
From d42192f39128f32b145eed4de36002457b8ed085 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sun, 9 Feb 2020 07:39:16 +0900
Subject: [PATCH 2/2] utilities/toarxiv: Copy up-to-date 'fvextra and 'epigraph'
The version of arxiv's TeX Live is 2016 at the moment. As we depend on "fvextra" and up-to-date "epigraph" now, we need to copy their .sty files into the bundle to upload.
---
Paul,
As I can't test the behavior of arxiv's build system, I'm not sure this patch actually works as expected.
I'd like you to test the resulting bundle on arxiv.
Thanks, Akira
--
utilities/toarxiv.sh | 2 ++ 1 file changed, 2 insertions(+)
utilities/toarxiv.sh +2 -0
@@ -54,6 +54,8 @@ find */ -type d -print | sh cp autodate.tex glossary.tex origpub.tex contrib.tex legal.tex qqz.tex origpub.sty qqz.sty pfbook.cls pfhyphex.tex perfbook.bbl ${destdir} +cp `kpsewhich fvextra.sty` ${destdir} +cp `kpsewhich epigraph.sty` ${destdir} find */ '(' -name '*.pdf' -o -name '*.lst' ')' -exec cp {} ${destdir}/{} \;
Signature · 1 line
2.17.1
Re: [PATCH 2/2] utilities/toarxiv: Copy up-to-date 'fvextra and 'epigraph'
Quoted 9 lines · Akira Yokosawa
Quoted 1 line
From
d42192f39128f32b145eed4de36002457b8ed085Mon Sep 17 00:00:00 2001From: Akira Yokosawa <[email protected]>
Date: Sun, 9 Feb 2020 07:39:16 +0900
Subject: [PATCH 2/2] utilities/toarxiv: Copy up-to-date 'fvextra and 'epigraph'The version of arxiv's TeX Live is 2016 at the moment. As we depend on "fvextra" and up-to-date "epigraph" now, we need to copy their .sty files into the bundle to upload.
Quoted 8 lines
Signed-off-by Akira Yokosawa <[email protected]>---
Paul,As I can't test the behavior of arxiv's build system, I'm not sure this patch actually works as expected.
I'd like you to test the resulting bundle on arxiv.
This looks to work, queued and pushed, thank you!
I am sure that toarxiv.sh will need help from time to time, but that is just life. ;-)
Thanx, Paul
Quoted 22 lines
Thanks, Akira
--utilities/toarxiv.sh | 2 ++ 1 file changed, 2 insertions(+)utilities/toarxiv.sh +2
-0@@ -54,6 +54,8 @@ find */ -type d -print | sh cp autodate.tex glossary.tex origpub.tex contrib.tex legal.tex qqz.tex origpub.sty qqz.sty pfbook.cls pfhyphex.tex perfbook.bbl ${destdir} +cp `kpsewhich fvextra.sty` ${destdir} +cp `kpsewhich epigraph.sty` ${destdir} find */ '(' -name '*.pdf' -o -name '*.lst' ')' -exec cp {} ${destdir}/{} \;Signature · 1 line
2.17.1