From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iNobMUO4rmBNVgEAgWs5BA (envelope-from ) for ; Wed, 26 May 2021 23:06:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GBXTLEO4rmDuPgAA1q6Kng (envelope-from ) for ; Wed, 26 May 2021 21:06:11 +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 EE93511119 for ; Wed, 26 May 2021 23:06:10 +0200 (CEST) Received: from localhost ([::1]:55602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lm0jA-0001DK-Lg for larch@yhetil.org; Wed, 26 May 2021 17:06:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm0in-0001DA-9I for emacs-orgmode@gnu.org; Wed, 26 May 2021 17:05:45 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lm0il-0000RC-4v for emacs-orgmode@gnu.org; Wed, 26 May 2021 17:05:44 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 52FF020003; Wed, 26 May 2021 21:05:39 +0000 (UTC) From: Nicolas Goaziou To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: [PATCH] ox-latex.el: add LaTeX attributes to quote block References: <87h7is49cm.fsf@posteo.net> <875yz76uem.fsf@nicolasgoaziou.fr> <874kerf0hu.fsf@posteo.net> <87y2c2ajzw.fsf@nicolasgoaziou.fr> <87v976ler8.fsf@posteo.net> Mail-Followup-To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= , orgmode Date: Wed, 26 May 2021 23:05:38 +0200 In-Reply-To: <87v976ler8.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Tue, 25 May 2021 20:50:19 +0000") Message-ID: <87r1htdx3x.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@nicolasgoaziou.fr; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode 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=1622063171; 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; bh=OexLQ9Yx3ai9P6mLMBZe7vQfZsBpfjwWGM9X57dHWtU=; b=A0YFvd1/SClc7IewTEpP64eZgMWR4l/BQepkpLmL76b5R2PpBwMiF/WllrX79nNY0CWbwz 1mXD11zjUcEvtKq5VDdCL3hcZ1A4OTZwzi4uBXxBCH4m/DLLxEiuyXZawwahgOXcE9K0Uc hkIt0BtJjblfB3Tm78zLz9JvAL8AcxSCsVHyuFbr09OXioDNbvIfeq1Gf3owUyh1h8q0ZQ gbbsbqd6kQnuUDOSZ9992bKJVvmCgbcJOomk4GTz6hybVtmJ+vQUj/3Qs9LDuciIm7osi8 O28FZozOixpo3B/ZHofFAHkx9QLGmDq3+9c1SgESVNs8BNoF59oAEA3jhHl0Mg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622063171; a=rsa-sha256; cv=none; b=EAhx25uSyn/D7GSZk56oojEcdReRplmMOXIg+ESoseYer5oZOT1YQtKjjiWND/r/pmvgia ZRFpM6Gd3tNJtgbmtDNu/YgbdYkzsRvPvx6I7EhdsD9NfjP9KqL7jEOSC44bU/2lmjBmZZ IGrqcR+/dskUpGEFA9ssx/2VpIqtqkMxZr4YiL6GaGEZ4KZ8HjhKFrD0z4+D8SImxLWXD4 g8sEA1LHnz5UoK2spH6P8TZ4bXfIjtRTnXZDj/HYs0hgBwofpGRByGX31oZbZ9AwW7MeOG Y6UK+0Qk7kBMQfoHOo/DAkHUIg55yhe15pD6arYPPZ9x8hIeUuSEAnSoJkOZbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: EE93511119 X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: XhwEnxlAZMvB Hello, Juan Manuel Mac=C3=ADas writes: > Here is the updated patch, with the corresponding additions in the > manual and ORG-NEWS. Thanks. I cannot apply it on top of master however. On what commit did you base it? There are also some nits, but I can fix them when applying your patch. > +#+cindex: quote blocks, in @LaTeX{} export > +#+cindex: @samp{ATTR_LATEX}, keyword This is not related to your patch (it can be encountered elsewhere), but the index entry above is too generic to be useful. Maybe=20 #+cindex: @samp{ATTR_LATEX}, in quote blocks would be better. > +#+cindex: org-latex-default-quote-environment This should be #+vindex: ... > +The LaTeX export back-end accepts two attributes for quote blocks: > +=3D:environment=3D, for an arbitrary quoting environment (the default > +value is that of =3Dorg-latex-default-quote-environment=3D: =3D"quote"= =3D) and ~org-latex-default-quote-environment~ and ~"quote"~ since they both refer to Lisp code, not Org syntax. > +=3D:options=3D. For example, to choose the environment =3Dquotation=3D, > +included as an alternative to =3Dquote=3D in standard LaTeX classes: > + > +#+begin_example > +,#+ATTR_LATEX: :environment quotation > +,#+BEGIN_QUOTE > +some text... > +,#+END_QUOTE > +#+end_example Note that you can currently write, perhaps more elegantly, #+begin_quotation some text... #+end_quotation > +To choose the =3Dforeigndisplayquote=3D environment, included in the LaT= eX > +package =3Dcsquotes=3D, with the =3Dgerman=3D option, use this syntax: > + > +#+begin_example > +,#+LATEX_HEADER:\usepackage[autostyle=3Dtrue]{csquotes} > +,#+ATTR_LATEX: :environment foreigndisplayquote :options {german} > +,#+BEGIN_QUOTE > +some text in German... > +,#+END_QUOTE > +#+end_example I don't know if this example is a good illustration because you can currently achieve the same with: #+attr_latex: :options {german} #+begin_foreigndisplayquote some text in German... #+end_foreigndisplayquote Are there use cases that would be better than using special blocks as in the example above? Regards, --=20 Nicolas Goaziou