I have installed Miktex and Texworks in Windows 10. How to invoke latex from the command prompt? I want to use Pandocs to convert files into pdf (it uses latex). For example: I want to run this command in cmd: pandoc -f html -t pdf http://najeebkhan.github.io/blog/VecCal.html -s -o try.pdf
In the attached image (see the last line): It can be seen that I have added the miktex to the path variable.
I have reinstalled miktex. On running tex -v . I get this message in the tex.log file: "FATAL tex - The command line options could not be processed." But I am able to compile file with GUI of texstudio. Following is complete content of log file:
2017-04-30 12:59:33,648+0200 INFO tex - starting with command line: tex -v
2017-04-30 12:59:33,653+0200 INFO tex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2017-04-30 12:59:45,185+0200 FATAL tex - The command line options could not be processed.
2017-04-30 12:59:45,185+0200 FATAL tex - Info: optionError="unknown option"
2017-04-30 12:59:45,185+0200 FATAL tex - Source: Libraries\MiKTeX\TeXAndFriends\webapp.cpp
2017-04-30 12:59:45,185+0200 FATAL tex - Line: 339