Hi there,
I have a CV that I’d like to be able to display in color or black and white. In xelatex
, In the past I’ve been able to do something like xelatex "\def\iscolor{1} \input{input.tex}"
Does tectonic support some sort of command line input like this?
rekka
August 12, 2019, 1:18am
2
tectonic
supports reading from standard input, so you can do something like
echo '\def\iscolor{1} \input{input.tex}' | tectonic -
It stores the output in the file texput.pdf
.
@pkgw : Is there a way to specify the name of the output file name when -
input is used?
1 Like
efx
August 26, 2019, 1:12pm
3
It is not currently customizable but I opened this issue to track that work:
opened 03:56PM - 16 Aug 19 UTC
closed 09:03PM - 07 Nov 22 UTC
As a developer I would like to customize the default filename for PDF output whe… n converting a LaTex file from standard input.
## steps
1. `cat my-document.tex | tectonic -`
2. notice the output file is always `texput.pdf`. The [documentation](https://docs.rs/tectonic/0.1.11/tectonic/driver/struct.ProcessingSessionBuilder.html#method.tex_input_name) explains this is the default.
It would be helpful to be able to customize the output file name or have an option to steam the PDF to standard out. I am batch processing LaTeX files and as part of looping will need to operate on individual files. Piping files using stdin is great but I will need to block the asynchronous loop because of the output filename being the same for each iteration. That or get clever with `--outdir` option.
Does the following line dictate this behavior?:
https://github.com/tectonic-typesetting/tectonic/blob/5e4348258f826b6096690ecf6fff2f76acf92d41/src/lib.rs#L147
1 Like