Gotham by Gaslight is a DC Comics one-shot by Brian Augustyn and Mike Mignola, with inks by P. Craig Russell. It spawned a sequel, Master of the Future (1991), also written by Augustyn, but with art by Eduardo Barreto.
Although not originally labeled as such, Gotham by Gaslight is considered to be the first Elseworlds story, where DC Comics heroes are taken out of their usual setting and put into alternate timelines or realities. Subsequent printings have included the "Elseworlds" logo.
In 1889, Bruce Wayne is on a tour of Europe. His trip to Europe ends in Vienna, where he has come to learn from Dr. Freud. Bruce tells Freud that he has a recurring dream in which he recalls the murder of his parents and decides he must return to Gotham City. On the return trip, Bruce meets Jacob Packer, an old family friend who he calls Uncle Jake, who also returned from a trip to Europe.
Shortly after arriving, Inspector Gordon inform Wayne about criminal gangs currently operating in Gotham. Gordon also shows Bruce the case of a man who poisoned his wife and tried to commit suicide with the poison, which left him alive with a permanent grin. Bruce takes up the mantle of Batman to fight criminals on the street.
At the same time, a series of murders of women take place and some people begin to suspect that Batman is the murderer. It is soon discovered that Jack the Ripper has come to Gotham, as the murders in Gotham City seem to resemble the Ripper murders.
After a search of Wayne Manor, a bloody knife is found under Bruce's bed and Bruce is arrested. A trial is held in which Uncle Jake is Bruce's defense attorney. After the trial, Bruce is convicted of being the Ripper and sentenced to be hanged for his crimes. Bruce is imprisoned in Arkham Asylum.
Once in prison, Gordon gives Bruce all the documentation on the crimes. Bruce toils day and night to try to figure out how he can get the Ripper. Just one day before the execution, Bruce learns the identity of the Ripper by discovering he had the skill of a surgeon and used a knife that belonged to the medical group who worked with his father. Bruce escapes from prison with the help of Alfred and heads straight for the Ripper.
Batman interrupts the Ripper as he is about to claim his next victim. Batman chases the Ripper throughout Gotham and the two eventually come to a stop at the grave of Thomas and Martha Wayne, where it is revealed that Jacob Packer is the Ripper. Packer had been trained in medicine and law with the money of Thomas Wayne, but he was driven insane by Martha Wayne's rejection of his advances. Since then he was killing women who resemble Martha to silence the laughter of Martha he heard in his head.
Packer reveals that he hired an assassin to kill the Waynes. Gordon appears at this time with the police and Batman tells them to arrest Packer. Packer confesses that he is the Ripper and tries to kill Batman, but Gordon shoots Packer dead at the last minute. Batman disappears into the shadows, leaving Gordon to take in the body of Jack the Ripper.