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...

Monday, August 18, 2014

Doa Hilangkan Sifat Resah Dan Terbeban Dengan Hutang

Abu Said Al-Khudhri RA berkata: “Pada suatu hari Rasulullah SAW masuk ke masjid. Tiba-tiba ada seorang sahabat bernama Abu Umamah RA sedang duduk di sana. Beliau bertanya: ”Wahai Abu Umamah, kenapa aku melihat engkau sedang duduk (di masjid) di luar waktu solat?” Beliau menjawab: ”Aku resah memikirkan hutangku, wahai Rasulullah.” Beliau bertanya: ”Mahukah aku ajarkan kepadamu sebuah doa yang apabila engkau baca maka Allah taala akan menghilangkan keresahanmu dan melunasi hutangmu?” Dia menjawab: ”Sudah tentu ya Rasulullah.”

Beliau bersabda,”Jika engkau berada di waktu pagi mahupun petang, bacalah doa:

اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ الْهَمِّ وَالْحَزَنِ وَأَعُوذُ بِكَ مِنْ الْعَجْزِ وَالْكَسَلِ وَأَعُوذُ بِكَ مِنْ الْجُبْنِ وَالْبُخْلِ وَأَعُوذُ بِكَ مِنْ غَلَبَةِ الدَّيْنِ وَقَهْرِ الرِّجَالِ

“Ya Allah, sesungguhnya aku berlindung kepada Engkau dari perasaan resah dan sedih. Aku berlindung kepada Engkau dari sifat lemah dan malas. Aku berlindung kepada Engkau dari sifat pengecut dan kedekut. Dan aku berlindung kepada Engkau dari belenggu hutang dan kekerasan manusia.”

Thursday, July 31, 2014

Pintu Masuk Syaitan

Berkata Imam Al-Ghazali, diantara pintu masuk syaitan adalah:

1) Marah

§ Elakkan memukul anak ketika marah
§ Taawuz (Auzubillah) utk elakkan marah
§ Tukar posisi, kalau berdiri; duduk dan sebaliknya
§ Berwuduk

2) Hasad Dengki

3) Makan Yang Menyebabkan Kenyang Melampau

§ Menyebabkan malas

4) Keinginan Untuk Berhias Yang Melampau
§ Pembaziran
§ Menunjuk-nunjuk

5) Gopoh dan Meninggalkan Perbuatan Menyemak Sesuatu Perkara Sebelum Disebarkan
6) Cinta Kepada Harta Benda

7) Taksub Kepada Aliran, Guru, Mazhab dll

§ Membela orang yang melakukan kesalahan disebabkan sama aliran
§ Menghina dan mengutuk orang yang berbeza aliran
§ Mengutuk para ulama
§ Daging para ulama beracun. Ibnu ‘Asaakir rahimahullah berkata:

واعلم يا أخي وفقنا الله وإياك لمرضاته وجعلنا ممن يخشاه ويتقيه حق تقاته أن لحوم العلماء رحمة الله عليهم مسمومة وعادة الله في هتك أستار منتقصيهم معلومة لأن الوقيعة فيهم بما هم منه براء أمره عظيم والتناول لأعراضهم بالزور والإفتراء مرتع وخيم والاختلاق على من اختاره الله منهم لنعش العلم خلق ذميم

“Ketahuilah wahai saudaraku – semoga Allah memberikan taufiqNya kepada kami dan juga kepada engkau menuju keridhoanNya serta mmenjadikan kita termasuk dari kalangan orang-orang yang takut dan bertakwa kepadaNya dengan ketakwaan yang sesungguhnya – bahwasanya daging para ulama – semoga Allah merahmati mereka – adalah beracun, dan kebiasaan Allah untuk merobek tirai para pencela mereka telah diketahui, karena mencela para ulama dengan perkara-perkara yang mereka sendiri berlepas diri merupakan perkara yang besar, dan mencela kehormatan mereka dengan kebohongan dan penipuan adalah lahan yang buruk, serta berdusta atas para ulama yang telah dipilih oleh Allah untuk menegakkan ilmu merupakan akhlak yang tercela”. (Tabyiin Kadzib Al-Muftari hal 29)

§ Hendak menguji keberkesanan ilmu dan iman ialah dengan melihat kepada akhlak seseorang.
§ Akhlak yang paling utama adalah kepada isteri. Sabda Nabi SAW:

أَكْمَلُ الْمُؤْمِنِيْنَ إِيْمَانًا أَحْسَنُهُمْ خُلُقًا وَخِيَارُكُمْ خِيَارُكُمْ لِنِسَائِهِمْ خُلُقًا

“Orang yang imannya paling sempurna diantara kaum mukminin adalah orang yang paling bagus akhlaknya di antara mereka, dan sebaik-baik kalian adalah yang terbaik akhlaknya terhadap isteri-isterinya.”
[HR At-Thirmidzi no 1162,Ibnu Majah no 1987 dan dishahihkan oleh Syaikh Al-Albani dalam As-Shahihah no 284].

خَيْرُكُمْ خَيْرُكُمْ لِأَهْلِهِ وَأَنَا خَيْرُكُمْ لِأَهْلِي

“Sebaik-baik kalian adalah yang paling baik terhadap keluarganya. Dan akulah yang paling baik di antara kalian dalam bermuamalah dengan keluargaku.”
[HR At-Thirmidzi no 3895,Ibnu Majah no 1977, dishahihkan oleh Syaikh Al-Albani dalam As-Shahihah no 285]

8) Kebakhilan dan Terlalu Takut Fakir

§ Zuhud: Harta tidak berada dalam hati, hanya di tangan
§ Zuhud: Emas dan pasir, sama nilai di tangan [Hassan Al-Banna]

9) Adanya Guru-Guru Agama Yang Mengajar Orang Awam, Ilmu Yang Tidak Sampai Peringkat Orang Awam Belajar- Ilmu perbahasan ulama yang mendalam- Timbul fitnah, pening orang awam.

Sumber Utama:
[1] Ustaz Syed Mohd Norhisyam Al-Idrus, https://www.youtube.com/watch?v=U9bFzCi8q9Y

Sumber Tambahan:
[2] http://muslimafiyah.com/mau-tahu-akhlak-sebenarnya-seseorang-tanyalah-istrinya-dan-ajaklah-bersafar.html
[3] http://keindahanislam.net/2014/01/29/daging-ulama-itu-beracun/

Tuesday, July 22, 2014

English Series: Past Perfect

Past Perfect:

When we talk about something that happened in the past we sometimes want to refer back to something that happened before that time.

The past perfect tense is also used to emphasize that an action was completed before another took place.

Example:
1. When Mrs Brown opened the washing machine she realised she had washed the cat.
2. I had called police before I investigated the noise in the garden.
    (First: I called the police. Next: I investigated the noise.)



[Ref 1][Ref 2]

Past Perfect Progressive:

The past perfect progressive tense is used to show that an on-going action in the past has ended.

Example:
He just couldn't summon the energy. He had been working at the dock all afternoon.