[texhax] plain TeX: separate itmes by comme in \write environment

Rodolfo Medina rodolfo.medina at gmail.com
Wed Apr 25 17:41:27 CEST 2018


"Philip Taylor (RHUoL)" <P.Taylor at Rhul.Ac.Uk> writes:

> Rodolfo Medina wrote:
>
>> In (e)plain TeX: in a document of mine I'm using the \write command so to
>> write a list of items in an external file and then input it in the document.
>> I wish that items were separated by a comma, apart from the last one of
>> course.  How can I do that?
>
> It is not exactly clear what is meant by "using the \write command so to
> write a list of items in an external file"; can you post code, please ?


Yes, thanks.  I'm attaching a simple example, to be processed with: `tex
test'.  I applied David's suggestion with \mysep, and it seems to work, only
it produces a space before the comma rather than after it as it should be...

Thanks,

Rodolfo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 781 bytes
Desc: not available
URL: <http://tug.org/pipermail/texhax/attachments/20180425/93f4ca10/attachment.bin>


More information about the texhax mailing list