.math {
    overflow-x: auto;
    white-space: nowrap;
    display: block;
}

.output {
    overflow-x: auto;
    word-wrap: normal;
}

/* Example CSS for LaTeX alignment */
.math { 
    font-family: 'Latin Modern Math', serif; 
    vertical-align: baseline; /* Adjust alignment */
  }