Create PDF and DOCX from latex document

This task creates a pdf and docx from a latex document.

Input

This task creates a pdf and docx from a latex document.

[1.0.0]:
First release
VersionAI ModelCreatedLink
1.0.0latex_compiler28.03.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • latex_document (Latex Document): The latex document that should be compiled to a pdf.
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/intern-latex-to-pdf/1.0.0?latex_document=%5Cdocumentclass%7Barticle%7D%20%5B...%5D%20%5Cend%7Bdocument%7D
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('intern-latex-to-pdf','1.0.0', {'latex_document': '\documentclass{article} [...] \end{document}'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('intern-latex-to-pdf','1.0.0', latex_document='\documentclass{article} [...] \end{document}')