Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Change the generated filenames and output directories (including images)?

0
Posted

Change the generated filenames and output directories (including images)?

0

To change the (main) output filename, create or edit trnflag.trn to contain: .Strings OutFilename,’$dirname(inputfile)\\whatever.html’ See the file naming section in guide.html for details of changing the contents filename, index filename, etc. To change the names of ‘split files’ (that is when SplitIndex > 1 such that each heading starts a new output file) or image filenames, add the following functions to trnflag.trn: .Functions Function GenFilename set ‘$dirname(filename)\\output\\$basename(filename).$HtmlExt;’ Function GenImageFilename set ‘$dirname(filename)\\images\\$basename(filename)$ext(filename)’ These examples will write all output files to the folder ‘output’ and all images to the folder ‘images’. Both folders must exist already. In order for the generated tags to point at these images, the following strings (defined in html.trn) need to be updated. .Strings ‘_inline_image_ref_’,’$IsBRNeeded()$CenterStart()\

-->

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123