Install MikTeX (LaTeX)

Kirill Müller's Avatar

Kirill Müller

26 Aug, 2014 08:50 AM

Hi Feodor

Do you see any chance to include the "basic" MikTeX installation in the image? It's just under 500 MB when installed, but installation takes quite some time because there are so many smallish files. I could come up with an installation script which you'd only have to run on the virtual machine. Thaks for considering.

Cheers

Kirill

  1. Support Staff 1 Posted by Feodor Fitsner on 26 Aug, 2014 02:01 PM

    Feodor Fitsner's Avatar

    Yeah, installation script would be nice, thank you!

    -Feodor

  2. 2 Posted by Jan Schulz on 13 May, 2016 09:26 PM

    Jan Schulz's Avatar

    If you want a really easy solution: just download the portable script, extract it somewhere and put the subdir miktex/bin into PATH.

    ```
    wget http://mirrors.ctan.org/systems/win32/miktex/setup/miktex-portable-2.9.5857.exe
    7za x miktex-portable-2.9.5857.exe -oC:\miktex >NUL
    set "PATH=%PATH%;c:\miktex\miktex\bin"
    ```

  3. 3 Posted by Jan Schulz on 30 Oct, 2016 06:15 PM

    Jan Schulz's Avatar

    Latest version no use in pypandoc:

    ```
    cache:
      - c:\miktex -> appveyor.yml
    [...]

    install:
    [...]
      # Install miktex to get pdflatex, if we don't get it from the cache
      - if not exist c:\miktex\texmfs\install\miktex\bin\pdflatex.exe appveyor DownloadFile http://mirrors.ctan.org/systems/win32/miktex/setup/miktex-portable.exe
      - if not exist c:\miktex\texmfs\install\miktex\bin\pdflatex.exe 7z x miktex-portable.exe -oC:\miktex >NUL
      - set "PATH=%PATH%;c:\miktex\texmfs\install\miktex\bin"
      # autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
      # this adds this to the registry!
      - initexmf --set-config-value "[MPM]AutoInstall=1"
    ```

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac