WinEdtNew Button for alternative Viewer

Information and discussion about WinEdt, a commercial integrated LaTeX environment for Windows
Post Reply
datenstation
Posts: 2
Joined: Thu Sep 19, 2013 10:25 am

New Button for alternative Viewer

Post by datenstation »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

datenstation
Posts: 2
Joined: Thu Sep 19, 2013 10:25 am

New Button for alternative Viewer

Post by datenstation »

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.
  1. Configure in WinEdt -> Options -> Execution Modes -> PDF Viewer an alternative PDF viewer.
  2. Search in "%WinEdt%ConfigPDFAutoDetect.edt" which variable is connected with the PDF viewer for example "PDF-View3"
  3. Make a copy of "PDF Preview.edt" in %WinEdt%ExecPDF and rename this copy for example in "PDF Preview1.edt".
  4. Now edit "PDF Preview1.edt" and replace all. PDF-View variables with PDF-View3 (like in 2. found).
  5. Now start the Options Interface under WinEdt -> Options -> Options Interface.
  6. Create Button for Toolbar
  7. [list=a]
  8. You find the Options Interface "Toolbar.ini" under Opt. Interf. -> Menus and Toolbar -> Toolbar.
  9. Create now in "Toolbar.ini" a new button like Button="Adobe_PDF_Preview2" next to the other toolbar button for the PDF viewer.
  10. Now open "MainMenu.ini" which you found under Opt. Interf. -> Menus and Toolbar -> Main Menu.
  11. 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"
    
[*]Save everything and press the button "Load Current Script" <-- important.[/*]

[*]Now restart WinEdt[/list]
Post Reply