A. A person may not be adjudged guilty of a contempt of court except for misconduct defined as such, or made punishable as such, expressly by law.B. Except as otherwise provided in this Article, a court may punish a person adjudged guilty of contempt of court in connection with a criminal proceeding by a fine of not more than five hundred dollars, or by imprisonment for not more than six months, or both.C. When an attorney is adjudged guilty of a direct contempt of court, the punishment shall be limited to a fine of not more than one hundred dollars, or imprisonment for not more than twenty-four hours, or both; and, for any subsequent direct contempt of the same court by the same offender, a fine of not more than two hundred dollars, or imprisonment for not more than ten days, or both.D. A justice of the peace may punish a person adjudged guilty of a direct contempt of court by a fine of not more than fifty dollars, or imprisonment in the parish jail for not more than twenty-four hours, or both.E. When a contempt of court consists of the omission to perform an act which is yet in the power of the person charged with contempt to perform, he may be imprisoned until he performs it, and in such a case this shall be specified in the court’s order.