-
Notifications
You must be signed in to change notification settings - Fork 55
Add page breaks and header/footer/page number #118
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
Comments
For page breaks. In typora, theres no header/footer seems also a future for exported PDFs, maybe we can add option in printing/exporting dialog to handle this |
how can we use |
I'm used to add the following row: |
You can also add the following in specific file: Another solution is to combine both options, adding |
For macOS, there's an option to break page for each For other OS, currently, using CSS suggested by @MicheleLevorato and @kcpr could be a workaround |
Can this become a menu entry such as |
I'd love this option - to have a toggle somewhere that makes these documents printable. It's a gorgeous program and makes great looking papers, but the inability to print pages makes it tough. |
After doing some research into CSS, I found a simple trick for an instant page break: Wherever in Typora where you need a new page, add the line: Seems to be working for me anyways. |
For manual page breaks (i.e. not before headings), you should be able to repurpose horizontal lines, i.e. @media print {
hr {
page-break-after: always /* CSS 2 */;
break-after: page /* CSS 3+ */;
height: 0.1em; visibility: hidden /* make the horizontal line invisible but still affect layout*/;
}
} |
Any idea on whether this is being considered? and what priority it is? This is the one feature that would sincerely help when handing over our beautiful Markdown documents over to non-Markdown people via the export. |
All this dances with custom css styles for such basic thing as a pagebreak are look like a bicycle full of crutches. |
I tried adding the |
@banderlog It should work, if I’m not missing something. Note: there used to be a typo in my example code. |
Yes, it works. But, let's imagine, that I have a long document with plots and tables and text. And I do not want to page-break after each #h1. Maybe, sometimes, I want page break after certain #h2 or after dome plots (not all). And I want to see such places before pdf compilation, as long as it is WYSIWYG editor. |
Well, I suggested to use |
It looks way more semantically appropriate than |
+1 for header and footer support for export. This is really the only missing feature keeping me from switching our doc system to use Typora. We need to be able to produce PDFs with a boilerplate footer for document release and there really isn't any way to do that at the moment. We use Word today, but having a documentation flow that plays nice with text repositories like Git is a huge win. There are a few other small missing features that are nice to have, but this one little feature is really standing in the way unfortunately. |
Just follow the below table structure.No need to write more css this works in all browsers include.this is working for me lets try.If you want to add page numbers you can add but it works only in firefox.
|
When I was writing a large-scale article, I also encountered such troubles. However, time has passed so long, it seems that this issue has not made much progress. If you can, in addition to the question here, can add a watermark function! Thanks |
is that support now? |
Exhaustive overhaul, partially build upon feedback in typora/typora-issues#118
supported as https://support.typora.io/Export/#header--footer |
Is there an easy way to target header/footer created with a yaml file now? This would be nice to move the header footer/footer left/right and changing the font. |
Native support for page breaks would be great. At the moment I'm using:
<div style="page-break-after: always;"></div>
as a workaround every time I need one, but I imagine actual support wouldn't be too hard to add in?The header/footer issue is a little more tricky. I'm not sure how to html that, but I think it depends on the pdf/html compiler that Typora uses?
The text was updated successfully, but these errors were encountered: