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.



English Series: Present Perfect

We use Present Perfect Tense when we use it to talk about a something that started in the past and continued until now.

It is made up from: have/has + past participle.

Example:
I have been in Japan for 3 years. (From 3 years ago in the past until now, I have been in Japan. I didn't live in another place.)



[Ref]
******************************

We use Present Perfect Progressive Tense when we talks about how long you have been doing something you started in the past and still continue now.

The present perfect progressive tense has two uses. It is used for:
(1) a continuous activity that began in the past and continues into the present, or
(2) a continuous activity that began in past but has now finished (usually very recently).

It is made up from: have/has + present participle.

Example:
1. The students have been practicing the play since last month.
2. Amanda has been relying on a pay rise to pay her student loan. (Amanda might still be relying on a pay rise, or she might have received the pay rise. You can't tell from this sentence. However, this information is just setting the scene for some more information about Amanda's present situation.)



[Ref 1][Ref 2]
******************************

Perhaps, the correct usage of for and since are relevant to this post.

Since:
Use since + (a specific time) like March 31, or 9:19 a.m., or Tuesday.

Example:
John has helped me since 10:00 this morning.

For:
Use for + (a length of time) like 1 day, or 3 hours, or 5 years.

Example:
John has helped me for 8 hours. (Present Perfect Tense)
Those people went to Europe for 2 months. (Past Tense)

[Ref]

Friday, July 18, 2014

MS Word Series: Cross-reference with MS Word 2007

Preliminary article

Let say you want to cross-reference your fig. 1 in the body text.
But your inserted caption written as Figure 1.
MS Word 2007 does not allow you to insert only the number, so will get exactly Figure 1.

One way to work around this is by following steps.


  1. Press Alt+F9 to toggle the field codes.
  2. Insert \# "0" at the end of the codes.
  3. Do step 1 again.
  4. Press F9 to update.
and you're done!!

[Ref]

Tuesday, July 15, 2014

MS Word Series: Useful MS Word Shortcut You Wish To Know Earlier

Ctrl + Shift + Spacebar

Prevent words from being separated at the end of a line

Ctrl+Shift+Hyphen (Backslash, if JP keyboard) 

Hyphenated compound you don't want to break at the end of a line

Ctrl + Hyphen 

A conditional hyphen (one that is printed only if it falls at a line break)

Shift + Enter

Line break

Ctrl + Alt + V

Paste special

Alt + Ctrl + minus sign

An em dash

Ctrl + minus sign

An en dash

Ctrl + Spacebar

Remove character formatting

Ctrl + Alt + Home

Browse selection by Ctrl + Page Up/Down 

Ctrl + Shift + N

Apply normal style to the current paragraph 


Tuesday, July 8, 2014

LaTeX Series: Embed Font & Generating Correct Margin

For IEEE submission, the font have to be embedded into the file. However, usually latex will not embed fonts such as Times-Italic, Times-Roman, Times-BoldItalic, Times-Bold, Helvetica and Courier.

It can be easily fixed using Adobe pdf printer, however you need to have Adobe Pro. As an alternative way, you could use terminal or command window to generate the desired pdf by using commands below.

Command Window
dvilatex file.tex
bibtex file
latex file.tex
latex file.tex
dvips -Ppdf -G0 -tletter file.dvi 
ps2pdf -dCompatibilityLevel#1.4 -dPDFSETTINGS#/prepress file.ps file.pdf

Terminal
ps2pdf -dCompatibilityLevel=1.4 -dPDFSETTINGS#/prepress file.ps file.pdf
[Source]


The command:

dvips -Ppdf -G0 -tletter file.dvi

will generate a letter size output. You can change the desired size by the -t option such as a4 to generate A4 size output.

How to Solve Windows 7 Crashes

Refer to this link.