It seems that the 'abuttal' concatenation (used for variable interpolation here) works different in our 'address'
/* rexx build the pdf */
trace results
chapters = 'foreword rationale social_issues'
do i=1 to words(chapters)
file=word(chapters,i)
'pandoc -f markdown -t latex --top-level-division=chapter ../../'file'.md -o' file'.tex'
end
/* build the document. at least 2 passes needed for coherence of contents and index */
do i=1 to 2
'xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" -shell-esc perfbook.tex'
say RC
'makeindex perfbook'
say RC
end
'open perfbook.pdf'
This works as expected in ooRexx. It should work in NetRexx, however:
Copyright (c) RexxLA, 2011,2023. All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program build.rexx
7 +++ 'pandoc -f markdown -t latex --top-level-division=chapter ../../'file'.md -o' file'.tex'
+++ ^^^^
+++ Error: Unexpected token after keyword
Processing of 'build.rexx' failed [one error]
It seems that the 'abuttal' concatenation (used for variable interpolation here) works different in our 'address'
This works as expected in ooRexx. It should work in NetRexx, however: