In R you can use Sweave or Knitr to convert a LaTeX file with embedded R code, into a PDF. The RStudio website describe hows you can jump from a line in the source R file to the corresponding line in the PDF file: https://www.rstudio.org/ide/docs/authoring/pdf_preview
Is this possible with TextMate?
Ross Ahmed Ecologist 07875533906 Twitter: @RossAhmed https://twitter.com/RossAhmed LinkedIn: Ross Ahmed https://www.linkedin.com/pub/ross-ahmed/2a/775/590