From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116648 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Command line arguments on context project Date: Fri, 16 Dec 2022 17:49:04 +0100 Message-ID: References: <6B1260C1-B936-4437-8A25-38191A4456C6@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4524499700682797324==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.59 Cc: Wolfgang Schuster To: mailing list for ConTeXt users , Jethro Djan via ntg-context Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 16 17:49:38 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p6Dty-0006aB-Ee for gctc-ntg-context-518@m.gmane-mx.org; Fri, 16 Dec 2022 17:49:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DC2C52A4D69; Fri, 16 Dec 2022 17:49:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 JsxYAxyFE7EN; Fri, 16 Dec 2022 17:49:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0B8F92A4D76; Fri, 16 Dec 2022 17:49:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BED4C2A4D72 for ; Fri, 16 Dec 2022 17:49:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 D3kHgt5Rc_7I for ; Fri, 16 Dec 2022 17:49:05 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.41; helo=mail-ej1-f41.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 13F5D2A4D69 for ; Fri, 16 Dec 2022 17:49:05 +0100 (CET) Original-Received: by mail-ej1-f41.google.com with SMTP id b2so7501212eja.7 for ; Fri, 16 Dec 2022 08:49:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=aU+P1WbbqbwolNKyLmHlDtbK+n63/tHOGeuKTMCZr/I=; b=ckc55AWzHsAbyO3DZtV9QDB7Lk5XPVEH5wsIqoLWD2ad5eW6YXg9t39rJhgqnN2X2r RMQE+j8R2TTHW/Z8N2UR+hhMPa+OxrXheEmx7sStGhbEnw/aRprXtjcykviSRxlDfJcE REacTtqV1LdNVcZ5M274A/CUAyF2FrmQvbjYydT6xo7yNwgNd6+T151+aYTUY333JYpp fY0q/k1LCu+sP4hUMUs/EZIuNAPq+/asNGvVZFG5DAR76v2yX6p5zoSEa9GvjRasfl9E 2y5ujx4Cp1d+Yx1kMFtZRj77KeualHdiFWtBSuogV5hlK/VB7qEA6gE8WGIaW2AJ2f44 icig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=aU+P1WbbqbwolNKyLmHlDtbK+n63/tHOGeuKTMCZr/I=; b=5wwmZhwYtGG3Vbc0ciDk62J+18V3WU10FKmKsxkvrVBhPhU2Oa3MULgpBhojOe2e7m COSkry9eSHZca83ikZyyNRQKUCgtbOXuWXizjM+DXMbqFymvZJR4FMwswMf8WJXS7CtY hhQhBv7sM2kfZjviZ66h1hv5/tUFgFEswWgsnq+JuBlUNj3M/R95EJ2Ty0+XEvsUkAtf Ta9ITDrdwRf3tTKx5TwiN60xZHvIAFtvvm5C8gBy2klyRGlPnFUL5d4rXmLOubOaNy/y TVv9Fy0HuJYEtddFOta9zxm5+zJw4QDQEE1DMI+HYWvAinCJ0iA3s1q+V8NVrjrdkI8Y HW9Q== X-Gm-Message-State: ANoB5pmIYDdoCG2mduEGmZ9mhlnYFpW7GwTrvc6DVuxFZks3f6ol2QF8 8/IG1GLqzl6HZPLcZ1RW04Q2IuN5r5g= X-Google-Smtp-Source: AA0mqf6kjGZMfzKGMen/apZ5Ag81dolpTgSpgb85yKgDkh6rsKVd6dc3tlHoDU09UVQZEWz4j2C0VQ== X-Received: by 2002:a17:907:c80f:b0:7c1:75e9:1180 with SMTP id ub15-20020a170907c80f00b007c175e91180mr22682694ejc.22.1671209344608; Fri, 16 Dec 2022 08:49:04 -0800 (PST) Original-Received: from ?IPv6:2a02:810d:a8bf:fe08:3190:95df:7e99:d81f? ([2a02:810d:a8bf:fe08:3190:95df:7e99:d81f]) by smtp.gmail.com with ESMTPSA id lb10-20020a170907784a00b0073de0506745sm1012266ejc.197.2022.12.16.08.49.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2022 08:49:04 -0800 (PST) In-Reply-To: <6B1260C1-B936-4437-8A25-38191A4456C6@gmail.com> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:116648 Archived-At: This is a multi-part message in MIME format. --===============4524499700682797324== Content-Type: multipart/alternative; boundary="------------48E3CB9DC305ABC0BEC21835" Content-Language: en-US This is a multi-part message in MIME format. --------------48E3CB9DC305ABC0BEC21835 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Jethro Djan via ntg-context schrieb am 16.12.2022 um 17:14: > Dear list, > > I am using the project structure to typeset my thesis. This is how the > directory looks like: > > chapters/chapter1.tex > chapters/chapter2.tex > … > > output/ > env_thesis.tex > prd_main.tex > ref.bib > > I didn’t use the project. > > 1. How do I specify output directory? context --runpath=output ... > I have already seen the following thread: > > https://www.mail-archive.com/ntg-context@ntg.nl/msg101654.html > > It doesn’t seem to work on a project. So for example when I run mtxrun > —path=output --script context ../prd_main, I get this error: > > tex error on line 5 in file > /usr/local/texlive/2022/texmf-dist/doc/latex/buctthesis/chapter1.tex: > ! Undefined control sequence How do you load the chapter file in your product file? The error message above appears because ConTeXt can't find the chapter file of your document and uses one with the same name from a documentation of a LaTeX class which has the same name. > 2. How do I get CoTeXt to recognise the ref.bib file when I run the > components not the product? > > For context, I don’t want the references printed at the end of each > chapter but I would like the in-text citation to work (if that is > possible). If not, is it possible compile the whole product but only > output a certain page range? You need a reference to the environment file from within the component file, otherwise ConTeXt has no knowledge of the bib file. Wolfgang --------------48E3CB9DC305ABC0BEC21835 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Jethro Djan via ntg-context schrieb am 16.12.2022 um 17:14:
Dear list,

I am using the project structure to typeset my thesis. This is how the directory looks like:

chapters/chapter1.tex
chapters/chapter2.tex

output/
env_thesis.tex
prd_main.tex
ref.bib

I didn’t use the project.

1. How do I specify output directory?

context --runpath=output ...

I have already seen the following thread:


It doesn’t seem to work on a project. So for example when I run mtxrun —path=output --script context ../prd_main, I get this error: 

tex error on line 5 in file /usr/local/texlive/2022/texmf-dist/doc/latex/buctthesis/chapter1.tex: ! Undefined control sequence

How do you load the chapter file in your product file?

The error message above appears because ConTeXt can't find the chapter file of your document and uses one with the same name from a documentation of a LaTeX class which has the same name.

2. How do I get CoTeXt to recognise the ref.bib file when I run the components not the product?

For context, I don’t want the references printed at the end of each chapter but I would like the in-text citation to work (if that is possible). If not, is it possible compile the whole product but only output a certain page range?

You need a reference to the environment file from within the component file, otherwise ConTeXt has no knowledge of the bib file.

Wolfgang

--------------48E3CB9DC305ABC0BEC21835-- --===============4524499700682797324== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4524499700682797324==--