From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2MH6C+GtbWO2IgEAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 03:05:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MJsFDOGtbWOnUgEAauVa8A (envelope-from ) for ; Fri, 11 Nov 2022 03:05:21 +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 AA73512D99 for ; Fri, 11 Nov 2022 03:05:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otJP5-0005JT-4d; Thu, 10 Nov 2022 21:04:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otJP2-0005JK-IY for emacs-orgmode@gnu.org; Thu, 10 Nov 2022 21:04:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otJP0-0002av-9o for emacs-orgmode@gnu.org; Thu, 10 Nov 2022 21:04:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9579B240026 for ; Fri, 11 Nov 2022 03:04:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668132254; bh=yMY3XXVG3wSzTrORzvxwWrdjlZ4D+yePxDu7gEJzYis=; h=From:To:Cc:Subject:Date:From; b=UBk9x5RZOgQtN6IwDLN6tDoyWPo5x1WXkWExlaqE7M0XO3rNPEgJGwr5wj7/gDIns 77LltFlhOrb6GVCGPQ2kRqb2rpr6QXG+LqXj5vMWq/83mUIR7HYedSTsVwyTEs3RE5 4O03gYhJahWoeJAa8AJrFfxeOXBbCKTEYYqdzJ9bDucX05EbL2sEIe4NC24/GgsALL QsK3BLCbw8MrE+ztAgt6BjJPoYjIA/7rySpdlmUU/pt3isihpwZLIiPO8+nAkXIuEA YBvGBayg7mJ+6EZXNb8CDzxnUjE3+cg/2KmjM8VREJTMd6PwxYVJ6nhdaco07KiVBp Tjei1K98Rf7BQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N7hpM2k0Dz6tmB; Fri, 11 Nov 2022 03:04:10 +0100 (CET) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] LaTeX export in non-English language [9.6-pre (release_9.5.5-1087-g620a96.dirty @ /home/yantar92/.emacs.d/straight/build/org/)] In-Reply-To: <871qqbj848.fsf@posteo.net> References: <87h6z7jq4o.fsf@localhost> <871qqbj848.fsf@posteo.net> Date: Fri, 11 Nov 2022 02:04:52 +0000 Message-ID: <87v8nm9rgb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.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, 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.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-bounces+larch=yhetil.org@gnu.org 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=1668132320; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=5/3SBOxurQhozj32n/rT/2njag348pG0OLUX/oM2eFQ=; b=pDZYx/r/7LeVbpUMxbkCCx/fHgKeaId9CFOc4kC5DR5qkvRit1opCo9M/naOuiji5mrqlP uy6MFBx4rDw36SAvhDifFU0DXmY57tX8zYHxkA0toayf1BI3MkCr29cplV2Blq8r0YpLK2 DbIOzTE837ghu0zKB+F4I3VBidoRP6kiySzGWF+WJo7KsYsSyLLEnPQvVL8pTM1jq++bdL IPhPTlHbURy/uJeR2oEgBxOsy0qgWZ/YhHRE69Tz992d7+11QLUozi+4XnGBHtoEqO3rHs GMz5eUBH6By11DeIOD3ANJ71aSSQnAIx9Sido6MGlluIoin3LW5598xl5Fo/Gg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668132320; a=rsa-sha256; cv=none; b=S6O+xqxT9Fk9uZKmGTCTcGLrz/cH0HZdk9vzm/H8O9lyDM4AxAvo+tbTdaCwxr18FbUTgg wVeBup4/9HM6tfQyP0NID/S2dFaMh6f6JolKm0zPXkJ4k8a4EsW+C/1gmQhGyjRSNWIEj5 X3tlI/tFWCawua59BxQDChAFQJOwCjhVUdn3E14gDA6FE4Y/I9Hh3MlN8MRHNk8HbPWPDN Dib3WH9SLb1OMRGem+VxQVbUmTFb/K/ZpDJcTyXnea3mOf47mpqLRt5DPSRA0K0B707xp9 pqjzpLKiZq1bvPGTq0cgo1r24oTduIpXwigYWiLnaKUZU8XVsoG2+5GQf5lc9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UBk9x5RZ; dmarc=pass (policy=none) header.from=posteo.net; 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: -9.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UBk9x5RZ; dmarc=pass (policy=none) header.from=posteo.net; 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: AA73512D99 X-Spam-Score: -9.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: OI6huLWknb+j Juan Manuel Mac=C3=ADas writes: >> And exported to pdf (C-c C-e l o). >> Surprisingly, the output is in English. >> >> Am I missing something? > > You need to explicitly load babel or polyglossia: > > For polyglossia (`org-latex-guess-polyglossia-language'): > > #+LaTeX_Header: \usepackage[AUTO]{polyglossia} Aha! I missed that part in the newer manual. Note that the manual only talks about setting `org-latex-packages-alist'. Not the keyword. Maybe we can add the #+LATEX_HEADER example to the manual. > BTW I've noticed that the value of #+language is not case-agnostic. You > should put "he". Should it be case-agnostic? In the previous > implementation, when there were two language lists for babel and > polyglossia, neither was it. I think that it is a good idea. I do not recall common language abbreviations to be case-sensitive in other software. --------- Now, let me continue to act like an ordinary user and follow your suggestion :) I tried to add the header: #+title: Temp #+LATEX_COMPILER: lualatex #+LANGUAGE: he #+LaTeX_Header: \usepackage[AUTO]{polyglossia} \begin{equation} f(x) =3D \frac{8}{7} \end{equation} #+begin_src python :exports code for i in range(3): print("hello") #+end_src Then, C-c C-e l o And I get an error... Rc files read: NONE Latexmk: This is Latexmk, John Collins, 29 September 2020, version: 4.70b. Rule 'lualatex': File changes, etc: Changed files, or newly in use since previous run(s): 'bug.tex' ------------ Run number 1 of rule 'lualatex' ------------ ------------ Running 'lualatex -interaction=3Dnonstopmode -recorder -output-directory= =3D"." "bug.tex"' ------------ Set environment variable BIBINPUTS=3D'.:' Set environment variable TEXINPUTS=3D'.:' Latexmk: applying rule 'lualatex'... This is LuaHBTeX, Version 1.13.0 (TeX Live 2021 Gentoo Linux)=20 restricted system commands enabled. (./bug.tex LaTeX2e <2020-10-01> patch level 4 L3 programming layer <2021-02-18> (/usr/share/texmf-dist/tex/latex/base/article.cls Document Class: article 2020/04/10 v1.4m Standard LaTeX document class [clipped] (/usr/share/texmf-dist/tex/luatex/luatexbase/luatexbase.sty (/usr/share/texmf-dist/tex/luatex/ctablestack/ctablestack.sty)) (/usr/share/texmf-dist/tex/latex/polyglossia/gloss-latex.ldf)) (/usr/share/texmf-dist/tex/latex/polyglossia/gloss-hebrew.ldf ! LaTeX Error: File `luabidi.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name:=20 ! Emergency stop. =20 =20=20=20 l.3 \RequireBidi =20=20=20=20=20=20=20=20=20=20=20=20=20=20 440 words of node memory still in use: 3 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 4 attribute, 58 glue_spec, 4 at= trib ute_list, 1 if_stack, 1 write nodes avail lists: 2:13,3:2,4:1,5:2,7:2,9:2 ! =3D=3D> Fatal error occurred, no output PDF file produced! Transcript written on bug.log. Latexmk: Missing input file: 'luabidi.sty' from line '! LaTeX Error: File `luabidi.sty' not found.' Failure to make 'bug.pdf' Collected error summary (may duplicate other messages): lualatex: Command for 'lualatex' gave return code 1 Refer to 'bug.log' for details Latexmk: Examining 'bug.log' =3D=3D=3D TeX engine is 'LuaHBTeX' Latexmk: Errors, in force_mode: so I tried finishing targets --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at