Openning a file in sumatrapdf

11 views
Skip to first unread message

Alain Delmotte

unread,
Nov 20, 2009, 12:25:47 PM11/20/09
to scite-interest
Hi!

I am trying to use SciTE to compile and view LaTeX files compiled to pdf.
I'd like to use sumatrapdf as this pdf viewer has Synctex possibility.

But I can't get it working. I have tried in the latex.properties file:
command.name.0.*.tex=View
command.0.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" $(FileName).pdf
and
command.name.1.*.tex=View
command.1.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" $(FileName).pdf
with no result, but the instruction
C:\Program Files\sumatrapdf\sumatrapdf.exe $(FileName).pdf
in a command prompt windows (under Windows XP)

If I replace
command.0.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" $(FileName).pdf
by
command.0.*.tex="C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
$(FileName).pdf
the file is opened in Adobe Acrobat Reader!

I really would like to be able to open with sumatrapdf for the synctex
facility.

Thanks for the help,

Alain

Leledumbo

unread,
Nov 22, 2009, 10:04:31 PM11/22/09
to scite-interest
Try setting the subsystem to 2, probably it's running in subsystem 0.
Check the docs for more information.

Alain Delmotte

unread,
Nov 25, 2009, 3:08:06 AM11/25/09
to scite-i...@googlegroups.com
And how to do this.
In the Help:

command.name./number/./filepattern/
command./number/./filepattern/

command.subsystem./number/./filepattern/

The first two lines correspond to what I did,

command.name.0.*.tex=View
command.0.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" $(FileName).pdf

changing 0 to 1 is only to change macro 0 to macro 1.
I didn't manage to implement the third, using:

command.1.0.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" $(FileName).pdf

I think I should use 1 (I did also try 2):
1 windows Programs that create their own windows
2 shellexec Run using ShellExecute
A good way to open HTML files and similar as it
handles this similarly to a user opening the file from the shell.

Further I do not understand why Acrobat Reader works and not sumatrapdf.

Thanks for the help.

--
Alain

Leledumbo a écrit :
> --
>
> You received this message because you are subscribed to the Google Groups "scite-interest" group.
> To post to this group, send email to scite-i...@googlegroups.com.
> To unsubscribe from this group, send email to scite-interes...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=.
>
>
>
>

scitefan

unread,
Nov 25, 2009, 4:29:39 AM11/25/09
to scite-interest
Hello,
try:
command.0.subsystem.$(file.patterns.tex)=1
scitefan
25thnov2009

Alain Delmotte

unread,
Nov 26, 2009, 3:11:34 AM11/26/09
to scite-i...@googlegroups.com
Hi!

Still no result, now even nothing happens (no eternal waiting, no crash,...)

I put the problem aside for tthe moment.

Thanks for the help.

--
Alain

scitefan a écrit :
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
>
>
>
>

scitefan

unread,
Nov 28, 2009, 10:47:15 AM11/28/09
to scite-interest
Dear Alian,
try the follwing lines:

command.name.0.*.tex=View PDF
command.0.subsystem.*.tex=1
command.0.*.tex=start C:\Program Files\sumatrapdf\sumatrapdf.exe -f $
(FiIeName).pdf

This works in my system.
If 'start' is not available use 'run' or compatible..
(-f command option for 'filename')
Have a Nice Day.
scitefan

Alain Delmotte

unread,
Nov 28, 2009, 2:58:34 PM11/28/09
to scite-i...@googlegroups.com
Dear scitefan!,

I had to use:
command.name.0.*.tex=View PDF
command.0.subsystem.*.tex=1
command.0.*.tex="C:\Program Files\sumatrapdf\sumatrapdf.exe" -f
$(FileName).pdf

Now I'll take the time to configure forward and inverse search between
source and pdf.

Thanks,

Alain

scitefan a écrit :
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
>
>
>
>

Reply all
Reply to author
Forward
0 new messages