Hi Hans, the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename. Wolfgang
Wolfgang Schuster wrote:
Hi Hans,
the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
line 289: job.setvariable('result',"texexec-#{n}") should do the job ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 10.04.2009 um 09:23 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Hi Hans, the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
line 289:
job.setvariable('result',"texexec- #{n}")
should do the job
works but didn't it makes more sense to create 'filename-number' by default and 'resultname-number' with with 'texexec --pdfsplit --result=resultname myfile.pdf' Wolfgang
Wolfgang Schuster wrote:
Am 10.04.2009 um 09:23 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Hi Hans, the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
line 289:
job.setvariable('result',"texexec-#{n}")
should do the job
works but didn't it makes more sense to create 'filename-number' by default and 'resultname-number' with with 'texexec --pdfsplit --result=resultname myfile.pdf'
result = @commandline.checkedoption('result','texexec') nofpages.times do |i| if f = File.open(tempfile,"w") then ... job.setvariable('result',"#{result}-#{n}") ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 10.04.2009 um 10:13 schrieb Hans Hagen:
works but didn't it makes more sense to create 'filename-number' by default and 'resultname-number' with with 'texexec --pdfsplit -- result=resultname myfile.pdf'
result = @commandline.checkedoption('result','texexec') nofpages.times do |i| if f = File.open(tempfile,"w") then ... job.setvariable('result',"#{result}-#{n}")
nearly perfect, only the log files for each file remains when I use result, e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the file splitfile-n.log is still there. Wolfgang
Wolfgang Schuster wrote:
Am 10.04.2009 um 10:13 schrieb Hans Hagen:
works but didn't it makes more sense to create 'filename-number' by default and 'resultname-number' with with 'texexec --pdfsplit --result=resultname myfile.pdf'
result = @commandline.checkedoption('result','texexec') nofpages.times do |i| if f = File.open(tempfile,"w") then ... job.setvariable('result',"#{result}-#{n}")
nearly perfect, only the log files for each file remains when I use result, e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the file splitfile-n.log is still there.
you can add job.setvariable('purge',true) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 10.04.2009 um 10:47 schrieb Hans Hagen:
nearly perfect, only the log files for each file remains when I use result, e.g. with 'texexec --pdfsplit --result=splitfile myfile.tex' the file splitfile-n.log is still there.
you can add
job.setvariable('purge',true)
did not help Wolfgang
On Thursday 09 April 2009 17:59:18 Wolfgang Schuster wrote:
the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
Does the option pdfsplit exist for mkiv? Alan
Alan BRASLAU wrote:
On Thursday 09 April 2009 17:59:18 Wolfgang Schuster wrote:
the pdfsplit option for texexec use the name texexec.pdf for each of the document and only the last page remains because all other are overwritten, can you add the pagenumber (texexec-1.pdf, texexec-2.pdf etc.) to the filename.
Does the option pdfsplit exist for mkiv?
this is somewhat tricky as in mkiv (context script) we no longer have these pdf goodies internal but in mtx-context-* styles in the base path (i wonder who noticed it) and so we run from inside luatex; currently luatex cannot restart a pdf document so for the moment this is texexec only; also, the feature itself is unrelated to mkiv and mkii as well as pdftex will stay around forever Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Alan BRASLAU
-
Hans Hagen
-
Wolfgang Schuster