From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QMlsDNdf2GamfgAAe85BDQ:P1 (envelope-from ) for ; Wed, 04 Sep 2024 13:25:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QMlsDNdf2GamfgAAe85BDQ (envelope-from ) for ; Wed, 04 Sep 2024 15:25:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=cas.cat header.s=2023 header.b=Wr9Zeo9j; 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"; dmarc=pass (policy=quarantine) header.from=cas.cat ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725456343; 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=vrBep5sdB+JSrV9biEUsKd7lYnVnJz8ivIwvyKwbE94=; b=Z3AVerk6D7OpK6XsEku8SkZlhygr7gfrYNE8/F/SXdPcWKjGtl93L8Hh/XqJMfqrq/5reA Y4fYp0UrI7aMsYyjmiFwcCJleg1/ygYK8y8BO0l3Ev7Hv0KBhvTHXvxVTjZldTCo1pgej1 fEkok0AmKcIqw0OlizVsKuj+tu6aXjlNLp+8vgBLnoR+e8wsUlbPEs8ebL46UYxVXBhtft KpbfC/rl2yBpKQ7Lycw/t/XKKTqdZ9U7iNz1ElHd5oHuvXLu7ZQV4EVssSeaPH37kthR0Q MJhD0gHU0pP9Y/mDrCwNgI0GeX1ckF0kd41ZAZPP8A7niEmypg9ICHGZA+ubFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=cas.cat header.s=2023 header.b=Wr9Zeo9j; 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"; dmarc=pass (policy=quarantine) header.from=cas.cat ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725456343; a=rsa-sha256; cv=none; b=XHNWC2W6t6s/n8+gDrILdoydWDFnG2tnc9EZG6CTlH1riZrGNYuVUTBbNbe2wD5+yq2S+G BtNEausfbav7ltH/H+GAjkfdywnVOelmyMnBUEmP03UbYOFq41oi6AibzlVm9RXRv2r4FC JQJhU75R7D5C/ZVVwb7P14lWct8M1mpfAzV08WBFZxMHj7x5ohgLxEMcwE1Jqs2+Rr6tJx VlpbNITrLMUq49AZNmq8vX/Ci5GeOcYnWWAi+3k+cIex8soTV+Vz+ZxtEiriaMTRTgbCDd yN7nj9kUAXuUy0p7pfHoZI0/SM8LOGfvgBMsmsMjErydV811HHtzn4LsszaG1w== 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 0E7DF6C7B8 for ; Wed, 4 Sep 2024 15:25:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slq0D-0007t8-Px; Wed, 04 Sep 2024 09:24:53 -0400 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 1slq0A-0007jd-Tv for emacs-orgmode@gnu.org; Wed, 04 Sep 2024 09:24:51 -0400 Received: from cas.cat ([45.150.187.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slq08-0007UE-Ps for emacs-orgmode@gnu.org; Wed, 04 Sep 2024 09:24:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cas.cat; s=2023; t=1725456284; bh=JHh40EpKf4/8445RqNXl31MJIvftxVb9wlDA5m0dZzU=; h=Date:Subject:From:To:References:In-Reply-To:From; b=Wr9Zeo9jyjPKiMku/fcEa2ewr3MKU7XOtxXyekwJmkvMp3EetBzAuQalapwS765MU +HziIGPoDWQofuyj+jxOYpkmosNBX63e50hRIhN1GMn8Y9ydWYkiZtMAl9U6mH1Zsf ITmIr3Qv4eKn2WRXsDWnAyEON3RcO6xjKNkvXukP0KeV0UgqrZ7JqllYpUAkpWPNvC zXJMImzvOVcmToDY7UCuvS6LG2DNZsB2/4XpflxaSPGtTGbP7clZ4o3+f+AYO2jjJo 8WSh0GfKpso8Y9Rq5YDGzD26q1cfkwOX2HiqGAhKI2lgQmqLjDeniBUH6n8A5v2aG+ 6nv87xoG8qoNQ== Message-ID: <466d6ecc-4709-4db9-88f3-9be46e78c193@cas.cat> Date: Wed, 4 Sep 2024 15:24:44 +0200 MIME-Version: 1.0 Subject: Re: ox-latex: help: LATEX_HEADER from different subtrees collision From: pinmacs To: emacs-orgmode@gnu.org References: <224ef5a7-33fc-4467-b146-0899aa61b223@cas.cat> Content-Language: en-US In-Reply-To: <224ef5a7-33fc-4467-b146-0899aa61b223@cas.cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=45.150.187.15; envelope-from=pinmacs@cas.cat; helo=cas.cat 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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.06 X-Migadu-Queue-Id: 0E7DF6C7B8 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.06 X-TUID: c83c0q3Gy0Bl Hey! And this is trivial, but it took me a while to figure it out Of course, if you want to use more than one EXPORT_LATEX_HEADER for that subtree export, you need to use multi-value property [0]: :PROPERTIES: :EXPORT_LATEX_HEADER: \usepackage{bookmark} :EXPORT_LATEX_HEADER+: \usepackage{nopageno} :EXPORT_LATEX_HEADER+: \usepackage{siunitx} :EXPORT_LATEX_HEADER+: \usepackage{colortbl} :EXPORT_LATEX_HEADER+: \usepackage{xcolor} :EXPORT_LATEX_HEADER+: \usepackage[a4paper, margin=3cm]{geometry} :EXPORT_LATEX_HEADER+: \usepackage[none]{hyphenat} :END: Debugging [1] I also found that once there is one property EXPORT_LATEX_HEADER, subsequent `#+LATEX_HEADER` are ignored, that's smart! Cheers, pinmacs [0]   If you want to add to the value of an existing property, append a ‘+’ to the property name. The following results in the property ‘var’ having the value ‘foo=1 bar=2’.   #+PROPERTY: var  foo=1   #+PROPERTY: var+ bar=2   src https://orgmode.org/manual/Property-Syntax.html [1] near the .pdf you have the .tex to debug, and you can export again outside emacs with ~pdflatex~