A former neuroscience graduate sat silently in a packed court as a judge told him about the charges filed against him, including murder and attempted murder, in one of the deadliest mass shootings in recent US history.

James Holmes, 24, appeared just as dazed yesterday as he did in his first court hearing after the Colorado cinema attack that left 12 people dead and 58 others injured.

After the charges were read, prosecutors and defence lawyers sparred over whether a notebook that, according to news reports, Holmes sent to his psychiatrist and had descriptions of the attack was privileged information.

It is an argument that foreshadows one of the case's most fundamental issues: Does Holmes have a mental illness and, if so, what role did it play in the massacre?

Sam Kamin, a law professor at the University of Denver, said there was "pronounced" evidence that the attack was premeditated, which would seem to make an insanity defence difficult. "But," he added, "the things that we don't know are what this case is going to hinge on, and that's his mental state."

In all, prosecutors charged Holmes with 142 counts over the shooting rampage at a midnight showing of the new Batman film, The Dark Knight Rises.

Holmes faces two first-degree murder charges for each of the 12 people killed and two attempted first-degree murder charges for every one of the 58 injured in the July 20 shooting in Aurora.

The maximum penalty for a first-degree murder conviction is death. The multiple charges expand the opportunities for prosecutors to obtain convictions.

"It's a much easier way for the prosecution to obtain a conviction," said Denver defence lawyer Peter Hedeen. "They throw as many (charges) up as they can. If you think you can prove it three different ways, you charge it three different ways."

Unlike Holmes' first court appearance on July 23, yesterday's hearing was not televised. At the request of the defence, District Chief Judge William Sylvester barred video and still cameras from the courtroom, saying expanded coverage could interfere with Holmes' right to a fair trial.

A shackled Holmes did not react as the charges were read. At one point, his hair still dyed orange-red, he leaned over to speak to one of his lawyers and furrowed his brow. When the judge asked him if he agreed to postponing a hearing so his team could have time to prepare, he said softly: "Yeah."

Some court spectators wore Batman T-shirts. Several people clasped their hands and bowed their heads as if in prayer before the hearing. One victim who attended was in a wheelchair with bandages on her leg and arm.

For the murder charges, one count included murder with deliberation, the other murder with extreme indifference. Both counts carry a maximum death penalty upon conviction; the minimum is life without parole.

In addition, Holmes was charged with one count of possession of explosives and one count of a crime of violence. Authorities said Holmes booby-trapped his flat with the intent to kill any officers responding there the night of the attack.

A conviction under the crime of violence charge means that any sentence, including life terms, would have to be served consecutively, not concurrently, said Craig Silverman, a former chief deputy district attorney in Denver.

That ensures that if laws change in the future, the person convicted would still serve a lengthy sentence.

Analysts expect the case to be dominated by arguments over the defendant's sanity.

Under Colorado law, defendants are not legally liable for their acts if their minds are so "diseased" that they cannot distinguish between right and wrong. But the law warns that "care should be taken not to confuse such mental disease or defect with moral obliquity, mental depravity, or passion growing out of anger, revenge, hatred, or other motives, and kindred evil conditions".

Holmes' lawyers could argue he is not mentally competent to stand trial - the argument offered by lawyers for Jared Loughner, who is accused of killing six people in 2011 in Tucson, Arizona, and wounding several others, including US congresswoman Gabrielle Giffords.

If Holmes goes to trial and is convicted, his lawyers can try to stave off a possible death penalty by arguing he is mentally ill.

Prosecutors will decide whether to seek the death penalty in the coming weeks.

Defence lawyer Tamara Brady said she would subpoena University of Colorado, Denver, psychiatrist Lynne Fenton, whom Holmes had been seeing, to give evidence in a dispute over whether the notebook is privileged because of a possible doctor-patient relationship.

Arapahoe County district attorney Carol Chambers disputed news reports that the notebook contained descriptions of an attack.

On Friday, court papers revealed that Holmes was seeing Ms Fenton. They did not say how long or if it was for a mental illness or another problem. An online resume listed schizophrenia as one of Ms Fenton's research interests.

Holmes' lawyers want to know who leaked the information to the media. Prosecutors say the notebook was inside a package Holmes reportedly sent to Ms Fenton at the university. Holmes came to the school's competitive neuroscience doctoral programme in June 2011 and dropped out a year later.

Authorities seized the package on July 23, three days after the shooting, in the post room of the medical campus where Holmes studied. A hearing on the matter was set for August 16.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.