When writing a manuscript, my current practice is to conduct whichever calculations needed in one specific program (e.g. Python or Matlab) then copy and paste the result of the calculation into the manuscript.
This process is prone to errors, and requires maintenance with every update of the calculation results. What process is recommended to (if needed, semi-) automatically update a manuscript with new calculation results?
One solution could be to maintain the manuscript with constants with specific names (
CALCULATION_RESULT_1) and write some dedicated scripts that map these names to a respective calculation , and "render" a manuscript replacing the name with the result every time it is updated. But this seems like reinventing the wheel.
I'm guessing some tools exist for achieving this with LaTeX, but if there are also solution to (us mortals using) MS-word, that would be appreciated.