From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uG8XKkx02GJlXQEAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 23:31:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OK4dKUx02GLzAAAAG6o9tA (envelope-from ) for ; Wed, 20 Jul 2022 23:31:56 +0200 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 601EE191F6 for ; Wed, 20 Jul 2022 23:31:56 +0200 (CEST) Received: from localhost ([::1]:34778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEHIQ-000514-Gr for larch@yhetil.org; Wed, 20 Jul 2022 17:31:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEHHg-00050j-Cc for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 17:31:11 -0400 Received: from mout01.posteo.de ([185.67.36.65]:47661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEHHW-0000XB-2R for emacs-orgmode@gnu.org; Wed, 20 Jul 2022 17:31:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7A976240028 for ; Wed, 20 Jul 2022 23:30:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658352649; bh=mYLodZRM8GVpdZVjf87rBFSywx3dYiSdn0Ix1DN4wPk=; h=From:To:Cc:Subject:Date:From; b=A9p82AVM5J4MQh8MRxYcf76X8rJyBb2l21Ohd8RVO4M30hiWHBCi+a2bCehp+zash 7VsVokS6s7Ga46aqfgahXkLI6bipFssNFHO4K3igzfFGKNgc9lLvXPi1yWnZIO7d34 Sj2r4xyqNk71RRBjuqb+/IX3nPGy6sJxo7RjjS7K0z9vhDlWoPJLx9u+iy0bPjjQ+d jEJB/7Gha+frPOsGS+4/IIMjzFDLIqzlXbXXPTA955V1wxY8on4CzNflAwjLTvAJwu cWZaQUrvNvOAy9frujf1hdzkQ8glGQIC+F9IIJELvEZXflY11AuTqZT9TMRyZDlxGd EB58tdUd139dQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lp8543f2Jz9rxG; Wed, 20 Jul 2022 23:30:48 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Max Nikulin Cc: orgmode , Ihor Radchenko Subject: Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists References: <87sfxiw2jp.fsf@posteo.net> <87czeduxnz.fsf@localhost> <87lesvlvos.fsf@posteo.net> <87bkto83n7.fsf@localhost> <87v8rtno2j.fsf@posteo.net> <87h73c527u.fsf@posteo.net> Date: Wed, 20 Jul 2022 21:30:47 +0000 In-Reply-To: (Max Nikulin's message of "Wed, 20 Jul 2022 23:12:14 +0700") Message-ID: <87mtd3a2uw.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658352716; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=mYLodZRM8GVpdZVjf87rBFSywx3dYiSdn0Ix1DN4wPk=; b=gBY5tSq2XISF83S2+4UEOPX4QBPFE2gdY1o6Fgyj88Vd7fm+SdXcBgxQIhjFhV7BUVAy7U ZkIHihZELzJO9Z/oeyQ9oFGC296gVMhPbz8mQ92IjOs2stbHlh4rGYkbzQWiLupoj6cXcn +ejx2Jlr7hkdJboiYKWsULB7/XePb7OExR3TJi7Cz0DtUwaSNReTic9RFbuSm+uWvvD0HX LOrANnLsTPu0GeLo3c/y1fXlYISdOQhOGTbFZJGYPVTUSKbrQsk/jCsdd0rik9/IDjHon1 POan8g8ih8Yq8LPs4uEV9Ea2EEBo4KePXJRYA2fiQXpSsYdFg6FhNSachcFNTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658352716; a=rsa-sha256; cv=none; b=d2CnF7qxn7dulymEP1Q5bOt64OmVN20TvFeAw7LML1SjbbTg6+NnI1oDlvjpo7uid47PNr w8hQYZqYHEEXSoREGdHrM7W2gvTNq/lII0uMgwPkWT0eG91mTVwr/hVeC/s+4enOvsdHvV 317/R/rcdelasnuEXB56ho14Yv38EhnSYsT9pTqyiAzpMNhee5wS0Rb1TlHiXy1u9FOQhz F+B9BsTdQiBhiOOFhgh2hPxFim6VE0olLZoyvksCpsSdHigptLN5TSzysR7YE+4qi9qeqk tWHDa6iMwSN7WzgmWaZreondanNdgXceA/xFhbpAnoxFCRSMEH6zVwTUX3J47w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A9p82AVM; 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: -7.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=A9p82AVM; 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: 601EE191F6 X-Spam-Score: -7.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: wNhrOELvyP4E Max Nikulin writes: >>> On the other hand I would consider adding babel by default without >>> explicit header. To suppress loading users may add >>> #+latex_header: % \usepackage{babel} >> I don't understand this very well. What would happen, then, to users >> who >> prefer to use Polyglossia, or those who prefer to explicitly add babel >> or polyglossia code? > > Certainly if polyglossia or explicit babel related commands are > detected then default babel configuration is not added to preamble. > The idea is to add babel if a user have not expressed her intentions > explicitly. Ah, I see. I think it's a nice idea. I guess a basic babel setup would be added to preamble. Something like: #+language: lang --> \usepackage[lang]{babel} But I think also users who use custom preamble templates included in org-latex-classes or those who load the entire preamble via an external file (a .sty or .tex file) will want to avoid this. Maybe it would be nice to add a defcustom, with the following values: - load babel with the value of #+language, when there is no explicit code from babel (default?) - load polyglossia, idem but for polyglossia - nil - any other arbitrary string? If the user loads babel or polyglossia explicitly, with AUTO and all that, then the current rules in org-latex-guess-babel/polyglossia-language would be applied. WDYT? Best regards, Juan Manuel