Skip to contentSkip to conversation

FAQ-BUILD.txt: Append reference to manual LaTeX package install

PATCH In review Akira Yokosawa 2 participants 15 messages Mar 23, 2017 – Mar 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FAQ-BUILD.txt: Append reference to manual LaTeX package install

From 4452298c139d3af3abb5af1d1a3a40754851e0b6 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Thu, 23 Mar 2017 21:47:58 +0900
Subject: [PATCH] FAQ-BUILD.txt: Append reference to manual LaTeX package install

---
Hi Paul,

So, this is the update of FAQ-BUILD.txt.
Feel free to wordsmith as you like before pushing out.

Thanks, Akira
--

 FAQ-BUILD.txt | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
FAQ-BUILD.txt +32 -1
index 6627bbb..4a4d8fb 100644
@@ -34,7 +34,7 @@
 	find it?
 
 	A.	The "pdflatex" package is a variant of Don Knuth's
-		digital typesetting program.  On Ubuntu Trusty,
+		digital typesetting program.  On Ubuntu Trusty and Xenial,
 		installing the following set of packages suffices:
 
 			texlive-latex-base texlive-latex-extra psutils
@@ -83,3 +83,34 @@
 		so if it happens, please let me know.  Please send me the
 		perfbook.log output (or perfbook-1c.log output, depending
 		on which you were building) so that I can fix the scripts.
+
+8.	Some of experimental targets for alternative font won't build
+	due to lack of necessary packages such as "newtxtt". How can I
+	install those packages?
+
+	A.	Simple answer would be "Upgrade to a recent TeX
+		distribution such as TeX Live 2016".
+		Upgrading Linux distribution (e.g. to Ubuntu Xenial)
+		would be another option.
+		If you want to manually install individual packages,
+		refer to "Method 3" in:
+
+			http://tex.stackexchange.com/questions/73016/
+
+		For font packages such as "newtxtt" and "nimbus15",
+		you also need to update font-map database. See:
+
+			http://tex.stackexchange.com/questions/88423/
+
+		Note: If available, <package>.tds.zip would relieve you
+		from figuring out where to put unpacked files. Also,
+		font packages should be copied to TEXMFLOCAL rather than
+		TEXFMHOME.
+
+		Following is a list of links to optional packages as of
+		March 2017:
+
+			https://www.ctan.org/pkg/newtxtt
+			https://www.ctan.org/pkg/nimbus15
+			https://www.ctan.org/pkg/inconsolata
+			https://www.ctan.org/pkg/mathastext
Signature · 1 line
2.7.4
#1 lore raw
Quoted 11 lines · Akira Yokosawa
Quoted 1 line

From 4452298c139d3af3abb5af1d1a3a40754851e0b6 Mon Sep 17 00:00:00 2001

From: Akira Yokosawa <[email protected]>
Date: Thu, 23 Mar 2017 21:47:58 +0900
Subject: [PATCH] FAQ-BUILD.txt: Append reference to manual LaTeX package install

---
Hi Paul,

So, this is the update of FAQ-BUILD.txt.
Feel free to wordsmith as you like before pushing out.

I pushed the following, please let me know if my wordsmithing smithed meaning out of existence so I can fix.

Thanx, Paul

------------------------------------------------------------------------

commit 39ce24a30848c96064f9ff0c61f1d883c2baf8e0

Author: Akira Yokosawa <[email protected]>
Date:   Thu Mar 23 21:47:58 2017 +0900

FAQ-BUILD.txt: Append reference to manual LaTeX package install

[ paulmck: Wordsmithing. ]
FAQ-BUILD.txt +34 -1
index 6627bbbe2d6f..c772e8fdcef0 100644
@@ -34,7 +34,7 @@
 	find it?
 
 	A.	The "pdflatex" package is a variant of Don Knuth's
-		digital typesetting program.  On Ubuntu Trusty,
+		digital typesetting program.  On Ubuntu Trusty and Xenial,
 		installing the following set of packages suffices:
 
 			texlive-latex-base texlive-latex-extra psutils
@@ -83,3 +83,36 @@
 		so if it happens, please let me know.  Please send me the
 		perfbook.log output (or perfbook-1c.log output, depending
 		on which you were building) so that I can fix the scripts.
+
+8.	Some of experimental targets for alternative font won't build
+	due to lack of necessary packages such as "newtxtt". How can I
+	install those packages?
+
+	A.	The simplest approach is to upgrade to a recent TeX
+		distribution such as TeX Live 2016.  Upgrading your Linux
+		distribution (e.g. to Ubuntu Xenial) is one way to
+		upgrade to TeX Live 2016, and might have many other
+		benefits as well.
+
+		However, if you prefer to manually install individual
+		packages, refer to "Method 3" in:
+
+			http://tex.stackexchange.com/questions/73016/
+
+		For font packages such as "newtxtt" and "nimbus15",
+		you must also update font-map database. See:
+
+			http://tex.stackexchange.com/questions/88423/
+
+		Note: If available, you can use the <package>.tds.zip,
+		which will automatically put the files in the right place.
+		Note that font packages should be copied to the TEXMFLOCAL
+		directory rather than to the TEXFMHOME directory.
+
+		Following is a list of links to optional packages as of
+		March 2017:
+
+			https://www.ctan.org/pkg/newtxtt
+			https://www.ctan.org/pkg/nimbus15
+			https://www.ctan.org/pkg/inconsolata
+			https://www.ctan.org/pkg/mathastext
#2 lore raw

PATCH 1/1 FAQ-BUILD.txt: Fix misinfomation crept in wordsmithing

From f7c19259ce4182688d94853c7fddc092011e802b Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 07:03:54 +0900
Subject: [PATCH] FAQ-BUILD.txt: Fix misinformation crept in by wordsmithing

---
Hi Paul,

Thanks for the wordsmithing.
There were a few things I want fix.
How about this patch?

Thanks, Akira

 FAQ-BUILD.txt | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
FAQ-BUILD.txt +6 -5
index c772e8f..a47eef6 100644
@@ -91,8 +91,8 @@
 	A.	The simplest approach is to upgrade to a recent TeX
 		distribution such as TeX Live 2016.  Upgrading your Linux
 		distribution (e.g. to Ubuntu Xenial) is one way to
-		upgrade to TeX Live 2016, and might have many other
-		benefits as well.
+		upgrade TeX Live (to 2015 on Xenial), and might	have many
+		other benefits as well.
 
 		However, if you prefer to manually install individual
 		packages, refer to "Method 3" in:
@@ -105,9 +105,10 @@
 			http://tex.stackexchange.com/questions/88423/
 
 		Note: If available, you can use the <package>.tds.zip,
-		which will automatically put the files in the right place.
-		Note that font packages should be copied to the TEXMFLOCAL
-		directory rather than to the TEXFMHOME directory.
+		which will automatically put the files in a relatively
+		right place. Note that font packages should be copied to
+		the TEXMFLOCAL directory rather than to the TEXFMHOME
+		directory.
 
 		Following is a list of links to optional packages as of
 		March 2017:
Signature · 1 line
2.7.4
#3 lore raw

cover Follow up patches to FAQ-BUILD update

From dd65cd3918b33e9bd267661ea697b39755be72a1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 22:06:24 +0900
Subject: [PATCH 0/2] Follow up patches to FAQ-BUILD update

Hi Paul,

This is a nitpick patch set to the update of FAQ-BUILD.txt.

Patch 1 is a typo fix relative to the patch "FAQ-BUILD.txt:
Fix misinfomation crept in wordsmithing" I sent earlier.

Patch 2 is to detect another build error condition to happen when you fail to update font-map database after manually installing a font package.

Thanks, Akira
--
Akira Yokosawa (2):
FAQ-BUILD.txt: Typo fix
Add another build error check

 FAQ-BUILD.txt              | 2 +-
 utilities/runfirstlatex.sh | 6 ++++++
 utilities/runlatex.sh      | 6 ++++++
 3 files changed, 13 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4
#4 lore raw

PATCH 1/2 FAQ-BUILD.txt: Typo fix

From 29f2c51a3a0f1a970a8665df15961d3c9a400a57 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 20:36:40 +0900
Subject: [PATCH 1/2] FAQ-BUILD.txt: Typo fix

---
 FAQ-BUILD.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
FAQ-BUILD.txt +1 -1
index a47eef6..85a79f7 100644
@@ -107,7 +107,7 @@
 		Note: If available, you can use the <package>.tds.zip,
 		which will automatically put the files in the relatively
 		right place. Note that font packages should be copied to
-		the TEXMFLOCAL directory rather than to the TEXFMHOME
+		the TEXMFLOCAL directory rather than to the TEXMFHOME
 		directory.
 
 		Following is a list of links to optional packages as of
Signature · 1 line
2.7.4
#5 lore raw

PATCH 2/2 Add another build error check

In reply to Akira Yokosawa

From dd65cd3918b33e9bd267661ea697b39755be72a1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 20:37:26 +0900
Subject: [PATCH 2/2] Add another build error check

This check catches build error to happen when font-map database is not updated after manual install of a font package.

---
 utilities/runfirstlatex.sh | 6 ++++++
 utilities/runlatex.sh      | 6 ++++++
 2 files changed, 12 insertions(+)
utilities/runfirstlatex.sh +6 -0
index 8261238..1a2a7a5 100644
@@ -47,6 +47,12 @@ then
 	echo "----- Fatal latex error, see $basename.log for details. -----"
 	exit 1
 fi
+if grep -q '!pdfTeX error:' $basename.log
+then
+	grep -A 2 '!pdfTeX error:' $basename.log
+	echo "----- Fatal latex error, see $basename.log for details. -----"
+	exit 1
+fi
 grep 'LaTeX Warning:' $basename.log > $basename-warning.log
 touch $basename-first.log
 exit 0
utilities/runlatex.sh +6 -0
index cece545..81800db 100644
@@ -58,6 +58,12 @@ iterate_latex () {
 		echo "----- Fatal latex error, see $basename.log for details. -----"
 		exit 1
 	fi
+	if grep -q '!pdfTeX error:' $basename.log
+	then
+		grep -A 2 '!pdfTeX error:' $basename.log
+		echo "----- Fatal latex error, see $basename.log for details. -----"
+		exit 1
+	fi
 	if test -r $basename-warning.log
 	then
 		mv -f $basename-warning.log $basename-warning-prev.log
Signature · 1 line
2.7.4
#6 lore raw

v2 cover Follow up patches to FAQ-BUILD update

In reply to Akira Yokosawa

From dd65cd3918b33e9bd267661ea697b39755be72a1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 22:42:36 +0900
Subject: [PATCH v2 0/2] Follow up patches to FAQ-BUILD update

(I messed up thread relation and made some typo. Let me do it again.)

Hi Paul,

This is a nitpick patch set to the update of FAQ-BUILD.txt.

Patch 1 is a typo fix relative to the patch "FAQ-BUILD.txt:
Fix misinformation crept in wordsmithing" I sent earlier.

Patch 2 is to detect another build error condition to happen when you fail to update font-map database after manually installing a font package.

Thanks, Akira
--

Akira Yokosawa (2):
FAQ-BUILD.txt: Typo fix
Add another build error check

 FAQ-BUILD.txt              | 2 +-
 utilities/runfirstlatex.sh | 6 ++++++
 utilities/runlatex.sh      | 6 ++++++
 3 files changed, 13 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4
#7 lore raw

PATCH v2 1/2 FAQ-BUILD.txt: Typo fix

From 29f2c51a3a0f1a970a8665df15961d3c9a400a57 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 20:36:40 +0900
Subject: [PATCH v2 1/2] FAQ-BUILD.txt: Typo fix

---
 FAQ-BUILD.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
FAQ-BUILD.txt +1 -1
index a47eef6..85a79f7 100644
@@ -107,7 +107,7 @@
 		Note: If available, you can use the <package>.tds.zip,
 		which will automatically put the files in the relatively
 		right place. Note that font packages should be copied to
-		the TEXMFLOCAL directory rather than to the TEXFMHOME
+		the TEXMFLOCAL directory rather than to the TEXMFHOME
 		directory.
 
 		Following is a list of links to optional packages as of
Signature · 1 line
2.7.4
#8 lore raw

PATCH v2 2/2 Add another build error check

In reply to Akira Yokosawa

From dd65cd3918b33e9bd267661ea697b39755be72a1 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 20:37:26 +0900
Subject: [PATCH v2 2/2] Add another build error check

This check catches build error to happen when font-map database is not updated after manual install of a font package.

---
 utilities/runfirstlatex.sh | 6 ++++++
 utilities/runlatex.sh      | 6 ++++++
 2 files changed, 12 insertions(+)
utilities/runfirstlatex.sh +6 -0
index 8261238..1a2a7a5 100644
@@ -47,6 +47,12 @@ then
 	echo "----- Fatal latex error, see $basename.log for details. -----"
 	exit 1
 fi
+if grep -q '!pdfTeX error:' $basename.log
+then
+	grep -A 2 '!pdfTeX error:' $basename.log
+	echo "----- Fatal latex error, see $basename.log for details. -----"
+	exit 1
+fi
 grep 'LaTeX Warning:' $basename.log > $basename-warning.log
 touch $basename-first.log
 exit 0
utilities/runlatex.sh +6 -0
index cece545..81800db 100644
@@ -58,6 +58,12 @@ iterate_latex () {
 		echo "----- Fatal latex error, see $basename.log for details. -----"
 		exit 1
 	fi
+	if grep -q '!pdfTeX error:' $basename.log
+	then
+		grep -A 2 '!pdfTeX error:' $basename.log
+		echo "----- Fatal latex error, see $basename.log for details. -----"
+		exit 1
+	fi
 	if test -r $basename-warning.log
 	then
 		mv -f $basename-warning.log $basename-warning-prev.log
Signature · 1 line
2.7.4
#9 lore raw

Re: [PATCH] FAQ-BUILD.txt: Fix misinfomation crept in wordsmithing

In reply to Akira Yokosawa
Quoted 6 lines · Akira Yokosawa
Quoted 1 line

From f7c19259ce4182688d94853c7fddc092011e802b Mon Sep 17 00:00:00 2001

From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 07:03:54 +0900
Subject: [PATCH] FAQ-BUILD.txt: Fix misinformation crept in by wordsmithing

Hello, Akira,

I tried applying all three, then just the two in the series, and either way, "git am" complains about not being able to apply the patches. I did merge my wordsmithing into your original patch, which might be the source of the problem. Could you please check?

Thanx, Paul

Quoted 44 lines

---
Hi Paul,

Thanks for the wordsmithing. There were a few things I want fix. How about this patch?

Thanks, Akira

 FAQ-BUILD.txt | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
FAQ-BUILD.txt +6 -5
index c772e8f..a47eef6 100644
@@ -91,8 +91,8 @@
 	A.	The simplest approach is to upgrade to a recent TeX
 		distribution such as TeX Live 2016.  Upgrading your Linux
 		distribution (e.g. to Ubuntu Xenial) is one way to
-		upgrade to TeX Live 2016, and might have many other
-		benefits as well.
+		upgrade TeX Live (to 2015 on Xenial), and might	have many
+		other benefits as well.
 
 		However, if you prefer to manually install individual
 		packages, refer to "Method 3" in:
@@ -105,9 +105,10 @@
 			http://tex.stackexchange.com/questions/88423/
 
 		Note: If available, you can use the <package>.tds.zip,
-		which will automatically put the files in the right place.
-		Note that font packages should be copied to the TEXMFLOCAL
-		directory rather than to the TEXFMHOME directory.
+		which will automatically put the files in a relatively
+		right place. Note that font packages should be copied to
+		the TEXMFLOCAL directory rather than to the TEXFMHOME
+		directory.
 
 		Following is a list of links to optional packages as of
 		March 2017:
Signature · 1 line
2.7.4
#10 lore raw

v3 cover Follow up patches to FAQ-BUILD update

From 085049a61d22e462f9c5d8e04f9be20f2ec558ce Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 25 Mar 2017 07:43:56 +0900
Subject: [PATCH v3 0/2] Follow up patches to FAQ-BUILD update

Hi Paul,

I squashed the patches to FAQ-BUILD.txt.
Does this set work?

Thanks, Akira
--
Akira Yokosawa (2):
FAQ-BUILD.txt: Fix misinfomation crept in wordsmithing Add another build error check

 FAQ-BUILD.txt              | 11 ++++++-----
 utilities/runfirstlatex.sh |  6 ++++++
 utilities/runlatex.sh      |  6 ++++++
 3 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4
#11 lore raw

v4 cover Follow up patches to FAQ-BUILD update

In reply to Paul E. McKenney

From e2ffbd35e5a1121b953a2f7073ee50d6efc58cd3 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Sat, 25 Mar 2017 07:55:41 +0900
Subject: [PATCH v4 0/2] Follow up patches to FAQ-BUILD update

Apologies. There was still a typo in v3. (v3 was aborted) Let me try again.

Thanks, Akira
--
Akira Yokosawa (2):
FAQ-BUILD.txt: Fix misinformation crept in wordsmithing Add another build error check

 FAQ-BUILD.txt              | 11 ++++++-----
 utilities/runfirstlatex.sh |  6 ++++++
 utilities/runlatex.sh      |  6 ++++++
 3 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4
#12 lore raw

PATCH v4 1/2 FAQ-BUILD.txt: Fix misinformation crept in wordsmithing

From a88379395550dfdd02f995bbfa492abba2a18578 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 07:03:54 +0900
Subject: [PATCH v4 1/2] FAQ-BUILD.txt: Fix misinformation crept in wordsmithing

---
 FAQ-BUILD.txt | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
FAQ-BUILD.txt +6 -5
index c772e8f..6b618b4 100644
@@ -91,8 +91,8 @@
 	A.	The simplest approach is to upgrade to a recent TeX
 		distribution such as TeX Live 2016.  Upgrading your Linux
 		distribution (e.g. to Ubuntu Xenial) is one way to
-		upgrade to TeX Live 2016, and might have many other
-		benefits as well.
+		upgrade TeX Live (to 2015 on Xenial), and might	have many
+		other benefits as well.
 
 		However, if you prefer to manually install individual
 		packages, refer to "Method 3" in:
@@ -105,9 +105,10 @@
 			http://tex.stackexchange.com/questions/88423/
 
 		Note: If available, you can use the <package>.tds.zip,
-		which will automatically put the files in the right place.
-		Note that font packages should be copied to the TEXMFLOCAL
-		directory rather than to the TEXFMHOME directory.
+		which will automatically put the files in a relatively
+		right place. Note that font packages should be copied to
+		the TEXMFLOCAL directory rather than to the TEXMFHOME
+		directory.
 
 		Following is a list of links to optional packages as of
 		March 2017:
Signature · 1 line
2.7.4
#13 lore raw

PATCH v4 2/2 Add another build error check

In reply to Akira Yokosawa

From e2ffbd35e5a1121b953a2f7073ee50d6efc58cd3 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <[email protected]>
Date: Fri, 24 Mar 2017 20:37:26 +0900
Subject: [PATCH v4 2/2] Add another build error check

This check catches build error to happen when font-map database is not updated after manual install of a font package.

---
 utilities/runfirstlatex.sh | 6 ++++++
 utilities/runlatex.sh      | 6 ++++++
 2 files changed, 12 insertions(+)
utilities/runfirstlatex.sh +6 -0
index 8261238..1a2a7a5 100644
@@ -47,6 +47,12 @@ then
 	echo "----- Fatal latex error, see $basename.log for details. -----"
 	exit 1
 fi
+if grep -q '!pdfTeX error:' $basename.log
+then
+	grep -A 2 '!pdfTeX error:' $basename.log
+	echo "----- Fatal latex error, see $basename.log for details. -----"
+	exit 1
+fi
 grep 'LaTeX Warning:' $basename.log > $basename-warning.log
 touch $basename-first.log
 exit 0
utilities/runlatex.sh +6 -0
index cece545..81800db 100644
@@ -58,6 +58,12 @@ iterate_latex () {
 		echo "----- Fatal latex error, see $basename.log for details. -----"
 		exit 1
 	fi
+	if grep -q '!pdfTeX error:' $basename.log
+	then
+		grep -A 2 '!pdfTeX error:' $basename.log
+		echo "----- Fatal latex error, see $basename.log for details. -----"
+		exit 1
+	fi
 	if test -r $basename-warning.log
 	then
 		mv -f $basename-warning.log $basename-warning-prev.log
Signature · 1 line
2.7.4
#14 lore raw

Re: [PATCH v4 0/2] Follow up patches to FAQ-BUILD update

In reply to Akira Yokosawa
Quoted 7 lines · Akira Yokosawa
Quoted 1 line

From e2ffbd35e5a1121b953a2f7073ee50d6efc58cd3 Mon Sep 17 00:00:00 2001

From: Akira Yokosawa <[email protected]>
Date: Sat, 25 Mar 2017 07:55:41 +0900
Subject: [PATCH v4 0/2] Follow up patches to FAQ-BUILD update

Apologies. There was still a typo in v3. (v3 was aborted) Let me try again.

Much better!!! Queued and pushed.

Thanx, Paul

Quoted 15 lines

Thanks, Akira
--
Akira Yokosawa (2):
FAQ-BUILD.txt: Fix misinformation crept in wordsmithing Add another build error check

 FAQ-BUILD.txt              | 11 ++++++-----
 utilities/runfirstlatex.sh |  6 ++++++
 utilities/runlatex.sh      |  6 ++++++
 3 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4