[texhax] Latex on command line

John C Frain frainj at gmail.com
Sun Sep 3 23:41:14 CEST 2017


On 3 September 2017 at 14:57, 黃世緯 <elof.huang at runbox.com> wrote:

> How to run TeX on windows command line?
>
> I plan to install minimum latex system, edit it on notepad++ and run it on
> command line
>
> 1. Open a command window
2. Enter
    latex --version
You should get some thing like

pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04

This verifies that latex is on your path.

3. Change to the directory containing your .tex file. Now everything should
be the same as it was many years ago. To compile your file enter the
sequence of commands

latex filename
dvips filename
ps2pdf filename
or

pdflatex filename

This should compile your .tex file.

I would also recommend that you install one of the modern Latex front-ends
such as TeXStudio as they automate much of this work  and provide command
completion etc. etc.


John C Frain
3 Aranleigh Park
Rathfarnham
Dublin 14
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:frainj at tcd.ie
mailto:frainj at gmail.com


> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>


John C Frain
3 Aranleigh Park
Rathfarnham
Dublin 14
Ireland
www.tcd.ie/Economics/staff/frainj/home.html
mailto:frainj at tcd.ie
mailto:frainj at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20170903/eac9af24/attachment.html>


More information about the texhax mailing list