Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2915
Closed
Open
Issue created Aug 19, 2022 by Administrator@rootContributor

Support for \parbox[position]{width}{text}

Created by: brichwin

Is your feature request related to a problem? Please describe. Multi-line text comments in aligned equations are common in math textbooks. Typically they are generated by chunking up the text across multiple lines with blank columns; or, worse, instead of blank columns they instead have the next equation.

Either way, the line spacing in the multi-line comment ends up the same as the line spacing between each separate comment.
The resulting speech text for the comment is either interrupted with "1st Column blank 2nd Column blank...." or interlaced with math inappropriately.

Describe the solution you'd like Support LaTeX's \parbox[position]{width}{text} so the multi-line comment can render as a single text chunk.

Describe alternatives you've considered I'd be happy to learn of alternatives.

Additional context Example of using blank lines in aligned equations followed by resulting output:

\begin{align*}
\int \left( \frac{x+3}{2}\right) \, dx
=& \int \frac{1}{2}(x+3) \, dx && \text{Factoring out a constant} \\
=& \frac{1}{2} \int (x+3) \, dx && \text{Factoring the constant outside the integral} \\
=& \frac{1}{2}\left[\frac{1}{2}x^2+3x\right]+C && \text{Applying the power rule and }\\ 
 &  && \text{adding the constant of integration} \\
=& \frac{1}{4}x^2+\frac{3}{2}x+C && \text{Distributing the } \frac{1}{2} \\
=& \frac{x^2+6x}{4}+C && \text{Finding a common denominator} \\
=& \frac{x(x+6)}{4}+C && \text{Factoring out an }
\end{align*}

image

Here is an extract from the speech text generated (note how the multi-line comment is broken up):

... Applying the power rule and 4th Row 1st Column Blank 2nd Column Blank 3rd Column Blank 4th Column adding the constant of integration ...

Compare to what would be possible with \parbox (note the difference in line spacing):

\begin{align*}
\int \left( \frac{x+3}{2}\right) \, dx
=& \int \frac{1}{2}(x+3) \, dx && \text{Factoring out a constant} \\
=& \frac{1}{2} \int (x+3) \, dx && \text{Factoring the constant outside the integral} \\
=& \frac{1}{2} \left[ \frac{1}{2}x^2+3x \right]+C && \parbox{5.5cm}{Applying the power rule and 
                                                             adding the constant of integration} \\
=& \frac{1}{4}x^2+\frac{3}{2}x+C && \text{Distributing the } \frac{1}{2} \\
=& \frac{x^2+6x}{4}+C && \text{Finding a common denominator} \\
=& \frac{x(x+6)}{4}+C && \text{Factoring out an }
\end{align*}

image

Hopefully the speech text could render the text in the \parbox command as one continuous chunk of text.

Assignee
Assign to
Time tracking