sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

latex: implement reconciling latex errors for rnw/rtex files #3221

Open haraldschilly opened 6 years ago

haraldschilly commented 6 years ago

So, the background of this is that tex files are produced by knitr for rtex or rnw files. forward/inverse search uses "reconciliation" to match the line numbers. That's why it works fine.

However, we should also use that for the line number errors. I don't remember having done anything towards that, I probably never thought about this at all. Below is a screenshot showing the discrepancy.

screenshot-cocalc com-2018 09 28-17-05-13

haraldschilly commented 6 years ago

ok, looks like there is nothing for that. the goal is to read the concordance file (and cache it if fresh) and do the line number translation for the errors. I haven't found a syntax description, but here seems to be the source code: https://rdrr.io/cran/knitr/src/R/concordance.R