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 ms11 with LMTPS id 6KGGCGGTUl8fCQAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 19:20:01 +0000 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 mdhvBGGTUl/cRAAA1q6Kng (envelope-from ) for ; Fri, 04 Sep 2020 19:20:01 +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 15AAD9404E1 for ; Fri, 4 Sep 2020 19:20:00 +0000 (UTC) Received: from localhost ([::1]:50342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEHFf-0002Vf-17 for larch@yhetil.org; Fri, 04 Sep 2020 15:19:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEH8A-0007ES-A6 for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 15:12:14 -0400 Received: from mail-ot1-f51.google.com ([209.85.210.51]:40292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEH88-0001OF-9C for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 15:12:13 -0400 Received: by mail-ot1-f51.google.com with SMTP id e23so6849669otk.7 for ; Fri, 04 Sep 2020 12:12:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=dDCygQ/lLwNnpXAcGitbWlS9/1IagfsowYCYIOzsdGI=; b=GGHCN2qYUWNeMT/J7gHP/BuzuFnWHyjT64NyI4OlP0D9dFn0MNrKbF5Sow48eei9JD ZGmJlJYEE+dHnk/tIGQTd+jb0yA4n8fc+cjjp1A7dZLRKMrJ/i40gJ7XPUoSS8FpHHHx OKMDrxiuMvNQDJAwqnjHHjkIlSMhD63p/xkRBgkjNXhqx6TmFv1PHPHQplL5K7y5Ujal gL18bcpbUE+Ymq4HHl1WuBZITT5baXE+3QFvMT5Si2ZORWgiT/7bNNGLYUZzHiT3OUmp QZ/h1dEFM+TWBEglTTFuiqjxez3CGg6iiUGoPYffyYxIZDkpsZd9bLlNTQrz4l21Jah3 S++Q== X-Gm-Message-State: AOAM530IFeX+AZ2PMb3MOYmd6lM1UH23cj8DS9oBdnSMQm/H38585qkM diRFqDBCJuBRGJpLmoIjWa8THJPLqiRsvQQ6sHLRu4xqK8d7SQ== X-Google-Smtp-Source: ABdhPJzzV6q0ghJUBhEspUqDYWpF/+KkspzynZGACkwNYObmnCQHgsH/bkluvASlueWrZT6uA3LjyVfe2WQPfWnNYDc= X-Received: by 2002:a05:6830:138f:: with SMTP id d15mr6414360otq.342.1599246730629; Fri, 04 Sep 2020 12:12:10 -0700 (PDT) MIME-Version: 1.0 References: <877du16wsf.fsf@mat.ucm.es> <87v9gtlizs.fsf@gnu.org> <87ft7xtoe8.fsf@nicolasgoaziou.fr> <87363xqsvk.fsf@mat.ucm.es> In-Reply-To: <87363xqsvk.fsf@mat.ucm.es> From: Ivan Tadeu Ferreira Antunes Filho Date: Fri, 4 Sep 2020 15:11:59 -0400 Message-ID: Subject: Re: export an org file to a latex file but in a differerent directory To: "Liste-emacs-orgmode@gnu.org" Content-Type: multipart/alternative; boundary="00000000000049954a05ae81a5f3" Received-SPF: pass client-ip=209.85.210.51; envelope-from=itadeufa@gmail.com; helo=mail-ot1-f51.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 15:12:11 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Scanner: scn0 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-Spam-Score: -0.01 X-TUID: Yw+TtMci0wWo --00000000000049954a05ae81a5f3 Content-Type: text/plain; charset="UTF-8" I use the code in https://github.com/itf/org-export-with-files/blob/master/org-export-with-files.el in order to define a new function that exports the current subtree to a different folder, as well as create hard copies of the files linked in the new directory and fixes the links in order to keep the links inside the file working in the new directory. It only works with PDF currently. But in summary, I use: (org-set-property "EXPORT_FILE_NAME" file-name) To set a new file name, and (let* ((new-file-name (concat directory-name file-name))) (set-visited-file-name (concat new-file-name ".org")) before exporting, in order to set a new directory, since the directory comes from the directory of the current file, which can be set by " set-visited-file-name" (remember to undo this afterwards). On Fri, Sep 4, 2020 at 2:51 PM Uwe Brauer wrote: > >>> "NG" == Nicolas Goaziou writes: > > > Hello, > > Bastien writes: > > >> There is none, that's indeed a backward compatibility issue. > > > Note that exporting to a different directory is called publishing. > > As you wish, but my original question stands, how to I do this, which > is the variable to be set, locally in the org file? > > --00000000000049954a05ae81a5f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use the code in https://github.c= om/itf/org-export-with-files/blob/master/org-export-with-files.el in or= der to define a new function that exports the current subtree to a differen= t folder, as well as create hard copies of the files linked in the new dire= ctory and fixes the links in order to keep the links inside the file workin= g in the new directory.
It only works with PDF currently.
=
But in summary, I use:
= (org-set-property
"EXPORT_FILE_NAM= E"
file-name)

= To set a new file name,

and
(let*
=C2=A0 ((new-file-name = (concat directory-name file-name)))
<= div>=C2=A0 (set-visited-file-name (concat new-file-name ".org"))

before exporting, in order to set a new di= rectory, since the directory comes from the directory of the current file, = which can be set by "set-visited-file-name= " (remember to undo this afterwards).

On Fri, Sep 4, 2020 at 2:51 PM Uwe Brauer <= ;oub@mat.ucm.es> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">>>> "NG"= ; =3D=3D Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
> Bastien <bzg@gnu.o= rg> writes:

>> There is none, that's indeed a backward compatibility issue.
> Note that exporting to a different directory is called publishing.

As you=C2=A0 wish, but my original question stands, how to I do this, which=
is the variable to be set, locally in the org file?

--00000000000049954a05ae81a5f3--