1

I want to make a Q&A document where each question is the question posted in cs.stackexchange.com. And the document contains the accepted answer of that site for corresponding question. When I recompile the source code I want to get latest accepted answer.

Is it possible in LaTeX or combining another programming language with LaTeX?

  • 1
    The getmap package (ctan.org/pkg/getmap) retrieves online maps. You could check its code. – Ulrike Fischer Nov 30 '17 at 12:53
  • 1
    Very flexible and powerful is mixing LaTeX with R using Sweave – vaettchen Nov 30 '17 at 13:36
  • You might even use LuaLaTeX for networking. – TeXnician Nov 30 '17 at 16:21
  • Search for Sweave Tutorial. What comes up should satsify all your information and starting needs. – vaettchen Nov 30 '17 at 22:38
  • 1
    You could write a script/program to download a question and answer, and generate LaTeX code, in any language you prefer (either download the regular page or use the API with api.stackexchange.com/docs/answers-on-questions and such). In your document you can use something like tex.stackexchange.com/q/252540 to call the script with a question id and then \input the generated code. – Marijn Dec 1 '17 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.