Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Tuesday, February 16, 2010

Tex/Latex to Word doc

As latex is not always acceptable or not preferred by some user, particularly people you can not refuse their requirement. A Latex to doc is needed. There are commercial code available, like GrnidEQ and Tex2Word, they are nice, but around $100 each. For user with not so much feature is needed like the editable equations, it is not worthy to buy it. Additionally, LaTex user always prefer to use open source. So an alternative method with reasonable conversion is needed.

The easiest way is convert Latex to HTML at first, and import html to word afterwards. I just want to convert the equations to simple pictures, so latex2html and tex2page are the two available script based applications. During the testing of tex2page, I find a problem that all the equations can not get correct equation numbers, it alwasy restart from 1, and the cross-reference can not be built correctly. And latex2html works fine on the cross-reference, but another problem by latex2html is, it always split the equation to several parts, and sometime, underline is added to the equations, I still can not figure it out how to make the whole equation to be a single picture. Anyway, latex2html is current conversion tool for me.

Friday, February 27, 2009

Windows XP Shortcuts

Windows XP Shortcuts:

ALT+- (ALT+hyphen) Displays the Multiple Document Interface (MDI) child window's System menu
ALT+ENTER View properties for the selected item
ALT+ESC Cycle through items in the order they were opened
ALT+F4 Close the active item, or quit the active program
ALT+SPACEBAR Display the System menu for the active window
ALT+TAB Switch between open items
ALT+Underlined letter Display the corresponding menu
BACKSPACE View the folder one level up in My Computer or Windows Explorer


CTRL+A Select all
CTRL+B Bold
CTRL+C Copy
CTRL+I Italics
CTRL+O Open an item
CTRL+U Underline
CTRL+V Paste
CTRL+X Cut
CTRL+Z Undo
CTRL+F4 Close the active document
CTRL while dragging Copy selected item
CTRL+SHIFT while dragging Create shortcut to selected iteM
CTRL+RIGHT ARROW Move the insertion point to the beginning of the next word
CTRL+LEFT ARROW Move the insertion point to the beginning of the previous word
CTRL+DOWN ARROW Move the insertion point to the beginning of the next paragraph
CTRL+UP ARROW Move the insertion point to the beginning of the previous paragraph
SHIFT+DELETE Delete selected item permanently without placing the item in the Recycle Bin
ESC Cancel the current task


F1 Displays Help
F2 Rename selected item
F3 Search for a file or folder
F4 Display the Address bar list in My Computer or Windows Explorer
F5 Refresh the active window
F6 Cycle through screen elements in a window or on the desktop
F10 Activate the menu bar in the active program
SHIFT+F10 Display the shortcut menu for the selected item
CTRL+ESC Display the Start menu
SHIFT+CTRL+ESC Launches Task Manager
SHIFT when you insert a CD Prevent the CD from automatically playing


WIN Display or hide the Start menu
WIN+BREAK Display the System Properties dialog box
WIN+D Minimizes all Windows and shows the Desktop
WIN+E Open Windows Explorer
WIN+F Search for a file or folder
WIN+F+CTRL Search for computers
WIN+L Locks the desktop
WIN+M Minimize or restore all windows
WIN+R Open the Run dialog box
WIN+TAB Switch between open items

Tuesday, June 10, 2008

Tips for Excel VBA

In a small Excel document, the input data need to be validated before saving. That is why a VBA code is needed. I hope this can also be done using formula, but a short VBA code look more sophisticated.

Firstly, Target is a range variable where the just input data located, it is a cell, generally. Secondly, I need to autofill or change some cells according to the new input data, I have to call the subroutine from the Change event, but, of cause, we can not modify the cell directly, otherwise, it will call such subroutine continously into a endless loop. What we need is inserting the code between
Application.EnableEvents = False
....
Application.EnableEvents = True

Finnally, to check if a cell is empty or not can be done by built-in function IsEmpty().

Monday, November 19, 2007

another vimrc setup under windows

Under windows, vim or gvim need to be set according to users special purpose.
Today, I got something useful configuration.

  • Set the start size of the gvim window, is can be done using the following command in .vimrc file.

set lines=45 columns=100

For maximum the gvim windows, using

if (has("gui_running") && (winnr("$") > 1)
set lines=99999 columns=99999
endif


there are also some more detailed discussion about such setup, refer to the webpage.
http://www.nabble.com/size-of-gvim-window-on-WIN32-t357190.html.

  • In order to edit the file with vim from Total Commander or Speed Commander, just set the edit application in setting to whatever you prefer. This is similar to view command.