When it comes to China’s international prestige, no price is too high, no measure too small.

With President Obama and other world leaders headed to Beijing this weekend for the Asia-Pacific Economic Cooperation meeting, schools and government agencies have been shuttered. Half the city’s cars have been banned from the streets. Much of the capital has gone into lockdown.

Couples seeking to marry (or divorce, for that matter) will have to stem their passions.

Even the dead will have to wait, as some mortuaries are forbidding a clothes-burning ritual at funerals until most foreign dignitaries leave town on Nov. 14.

To ensure blue, pollution-free skies, scores of factories across the region have been shut down, including the heating supply for the entire neighboring city of Tianjin, where nighttime temperatures in the mid-30s are forecast.

China’s Communist leaders have a long tradition of going to extremes to burnish their country’s image. Their preparations in recent months echo the herculean measures taken before the Beijing Olympics.

In 2008, residents were evicted from some areas, and homes were demolished to make way for new venues. Activists were rounded up and imprisoned. The government enforced strict censorship and cracked down on Tibet and other areas of unrest.

Preparations this time also have included questionable human rights tactics, with many petitioners and government protesters rounded up and arrested ahead of the meeting to prevent potentially embarrassing criticisms of the government.

And in Huairou, the northern Beijing suburb that is hosting the summit, almost 9,000 houses have been demolished and their residents relocated to build quaint, Disney-like streets of fake-ancient Chinese teahouses, an effort that began as early as three years ago, according to state-run media.

On the security front, Beijing has sent swarms of police officers onto the streets and has organized tens of thousands of security volunteers, elderly men and women dressed in standard-issue red-and-gray windbreakers, to report suspicious behaviors.

In recent weeks, the magnitude of overpreparation in state media reports has begun veering into the realm of bizarre.

To staff the conference, the government weeded through more than 8,000 candidates and chose 2,280 finalists, who had to endure rigorous training to relearn how to sit, stand, walk and even smile, according to the People’s Daily, the party’s official mouthpiece.

Those who passed had to master four degrees of smiles along with their respective suitabilities for different situations. They also were taught the government-sanctioned method of looking at a fellow human being. (Don’t look directly into the other’s eyes; aim instead for the area between the eyes and the nose.)

On behalf of those world leaders planning to ride an elevator or escalator, China pressed into service 103 operators who were required to pass a certification test just for the event.

Behind the craziness, of course, are serious goals at stake for China.

Beyond the potential for prestige or embarrassment, as the annual event’s host, experts say, China is at a precarious point in its development and international standing.

Its aggressive bullying tactics in territorial disputes in recent years have earned strong enmity from its neighbors. It is trying to calm relations with such countries as its perennial enemy Japan and neighboring Vietnam, which saw violent anti-Chinese riots earlier this year.

China’s always complicated relationship with the United States also is facing its share of bumps. There are long-standing disagreements over cyberhacking, human rights and territorial disputes with U.S. allies in Asia. Among the two nations’ new disagreements is China’s effort to draw countries into two economic and trade initiatives — the Asian Investment Infrastructure Bank and the Free Trade Area of the Asia Pacific — both of which U.S. officials have opposed in part because of concerns about giving China even greater power in the region.

In the face of such intractable disputes with China, perhaps visiting world leaders will find some small solace in the meticulous preparations China has made on their behalf — figuring out, for example, the exact number of paces waiters should take to bring food from the kitchen to the conference’s dining halls: 484 steps, ideally using exactly five minutes and 45 seconds, if they can manage it.

Xu Yangjingjing contributed to this report.