Comments (10)
I've found this issue when I was looking for a simmular purpose. After some experimenting I found that this piece of CSS puts the content on the bottom of the page but it won't be included on all pages such as the footer css does. Please note that I'm not a professional so most likely the CSS can be improved.
I hope this will get you a bit closer to the official footnotes representation 🙂
CSS:
.pagefooter {
display: flex;
height: auto;
#content {
position: absolute;
bottom: 0;
}
}
Pug usage:
.pagefooter
#content
.ui.container
.ui.icon.message.yellow.block-center
i.exclamation.triangle.outline.icon
.content
.header Internal usage only !
p
| Please note that this document is for internal use only and may not be
| used for other purposes then the intended purpose of this document or
| externally distributed by any means.
div(style="page-break-before:always")
from relaxed.
LaTeX-like footnotes may be difficult to do indeed. I believe there is a footnote plugin for Markdown-it. Not sure how good it is. There may be also a way to have footnotes with a pug mixin. Either way, it certainly won't be footnotes in the page footer, rather footnotes below the text at the end of a paragraph or a chapter.
from relaxed.
What did you try so far?
So far I positioned it with JS and CSS. See https://github.com/DanielRuf/htmlinvoice/blob/master/invoice.html#L175
from relaxed.
I've tried simply set position of footnotes container element to 'absolute'. It was certainly stuck on the bottom of its page, but I guess there's no way to set margin-bottom using @page at-rule for a specific page like :nth-child(3) pseudo-classes.
If it possible to set margin for each pages, the following step might be useful.
- calculate footnotes height and its page number
- set footnotes position absolute with bottom: 0
- set its page margin-bottom to be default margin + footnotes height
from relaxed.
Sadly it is not possible to have different margins for each page. Its a chromium limitation.
from relaxed.
But some JavaScript magic can always be applied =)
from relaxed.
Yes but javascript can't know what page you are on in a multi-page document, so it cannot place a footnote at the foot of the page where it appears.
from relaxed.
Yes but javascript can't know what page you are on in a multi-page document, so it cannot place a footnote at the foot of the page where it appears.
Well, it has to be calculated for sure.
https://github.com/DanielRuf/htmlinvoice/blob/master/invoice.html#L168-L183
from relaxed.
Are there any updates on this?
from relaxed.
Are there any updates on this?
As you can see there are no updates, at least there is no linked PR or commit.
from relaxed.
Related Issues (20)
- ReLaXed doesn't work on WSL HOT 5
- this._initPDFReader is not a function and ERR_FILE_NOT_FOUND with masterToPDF HOT 3
- masterToPDF fails on second run HOT 1
- Add support for running ReLaXed directly in NodeJS, without CLI HOT 8
- Passing JSON object to ReLaXed: wiki needs to be updated! HOT 5
- Documentation for 'headElements' says 'htmlHead' HOT 1
- Implementation of Knuth & Plass Algorithm
- [Question] Only last page footer text is showing with color. Other page footer text is existing but transparent. HOT 2
- Load JSON and listen to changes? HOT 3
- Using relaxedjs as a node module in AWS and run once HOT 2
- Vegalite SVG render broken HOT 6
- Hj
- Failed to install Relaxed on Ubuntu18.04 on EC2 HOT 1
- How to make pdf pages in horizontal orientation? HOT 1
- Any Ideas for better Debugging Support in the Browser? HOT 4
- Fix security vulnerabilities HOT 1
- Is relaxedjs still under active development? HOT 6
- Math Typeface Not Rendering Properly HOT 1
- Unable to use ReLaXed with Node v16 HOT 3
- Please publish current version (0.2.5) to npmjs.com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relaxed.