Universe
Create project in app

GitHub release (latest SemVer)GitHub License

PaypalBuyMeACoffee


Logo

s6t5-page-bordering

Way to write border around page margin and header/footer.
Report Bug · Request Feature

  1. About The Project
  2. Demo
    1. Page border include table header/footer
    2. Page border exclude header/footer
    3. Page border include header/footer
  3. Usage
  4. Following Rules
  5. Contributing
    1. How to contributing
  6. License
  7. Contact
  8. Say Thank You

About The Project

Way to write border around page margin and header/footer.

It is often required in business scene.

(back to top)

Demo

Page border include table header/footer

Page border include table header/footer

Page border exclude header/footer

Page border exclude header/footer

Page border include header/footer

Page border include header/footer

(back to top)

Usage

This package provide a function: s6t5-page-bordering.

import / setting script is shown below.

#import "@preview/s6t5-page-bordering:1.0.0": s6t5-page-bordering
#show: s6t5-page-bordering.with(
  margin: (left: 30pt, right: 30pt, top: 60pt, bottom: 60pt),
  expand: 15pt,
  space-top: 15pt,
  space-bottom: 15pt,
  stroke-header: none,
  stroke-footer: none,
  header: "",
  footer: "",
)

margin is passed in page() function.

margin must to be dictionary include 4 direction.

header and footer is called outside of page().

You can define like #let header = [element], #let header = {calls}.

stroke-header and stroke-footer is used to config stroke border around header/footer.

margin, space-top, space-bottom and expand works like below.

s6t5-page-bordering-show-setting

(back to top)

Following Rules

This repository follows below rules.

(back to top)

Contributing

Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag “enhancement”. Don’t forget to give the project a star! Thanks!

How to contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin AmazingFeature)
  5. Open a Pull Request

(back to top)

License

The source code is licensed MIT. See LICENSE.

(back to top)

Contact

(back to top)

Say Thank You

If my works feels you helpful, I would be happy to have your support for me :D

links are below.

PaypalBuyMeACoffee

(back to top)