Comments (7)
Yep, I can control whitespace pretty well now. I'll get 'er done soon.
from pretext.
It was easy to do this, since I mostly introduced the spaces with xsl:text
/xsl:text, ie they were intentional.
Back on develop now, and it seems the majority of the headings are not getting
the spaces they need. Is this implemented yet?
On 08/06/2014 04:35 PM, Michael DuBois wrote:
I'm doing the spacing for environment and section headings in the CSS, as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser doesn't
interpret it as a single space.There are a couple of different ways to do this:
Proof1.2.3Loch Ness Monster Proof
Proof</span
1.2.3</span
Loch Ness Monster ProofProof1.2.3Loch Ness Monster Proof
There also might be some XSLT specific ways to handle whitespace. This looks
promising
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template.—
Reply to this email directly or view it on GitHub
#12.
from pretext.
Not implemented yet: it is issue #26
On Fri, 8 Aug 2014, Rob Beezer wrote:
It was easy to do this, since I mostly introduced the spaces with xsl:text
/xsl:text, ie they were intentional.Back on develop now, and it seems the majority of the headings are not getting
the spaces they need. Is this implemented yet?On 08/06/2014 04:35 PM, Michael DuBois wrote:
I'm doing the spacing for environment and section headings in the CSS, as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser doesn't
interpret it as a single space.There are a couple of different ways to do this:
Proof1.2.3Loch Ness Monster Proof
Proof</span
1.2.3</span
Loch Ness Monster ProofProof1.2.3Loch Ness Monster Proof
There also might be some XSLT specific ways to handle whitespace. This looks
promising
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template.—
Reply to this email directly or view it on GitHub
#12.—
Reply to this email directly or view it onGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560
1aa78074cf569f119d32ec48d479dffd84.gif]
from pretext.
Actually, this issue was about section/environment headings, not the
headings in the ToC. So it's related to
BooksHTML/mathbook-assets#25.
I'm pretty sure the CSS on develop (and math-fest) is adding the spaces
correctly. I filed this issue here because some environment headings were
getting an extra space from the HTML between the last <span>
token and
the heading's final period. The "Example" environments at this link
demonstrate that behavior:
http://mathbook.pugetsound.edu/temp/mathfest/section-sets-and-equivalence-relations.html
When I manually remove all the linebreaks between the <span>
s, the
opening <h5>
tag, and the closing </h5>
tag, the problem is fixed.
On Sat, Aug 9, 2014 at 4:14 AM, davidfarmer [email protected]
wrote:
Not implemented yet: it is issue #26
On Fri, 8 Aug 2014, Rob Beezer wrote:
It was easy to do this, since I mostly introduced the spaces with
xsl:text
/xsl:text, ie they were intentional.Back on develop now, and it seems the majority of the headings are not
getting
the spaces they need. Is this implemented yet?On 08/06/2014 04:35 PM, Michael DuBois wrote:
I'm doing the spacing for environment and section headings in the CSS,
as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was
broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser
doesn't
interpret it as a single space.There are a couple of different ways to do this:
Proof1.2.3Loch Ness Monster
ProofProof</span
1.2.3</span
Loch Ness Monster ProofProof1.2.3Loch Ness Monster Proof
There also might be some XSLT specific ways to handle whitespace. This
looks
promising
<
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template
.—
Reply to this email directly or view it on GitHub
#12.—
Reply to this email directly or view it
onGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560
1aa78074cf569f119d32ec48d479dffd84.gif]—
Reply to this email directly or view it on GitHub
#12 (comment).
from pretext.
OK, I am aware of this one.
I am having no luck getting the
's to output without line
breaks. It feels like a bug. If I change the h5 to then it outputs
without that trailing line break inside.
I'm going to go for a MWE and either discover the cause in the process or having
to post to SO (or similar).
I am getting no spaces between parts of environment/section headings now that
I have removed all my intentional spaces. I'll get an example up soon if
necessary, let me know.
Rob
On 08/09/2014 02:57 PM, Michael DuBois wrote:
Actually, this issue was about section/environment headings, not the
headings in the ToC. So it's related to
BooksHTML/mathbook-assets#25.I'm pretty sure the CSS on develop (and math-fest) is adding the spaces
correctly. I filed this issue here because some environment headings were
getting an extra space from the HTML between the last<span>
token and
the heading's final period. The "Example" environments at this link
demonstrate that behavior:http://mathbook.pugetsound.edu/temp/mathfest/section-sets-and-equivalence-relations.html
When I manually remove all the linebreaks between the
<span>
s, the
opening<h5>
tag, and the closing</h5>
tag, the problem is fixed.On Sat, Aug 9, 2014 at 4:14 AM, davidfarmer [email protected]
wrote:Not implemented yet: it is issue #26
On Fri, 8 Aug 2014, Rob Beezer wrote:
It was easy to do this, since I mostly introduced the spaces with
xsl:text
/xsl:text, ie they were intentional.Back on develop now, and it seems the majority of the headings are not
getting
the spaces they need. Is this implemented yet?On 08/06/2014 04:35 PM, Michael DuBois wrote:
I'm doing the spacing for environment and section headings in the CSS,
as
mentioned in BooksHTML/mathbook-assets#25
BooksHTML/mathbook-assets#25. Part of it was
broken
before, but it's fixed now, so it will be important that you remove the
whitespace from between the || elements so that the browser
doesn't
interpret it as a single space.There are a couple of different ways to do this:
Proof1.2.3Loch Ness Monster
ProofProof</span
1.2.3</span
Loch Ness Monster ProofProof1.2.3Loch Ness Monster Proof
There also might be some XSLT specific ways to handle whitespace. This
looks
promising
<
http://stackoverflow.com/questions/1468984/xslt-remove-whitespace-from-template
.—
Reply to this email directly or view it on GitHub
#12.—
Reply to this email directly or view itonGitHub.[211500__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzE4MDQ5OSwiZGF0YSI6eyJpZCI6MzkwMjcwODl9fQ==--7cc560
1aa78074cf569f119d32ec48d479dffd84.gif]
—
Reply to this email directly or view it on GitHub
#12 (comment).—
Reply to this email directly or view it on GitHub
#12 (comment).
from pretext.
Hmm, well I would just suggest trying the things I listed in the original post. The SO question I linked at the end might have the cleanest or most "correct" way to do it, though.
For what it's worth, proofs do not have this problem.
If you feel ambitious, it would be a good idea to isolate the heading XSLT into a single template (or one for environments and one for sections), now that we're standardizing them.
from pretext.
This space (and many others) has gone away as a result of cae344d.
However, it remains to get reasonably easy-to-read indented output instead.
from pretext.
Related Issues (20)
- `<exercise>` inside of `<introduction>` broken. HOT 1
- Feature request: additional layout control for divisional exercises HOT 2
- Line spacing in first two lines of an aside inside a task in latex output HOT 1
- frontmatter/colophon/website has malformed URL in PDF output HOT 5
- frontmatter/colophon/website needs URL in print-version PDF HOT 2
- Running head oddities in two-sided latex output HOT 6
- Justified text option for web output
- Image rotations
- Landscape blocks and floats
- HTML image rotation needs more space
- WeBWorK info message
- stringparam dictionary stores temporary info between tasks HOT 1
- sagecell local server HOT 1
- styling for th in HTML HOT 1
- MathJax menu unavailable inside born hidden knowls HOT 1
- examples/epub README.md and build.sh may need updating HOT 1
- Explore build time mathjax rendering for HTML HOT 1
- Bind arrow keys to navigation HOT 4
- Typo in image folder name in 3.7 Images of the Pretext Guide HOT 3
- Image description and shortdescription tags not both used in web build HOT 3
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 pretext.