OthersMikTeX and PSPad editor

Information and discussion about other LaTeX editors not listed above
Post Reply
crowley
Posts: 3
Joined: Fri Apr 13, 2007 5:59 pm

MikTeX and PSPad editor

Post by crowley »

Is there anyone who tried write TeX files with PSPad?

In PSPad help is guide only for CSLaTeX.
I set it up that way, MikTeX works (I'm calling pdfLatex.bat) but:
Returns error:
Package babel error: Zou have used an old interface to call babel. You may expect
compatibility problems with other packages. See the babel package documentation for
explanation.
Opens empty AdobeReader even if compilation was succesful.

Please help me, thanx.
Answer here or by ICQ #204-257-349

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
juanA
Posts: 1
Joined: Tue Sep 01, 2009 11:32 pm

Re: MikTeX and PSPad editor

Post by juanA »

Try the following

go to:
Settings-->highlighters. On the left side select the option "TeX" and look for the tab "Compiler" on the right side. Insert the following

compiler:
path_for_miktex\MiKTeX 2.7\miktex\bin\latex.exe (or whereever is the file latex.exe)

parameters:
--src -interaction=nonstopmode "%Dir%%Name%.tex"

default directory:
%Dir%

LOG file:
%Name%.log

Run after compilation:
"path_for_miktex\MiKTeX 2.7\miktex\bin\yap.exe" "%Name%.dvi"

With this PsPad should compile your project without problem.
Now for the references go to the tab "external application" and under name insert the name that you want.

Name:
Bibtex (or the name that you want)

Application:
"path_for_miktex\MiKTeX 2.7\miktex\bin\bibtex.exe" "%Name%"

and press the "Add" button

here "path_for_miktex" is the installation path for the miktex, something like "c:\program files\"


Now if you want to insert a command to compile the dvi file into a pdf file insert the following (in the same tab of "external application")

Name:
Dvi to Pdf (or whatever that you want)

Application:
"%PSPath%\Batch\dvi2pdf.cmd" "%Name%"

Now for this one to work you have to the instalation directory of PsPad and create a folder called "Batch" and then create a txt file with the following

@echo off
SET prop=%1
SET prop=###%prop%###
SET prop=%prop:"###=%
SET prop=%prop:###"=%
SET prop=%prop:###=%
"path_for_miktex\MiKTeX 2.7\miktex\bin\dvipdfm.exe" -f "path_for_miktex\MiKTeX 2.7\dvipdfm\config\cm-super-t1.map" "%prop%"
"path_for_acrobat\Adobe\Acrobat\Acrobat.exe" "%prop%.pdf"

Then save the file and rename it as "dvi2pdf.cmd" it should work! follow:
file --> open with program --> Dvi to Pdf
to get in the menu that calls the rutine that creates the pdf file.
Do similar to create ps files.
Post Reply