Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>katex-block-centerNew to Visual Studio Code? Get it now.
katex-block-center

katex-block-center

solitarysoap

|
1,031 installs
| (0) | Free
Make katex's block equation centering on the horizon
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

katex-block-center

Make block equation that katex outputs centering on the horizon.

Features

Usage

Select your block equation code or nothing, then press Ctrl + Z, Ctrl + X.

You need to...

Firstly, edit your /path/to/book/styles/website.css or ebook.css, insert:

.texcenter
{
	display: block;
	text-align: center;
}

Then, edit your /path/to/book/book.json, add:

	"styles": {
		"website": "styles/website.css"
	}

Release Notes

Just for people using gitbook with katex, especially when input LaTeX math equation.

1.0.0

Initial release.

1.1.0

Now you don't need to type the $$ anymore.


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft