gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 8c7081cd: Book: LaTeX externalization command


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 8c7081cd: Book: LaTeX externalization command with no line breaks
Date: Tue, 11 Apr 2023 11:21:58 -0400 (EDT)

branch: master
commit 8c7081cdde4fdfe3b1cb690f0fe3ff1d5ab5becf
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Book: LaTeX externalization command with no line breaks
    
    Until now, the LaTeX (TiKZ package) externalization command (a simple shell
    command) was broken into multiple lines in 'doc/plotsrc/all.tex'. On some
    systems, this would result in the non-creation of the final EPS files for
    each figure that we draw in TiKZ (the broken lines were not interpreted in
    the "externalization" command).
    
    With this commit, the full externalization command has been brought into
    one line. Also, instead of ';' between the commands, we are now using '&&'
    so it doesn' continue if one command fails.
    
    This issue was reported by Bharat Bhandari.
---
 doc/announce-acknowledge.txt | 1 +
 doc/plotsrc/all.tex          | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/doc/announce-acknowledge.txt b/doc/announce-acknowledge.txt
index ab8860ea..5f6b265e 100644
--- a/doc/announce-acknowledge.txt
+++ b/doc/announce-acknowledge.txt
@@ -1,5 +1,6 @@
 Alphabetically ordered list to acknowledge in the next release.
 
+Bharat Bhandari
 Faezeh Bidjarchian
 Alejandro Serrano Borlaff
 Fernando Buitrago
diff --git a/doc/plotsrc/all.tex b/doc/plotsrc/all.tex
index f61020a2..b47ac2d3 100644
--- a/doc/plotsrc/all.tex
+++ b/doc/plotsrc/all.tex
@@ -91,10 +91,10 @@
                            {rounded corners=0.8mm, to path={|-
                            (\tikztotarget)}} }
 \usetikzlibrary{external}
-\tikzset{external/system call={latex \tikzexternalcheckshellescape 
-halt-on-error
--interaction=batchmode -jobname "\image" "\texsource";
-dvips -o "\image".ps "\image".dvi;
-ps2eps "\image.ps"}}
+%% This has to be in one line. Otherwise on some systems the commands in
+%% the broken lines will not be executed and the final EPS file will not be
+%% created.
+\tikzset{external/system call={latex \tikzexternalcheckshellescape 
-halt-on-error -interaction=batchmode -jobname "\image" "\texsource" && dvips 
-o "\image".ps "\image".dvi && ps2eps "\image.ps"}}
 \tikzexternalize
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]