Viewers for PDF, PS, and DVIAutomatically Compiling with WinEdt

Information and discussion about output viewers related to LaTeX (e.g. Adobe Reader, Ghostview, YAP, ...)
Post Reply
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Automatically Compiling with WinEdt

Post by sw3quant »

I use WinEdt 9 and Win 7.

I call LaTeXify using "Shift+Ctrl+P" to generate my PDF file from my tex file http://www.winedt.org/Config/menus/LaTeXify.php.

I can open my tex file from the Windows DOS command line by typing

Code: Select all

"C:\Program Files\WinEdt Team\WinEdt 9\WinEdt.exe" "E:\Latex\Report\Report.tex"
I now wish to compile the PDF from the DOS command line. How can I do this?

thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Automatically Compiling with WinEdt

Post by sw3quant »

This is for running from the DOS command line (but actually called from system.m inside MATLAB).

Code: Select all

%http://www.winedt.org/Config/menus/LaTeXify.php
%ADD to the VERY first line of your tex document: %& -output-directory=A:\latestResults 
system('"C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\texify.exe" --pdf "E:\Latex\RiskReport\riskReport.tex"');
Post Reply