Hi Community,
we need a step by step explanation how to create a new button for an alternative PDF viewer (in our case we want to use Sumatra and Acrobat Reader). I know that it's possible to switch between different readers under "Execution modes -> PDF Viewer", but we want to switch that directly by using toolbar buttons.
Greetings!
WinEdt ⇒ New Button for alternative Viewer
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 2
- Joined: Thu Sep 19, 2013 10:25 am
New Button for alternative Viewer
OK, we found the solution after a few tries - so if someone is interested in it, here the step by step explanation how to create one.
[*]Now restart WinEdt[/list]
- Configure in WinEdt -> Options -> Execution Modes -> PDF Viewer an alternative PDF viewer.
- Search in "%WinEdt%ConfigPDFAutoDetect.edt" which variable is connected with the PDF viewer for example "PDF-View3"
- Make a copy of "PDF Preview.edt" in %WinEdt%ExecPDF and rename this copy for example in "PDF Preview1.edt".
- Now edit "PDF Preview1.edt" and replace all. PDF-View variables with PDF-View3 (like in 2. found).
- Now start the Options Interface under WinEdt -> Options -> Options Interface.
- Create Button for Toolbar [list=a]
- You find the Options Interface "Toolbar.ini" under Opt. Interf. -> Menus and Toolbar -> Toolbar.
- Create now in "Toolbar.ini" a new button like Button="Adobe_PDF_Preview2" next to the other toolbar button for the PDF viewer.
- Now open "MainMenu.ini" which you found under Opt. Interf. -> Menus and Toolbar -> Main Menu.
- Search for SUBMENU="PDF>" and create depending on settings in 3. and 6a.
Code: Select all
ITEM="Adobe_PDF_Preview2" CAPTION="Adobe PDF Pre&view2" IMAGE="AcroRead" MACRO="Exe('%bExecPDFPDF Prrview1.edt');" SHORTCUT="0::" REQ_FILTER="%P\%N.pdf"
[*]Now restart WinEdt[/list]