Monday, September 29, 2014

MS Word Series: Texsword

In the previous article, I have introduced an add in called texsword. Besides using latex style to generate equation, you can also use its functionality to number your typed equation using MS Word.

The [square root button] in the texsword [add-ins] tab will produce a three columns table. The first column is for the equation, the second column is for the bookmark name and the third column for equation number.

Reset Equation Numbering


1) Press [Shift+F9] to show the field
2) Add [\r 1] in the field to reset the number to 1 or any intended number. For example {SEQ Eq \r 1} where SEQ is for sequence number and Eq is a variable used by texsword to name the equation.
3) Press [F9] to update

Add Heading To The Equation Number


1) Open texsword via open command in MS Word.
2) Press [Alt+F11] to bring up the VB Editor.
3) On the left side, double click on [Module -> texsword_equation] to bring up the codes.
4) Go to TeXsword_bookmark() subroutine and you will see codes

' Draw ()
    Selection.TypeText Text:="("
    Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
        "SEQ Eq", PreserveFormatting:=True
    Selection.TypeText Text:=")"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.MoveLeft Unit:=wdCharacter, Count:=3, Extend:=wdExtend

5) Change the codes as follows

' Draw ()
    Selection.TypeText Text:="("
    Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
        "STYLEREF \s ""Heading 1""", PreserveFormatting:=False
    Selection.TypeText Text:="."
    Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
        "SEQ Eq", PreserveFormatting:=True
    Selection.TypeText Text:=")"
    Selection.MoveLeft Unit:=wdCharacter, Count:=1
    Selection.MoveLeft Unit:=wdCharacter, Count:=3, Extend:=wdExtend

The "Heading 1" can be changed to other headings when necessary.




MS Word Series: Working Smart With Alternative Equation Editor

Equation in MS Word


It is possible to transfer the equation created with TeXaide (refer to previous article) to MS Word or other word processor (I guess) by copy and paste special as picture. It is not possible to double click the picture to edit the equation. You have to edit the equation independently using TeXaide.

Alternatively, there are other "cool" tools out there to export LaTeX equation to MS Word such as:

  1. Texsword (my favorite)
  2. TexMaths
Texsword is targeted for MS Word user while TexMaths is for LibreOffice user. The functionality for both tools are equal in performance (based on my experience). The installation is easy and well explained in the documentation. The equation generated in the word processor is the same as TeXaide, an image.  However, for these tools, editing the equation can be easily done by double clicking the image and equation editor will appear. 

Now, choose the tool that best meet your expectation.

Texsword Installation For Windows 7


1) Go to [C:\Users\username\AppData\Roaming\Microsoft\Word\STARTUP], and put the texsword.dotm there.
2) Restart MS Word
3) You can see a new [add-ins] tab has been added. 


Happy "Equationing~"

MS Word Series: Editing Bookmark

It is easy to create or delete bookmark as explained in detail here.

It is however, possible to edit the created bookmark.

Steps:


1) Highlight new text/area
2) Go to Insert Tab -> Bookmark
3) Select the intended bookmark name
4) Click Add

Done!!

Thursday, September 18, 2014

XBMC: How to add icefilms

1. System
2. File Manager
3. Add source
4. Install from zip file
5. Enter "http://fusion.xbmchub.com"
6. Enter a name for this media source
7. Install from zip file
8. Click name entered in #6.
9. xbmc repos
10. ...anarchintost-projects..zip
11. Get Add-ons
12. Install what you want...