Re: Global variables in Org mode document with source blocks

2021-05-25 Thread Lennart C. Karssen
Hi Greg, On 18-05-2021 19:25, Greg Minshall wrote: > Lennart, > > John's idea seems good. also, you could generate a separate RESULT for > each language, then :var each language's "failed" RESULT into your bash > block and fail if any of them are set? The main problem I see with that solution

Re: Global variables in Org mode document with source blocks

2021-05-25 Thread Lennart C. Karssen
Dear John, Thanks a lot for your quick reply. My apologies for not replying earlier. Some urgent things came up that took my time. I tried your suggestions and settled on a small adaptation of your first suggestion. Because the output of my source blocks is raw Org code (i.e. the report text

Re: Global variables in Org mode document with source blocks

2021-05-18 Thread Greg Minshall
Lennart, John's idea seems good. also, you could generate a separate RESULT for each language, then :var each language's "failed" RESULT into your bash block and fail if any of them are set? cheers, Greg

Re: Global variables in Org mode document with source blocks

2021-05-18 Thread John Kitchin
Given all the different languages involved, I don't think there is a way to use a common variable. One way might be to have each block output some kind of string if it fails, and then in the last block you could search for the buffer for that string. Something like this: * Section 1

Global variables in Org mode document with source blocks

2021-05-18 Thread Lennart C. Karssen
Dear list, I am working on a dynamic report in Org mode, where I use source blocks in various languages to process data. Several blocks produce text or tables that become part of the PDF on export. The final chapter should state whether all checks passed, or whether one or more failed (it is not