From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id pq2RMjgYt2AqcAAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 07:33:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mDtULTgYt2AiSAAA1q6Kng (envelope-from ) for ; Wed, 02 Jun 2021 05:33:44 +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 02ECF27DCE for ; Wed, 2 Jun 2021 07:33:44 +0200 (CEST) Received: from localhost ([::1]:36168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loJVe-0003gX-9z for larch@yhetil.org; Wed, 02 Jun 2021 01:33:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loJVI-0003gO-H9 for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 01:33:20 -0400 Received: from basilikum.nobis-admin.de ([89.238.71.130]:36214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loJVF-0005WQ-Tq for emacs-orgmode@gnu.org; Wed, 02 Jun 2021 01:33:20 -0400 Received: from bohne (p200300cd67464800a8d64506226aef31.dip0.t-ipconnect.de [IPv6:2003:cd:6746:4800:a8d6:4506:226a:ef31]) by basilikum.nobis-admin.de (Postfix) with ESMTPSA id 9B3CC6D80006 for ; Wed, 2 Jun 2021 07:33:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snobis.de; s=default; t=1622611992; bh=GpWzSzbtJlfS1x3uKZcl2b9wtGX9qMdiBkQCSpZSClQ=; h=From:To:Subject:References:Date:In-Reply-To:From; b=Kx8iAb7diY1xzOAmniJCDkNnDpD1svUpafBDWc8ErthU0J/+lQ7ey4revx6jWJJTV P0gjQz/6xmYMtQFeKYvm0XD4AefehhJe9CO7tuRDhdjHquLOXMYxKy5Z/eFrdtyJAg gMi72XvdbfKb7GoVlVOHqKrulZvIllKjsgGI1gKo= From: Stefan Nobis To: emacs-orgmode@gnu.org Subject: Re: suggestion to change default org-latex-pdf-process to latexmk References: <87lf7tbkza.fsf@gmail.com> <87fsy1bjpk.fsf@gmail.com> Mail-Followup-To: emacs-orgmode@gnu.org Date: Wed, 02 Jun 2021 07:33:09 +0200 In-Reply-To: (Bruce D'Arcus's message of "Tue, 1 Jun 2021 13:41:15 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=89.238.71.130; envelope-from=stefan-ml@snobis.de; helo=basilikum.nobis-admin.de 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, SPF_HELO_PASS=-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=1622612024; 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=GpWzSzbtJlfS1x3uKZcl2b9wtGX9qMdiBkQCSpZSClQ=; b=uCmMtyO5zBTKv8Z7CDmbhvCwRzxVMB6ydnY2RPueIswKo4cyqRYQB+/gJootuEltryiDc6 KJBFz9ozNr/IP+2RS4cpwhid45MXP2qKnz3xeGhJI8N7WSAjs2PisalAWw2iiN3R2fDxnX LZ8GlLHYC4YuxvEpz/3zq3rXKQKEDbP6KSW3wapJQ8gEwN6mZS+HbX4mwd9AI2J2V5gh0O kKqBLsPNXcjDCYfyUc4R6P0Upsu0e72hibHJpN1+2oI1u4n8FU611YfR3QEWwR2g0xZN7r YljHeYEqY+yJ1a+0IaoA7YHIIBH2ain/4927jcX+ezw0RDfraFM+LaHY02lPcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622612024; a=rsa-sha256; cv=none; b=GpPQBvFw5dw0TfYbq47Vymt79Q7ScMSie9Tz4kCjk/ecctXEsAXEFuclCItGg/VLQYb01C O+m6h4FcITvg/PUEjSeRRO4ep5u4An5yctUW6OiH+URBC8WauuWhwIJ3E7nQwanLQ0qu1C ex86kEnnwHCDOmdAGQcmG7X9ymjvnyb+X0BXxpK8ix7Q2MhrtGe6DCbgorWymKeGUNJY2r a3p14keGeX0+9k6PjSlGn6Q8+edMFpVw4smJ8cay6CSoVzKy80Stzsya0xSQCnc207v1aK JwngGWqT3E/mybs3MIKOalxUISOhnYl6WcwaOS/Lf7oxiJoIeW5FDVQbOWD7iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b=Kx8iAb7d; 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=snobis.de header.s=default header.b=Kx8iAb7d; dmarc=pass (policy=reject) header.from=snobis.de; 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: 02ECF27DCE X-Spam-Score: -3.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: A62Z268OsHhb "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. Yes, I would also recommend latexmk (it may also speed up PDF generation, because in quite some cases a single or two passes suffice and latexmk is quite good in detecting these cases). -- Until the next mail..., Stefan.