From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12946 invoked from network); 27 May 2023 03:54:02 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 27 May 2023 03:54:02 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3E2556CD; Sat, 27 May 2023 05:53:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7pzODS8YY9iU; Sat, 27 May 2023 05:53:36 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AD6F41C3166; Sat, 27 May 2023 05:53:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8662D1C3166 for ; Sat, 27 May 2023 05:53:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R1CJgGJyQWWU for ; Sat, 27 May 2023 05:53:28 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.179; helo=mail-pg1-f179.google.com; envelope-from=mseven@telus.net; receiver= Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0DA3D6CD for ; Sat, 27 May 2023 05:53:27 +0200 (CEST) Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-53063897412so1296103a12.0 for ; Fri, 26 May 2023 20:53:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; t=1685159605; x=1687751605; h=mime-version:user-agent:content-transfer-encoding:in-reply-to:date :to:from:subject:message-id:from:to:cc:subject:date:message-id :reply-to; bh=YR7HnRWLSZ0/MOZMapszj978jQaHsPpBkUlDN1c5Kgc=; b=N78QSqjM/dySZS1X5gTVgCiyhbfjdHYz//S4FLkpuqVHb3TIKJYqsgh8Ee2Eyh4sxO SU3RO6MRyVJgXKNn/n0E3K0otVlT3asp9XisLQuOAtO2vz9I1A6d/VRgsBbvz+uQsaVp I4E6hQNND+uY1XqWGbAzw8+p4Tj8zoRiRWN3UEwXS9UnQP68CKBEROe7U5KCVMWD4Muq taZEFvddrZI8YgWZgbYU7dOvTidssdHmObWvcaX/6U3YqajAQBjTs+97sMuFjzdtksB+ VnakjUwA+chHjW6J7HOIp44Q/45Qs+mDyB0NGUUI/yuDsJGnlFVa6HwBpQVK0XoazHAl 3hFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685159605; x=1687751605; h=mime-version:user-agent:content-transfer-encoding:in-reply-to:date :to:from:subject:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=YR7HnRWLSZ0/MOZMapszj978jQaHsPpBkUlDN1c5Kgc=; b=OjTwZbTNAgkjlISegrZHIzRmwEsRuHQ8iQSEUriBrs7a4ClaW/rnWpuAWXARrXzfqr 7AxiAXlT7w5dDIriwRVC+bB2nu1vwKNvyyflZftBoEygJMpKs4ttnmTih7xtks81LiLI KnC5vRMqlBKck8YibB/KxR6E6u0MU9vUWQi73sf2nNevbFqmZv/CG9hNTigjnJQIKp49 QZ3gmWIl8HlgHBRuxdex37PNYFuwdGoJZTIGa5i19aXs8NHuyp8qIDhdKUa1SZo6si/1 JLAWrJ+rmOQoYDaJewFKoVS/38ZijfVD/LPie9rlnXqTmrMd6smAYkAPaMOIgzHfirNU pAhQ== X-Gm-Message-State: AC+VfDzl9+HV3z1Ng1eQtGFInEmOqkdi3479W9Nkj5L14qeYvfxkzVxx aAG+RRVtTNKI24Wx2RQX/A8GMx7KFrPJ1f8AaKg= X-Google-Smtp-Source: ACHHUZ4DllwLnRdXhbjN8WuZyCRJmh6NAPUMCcA+JjuSgrPW7R6SohK+8xLQvwx++soMrGJqMRNhSA== X-Received: by 2002:a17:903:41c2:b0:1ab:1bb0:126d with SMTP id u2-20020a17090341c200b001ab1bb0126dmr6033596ple.23.1685159605227; Fri, 26 May 2023 20:53:25 -0700 (PDT) Received: from ?IPv6:2001:56a:724c:6500::527? ([2001:56a:724c:6500::527]) by smtp.gmail.com with ESMTPSA id l6-20020a170903120600b001b016313b1esm1818639plh.82.2023.05.26.20.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 20:53:24 -0700 (PDT) Message-ID: <78c71878522e119db77b24cd93ab4782b6de2d82.camel@telus.net> To: ntg-context@ntg.nl Date: Fri, 26 May 2023 21:53:23 -0600 In-Reply-To: User-Agent: Evolution 3.48.1 (3.48.1-1.fc38) MIME-Version: 1.0 Subject: [NTG-context] Can ConTeXt write its pdf to a different directory? X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Max Chernoff via ntg-context Reply-To: mailing list for ConTeXt users Cc: Max Chernoff Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" Hi Peter, > My .tex file is in a directory within my working directory. I would like > ConTeXt to write its output in the same directory as my .tex file. But it > writes to the working directory. > > This was asked 10 years ago: > `tex.stackexchange.com/questions/67928/how-to-set-output-directory-in-context-command` > > The answer given then was to use: > `context filename --result=output-directory/filename` > > But this doesn't work now. When I compile my .tex file, I get a message: > `results are to be on the running path, not on 'output-directory', ignoring > --result` This seems to work, although I'm not sure that I would call it a "good" solution: \startluacode local function absolute(path) return file.collapsepath(dir.expandname(path)) end local texfile = absolute(environment.filename) local pdffile = file.addsuffix( absolute(environment.inputfilebarename), "pdf" ) luatex.wrapup(function() os.rename(pdffile, file.replacesuffix(texfile, "pdf")) end) \stopluacode \starttext Hello! \stoptext -- Max ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________