Tuesday, February 26, 2008

LaTex: Fixing Wrong Figure Numbers

LaTex: Fixing Wrong Figure Numbers

The post is copied from: Terminally Incoherent


What I tell you right now may save you hours of extensive debugging, cursing under your breath, commenting out custom code dealing with figure layout and much frustration. Whenever you use figures, always (and I mean ALWAYS EVER FOREVER ALWAYS) put \caption first, and \label second like this:



\begin{figure}[htp]
\centering
\includegraphics{image.eps}
\caption{Some Image}
\label{fig:some-image}
\end{figure}
If you put the \label above \caption you will run into trouble when referencing figures inside subsections. In my case, the caption underneath the figure would say Fig. 4.2 but the output of \ref would be 4.3.10 because somehow it was picking up the section numbers wrong.

I had to submit the document today n all chapters except chapter 1 had \label above \caption n i was so *&^*&%^&$%* but i found on google search a blog Terminally Incoherent. It helped me n i m really thankful to the owner of the blog.

Blogged with Flock

Saturday, February 16, 2008

NWFP asked to boost security of foreigners

Source: Dawn, February 16, 2008

PESHAWAR, Feb 15: The federal interior ministry has asked the provincial government to
make foolproof arrangements for security of the people associated with multinational companies, especially foreign staff.

but y??? do they have more rights than pakistani citizens? when the pakistani citizens are not 'eligible' to enjoy secure life then y is the govt wasting its resources in providing this 'luxury' to foreigners... I must repeat mush's slogan 'Pakistan First' here... under the light of this slogan the govt's 1st priority shld b security of pakistan n its citizens n then rest of the world i guess...

Full story follows:

“A letter sent from the prime minister’s secretariat last week to the provincial government
has asked the NWFP home secretary and inspector-general of police to constitute a special security squad to safeguard installations of foreign investors and their workers,” sources in
the police department told Dawn.

Such directives have been issued to the four provincial and Azad Jammu and Kashmir governments in view of a letter sent to the federal government a fortnight ago by representatives of multinational companies.The letter, the sources said, stated that
the fast deteriorating law and order situation and threats to the foreign staff of multinational
firms and companies was a source of immense concern for  them.

The Frontier province, they said, was the area of gravest concern for the investors due to the
spate of suicide attacks and bomb explosions.

The letter said the foreign staff of the multinational companies and industrial units faced
difficulties in their movements in the country due to which their businesses could suffer. It urged the government to improve security arrangements for the staff of the multinational companies and firms so they could move freely and visit their outlets across the country without any fear.

“We have asked all police stations to provide security to outlets of multinational ventures in
their respective jurisdictions according to the government’s directives,” said a police official.
Quoting the letter, he said the foreign investors had also warned the government of stopping investment in the country if their security was not beefed up immediately.

Blogged with Flock

US student kills five, then himself at college campus

US student kills five, then himself at college campus

had he been a muslim, it would have been proven by now tht he had links with alqaeda n got training from pakistan :)... btw y dont US officials call him a terrorist coz he killed 5 ppl... y r there any reports tht his home has been bombed n levelled? y isnt there any news abt his family members detained ???

Blogged with Flock

Former AG Questions ‘SC haste’

Former AG Questions ‘SC haste’
Source: Dawn

By Our Political Correspondent


LAHORE, Feb 15: Former law minister and attorney-general Syed Iqbal Haider has expressed surprise over the way the Supreme Court issued its judgment in favour of the Nov 3 emergency rule on Thursday and disposed of a review petition against it the next day although the matter was not of urgent nature.

In a statement on Friday, he said the review petitions had been filed by people with dubious credentials who belonged to Gen Musharraf’s camp.

He said Friday was the last working day before the elections and the judges hurriedly completed all proceedings, possibly because they thought that after the polls they would not be there to give their judgment.

He said even the petitioners’ counsel had requested for an adjournment for preparation because they were informed by the SC only the night before that their case was fixed before a 16-meber bench for Friday. He said by disposing of the review petition, the court had blocked the remedy by the “independent judiciary” when it would be restored.

He said the incumbent judges were forgetting one basic principle of law that they could not be judge in their own case.

“The persons who validated the emergency were not competent to do so because they were beneficiaries of the order which even its author Gen Musharraf had admitted was unconstitutional.

“The so-called validation of the proclamation of emergency and dismissal of the review petition is an exercise in futility as it is without jurisdiction and lawful authority and is of no lawful effect or consequence.”

The independent judiciary would be competent to set it aside, he said.

He argued no important political party or bar representative had challenged the proclamation of emergency for the simple reason that no lawful judicial forum was available to decide the matter. Had they filed any petition, they would have accorded recognition to the existing courts.

Blogged with Flock

Thursday, February 14, 2008

Who says we are a poor country?


A list of gifts accepted by U.S officials from foreign government sources in 2004 published in the Federal Register last week shows that Pakistan outdid most countries in the world, gifting U.S officials carpets, rugs, shawls, jewelry and antique pieces.

Pakistan's 'gifting' diplomacy starts right at the top with its military ruler Pervez Musharraf presenting Bush with an dark wood table inlaid with bone valued at $ 1400 during his December 2004 visit to Washington DC. He also gave Bush an antique muzzle loader from the 1800s, a cream wool Pakistani coat and hat.

Mrs Sehba Musharraf gave First Lady Laura Bush a gold light and dark pink garnet and pink tourmaline chandelier earrings; and a 17" light and dark pink garnet and pink tourmaline beaded necklace. Full Story

Blogged with Flock