Captain of engineering

Captain of Engineering is the title given to chief engineers who hold the rank of captain. In 2285, Montgomery Scott was ordered to report to the new transwarp vessel, the USS Excelsior as the captain of engineering. (Star Trek III: The Search for Spock)

He may have kept that title aboard the USS Enterprise-A, however, he was described as the "chief engineer" by captain Kirk in Star Trek VI: The Undiscovered Country. Geordi La Forge was given this tile in the novel Indistinguishable from Magic after being promoted to the rank of captain.