Skip to content

Standardize LaTeX math notation: replace pmatrix with bmatrix across all lecture files #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 12, 2025

This PR standardizes LaTeX math notation throughout the lecture files by replacing all instances of pmatrix with bmatrix to align with the QuantEcon style guide.

Changes Made

  • 7 lecture files updated with consistent bmatrix notation
  • 43 total replacements of \begin{pmatrix}\begin{bmatrix} and \end{pmatrix}\end{bmatrix}
  • All LaTeX syntax remains properly balanced and valid

Files Modified

  • lectures/svd_intro.md (3 instances)
  • lectures/stats_examples.md (1 instance)
  • lectures/lagrangian_lqdp.md (13 instances)
  • lectures/multi_hyper.md (3 instances)
  • lectures/opt_transport.md (7 instances)
  • lectures/newton_method.md (13 instances)
  • lectures/lake_model.md (3 instances)

Example Change

Before:

X = \begin{pmatrix}
    U_{t+1}/N_{t+1} \\
    E_{t+1}/N_{t+1}
\end{pmatrix}

After:

X = \begin{bmatrix}
    U_{t+1}/N_{t+1} \\
    E_{t+1}/N_{t+1}
\end{bmatrix}

The changes are purely stylistic and maintain all mathematical content while ensuring consistency with the established style guide. All matrix expressions now use square brackets (bmatrix) instead of parentheses (pmatrix).

Fixes #314.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] Standardize on bmatrix (instead of pmatrix) for LaTeX Math in Lectures Standardize LaTeX math notation: replace pmatrix with bmatrix across all lecture files Aug 12, 2025
@Copilot Copilot AI requested a review from mmcky August 12, 2025 04:32
Copilot finished work on behalf of mmcky August 12, 2025 04:32
@mmcky
Copy link
Contributor

mmcky commented Aug 12, 2025

Here is the relevant style guide page

https://manual.quantecon.org/styleguide/math.html

Copy link

github-actions bot commented Aug 12, 2025

@github-actions github-actions bot temporarily deployed to pull request August 12, 2025 05:09 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 12, 2025 05:09 Inactive
@mmcky
Copy link
Contributor

mmcky commented Aug 12, 2025

This PR updates the bracket style for matrices to use square brackets.

Screenshot 2025-08-12 at 3 34 10 pm
  • this issue should be copied to other lecture repositories for the style to be unified across the lecture series.

@mmcky mmcky marked this pull request as ready for review August 12, 2025 05:35
@mmcky mmcky moved this to In Progress in Review Lectures & Modernise Code Aug 12, 2025
@mmcky mmcky added the ready label Aug 12, 2025
@jstac
Copy link
Contributor

jstac commented Aug 12, 2025

Thanks @mmcky

@mmcky
Copy link
Contributor

mmcky commented Aug 12, 2025

@bishmaybarik would you have time to look through the diff of this PR and cross-check to see if these changes are consistent and make sense in context? I have had a pretty good look myself and we can discuss when we link up on Thursday.

@mmcky mmcky requested a review from bishmaybarik August 12, 2025 05:50
@bishmaybarik
Copy link
Member

Hi @mmcky, I'd love to go through the PR and flag any points that is not consistent. I'll let you know by Thursday during our meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Standardize on bmatrix (instead of pmatrix) for LaTeX Math in Lectures
4 participants