From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eLEtNXemt2AvFgAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 17:40:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wJlNMHemt2DGcQAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 15:40:39 +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 55AA11611F for ; Wed, 2 Jun 2021 17:40:39 +0200 (CEST) Received: from localhost ([::1]:46776 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loSyz-00071b-Sn for larch@yhetil.org; Wed, 02 Jun 2021 11:40:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loSyF-0006zQ-NJ for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 11:39:53 -0400 Received: from mail-io1-xd31.google.com ([2607:f8b0:4864:20::d31]:34585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loSyB-0003L7-2a for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 11:39:50 -0400 Received: by mail-io1-xd31.google.com with SMTP id 5so3024766ioe.1 for ; Wed, 02 Jun 2021 08:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:references:from:subject:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BKqYlqx6a+wHtR5LdA19yns3VzThSMMNwF50X3mWHf8=; b=JkgXy1XFK4AzCCwEAx3H2WC0HFPMaCzjTsVHHTeaG2R6PpkkViG84TVSCsv01DBn/+ SasgKv5sb5ohEBGC9JxErUOz/p10Hke3pP6zbR30Z7ABXysPSXjxexGiXRw8c73Q5UVi YateTjcwBHXh2pEpl78F/s6VEAfRacBUTl7yAYhHvuX6yuQkSmG/H9i0M3Ur1Pcw0nA9 7SoahRDJe+nhrhxcfvjjiQJYdrbi8OJ4Ty9PCts4Fol504c/e/ny7vDx0uh6Lg+5LeQ4 OqNOhhpTRPmGNnFrwgK5OCRxJrrBMUQTXQBBsmg4OR1bxzFrYgxKWhv5KmNqV3SxbPSD QxEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BKqYlqx6a+wHtR5LdA19yns3VzThSMMNwF50X3mWHf8=; b=W0NlBFDvtFtUQwXkBcg5CCpk32DJ/jbDIYQmEzzEIHHQbaNnV/fb/CTGpwnj+/J+qc JAve735bhJToLuvpNEk/ZJgwmUTEYp6a+UXxAP0oNRf2qA9UXnwAjTiPiOZrMI/p5z6n /ThijPJp5GcsN4Z+HBNglzxkCsaek/whwMHeMXbdBFNKdrjUKcABt0DxgDafl6y0fmWJ CfHWnXY6JLELI20q5mXmjkt0bIfzA6pdA20PvJr6z6b5JQ84knulSSXAKMf7dYDKrLOb dx7MSWKa7eD04Iz/eoiSf2trjB3ImXiM9p88N7swOiQLElLFAO6gGvVBNzj9wf3PSQFq 0a7g== X-Gm-Message-State: AOAM533m9LYu+e1QXCsOMqDkcKKkBaRBLwaSgCyWVL5rFCrQIbDzYPxy xR2tlIyC3y+G0IDI+/QXpeYCM/HkWBY= X-Google-Smtp-Source: ABdhPJwRv45sQ+fwtkoVuuXSnbR8tbUZjhhiWEbsXoJ08V9oUytHwnRwTUVvwJN+W8idzxSUmaW5kQ== X-Received: by 2002:a05:6638:3395:: with SMTP id h21mr31130276jav.44.1622648385484; Wed, 02 Jun 2021 08:39:45 -0700 (PDT) Received: from ?IPv6:2603:6011:2807:283d:b7bb:6b99:f3f4:e767? (2603-6011-2807-283d-b7bb-6b99-f3f4-e767.res6.spectrum.com. [2603:6011:2807:283d:b7bb:6b99:f3f4:e767]) by smtp.gmail.com with ESMTPSA id w6sm182177ilu.47.2021.06.02.08.39.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jun 2021 08:39:45 -0700 (PDT) To: emacs-orgmode@gnu.org References: <87lf7tbkza.fsf@gmail.com> <87fsy1bjpk.fsf@gmail.com> From: Scott Randby Subject: Re: suggestion to change default org-latex-pdf-process to latexmk Message-ID: Date: Wed, 2 Jun 2021 11:39:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d31; envelope-from=srandby@gmail.com; helo=mail-io1-xd31.google.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, NICE_REPLY_A=-0.613, 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=1622648439; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BKqYlqx6a+wHtR5LdA19yns3VzThSMMNwF50X3mWHf8=; b=LRUR+B2DRXjkRgqEEeRE/DHrQ3NjZRBPraEUKiceDALotejUm//tGUFL3mol7Hmw6MqH3M PJEdoLFxFk6TDCw053rB1dTyn6gSJJ8WVMdXC9G6ZXem0hB4B5LmLSpcUu9tN65Ec/8um+ DPj1feFfAw3ZhMw5b8jlgphruNq4D28C2p9xUCELXMQk/sK128TXctEnTlPghoe4M3HM8I ghT2QMMboVzMS8L3rX6QfXoftaE/ilGrrqX/ZaeiGANKtGy1uucHc2MeijPaWlbSwQn3If vgMQDunISmY+JFR6pL9To89mB7y+yJROZRWe3E8o8kYTrgBC/Doa5x1YQDSAMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622648439; a=rsa-sha256; cv=none; b=MNxBIEb5u1GecfQEcFtnoCnucE5bxeOqsz4zbMR2HzHTUaPl6+3+WMwqtR7y6mtixUoCkh qaf0sJskqojOD87yeMZCaaBhZrJ3ssp70GkymqfHJ3i0enPiRM/0OXkXGIpNrgIg/ihmek lLXyqUXmvW8nn/thH7+inYhRj/i5x5DsUkSWPt6ekDsrxeBSqi3AjQp6B8JCgWMokIfGvh nT/yMgSJCSEGGKNsMM9ZPwjRkjC0DJihAl8KMi9hDE8iCasgRMrtE+pY1Rrq048fwkoY3i J5Yljif9cYZr+PWSRrfbt6Nonn3fUqVK5MtyvIF8H1SgfCVCHqu1sQWfY16rIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=JkgXy1XF; 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=JkgXy1XF; 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: 55AA11611F X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pvp6GRsdHNdu On 6/2/21 1:33 AM, Stefan Nobis wrote: > "Bruce D'Arcus" writes: > >> Here's the current command for the "latexmk" option: > >> "latexmk -g -pdf -pdflatex=\"%latex\" -outdir=%o %f" > >> ... and here's what you have, minus shell-escape. > >> "latexmk -f -pdf -%latex -interaction=nonstopmode -output-directory=%o %f" > > The option "-interaction=nonstopmode" forbids user interaction (like > asking for a missing file). Without this explicit option latexmk uses > "-interaction=batchmode" by default - in this case some diagnotic > messages to the terminal (not log file) are suppressed. Thus the > default option from latexmk might suffice. > > Regarding "-f" versus "-g" I personally would slightly prefer "-f" for > performance reasons. With "-g" the document will always be newly > generated, even if nothing changed. This is only useful if the latexmk > config (or some environment variable) has changed. Other changes > should be detectable by latexmk, so "-f" should suffice. > > The options "-output-directory" and "-outdir" are synonyms. > > Regarding the choise of engine: "-pdflatex=\"%latex\"" explicitly sets > the command (including options) to be called by latexmk, without > letting latexmk know that the engine changed. Using "-%latex" (e.g. > the option "-lualatex" or "-xelatex") lets latexmk know that a > different engine should be used. > > This matters at least for xelatex, because latexmk can utilize some > optimizations if it knows that xetex is used. In this case the first > runs only produce .xdv files and only the last run will produce the > full pdf to save time (see also option "-pdfxe" which is triggered by > "-xelatex"). > > Therefore I would tend to use this call: > > "latexmk -f -pdf -%latex -outdir=%o %f" > > All other aspects of latexmk should be configured via config file > (IMHO). > >> In any case, whatever the command is, clearly it should. > I'm no longer sure that a change would break my ability to export to PDF. I'm using Linux with TeX Live, and latexmk is available. I'm willing to try changing org-latex-pdf-process to one of the above suggestions, but I have some questions. I've never used latexmk, and I really depend on Org to set things up so that they just work out of the box. It took me a long time to figure out how to get Emacs to find TeX so that previewing LaTeX fragments works (the solution is not in the Org manual). (1) Which one of the above suggestions should I use? I don't want interactions when I'm exporting. I don't want to have to mess with a configuration file either. (2) How many shell commands will org-latex-pdf-process need? Right now there are three. Replace those three with just one latexmk? Scott Randby