Skip to contentSkip to conversation

Don't run fixfonts for pstricks figures

PATCH Applied Akira Yokosawa 2 participants 3 messages Jul 14, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Don't run fixfonts for pstricks figures

fixfonts scripts don't have any effect on EPS files generated from pstricks + dvips.

Font in the figures should be specified in the source .tex files.

---
 Makefile | 2 --
 1 file changed, 2 deletions(-)
Makefile +0 -2
index bffdd2da1f4d..f25baf27d8ad 100644
@@ -414,13 +414,11 @@ perfbook-a4.tex:
 
 # Rules related to perfbook_html are removed as of May, 2016
 
-$(EPSSOURCES_FROM_TEX): $(FIXANEPSFONTS) $(FIXFONTS)
 $(EPSSOURCES_FROM_TEX): %.eps: %.tex
 	@echo "$< --> $(suffix $@)"
 	sh utilities/mpostcheck.sh
 	@latex -output-directory=$(shell dirname $<) $< > /dev/null 2>&1
 	@dvips -Pdownload35 -E $(patsubst %.tex,%.dvi,$<) -o $@ > /dev/null 2>&1
-	@sh $(FIXANEPSFONTS) $@
 
 $(EPSSOURCES_FROM_DOT): $(FIXANEPSFONTS) $(FIXFONTS)
 $(EPSSOURCES_FROM_DOT): %.eps: %.dot

base-commit: b48ccb045d17f6d551ff210c74118f1769f66c63

Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 SMPdesign: Specify sans-serif font in pstricks figures

The newtxtext package provides Helvetica-clone for sans-serif font family.

As most other figures have sans-serif fonts with the help of fixfonts scripts, use it in pstricks figures for consistency.

Compensate the slightly smaller look of the labels by using \large.

---
 SMPdesign/DiningPhilosopher4part-b.tex | 3 +++
 SMPdesign/DiningPhilosopher5.tex       | 3 +++
 SMPdesign/DiningPhilosopher5PEM.tex    | 3 +++
 SMPdesign/DiningPhilosopher5TB.tex     | 3 +++
 4 files changed, 12 insertions(+)
SMPdesign/DiningPhilosopher4part-b.tex +3 -0
index 1a90f8105d5c..2d1c307ef7c0 100644
@@ -5,9 +5,12 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
+\usepackage[helvratio=0.9]{newtxtext}
+\renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
 \thispagestyle{empty}
+\large
 
 \begin{TeXtoEPS}
 \begin{pspicture}(12,10)
SMPdesign/DiningPhilosopher5.tex +3 -0
index 08e6931846e6..a892f11bc42d 100644
@@ -5,9 +5,12 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
+\usepackage[helvratio=0.9]{newtxtext}
+\renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
 \thispagestyle{empty}
+\large
 
 \begin{TeXtoEPS}
 \begin{pspicture}(12,10)
SMPdesign/DiningPhilosopher5PEM.tex +3 -0
index 25aee7a401a1..55db3773608c 100644
@@ -5,9 +5,12 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
+\usepackage[helvratio=0.9]{newtxtext}
+\renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
 \thispagestyle{empty}
+\large
 
 \begin{TeXtoEPS}
 \begin{pspicture}(12,10)
SMPdesign/DiningPhilosopher5TB.tex +3 -0
index fcf96e9dee84..c2015991cd5e 100644
@@ -5,9 +5,12 @@
 \usepackage{pst-eps}
 \usepackage{multido}
 \usepackage{calc}
+\usepackage[helvratio=0.9]{newtxtext}
+\renewcommand{\familydefault}{\sfdefault}
 
 \begin{document}
 \thispagestyle{empty}
+\large
 
 \begin{TeXtoEPS}
 \begin{pspicture}(12,10)
Signature · 1 line
2.25.1
#2 lore raw
In reply to Akira Yokosawa
Quoted 6 lines · Akira Yokosawa

fixfonts scripts don't have any effect on EPS files generated from pstricks + dvips.

Font in the figures should be specified in the source .tex files.

Queued and pushed both, thank you!

Thanx, Paul

Quoted 27 lines
---
 Makefile | 2 --
 1 file changed, 2 deletions(-)
Makefile +0 -2
index bffdd2da1f4d..f25baf27d8ad 100644
@@ -414,13 +414,11 @@ perfbook-a4.tex:
 
 # Rules related to perfbook_html are removed as of May, 2016
 
-$(EPSSOURCES_FROM_TEX): $(FIXANEPSFONTS) $(FIXFONTS)
 $(EPSSOURCES_FROM_TEX): %.eps: %.tex
 	@echo "$< --> $(suffix $@)"
 	sh utilities/mpostcheck.sh
 	@latex -output-directory=$(shell dirname $<) $< > /dev/null 2>&1
 	@dvips -Pdownload35 -E $(patsubst %.tex,%.dvi,$<) -o $@ > /dev/null 2>&1
-	@sh $(FIXANEPSFONTS) $@
 
 $(EPSSOURCES_FROM_DOT): $(FIXANEPSFONTS) $(FIXFONTS)
 $(EPSSOURCES_FROM_DOT): %.eps: %.dot

base-commit: b48ccb045d17f6d551ff210c74118f1769f66c63

Signature · 1 line
2.25.1