I am trying to emulate the style of Tibetan pecha. These books typically have different page margins and decorations depending on the type of page.
The important point is that this should all work as running text. I cannot have seperate page calls for each page of content, including the title page and the alternative layout.
My implementation is already very janky, since I cannot have horizontal headers and footers, I can’t have multiple of them in different layout spaces.
Additionally, I cannot seem to find a way to emulate the start of each page, which is supposed to contain a yig mgo (༄༅། །) within the running text.
Here is an example I made with gibberish in PechaMaker (red are title pages, green are special pages, blue are body pages):
Currently I can only achieve this (again, gibberish; Note: the title pages have too many lines, and the special pages and body pages don’t take up the full space.):
Hello, and welcome to the forum! I’m having a hard time parsing what is actually required of the package, and a quick search online did not provide with a nice set of design criteria.
For example, what is a page? It’s probably obvious to you, but I have never heard of pecha, much less tried to design one. I gathered that it’s one of these boxes with text inside, but should there be multiple of these pages on an a4 sheet or should the output page size be adjusted to only be a single box? Is each page’s layout dependant on the type of content inside of it?
I also don’t really understand this criteria. Do you mean that you don’t want to write your document as
#titlepage("Title")[
titlepage content here
]
#regularpage[
regular content here
]
#regularpage[
more regular content here
]
#specialpage[
special content!
]
but rather as a “regular” document, like
= Title
titlepage content here regular content here more regular content here special content!
is that correct? In your title, you ask how to change the margin based on the page number, but the question body does not elaborate on how the margins should be affected by the page number.
Lastly, this seems like a very cool, but also big project and I am not sure how much (or what kind of) help you actually require. Would it be possible for you to draft a set of minimum requirements that you need help with? For example, do you just need a mock-up of a box and can you do all the fine-tuned layouting yourself? This way you would be more likely to receive an answer. Thanks!