From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IOJvGidBt2CnygAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 10:28:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qHvLFSdBt2AucQAAbx9fmQ (envelope-from ) for ; Wed, 02 Jun 2021 08:28:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A69D7A303 for ; Wed, 2 Jun 2021 10:28:22 +0200 (CEST) Received: from localhost ([::1]:40142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loMEf-0006j7-76 for larch@yhetil.org; Wed, 02 Jun 2021 04:28:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loMEI-0006im-WD for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 04:27:59 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:37757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loMEG-0002vs-Lw for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 04:27:58 -0400 Received: by mail-pf1-x429.google.com with SMTP id y15so1607443pfl.4 for ; Wed, 02 Jun 2021 01:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=3XoAFk2pMyKbc2BTNpQJMq2MirlylaESJsOAhjQcPmw=; b=Aqc+hQbB1CXoAC200b94M4smKsIkscBBJZwGoAQzvMe9YkoQ7e5YBMwinSX3IpLbr/ IdRViLMLeTtXL5aR0eun46V/vF80PBmW9LA1J+TOLJwAV7Z4pg3sj5wkyAWvxjX1USHD jXA8vx+DNHNBZaNPkUy3VSMtXONovR7591lcU6jNO6HLjYVsgv0zpVBlWbl8B+uFhiXL Keaoc5CxPcnYK8R0C5iLZNK1hmKPycUlXggaRZuW6qBHAdwdt2YSExtZvdWCk4jSnVpU MaqwqjkStN175c+CsOp4KO3SoEksL5VKFX0Ixk+jCCfySWacL/rV25jlWfPrSxV0gWyK eDrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=3XoAFk2pMyKbc2BTNpQJMq2MirlylaESJsOAhjQcPmw=; b=az787XvLVkW81iIhQi61ytE0i3qhnZptxXMNMH2xaUhLjgv0siv8xasa8BHpw9pTFP ZJujGnhqTsm91yCCMLcCRlxQ03COPLzWbcr07ry7enUoFJZzkrXIROwYTSyfpKNAQUdy 1iA90Azv75nmEnhAZRDImMw5rv0bqPXFF89kLQAi/zQinpRYyVRUVLBjrxmNzdAmy8Rz QxRxgeql/tCfbZyHa3ws/F/Ztej+fB7n54U5WeNIzEs8kppqOZBkQYmvJixqSuwvQV5x YSLgmnFLbRDnAlUTDsB0aGpUgq2ErpJ+zlisIZyWYyiIMmnZ2E6Cqf3xROlkgsvKngUK 9ngA== X-Gm-Message-State: AOAM531wuPosjCi3qaHELY2VEcSvXVY5GkGsZglYV5Sdz1QWfXzyhFdL KpUR1PQLF6U72xqTfQesAoGrDW6o3D8= X-Google-Smtp-Source: ABdhPJy6r7H/fIourLF1+8NJ43C0mV1E76hQIMflKvwcGwgVleSCL7Zsc92gjWfmdGQqJKKGrnwDUg== X-Received: by 2002:a62:8491:0:b029:2e9:c618:fa32 with SMTP id k139-20020a6284910000b02902e9c618fa32mr16419400pfd.15.1622622474745; Wed, 02 Jun 2021 01:27:54 -0700 (PDT) Received: from tim-desktop (203-206-15-89.dyn.iinet.net.au. [203.206.15.89]) by smtp.gmail.com with ESMTPSA id s29sm12142959pgm.82.2021.06.02.01.27.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 01:27:54 -0700 (PDT) References: <87wnrdqf6i.fsf@gmail.com> User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: suggestion to change default org-latex-pdf-process to latexmk Date: Wed, 02 Jun 2021 18:26:03 +1000 In-reply-to: Message-ID: <87y2bs6589.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622622502; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3XoAFk2pMyKbc2BTNpQJMq2MirlylaESJsOAhjQcPmw=; b=XTIwAEDkmiYPcVOJ1SgRFBeeE4AIK+v7RcNnLygZOspBZD7H5IMcpa0nnZv4ibZlq/sQyI CjPF63mTpPiLw/36qDVrrveVEMkfB2Av5rTJ2gITNZfX/SaTGsm7ZDqGCihwgqTLO9PNDo Swt1xB7ETVYsBFPaLziODGn1Nz1qv/qmNW2ltiG9Fd+yqhvhaKNb60CQe0b3ylUolR8H0o 2+Y0rX4a9syc15mSizcY9XHhmBLNxwPbQ2pBLSpTxqRH0qTSw56Ic4p/v5m73Agp7qbYg6 OAfx/HcdicHE9x+SQDKWrktzHSPeTXa2RYZmA/Go2u08p/XV+LbvjKFgmX4+vA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622622502; a=rsa-sha256; cv=none; b=dCBNAU2YqKcQ++Dp0lQZbyxiwRDcE8JPPvQW0eHRgOv/mnGysJF8SutRa7pnBX/KYgeF2+ PoccJn+5WuRWUNJ2TpiVMMrj7fBc7WRdoptvNAp2M0rAXppKDmebIYicsztS/NJFyolksB v/XlUtjlvJHlUVv/Co0TTYaPmP2NthRNMR5h8cgCcKRy7/sFbncAD+XNgIbHb4ZAQ7JmgK vaWSXWazrmp9EzGxvlVKsjFNZL4XvOXuac9IygFi8J0uq2CEIbUA6cxOMJaspq6JYT+v1F VKE9saZv/FJnb1CcQnr2c7UaWOg4MpjU3yB+3CYzsOEtM3smPnrSiDtKblW8vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Aqc+hQbB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Aqc+hQbB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A69D7A303 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: BTVrueVL58MO Stefan Nobis writes: > Tim Cross writes: > >> One reason is that latexmk is not installed on some systems. > > Just after starting to write that this is false nowadays I realized > you are right. :) > > See: https://mg.readthedocs.io/latexmk.html > > For macOS latexmk is distributed with the default TeX installation > MacTeX for quite some years (IIRC at least since 2012). And it is > working OOTB. > > As far as I know the default TeX installation for Windows is MikTeX > (is this still true?), which also includes latexmk but lacks the Perl > part (therefore Perl needs to be installed manually). But there is > TeXLive for Windows and as far as I understand in this case Perl is > also installed and latexmk works OOTB. > > A manual installation of TeXLive for Linux should also install latexmk > (and Perl should also be available on next to every Linux box). Only > some distributions bundle latexmk in a separate package - that should > be easy to install (but breaks PDF creation if forgotten). > > Therefore: latexmk is available on all plattforms and in most cases it > is already installed with the TeX system or easily installable. But > not in all cases does it work OOTB and requires more work like > installing Perl on Windows. > > In my opinion its worth to depend on this tool as it makes handling > LaTeX documents much easier. On the other hand it may raise the bar > for some users just to high. Hard to say. > > An alternative may be to use latexmk only if citations are found (new > feature, new dependencies). Or a wrapper that checks whether latexmk > is available and works (e.g. trying to call "latexmk --version") and > falls back to the old routine of manually running the engine and > bibtex/biber if necessary. The more I think about it, I think the best solution would be to update the code which sets the default and have it check for latexmk. If it is found, set it as the default and if it is not found, set the existing default. This would have minimum impact on users and allow those who have installed latexmk to get the benefits while not forcing those who don't need it to install it. -- Tim Cross