From owner-freebsd-questions@freebsd.org Thu Apr 22 15:12:14 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0C2385F5E40 for ; Thu, 22 Apr 2021 15:12:14 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FR19n0mDHz4VPG for ; Thu, 22 Apr 2021 15:12:12 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: by mail-yb1-xb2c.google.com with SMTP id p3so31207792ybk.0 for ; Thu, 22 Apr 2021 08:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hxUpSUM1Taf1U8L/Q8/nhzIun8Ls4oEgMfKeWSLeHCI=; b=ffYBS4hLR+whjXlFRlAtzCBnIsc4s/rVEPJxvfSqaXjtQBBclx1ZLgIpdcFOND07Bp jRPuz02PKEuVvlvAKPRdGtTpHPAUFLX0mjX3zgt1Hf13kUSXcSqgMdUPKuqQ/xT1KoD+ VBF7/MzPtrLCwzKYUSJ+wJzuVXcPAufSH79Hl1lSdqOCg3ICN1E/YPp1CzySqL4dA009 w28vTG2CwchLecHSNRElz24FOU1qIRLu/1TfH63bHsZR49MH1m6ZDfMw95Z/gsIVoCpP ofxVC8LRuwfYTQ78eRsBBCiYX5sqYZT/8nP3WkPPLDmOH4kmjRXGjaGfVFlSChECS+Ko J9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hxUpSUM1Taf1U8L/Q8/nhzIun8Ls4oEgMfKeWSLeHCI=; b=qnKVXBihL/VN/VfgG3BAl2ru84UgBi5QZu4CrIiww2MjBNFM33mm8d0wFtw5M8HdLg b5c8vRNxKqpXVjTP2Bx1OzGcBC0ERdUB3WHH8ABdOiNr2cTiUQVQYpfEKPx/LSpApked KOP6ky+kBRGuc24OY9QK7YysHtO3iQjOX+bPIT5SkBOCggJD9QA607HhQnymTSv9eo/y DKhAYfiTaNMaBsuO3Ow/vnf9gY6Mn9/gwxV4FqAdTxSdHBkFY5lw4GzUpyMmFljuz2bt 3DgissjEihYohyBzSfWOxOA5oBlt/5fMaGFGw3Gf82uOFdTzXeJlvkXwfzATXKIvmqML Kj2A== X-Gm-Message-State: AOAM531AcULCLrh+cK4uCTHAmQd4okT1afX9VxzDuuVBMuMmwk4oJkuC b6e1VDqN38FWb2vOjkJrBe3PPluWIauGOsO8hqpI0pH58Ad3qw== X-Google-Smtp-Source: ABdhPJyeIxT83eujoC27IUpeIc+ahaX7YPSQp44FSKByg3XzfA6QzBbzq75IfiEF7yqpExOw1CfxO8NlwxGqPb1nE7g= X-Received: by 2002:a25:2702:: with SMTP id n2mr5511989ybn.179.1619104331718; Thu, 22 Apr 2021 08:12:11 -0700 (PDT) MIME-Version: 1.0 References: <2144122E-56DF-4391-91CD-75F2F2B6AA25@glasgow.ac.uk> <023D2B0D-3272-45B6-BA07-81C8E082BB5B@glasgow.ac.uk> In-Reply-To: <023D2B0D-3272-45B6-BA07-81C8E082BB5B@glasgow.ac.uk> From: Antonio Olivares Date: Thu, 22 Apr 2021 10:12:00 -0500 Message-ID: Subject: Re: script problem To: Norman Gray Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4FR19n0mDHz4VPG X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ffYBS4hL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of olivares14031@gmail.com designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=olivares14031@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RBL_SENDERSCORE_FAIL(0.00)[2607:f8b0:4864:20::b2c:server fail]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::b2c:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::b2c:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b2c:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 15:12:14 -0000 On Thu, Apr 22, 2021 at 4:30 AM Norman Gray wrote: > > > Antonio, hello. > > On 22 Apr 2021, at 0:56, Antonio Olivares wrote: > > > The book gets created, but the file torus.mp fails to build. The m3D > > files, I have put the files m3D* on the same directory and the > > picins.sty. > > The question is how the metapost files get processed by the script. > > Something changed because the script did run the metapost files and > > got > > their output and them latex'd the source files and it worked in > > FreeBSD 12 > > but not in FreeBSD 13. I do not know what causes this? > > > > I had to > > $ for i in *.mp ; TEX=latex mpost "$i": done; > > I think that, in this case, you'd be better with > > export TEX=latex > for f in fig*.mp; do mpost $f; done > > That is, only process the fig*.mp files, and skip the torus.mp file, > which appears to be the only one which uses the m3D macros. > > (setting TEX is for the benefit of mpost, as it specifies the language > used for the btex...etex calls within the .mp files.) > > If, after that, I do > > latex calc3book > > then I have to ignore the error message about the missing torus.0 (you > could probably comment this call out in the sources), and I get an error > about a missing \bf command > > I can add \let\bf\relax to the top of calc3book.tex (after the > \documentclass line), and comment out the includegraphics{torus.0} from > calcbook-chapter4.tex > > latex calc3book > bibtex calc3book > latex calc3book.tex > makeindex -s myindex.ist -o calc3book.ind calc3book.idx > makeindex calc3book.nlo -s nomencl.ist -o calc3book.nls > latex calc3book.tex > dvips -j0 -t letter -Pps -G0 -z calc3book.dvi -o > ps2pdf14 -dALLOWPSTRANSPARENCY -dMaxSubsetPct=100 > -dSubsetFonts=true -dEmbedAllFonts=true -dPDFSETTINGS=/printer > calc3book.ps > > ...then produces a PDF (which appears to be a decent-looking book, by > the way). > > So the version problem you discovered is that the current TeXLive mpost > is too new for the m3D macros, and the current version of scrbook is too > new for the document (which uses obsolete \bf). I think it would be > useful for you to report both problems to the book's author, as well as > (apparent) success in using TeXLive 2021 to process the book. > > Good luck! > > Norman > > > -- > Norman Gray : https://nxg.me.uk > SUPA School of Physics and Astronomy, University of Glasgow, UK Dear Sir, Your solution works much better because it does not process the files from m3D*. I copied them and pasted them in the same directory along with picins.sty. > export TEX=latex > for f in fig*.mp; do mpost $f; done I commented out the torus.1 in chapter4*.tex file and it compiles fine, with the exception of that file. Thank you very much for your help. Best Regards, Antonio