Yang Feng's Blog

A blog about R, Latex and many other stuff.

Best Latex Combination in Windows (Winedt 6 + SumatraPDF)

Posted by yangfeng on March 3, 2011

Winedt 6 + SumatraPDF
1. Install Winedt 6, sumatra pdf, miktex
2. Settings in winedt 6,
Options->Executive modes->PDF viewer->Change the path to SumatraPDF.
Tick the box for sync tex.
3. If you had winedt 5.5 before, there maybe associated problem. First uninstall winedt 5.5, then
Options->Configuration Wizard->Filetype Assoications
Select the file type you would like winedt 6 to associated with.
4. Wrapping in winedt 6. Here is my configuration: (It will automatically autowrap when resizing your window which I found very convenient to use).
Options->Options Interface->Formatting:Wrapping…->Wrapping->Change the corresponding paragraph to the following:

ENABLE_WRAPPING=1
WRAPPING_FILTER=”TeX;HTML;ANSI;ASCII|DTX;INS;STY;TOC;EDT;INI”

// If you don’t want TeX Documents to be treated in Soft Mode remove TeX; from the filter!
// Soft Wrapping (like Notepad):
SOFT_WRAPPING=1
SOFT_WRAPPING_FILTER=”TeX;HTML;ANSI;Soft|DTX;INS;STY;TOC;Hard”
//SOFT_WRAPPING_FILTER=”HTML;ANSI;Soft|DTX;INS;STY;TOC;Hard”

// For those that know how to use it…
SEMISOFT_WRAPPING=0
SEMISOFT_WRAPPING_FILTER=”XS|UNIX;PC”

// Fixed Right Margin
RIGHT_MARGIN=50

// Soft Wrapping Options
// Change to FIXED_RIGHT_MARGIN=0 if you want to use the
// size of the Window to determine Right Margin
// (resizing can be annoying!)…
FIXED_RIGHT_MARGIN=1
WRAP_AND_UNWRAP=1
REFORMAT_ON_RESIZE=1 // Ignored for Fixed Right Margin!

INDENTED_SOFT_WRAPPING=1 // Indent the whole Paragraph?
SHOW_LINE_BREAKS=0
SHOW_LINE_BREAKS_UNWRAPPED=0

// Wrap Comments in Soft Mode?
WRAP_SOFT_COMMENTS=1

// Break Lines even if Wrapping is turned off?
PERSISTENT_LINE_WRAPPING=0

// Undo information:
GROUP_UNDO=0
GROUP_UNDO_SOFT=1

Advertisement

3 Responses to “Best Latex Combination in Windows (Winedt 6 + SumatraPDF)”

  1. Huijun Pan said

    Just found this blog, interesting and informative.
    Could you please explain why this combination is the best,what’s the advantage?

    • yangfeng said

      Thanks! The best thing about the combination is that you can reserve look up the source of the .tex file by double clicking the contents in the PDF file. Now, we don’t need to read the .dvi file anymore.

      Also, about the automatic wrap, I think it is a very useful feature when you type.

  2. xiang huang said

    Thanks! Appreciate your work!
    I’m using your two ticks now, with slightly adjust RIGHT_MARGIN=99

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.