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?

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

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?

Jethro