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 6I1IBUqI7mA3EgEAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 08:46:34 +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 Qhr/AEqI7mC3VQAA1q6Kng (envelope-from ) for ; Wed, 14 Jul 2021 06:46:34 +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 7610FC8EA for ; Wed, 14 Jul 2021 08:46:33 +0200 (CEST) Received: from localhost ([::1]:47370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3YfA-0000v3-Km for larch@yhetil.org; Wed, 14 Jul 2021 02:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Ydo-0000uu-In for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 02:45:08 -0400 Received: from basilikum.nobis-admin.de ([89.238.71.130]:36976) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Ydh-0005ml-3c for emacs-orgmode@gnu.org; Wed, 14 Jul 2021 02:45:07 -0400 From: Stefan Nobis DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snobis.de; s=default; t=1626245094; bh=nl0pTAoNkmAPNuO/ll5Fm60PiW4edqh/1d92lkwD+YI=; h=From:To:Subject:References:Date:In-Reply-To:From; b=XYokvU/0peMihYgFBeDwyymQRFnVDGUQBDaigeziaojolX9yLTkqaQJGxkGleV6vm RXBUJ5eknUcGc3k+kOF2vrnYgobNhdSqKvZsbEUbkQ38bUsGvje+YxoYL2/1lUdxKg F8zB9uaE51G4rYlG5yeU/FJt+WMqsIr8Scyk5p0I= To: emacs-orgmode@gnu.org Subject: Re: org-mode export to (latex) PDF References: <5A0DCCA5-7B49-46CC-BD49-B5F0D46DA5B8@traduction-libre.org> <87pmvq8ef2.fsf@posteo.net> Mail-Followup-To: emacs-orgmode@gnu.org Date: Wed, 14 Jul 2021 08:44:53 +0200 In-Reply-To: (Maxim Nikulin's message of "Tue, 13 Jul 2021 23:53:33 +0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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=1626245193; 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=nl0pTAoNkmAPNuO/ll5Fm60PiW4edqh/1d92lkwD+YI=; b=Z2aRpZCSBAag78XBdUkCRjoE6Rg35TL0UudLG6r1CG7eYaHRbc4c6FD8TCxyB3ISDyESsP n7BGis8khNFT1GppZDuAAdnZP5iNFLHEA3TDiAJuJI7SbWWj/WUzyQkOzpXNIxtRidwb3C k8/J+dhLjNUE11bIlyfFhuXv0VIU/2nucc3I5qe0AVjf0EyWqkfyQwWu7dljXMj4pDxPFF Vp9QCm0caf3oQTVzZCIeWIn9HDxIgJ6pFYJGCPdvhURWokEcmd/N68n0qvH5r6Uvce0U/G +KJUEqGGW9id72rq76FjQ0aS5wmvtiH/kbycMIx3qwm8c7YXvobYycgWVv9vtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626245193; a=rsa-sha256; cv=none; b=sDAtmfyMCDd5TEWjwPH9zFnWKsG/nz4mp6OM3M+H26uFHAkS85oJzso8DUsOlNgZIzE2Oj GE4v1S/q9gw5ScckAnulRqe+VzL/0di8XBBNA0xQRGP+YhCELhWY3TGvN7Jm5wHEWKO6/e qTLJU9zyWI2StYs9H2WtxVRs/P16nNJcw82w/DkPILpPsc6vSPKRV/8+z6cv1wWEHmVyWe R2GsINwaQGuQvDkDg38LXt2wDVHci1zRfAQxhoA7gopVBnscaHESQt2GVv1OTSbYAKpEve 7ckkhKlCuf1IVrERopYyeHf9i8Qg3AtcAF3eqRusF3uHA1Eli+RbmQ3yD6zx+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b="XYokvU/0"; 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.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=snobis.de header.s=default header.b="XYokvU/0"; 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: 7610FC8EA X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: iXXlfFT2aw22 Maxim Nikulin writes: [utf8x] > Maybe, I have seen such warnings. However I have tested neither utf8 > nor utf8x on real examples. That is why I am unaware what can be > broken in particular. For small examples with various symbols > outside of ASCII, utf8x may give better support. The main point: utf8x and the associated package ucs are not maintained for quite some time (utf8x seems to be last changed in 2004) and as far as I understand have always been more of a workaround than a solution. But I'm not an expert in this regard. Nowadays the LaTeX kernel and input encodings like (plain) utf8 are much more powerful and extensible and do play much better with other packages. Especially in the last few years the unicode support has become much better (for all engines). > I do not like that it is necessary to specify *all* fonts, You need to specify all fonts that you want to use and that deviate from the default (Latin Modern in the case of lualatex). How else should the system now that you want something else? And in the case of cyrillic: Sadly, the default fontset Latin Modern has no good support for the cyrillic alphabet. But the name is at least a small hint. :) In LaTeX there are 4 groups of fonts: the main font (usually a serif one), a sans serif font group, a monospace font group and the math font set. If you use all kinds of groups and want differ from the defaults, you need to say so explicitly. On the other hand: If you do never use e.g. monospace glyphs you do not need to specify the monospace font. So here is a minimal version of your document that should work: #+begin_src latex \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text} \begin{document} Test¹ of superscript and ½ fraction. \textbf{Теорема.} \emph{Пусть} $\quad α → ∞$ и $\beta \to \infty$. \verb=Катет= и \textsf{гипотенуза}. Åå. Text Greek α. \end{document} #+end_src The package "unicode-math" should always be used with lualatex and xelatex, in order to support unicode math input. In your minimal example neither polyglossia nor babel are required, but explicit font selection is necessary to switch all font groups to a fontset with cyrillic glyphs. >> (setq org-latex-default-packages-alist >> '(("AUTO" "inputenc" t ("pdflatex")) >> ("T1" "fontenc" t ("pdflatex")) > I just have realized that fontenc behavior should be similar to > inputenc and babel, e.g. something like \usepackage[T1,T2A]{fontenc} > should be used for Russian. Yes, indeed. It would be nice to support this all from Org. So if one chooses russian as language, that (in case of pdflatex engine) an option "AUTO" for "fontenc" is supported that get expanded to "[T1,T2A]" and that the necessary font selection is also generated (if not overriden with an explicit set choosen by the user). But a full fledged multi-language solution, that supports more than just latin and russion may be quite a challenge. -- Until the next mail..., Stefan.