### Install mpx-cli Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Install the Mathpix CLI globally using npm. ```bash npm install -g @mathpix/mpx-cli ``` -------------------------------- ### SMILES String Example Source: https://github.com/mathpix/mpx-cli/blob/master/test/input/index.md An example of a SMILES string used for chemical structure representation. ```smiles OC(=O)c1cc(Cl)cs1 ``` -------------------------------- ### Build Static HTML Site Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Build a static HTML site from a directory of Markdown files. ```bash mpx build ./input-dir ./output-dir ``` -------------------------------- ### Display mpx CLI Help Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Display help information for the mpx CLI, showing all commands and flags. ```bash mpx --help ``` -------------------------------- ### Serve Markdown Files Locally Source: https://github.com/mathpix/mpx-cli/blob/master/README.md View rendered Markdown files on a local server. Can serve a directory or a specific file. ```bash mpx serve ./input-dir ``` ```bash mpx serve ./input-dir/example.mmd ``` -------------------------------- ### Compile Markdown to PDF using HTML Method Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Compile a Markdown file to PDF format using the HTML conversion method. ```bash mpx convert input-file.mmd output-file.pdf --pdf-method html ``` -------------------------------- ### Set Mathpix OCR API Key (Environment Variable) Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Set your Mathpix API key as an environment variable for authentication. ```bash export MATHPIX_OCR_API_KEY=... ``` -------------------------------- ### Set Mathpix OCR API Key (Config File) Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Save your Mathpix API key permanently in the mpx configuration file. ```bash mpx set-api-key ... ``` -------------------------------- ### Login to Mathpix Account Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Log in to your Mathpix account to save an authorization token for server-dependent commands. ```bash mpx login ``` -------------------------------- ### Compile Markdown to PDF Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Compile a Markdown file to PDF format without using Mathpix OCR. ```bash mpx convert input-file.mmd output-file.pdf ``` -------------------------------- ### Compile Markdown to DOCX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Compile a Markdown file to DOCX format without using Mathpix OCR. ```bash mpx convert input-file.mmd output-file.docx ``` -------------------------------- ### Compile Markdown to HTML Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Compile a Markdown file to HTML format without using Mathpix OCR. ```bash mpx convert input-file.mmd output-file.html ``` -------------------------------- ### Convert PNG Image to Mathpix Markdown Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PNG image file to Mathpix Markdown format. ```bash mpx convert input-file.png output-file.mmd ``` -------------------------------- ### Convert PNG Image to DOCX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PNG image file to DOCX format. ```bash mpx convert input-file.png output-file.docx ``` -------------------------------- ### Compile Markdown to TeX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Compile a Markdown file to TeX format without using Mathpix OCR. ```bash mpx convert input-file.mmd output-file.tex ``` -------------------------------- ### Convert PDF to Mathpix Markdown Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PDF file to Mathpix Markdown format. ```bash mpx convert input-file.pdf output-file.mmd ``` -------------------------------- ### Convert PDF to TeX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PDF file to TeX format. ```bash mpx convert input-file.pdf output-file.tex ``` -------------------------------- ### Convert PDF to DOCX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PDF file to DOCX format. ```bash mpx convert input-file.pdf output-file.docx ``` -------------------------------- ### Convert PDF to HTML Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a PDF file to HTML format. ```bash mpx convert input-file.pdf output-file.html ``` -------------------------------- ### Convert JPEG Image to TeX Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a JPEG image file to TeX format. ```bash mpx convert input-file.jpeg output-file.tex ``` -------------------------------- ### Convert JPEG Image to HTML Source: https://github.com/mathpix/mpx-cli/blob/master/README.md Convert a JPEG image file to HTML format. ```bash mpx convert input-file.jpeg output-file.html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.