Change the generated filenames and output directories (including images)?
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
- I would like to generate panoramas of a certain size, but PTGui has changed the output size after I did Align Images. How can I tell it to keep the panorama size set in the Create Panorama tab?
- Change the generated filenames and output directories (including images)?
- Can I FTP / move complete directories full of images into yappa-ng?