[Fwd: Re: latex2e button on the Help menu]
Second try...
-------- Original Message --------
Subject: Re: [WinEdt] latex2e button on the Help menu
Date: Sun, 03 Aug 2008 20:20:59 -0400
From: Murray Eisenberg <murray <at> math.umass.edu>
Reply-To: <winedt+list <at> wsg.net>
Organization: Mathematics & Statistics, Univ. of Mass./Amherst
Now I'm confused, too... With WinEdt , I have a grayed-out LaTeX2e Help
item on the Help menu. I went to Menu Settings > &Help > &LaTeX2e and
there the Macro is:
HTMLHelp("%$('TeX-Help');\latex2e.chm",1,1);
and this Requires File Filter:
%$('TeX-Help');\latex2e.chm
What do those entries have to do with the command you describe?
HTMLHelp('%B\Doc\LaTeXHelpBook\LatexHelpBook.chm',1,1);
WinEdt Team wrote:
>> Thanks for the reply Alex. I followed both of your suggestions
>> and got stuck though.
>>
>> 1) I went to
>>
>> http://www.ctan.org/tex-archive/info/LatexHelpBook/
>>
>> and downloaded the latex2e.chm file, but nothing seemed to be
>> there. I was able to open the file but in the window panes all
>> that appeared were messages like: "navigation to this webpage
>> was cancelled" or "the address is not valid". I checked out the
>> other .chm files at the same site above and they did the same
>> thing.
>
> As Murray pointed out you need MS Help Compiler and you have to
> learn how to use it if you want to create a working LaTeX2e.chm
> from this package.
>
>> I note that Microsoft does offer a free tool for download, HTML
>> Help Workshop, that allows one to create .chm files. (Just go
>> to microsoft.com and search for "HTML Help Workshop".)
>>
>> However, using that tool would seem to involve a lot of manual
>> work to create an index, to set up all the internal links, etc.
>>
>> Any body on the list have experience doing that?
>
> yes. I decompiled LaTeXHelpBook chm files (using MS HTML Help
> Workshop). Then I edited the sources in WinEdt and recompiled
> it back using WinEdt's Interface to HTML Compiler... I don't
> remember the details but it can be done (you must generate hhp
> hhc and hhk files (and plenty of html topic files) by
> decompiling the chm file first). It takes some skill and
> familiarity with HTML Help Compiler. I prefer to edit sources
> directly in WinEdt -- that's how WinEdt's Help and Macro Manual
> are produced... But this may not be everybody's cup or tea
>
>> Q1: Am I doing something wrong here?
>
> Probably...
>
>> 2) I tried replacing latex2e.chm in the Menu Setup Dialog in
>> the "Macro" and "Requires File Filter" fields corresponding to
>> the latex2e button with latex2e.html, latex2e.pdf, etc. Didn't
>> seem to work. I'm guessing that to understand and get this to
>> work right I'd have to learn the WinEdt's macro language.
>>
>> Q2: Am I right? Could you give a quick pointer to a source that
>> would help me understand what's going on?
>
> You can not use HTMLHelp to open non-chm files.
>
> Use something like:
>
> ShellExecute("Open", "%$('TeX-Help');\doc\latex\latex2e.html", "",
> "%$('TeX-Help');\doc\latex", 1);
>
> or
>
> Run(|yap.exe "%$('TeX-Help');\doc\latex\latex2e.dvi"|);
>
> or
>
> Run(|$('AcroRead'); "%$('TeX-Help');\doc\latex\latex2e.pdf"|);
>
> I am not sure about the exact path in your version but you
> should be able to change that if required...
>
>> I know these questions don't involve incredibly important
>> matters but they do help me to understand how LaTeX and WinEdt
>> work. Thanks again for helping Alex.
>
> The last time I installed MiKTeX the latex2e.chm file was a
> part of it.
>
> Try:
>
> http://www.winedt.com/work/LaTeXHelpBook.zip
>
> (unzip it in WinEdt's Doc Folder) and define the menu item as:
>
> HTMLHelp('%B\Doc\LaTeXHelpBook\LatexHelpBook.chm',1,1);
>
> This is the version I recompiled (with a few fixes in the Index
> and slightly changed properties to preserve the position and
> size of Help Window). It will be included in new versions of
> WinEdt (in fact it is already a part of 5.6 beta
> documentation)...
>
> Best regards,
>
> alex
>
--
Murray Eisenberg murray <at> math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
--
--
Murray Eisenberg murray <at> math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305