Custom WinEdt Optimized Latex input

Source: Internet
Author: User

A week before the busy preparation of the discussion class presentation, incidentally, there is a unit of examination questions need to be typeset, so the speed of Weibo update has been dragged back. To be honest, latex's "What you want to get" typesetting system is really a torment for people, and it's not suitable for fast document editing, but it's suitable for those of us with strong obsessive-compulsive tendencies to appreciate. The so-called "slow work out deliberately", with latex editing manuscripts, book layout is Mickle activities, there are many things in the process of this torture slowly accumulated. I in a few years examination proposition the process, from the beginning Word+mathtype gradually transition to Word+aurora, finally still can not help my that Qinglie obsessive-compulsive personality, put into the Miktex+winedt camp, the torture, hard, people don't understand and despise Slowly gathering together, there are some tips to improve your input efficiency:

1. Sometimes the input mathematical formula environment such as "$$" or "$$ $$", manual input will always be omitted, which caused some unpredictable errors in the compilation process, especially when the formula symbol of a large amount of miscellaneous when the debugging equivalent to a nightmare .... Then customize a shortcut key for entering a math environment?

WinEdt provides a script configuration program that can customize the GUI interface to open the Script configurator: (menu) Option->options Interface


Click "Menus and Tool Bar" on the left side of the WinEdt interface to select Main Menu.ini, and you'll see a long code form that defines everything about WinEdt, such as menu name command shortcuts, and so on.


If you want to define shortcut keys for new commands, it's best to be careful not to conflict with WinEdt's existing shortcut keys.

For example, at the end of this code to add a section of the implementation of automatic input mathematical formula environment "$$"

Item= "Mathintext"    caption= "$$"    macro= "Chr (-1, ' $ '); CHR (-1, ' $ '); CMD (' Char left '); "    Req_document=1    shortcut= "16461::ctrl+m"    req_selected_text=1  

This code is the product of my search [1], actually found that if you run the shortcut key "Ctrl+m" to an already selected Field object. It will overwrite the original field. And for my needs, hope isfields are not overwrittenTo achieve this philosophy in line with the "Semi-search semi- exploration"For the purpose of some of the existing shortcut key codes, especially in control pannel, I wrote an improved code myself.

Item= "Mathintext"    caption= "$$"//    macro= "Ifsel (2, ' > ',! ') SetSel (0); CHR (-1, ' $ '); CHR (-1, ' $ '); CMD (' Char left '); "    Macro= "Ifsel (2, ' > ',! ') SetSel (0); '); I Fsel (0, ' = ', "" "Ins (' $$ '); CharLeft; "", "" Inslabel (', ' $ ', ' $ ')    ; " Req_document=1    shortcut= "16461::ctrl+m"    req_selected_text=0     

As for the macro command that is used or not in this post to introduce the reference, recommend a small book of Daniel's minoritythe WinEdt Hacker ' s Guide,jason alexander,november 21, 1999 Click to open the link

Of course, if you just modify its corresponding shortcut key to the existing macro command such as \TEXTBF add shortcut, you can use the bold search, find the Req_document=1 line, add shortcut= "", and then move the cursor to the middle of two quotes, click Insert Shortcut in the Options Interface, then press ctrl+b on the popup screen.

After the modification, remember to save the current. ini file and "Load Script"



2. If you are not satisfied with the current edit form font, consider selecting the "Font scheme-" Font option in the left "option Pannel"


Select one of the equal-width fonts ... Winedt recommended the use of Verdana fonts and I love Conslas is only a personal hobby for everyone's reference


3. Sometimes we need to customize some inputs such as input

\lim\limits_{n\to\infty}
It's also annoying. We can customize the GUI like WinEdt. Page control the so-called GUI page control refers to such an interface


In WinEdt 6.0 or above you can also define your own symbol this is also in the "option Control" in just the choice "Tex Symbols"

There is a lot of Tex symbol shortcuts in this place. Custom is to build one yourself out (of course, you can also modify the original, but generally there is no need to do so), modeled after the original information, I hit one.

Page= "common" configuration= "" mode= "" group= "common \changyong.bmp" top=0 space=0 rows=2 columns=4 width=50 H Eight=25 item= "()" macro= "Ins (' \left (\right) '); CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft;    CharLeft; " Item= "[]" macro= "Ins (' \left[\right] '); CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft;    CharLeft; " Item= "{}" macro= "Ins (' \left\{\right\} '); CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft;    CharLeft; "      item= "| |" macro= "Ins (' \left|\right| '); CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft;    CharLeft; " Item= "{" macro= "Ins (' \left\{\right. '); CharLeft; CharLeft; CharLeft; CharLeft; CharLeft; CharLeft;    CharLeft; " Item= "Sum_i=1^n" macro= "Ins (' \sum_{i=1}^{n}{} ');    CharLeft; " Item= "Prod_i=1^n" macro= "Ins (' \prod_{i=1}^{n}{} ');    CharLeft; " Item= "Lim_xtoinfty" macro= "Ins (' \lim_{x\to+\infty}{} '); CharLeft; "

Note Here there is a picture changyong.bmp is to own according to the symbol you set up, here is more trouble, to do the position exactly, otherwise display is not good, but the relationship is not big, because it is your own set of yourself also know where the location is. Save and Load Script after input is OK



Custom WinEdt Optimized Latex input

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.