WinEdit User Guide
WinEdit User Guide
Quick Guide
Aleksander Simonic
19932015
Contents
List of Figures
Acknowledgements
1
1.1
1.2
1.3
1.4
2
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 6
. 7
. 8
. 9
. 10
. 10
13
WinEdt Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Configuration Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Macro Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1
5.2
5.3
1
2
3
4
5
4.1
4.2
4.3
4.4
4.5
5
.
.
.
.
3.1
3.2
3.3
4
Getting Started
2.1
2.2
2.3
2.4
2.5
2.6
3
vii
17
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
18
19
20
21
22
23
Graphics Inclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Color Package Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Rotated objects examples . . . . . . . . . . . . . . . . . . . . . . . . . . 26
iii
Contents
5.4
5.5
5.6
5.7
5.8
5.9
iv
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
27
28
29
29
30
32
List of Figures
1.1
1.2
1.3
1.4
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 5
. 6
. 6
. 7
. 8
. 9
. 10
. 12
. 12
3.1
3.2
3.3
4.1
4.2
4.3
Preferences: Unicode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Document Settings: Code Page Converter . . . . . . . . . . . . . . . . . 18
Execution Modes: TeX Options . . . . . . . . . . . . . . . . . . . . . . . 21
5.1
5.2
5.3
5.4
5.5
5.6
5.7
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
2
3
4
23
24
24
26
26
28
33
vi
Acknowledgements
Ralf Heckmann supplied the template for LATEX and KOMA-Script package using
Palatino and Bera fonts. This template is used to typeset this document.1
Luca introduced and applied text styling commands, fixed a few inaccuracies,
and improved a few TEX examples.
Adriana proofread and edited the draft version. She fixed numerous language
mistakes, cut out some fat, and slightly rearranged the text in order to improve the
flow (for those that notice such things).
Here is where you will be acknowledged if you contribute a chapter (or a section)
of general interest that will improve this manual and help other users (new and
experienced) to learn how to better use WinEdt. There is plenty of room for
improvements and additional information but it will require the involvement of
the WinEdt Community. This is your chance to do something about it!
1. LATEX sources for this guide are available for download in a self-contained zipped archive. Unpack
its contents in a directory of your choice, open the main document QuickGuide.tex and set
it as the main file in WinEdts tree interface. Now you are ready to compile it with PDFTeXify
button (or the universal compile shortcut F9). After the compilation is complete the resulting pdf
document will be opened in your PDF Viewer (such as Adobe Reader or SumatraPDF). Please
think about the environment before you decide to print the whole document. . .
vii
Acknowledgements
viii
Chapter 1
Chapter 1
1.4 Upgrading
Upgrading from WinEdt 9 series is easy!
You dont have to uninstall the previous build of WinEdt 9 in order to upgrade
to the latest version. In fact you should not uninstall it if you want to preserve
custom settings in your Application Data or Local folder.
Here are the steps that you should perform for smooth upgrading:
Install the new version (over the old one).
Restart WinEdt; new default settings are used and your last project is loaded. . .
Execute Options -> Maintenance -> Upgrade Personal Configuration menu
command (to merge your personal settings with the new defaults).
The "Whats New?" section in WinEdts Manual explains what has been added,
changed, or fixed for the latest build. Check it out!
Chapter 2
2 Getting Started
So youve downloaded and installed WinEdt and started it for the first time. This is
what you see:
2 Getting Started
previewers are still grayed out. But perhaps now you see the logic: no intermediate
or final (pdf) format has been created yet and these actions still dont make any
sense and thats why they are still disabled (there is nothing to convert or preview).
Chapter 2
2 Getting Started
have a button or shortcut to initiate this action. It can also be done by clicking on
the current line bookmark in the left margin (or double-clicking on the left margin
in front of the desired line). If you are not familiar with these concepts7 try it: it
works very well!
7. Help in the Execution Modes dialog explains the Forward/Inverse search functionality in detail;
read it up as it is very useful and will save you a lot of time.
8. See Chapter 5 to learn how to import images or control paper size in LATEX without the need for
intermediate formats. For example, most users do not have to install Ghostscript or GSView unless
they really want to work with postscript output format. Beware though: this document cannot be
compiled into dvi or ps because we did not provide any legacy eps version of graphics. . .
9. This is customizable by "event handlers" but for most users the default settings will be enough.
Chapter 2
2 Getting Started
10
this project, notice that its source folder, while clean of TEX auxiliary and temporary
files, does contain two non-standard packages: chapterthumb.sty and xrcs.sty. If
you need to share the project with other people that also dont have them installed,
its best to leave them in your source document folder.
If, on the other hand, youre working on your own project which you dont need
to share with anyone (apart from the final result), and you want to keep your source
folder as neat as possible, you can place those files in a Packages subfolder.
But then TEX will not find them unless we inform it where to look
for them. To do that, use the TEXINPUTS variable to let TEX know that
Packages subfolder should be searched for such packages. In the Variables page of Execution Modes you can define TEXINPUTS as:
.;./Packages//;
Now you can move them into the Packages subfolder and TEX will find
them without any other effort.
TEXINPUTS and BIBINPUTS environment variables can be used to incorporate your
private (relative or fixed) locations for sty or bib files into TEXs input search path. If
too many packages are installed using this method TEX will become slow but for
a few private packages or bibliography databases this is an admissible and simple
solution that will allow you to keep your source directory free of such files and also
share bibliography databases among different projects.
The Execution Modes dialog offers many possibilities that you may have not been
aware of. You are urged to become familiar with this dialog and take advantage
of what can be done, from defining an alternative, TEX-friendly, PDF Viewer to
checking that your TEX system is properly installed, and lots in between. . .
Help in the Execution Modes dialog is thorough and in-depth. It explains how
WinEdt interacts with external accessories12 and what available alternatives13
can be easily incorporated in your custom version. If you are new to TEX-ing or
WinEdt you will greatly benefit from reading the dozen (or so) illustrated pages
of Help associated with this dialog. . .
11
Chapter 2
2 Getting Started
12
As already heavily hinted, WinEdt comes with extensive, detailed, and up-to-date
documentation in its on-line HTML-Help manual. It is easily opened by pressing
F1, and here you will find the description of all available WinEdt options and macro
functions. Help is also indexed1 to allow quick access to certain topics that might be
of interest to you. You should find it definitely worthwhile to spend a few minutes
investigating whats there and how its organized.
However, with the possible exception of a few sections in the WinEdt Manual, the
on-line documentation was not written as a gentle introduction for first-time users.
This guide is an attempt to be just that and to provide examples and hands-on
guidance for setting up TEX projects with WinEdt as the center of control. In this
guide we have tried to avoid duplicating information that is already available in the
Help Manual.
And as you have seen, you dont have to study WinEdts documentation in order
to start working on your TEX documents. The program is ready to go, by default
configured for MiKTEX or TEX Live accessories.
That being said let us briefly describe what you will find in WinEdts Help. It is
organized in three parts as described below, starting with the most accessible one.
13
Chapter 3
14
Chapter 3
The Options Interface has all the branches of WinEdts customizable configurations:
5. Many users are initially intimidated by the numerous options and possibilities and are afraid of
breaking something. However, if you approach it with an open mind you will soon realize that
this is actually a very good way to manage your customizations even if you are not a WinEdt
expert. Should something go wrong the Options Menu -> Maintenance menu has a command
Rebuild Default which will restore the default settings; you can then return and fix any mistake
and then use Rebuild Local settings.
15
16
Chapter 4
WinEdt is a unicode editor with support for UTF-8 or code page-specific encoding.
UTF-8 is the default format for TEX documents. This can be configured through
the Unicode section of the Options Interface - or through the Unicode page in the
Preferences dialog (Help explains the details):
UTF-8 is the best choice for TEX documents encoding. However, if you have to work
with legacy documents that were created in your default code page-specific format
WinEdt will treat such documents properly and will preserve their encoding. Users
that have to deal with code pages that are not native to their version of Windows will
have to use the CP converter to tell WinEdt how to treat such documents. WinEdt is
capable of handling both Unicode and (legacy) code page-specific documents.
17
will ensure that a document is properly loaded and saved. A similar convention is
used by emacs:
% -*-coding: utf-8 -*-
18
enables you to use UTF-8 (unicode) coding in LATEX documents. As long as you open
the document in WinEdt in UTF-8 mode you see the same characters in WinEdt as
in your compiled document (as is the case with this UTF-8 document):
c
C
Not all UTF-8 characters are currently supported by LATEX unless you load extra
packages. For example the e () symbol requires:
\usepackage{textcomp} %
\usepackage{eurosym} %
% get a "nicer" looking
%\let\texteuro\euro
%
Note the difference between the shape of the \euro (e) and \texteuro () symbols.
Such issues are non-WinEdt related and you will have to consult TEXs documentation or, if needed, seek help on the appropriate forum (such as TEX Newsgroup
where LATEX related topics are discussed).
You might have noticed that the preamble of this document also contains:
\catcode\=13
\def{} % WinEdt bullet (U+007F)-> Unicode Bullet (U+2022)
In WinEdt the shortcut Ctrl+Space (Tools menu -> Next Bullet) lets you move through
placeholders and fill in the actual data.
1. New in WinEdt 9.1.
19
Chapter 4
C
c
""
""
""
""
""
""
""
""
""
""
""
""
""
""
->
->
->
->
->
->
->
->
->
->
->
->
->
->
"{\ss}"
"{\AA}"
"{\AE}"
"{\aa}"
"{\ae}"
"{\OE}"
"{\oe}"
"{\O}"
"{\o}"
"\c{C}"
"\c{c}"
"\^{A}"
"\~{A}"
"\""{A}"
...
Note that the last item is not a typo! To specify double quotes inside a double-quoted
string they have to be repeated twice! Failing to observe this convention may completely
corrupt WinEdts translation table.
The read translation table supports two notations (eg. \^{A} and {\^A}). The write
translation table TeX_Write is the inverse of the read translation table (except that
it uses the first, preferable, notation where applicable). You should use translation
tables with some care: make a backup copy of your documents until you verify
that the tables are set up correctly. Careless application of translation tables may
irreversibly corrupt your documents (just like a global replace)!
20
While WinEdt supports unicode pretty well2 this is not necessarily the case for all
TEX engines. For example, pdfTeX is not a unicode application and supports only
limited unicode ranges, which may be enough for most international users that use
the Latin alphabet but certainly is not sufficient for CJK or Middle East users. But
any TEX engines limitation in this respect is not a WinEdt-related issue and you
should seek information or help with this on LATEX forums.
Happily TEX Systems such as MiKTEX and TEX Live include alternative TEX engines
that have a better (or different) approach to handling UTF-8 documents containing
characters outside the range supported by pdfTeX. And WinEdt provides an easy
interface to alternative TEX engines such as XeTeX and LuaTeX. All you do is select
your alternative from the drop-down button that lists different TEX compilers. Once
an alternative has been selected you do not have use the drop-down portion of the
button to activate the selected compiler until you want to change it again.
Furthermore, if you want to make XeLaTeX or LuaLaTeX your default PDFTeXify
engine you can easily do so in the TeX Options page of the Execution Modes dialog.
21
Chapter 4
However, as Emacs might not recognize such specification, it is better to use WinEdts
convention !Mode:: "TeX:DE:Soft:UTF-8" as described above.
Furthermore, for TEX documents WinEdt also detects the language submode from
babel and UTF-8 coding from the inputenc package:
// Determine Language Submodes from babel:
// \usepackage[french,german,italian,spanish]{babel}
// Determine Coding (UTF-8) from the preamble:
// \usepackage[utf8]{inputenc}
This functionality is implemented through event handler macros that are executed
before a document is loaded into WinEdt, and which ensure that WinEdt opens and
treats the document properly.3 The actual macro that is by default called from this
event handler is
%b\Macros\Events\GetMode.edt
If for some reason mode detection (or some portion of it) from comments is unwanted for your style of work you can edit this macro and comment out unwanted
portions or make any other desirable changes. However, note that this macro is
executed frequently and it has to be fast or else youll notice delays when opening
documents or even when collecting data in previously un-opened documents. . .
3. Event handlers are defined in the Advanced section of the Options Interface. Modes and
submodes are explained further in WinEdts Help Manual -> User Guide. . .
22
Figure 5.1: WinEdt classic and new-style logo in a suitable png format
1. This document cannot be compiled to dvi format because we did not provide alternative (legacy)
graphic formats like eps for the included images (on purpose!). Should you create an eps
image for each graphic file in the Images folder you will be able to compile it to dvi format.
But YAP (and other DVI viewers) will not properly display landscape pages or rotated tables.
Although some users may disagree, using dvipdf or dvips+pspdf to create pdf files with eps
images is not very efficient: eps images have to be converted to pdf every time the source is
compiled. Converters usually degrade the graphics quality and can result in other problems
such as misaligned or improperly placed images. It is much better to create images that can be
included in pdf documents and convert non-supported formats once and forever! They are not
supported because they are deemed obsolete and this will not change. If intermediate formats
work for you thats fine. If not there is no point complaining to the WinEdt Team since now you
know how we feel about it. Besides WinEdt is completely irrelevant to such issues. . .
23
Chapter 5
JPEG is a good format for pictures (non-vector graphics) like the one above. PNG
format is suitable for vector graphics or computer screenshots like the one below:
Now you know it can be done! Learn how to use graphicx package if you need to do
something more sophisticated. . .
24
Chapter 5
25
n
tio
a
rot
30
4
3
2
A
a
5
d
rot
at
ion
2
B
b
C
c
26
330
4
D
5
E
e
Parameter range
[0, 1]3
[0, 1]3
[0, 1]4
[0, 1]3
[0, H ] [0, 1]2
[0, H ] [0, 1]2
[0, 1]
{0, 1, . . . , L}3
{000000, . . . , FFFFFF}
{0, 1, . . . , M}3
{0, 1, . . . , N }
[363, 814]
M = 240
N = 15
L = 255
H = 360
H = 360
Default
Base colors/notions
red, green, blue
cyan, magenta, yellow
cyan, magenta, yellow, black
hue, saturation, brightness
hue, saturation, brightness
hue, saturation, brightness
gray
Red, Green, Blue
RRGGBB
Hue, Saturation, Brightness
Gray
lambda (nm)
Chapter 5
wave
Gray
HSB
HTML
RGB
gray
tHsb
Hsb
hsb
cmyk
cmy
rgb
Name
The preamble must load the following package for this to work:
27
28
Figure 5.6: Mathematica 3D-objects in landscape mode
The preamble must load the following package for this to work:
The best way to set the paper size in LATEX documents is to use the geometry package.
TEX itself does not have a notion of output paper size and this package is essential if
you need to change the paper size.
The following will properly handle paper size in the printed document:
\usepackage[letterpaper]{geometry} % or a4paper
Some users use dvi2pdf or even dvips and then ps2pdf because these conversions
seem to handle their choice of paper size correctly while PDFLaTeX does not.
However, this does not make much sense as default paper size settings in these
converters may change in future versions. Furthermore, and as already mentioned,
using intermediate formats to produce a pdf document is not very efficient and
tends to result in problems.
Learning how to use the geometry package is a much better way to handle paper
size issues. And this package can do much more. You should read its documentation
to learn about it. Type geometry in the interface that can be started from WinEdts
Help Menu -> LaTeX Doc (or Shift+Ctrl+F1 shortcut) and you can open the pdf
manual describing this package2 in detail.
2. Both the package and its documentation are, of course, a part of your TEX system and not WinEdt!
In fact WinEdt is completely irrelevant when it comes to such issues. If you need assistance you
should seek help on TEX forums.
29
Chapter 5
inactive
nomarker
noremarks
nonew
noold
Examples of usage:
\usepackage[active,new,old,remarks,marker]{xrcs}
\usepackage[active]{xrcs} % Only Additions- in blue colors
\usepackagep[active,old,nonew]{xrcs} % Only old text - in red
\usepackage[nomarker}{xrcs} % Only Additions: final version
Text example:
\RCSMark{IMPORTANT:} WinEdts \RCSDel{menu}\RCSRem{use capitals!}
\RCSAdd{Menu} should be thought of as an Action List...
30
Chapter 5
Once again, this is a very simplified revision system; it is somewhat primitive and it is
lacking all the features available in proper RCS. . . However, it may be of some interest since
it is very simple to use: in any text editor it is easy to search for \RCS. . .
31
Note that you have to specify the path UNIX-style (using forward instead of backward slash as folder separator). Avoid spaces in filenames (some TEX accessories
may not work properly with spaces in the filename specification).
Most TEX Systems allow you to place your bib files in a separate folder on your localtexmf
tree. For details consult the documentation that comes with your TEX System. MiKTEX
users can create a bibtex folder in their localtexmf tree, place their bib files there, and refresh
the FNDB in MiKTEXs Options interface.
For fancy pdf files use:
\usepackage{hyperref}
\hypersetup{
pdftitle={Shown in AR File Information},
pdfstartview=FitH,
% Fit the page horizontally
bookmarks=true,
% Open Bookmarks in AR
}
% more options can be found in
% TEXMF/doc/latex/hyperref/manual.pdf
To manually correct the hyphenation of a word that was not properly handled by
TEX (eg. Weltauffassung) put the following in the preamble:
\hyphenation{Welt-auf-fas-sung}
To prevent long titles in your table of contents (generated by LATEX) use alternative
short title:
\section[Short Title for TOC]{Long long long title}
You can find everything about TEX and LATEX on: TUG. . .
32
Chapter 5
Figure 5.7: Happy TEX-ing from TUG and the WinEdt Team
33
34