From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4AtyKbNl7mGnTgEAgWs5BA (envelope-from ) for ; Mon, 24 Jan 2022 09:39:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YIQnJrNl7mGYDQEAauVa8A (envelope-from ) for ; Mon, 24 Jan 2022 09:39:15 +0100 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 565DF2BA36 for ; Mon, 24 Jan 2022 09:39:15 +0100 (CET) Received: from localhost ([::1]:47232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBusc-0005c8-6o for larch@yhetil.org; Mon, 24 Jan 2022 03:39:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBu3t-0000xw-0w for emacs-orgmode@gnu.org; Mon, 24 Jan 2022 02:46:51 -0500 Received: from [2a00:1450:4864:20::333] (port=40597 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBu3r-0000MA-BR for emacs-orgmode@gnu.org; Mon, 24 Jan 2022 02:46:48 -0500 Received: by mail-wm1-x333.google.com with SMTP id r132-20020a1c448a000000b0034e043aaac7so9588025wma.5 for ; Sun, 23 Jan 2022 23:46:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:to:subject:from :content-transfer-encoding; bh=WI74FRRGK3l+p1H0BT5fu3CAwJnUp2IlMKvHNCnwu3g=; b=Z3UbOqQSEYiiFTJWxxt7i0sFDsljLTrCfARTSy+yKQjdhXu11rZcfmAslBiZRHZDkO LAvE1XpCSsZPd8qgV62eQIys3YAUGZo2y9iCnmY+esnd34k18Rx9fw6gSu7JABGD/fHT yuCs6w9Y5fKT7Nq9ZfBJ+gkhdObuOB6LCQHBP4/WdscLOWvkRPbz5PEUzdJ9BUTXfOB0 pxY6H2NDHbDH3NPDlFmqkezpqwImizMiXsr1vJXlcEXPAU/+wg39mmhBJodDyH2nZb2Z MYtA3IN07avqrrhZ8VimseSDB+W0FzMXjgmQQUhrNw3TgSvd/Ppdt19NN+8D/nJaM9lW eN8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:to :subject:from:content-transfer-encoding; bh=WI74FRRGK3l+p1H0BT5fu3CAwJnUp2IlMKvHNCnwu3g=; b=krUPHWQPOOlA+qyL4ZSO8mOLgolRo3grwqJ5Es6tawmvrpZS+CS+1zk0ai5deyksN9 YtI4mQAOAt6WOVwMKNoLZHSA42sDgclYCcB/U1jggexGQw+yPxgEFvyn0vHBWpgX/DcE LT8k8VTiZhphyH7kt1NbSCTBQa+w1DcgOkHjkSEDuw/Dbiz3Bm79842rJTZvUosK1yLF SnkWo7Si0zaPgVXr+VJTyw+57j13pWYtf05niQbCF1EcC8D1SqhFVhR9OtXZ+09CO+fx au7YFF0OvSbbB3r8ffQnPrdM6WVAu1ax9H75f9l4GaNWq1saxrSzPoXyTpV3NbiJmVnz UW9A== X-Gm-Message-State: AOAM53152y+Y8TEtOYo3NtKJUAM2EoAP0blM4qZDUUtB02ybAAntz3O9 RICX31wvvrKbueqB3g15cxzdYZZh7n4= X-Google-Smtp-Source: ABdhPJwt2ihNhE0lWgGXMOOfwAAWUlsHwXYRVroZxXFO5CjdqtgxJUzMjDjtV+OaXNCd6ep4Rz2UEw== X-Received: by 2002:a05:600c:4e0e:: with SMTP id b14mr645062wmq.95.1643010404857; Sun, 23 Jan 2022 23:46:44 -0800 (PST) Received: from ?IPV6:2001:16b8:2dd9:5200:d4b9:f71a:8f23:5a70? ([2001:16b8:2dd9:5200:d4b9:f71a:8f23:5a70]) by smtp.gmail.com with ESMTPSA id y6sm12010016wma.48.2022.01.23.23.46.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Jan 2022 23:46:44 -0800 (PST) Message-ID: Date: Mon, 24 Jan 2022 08:46:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 To: emacs-orgmode@gnu.org Subject: Bug: DPI error when HTML publish latex block images [9.4.4 (release_9.4.4 @ /Applications/emacs/lisp/org/)] From: Daniel Guimaraes Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=dcguim@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Jan 2022 03:31:27 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643013555; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WI74FRRGK3l+p1H0BT5fu3CAwJnUp2IlMKvHNCnwu3g=; b=Beej8lMMlzGCgA1vSUPrKfVVhBEhI27tzidqo6kyNDDD949dnK1LRPsNFP90wrIbVPBgkn QBjDtLe14gQDU8iJxN8v92GlW8v+0gzIgdz0trPGhkjVj9wYLJVmm7+edNnnJB3BHQDL2S l7JlgBUVqNFrPCqgzmzruIB/n2c3RKKS+WVTQNlynOXCekfJCzp3qn+Ep1xL/h/bqSWEX1 IwR45ZOhBjsV4yHckklCqQGX7iiMZm2LpM18jAsxraMw7gpG+G+zr1rk6KzVIJEYfz77yP colnZdYdaoaYTBIYIrFClGi8+eH4KwHrqo9p4OSFO4RwvL8/2b0wnfQOt9G71w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643013555; a=rsa-sha256; cv=none; b=H6vC3VXs9wmE/W1rYYmlrD89XXAou/lEsOXBGHxc57ecKT5NBXykP0lRNeH277+3jgF8qJ 9GMPsBhH2ynikXfxr6RyX1BOeDNXjPQ/NwLD6u7p5DMFOmiM/8x2Hm61HXrvQmLDFVsxo/ 0Fto8ZY+ZzPojGH50lwkADRfTPZnGtwcqS/+54vGv51v8tZPkdapxSERR6QR1SScgTjklv xXduT4VfV7To8pTwkE316NcGgzSINgZ3r7aY4+Dj9Gw6pz4PYDg4e5pR9RX6N7txIlA/GO gjtEhJVzlO3TAOhZWxYUTNRWuzP4q1+C8ko02IKnctKanxtwf++afDvOuBbhdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z3UbOqQS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z3UbOqQS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 565DF2BA36 X-Spam-Score: -4.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: Hh5wRTLnmG3g  I am trying to export a latex tikzpicture, like the following to html: ``` #+begin_src latex :exports results :results raw file :file ex.png :output-dir ../img/ \begin{tikzpicture} \draw node[circle, draw] (a) {$a$} node[circle, draw, right of = a] (b) {$b$} node[circle, draw, below of = a] (c) {$c$} node[circle, draw, below of = b] (d) {$d$}; \end{tikzpicture} #+end_src ``` If I export with `org-export-dispatch` to HTML file, I flawlessly obtain the desired html. If I however, `org-html-publish-to-html` with: ``` emacs -Q --script build-site.el ``` Then I obtain the following error: ``` Debugger entered--Lisp error: (error "Attempt to calculate the dpi of a non-graphic disp...") signal(error ("Attempt to calculate the dpi of a non-graphic disp...")) error("Attempt to calculate the dpi of a non-graphic disp...") org--get-display-dpi() org-create-formula-image("\\begin{tikzpicture}\n \\draw node[circle, draw] (a)..." "../img/ex.png" (:foreground default :background default :scale 1.0 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) t) ``` My `build-site.el` configuration is the following: https://github.com/dcguim/dgpage/blob/main/build-site.el This could potentially be a bug in `org--get-display-dpi`. Emacs : GNU Emacs 28.0.50 (build 1, aarch64-apple-darwin20.3.0, NS appkit-2022.30 Version 11.2.2 (Build 20D80)) of 2021-04-16 Package: Org mode version 9.4.4 (release_9.4.4 @ /Applications/emacs/lisp/org/)