PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
269 stars 210 forks source link

carriage returns in <me> causing problems #662

Closed sklarjk closed 7 years ago

sklarjk commented 7 years ago

Code follows. Written in Sublime Text, compillation attempted on a Windwos machine. Compilation of the tex code yields the error: ... Section 1 Just Some Text


! Missing $ inserted.

$ l.134 ? Code is:
A Minimal Article
Just Some Text

here is some displayed math:

1+1=2
rbeezer commented 7 years ago

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

sklarjk commented 7 years ago

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320836386, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

sklarjk commented 7 years ago

And I would love to have a suggestion of how to learn to read the schema. For instance, looking at this http://mathbook.pugetsound.edu/doc/schema/ I am not sure how to tell that must be included in a

environment.

For those of us who aren't very computer-savvy, and haven't programmed since the days of C++ in the early 90s, it is very hard to understand what is going on, even when we read the Author Guide and go to the schema pages.

On Mon, Aug 7, 2017 at 8:13 PM, Jessica Sklar sklarjk@plu.edu wrote:

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320836386, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

rbeezer commented 7 years ago

In the left (bottom-ish) panel, scroll to "me".

Two choices, ignore the "WW" one for WebWork. Click on it.

Find

"Included in content model of elements (4):"

List items and "p" are the only places it can go.

(And text (ie for LaTeX) and "fillin" are all that go inside an "me".)

On 08/07/2017 08:24 PM, Jessica K. Sklar wrote:

And I would love to have a suggestion of how to learn to read the schema. For instance, looking at this http://mathbook.pugetsound.edu/doc/schema/ I am not sure how to tell that must be included in a

environment.

For those of us who aren't very computer-savvy, and haven't programmed since the days of C++ in the early 90s, it is very hard to understand what is going on, even when we read the Author Guide and go to the schema pages.

On Mon, Aug 7, 2017 at 8:13 PM, Jessica Sklar sklarjk@plu.edu wrote:

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320836386, or mute the thread

https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320839684, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cuDIuWeLRaczf23imre6DHo6WttEks5sV9UIgaJpZM4OwKtQ.

ghost commented 7 years ago

Jess, I consider myself very computer-savvy. Been doing it since I took my first "computer" course in the EE Dept. at Berkeley in 1961. And I've been programming ever since, in about a dozen different assembly languages, and several high-level languages, and in research, industry, and teaching. And I find it difficult learning this new (to me) stuff. I tried to remind myself of times like this (learning new stuff) when I was still teaching and getting frustrated with students who were having trouble understanding new things. :-)

I also try to remember what my piano teacher told me back in the 80s. She said that she didn't feel so bad when she learned that Alicia de Larrocha still practiced eight hours a day.

--Bob

On Mon, Aug 7, 2017 at 8:24 PM, Jessica K. Sklar notifications@github.com wrote:

And I would love to have a suggestion of how to learn to read the schema. For instance, looking at this http://mathbook.pugetsound.edu/doc/schema/ I am not sure how to tell that must be included in a

environment.

For those of us who aren't very computer-savvy, and haven't programmed since the days of C++ in the early 90s, it is very hard to understand what is going on, even when we read the Author Guide and go to the schema pages.

On Mon, Aug 7, 2017 at 8:13 PM, Jessica Sklar sklarjk@plu.edu wrote:

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/rbeezer/mathbook/issues/662#issuecomment-320836386 , or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_ Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320839684, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHATaVeZ1yKQ3KlKecRRcBbt-V4xwNCks5sV9UJgaJpZM4OwKtQ .

sklarjk commented 7 years ago

Thank you. I had read those options as where it could be included, not where it had to be, and didn't know the WW was for WebWork.

Btw, it turns all the s in my book causing problems for me were, in fact, in

environments. I put the mini.ptx in a

environment and still couldn't compile. I opened a new issue. If I'm still busy committing gross newbie sins, I'm sure you'll close it and let me know.

On Aug 7, 2017 8:38 PM, "Rob Beezer" notifications@github.com wrote:

In the left (bottom-ish) panel, scroll to "me".

Two choices, ignore the "WW" one for WebWork. Click on it.

Find

"Included in content model of elements (4):"

List items and "p" are the only places it can go.

(And text (ie for LaTeX) and "fillin" are all that go inside an "me".)

On 08/07/2017 08:24 PM, Jessica K. Sklar wrote:

And I would love to have a suggestion of how to learn to read the schema. For instance, looking at this http://mathbook.pugetsound.edu/doc/schema/ I am not sure how to tell that must be included in a

environment.

For those of us who aren't very computer-savvy, and haven't programmed since the days of C++ in the early 90s, it is very hard to understand what is going on, even when we read the Author Guide and go to the schema pages.

On Mon, Aug 7, 2017 at 8:13 PM, Jessica Sklar sklarjk@plu.edu wrote:

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320836386, or mute the thread

https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_ Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320839684, or mute the thread https://github.com/notifications/unsubscribe-auth/ ABy2cuDIuWeLRaczf23imre6DHo6WttEks5sV9UIgaJpZM4OwKtQ.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320841234, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbHIXjue0x-X2gEovu_8f0BiacMyaks5sV9gcgaJpZM4OwKtQ .

rbeezer commented 7 years ago

On your xsltproc command-line try adding

-stringparam whitespace flexible

and report what happens.

sklarjk commented 7 years ago

That compiled! Thanks, Rob.

On Mon, Aug 7, 2017 at 9:15 PM, Rob Beezer notifications@github.com wrote:

On your xsltproc command-line try adding

-stringparam whitespace flexible

and report what happens.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320845528, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbAn_XgQ4217STSrRZnDi1PMxiY7Gks5sV-D3gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

sklarjk commented 7 years ago

Thanks, Bob. My own struggle is definitely a good thing for me to keep in mind while teaching!

Thanks again for your .sh file, also. This evening I managed to modify it to compile my PTX files to HTML (resp., LaTeX). It is so helpful to be able to compile with so few key strokes, plus I got the little boost of having written (well, adapted something already written) to my own script (I think it's a script, lol?).

On Mon, Aug 7, 2017 at 8:46 PM, rplantz notifications@github.com wrote:

Jess, I consider myself very computer-savvy. Been doing it since I took my first "computer" course in the EE Dept. at Berkeley in 1961. And I've been programming ever since, in about a dozen different assembly languages, and several high-level languages, and in research, industry, and teaching. And I find it difficult learning this new (to me) stuff. I tried to remind myself of times like this (learning new stuff) when I was still teaching and getting frustrated with students who were having trouble understanding new things. :-)

I also try to remember what my piano teacher told me back in the 80s. She said that she didn't feel so bad when she learned that Alicia de Larrocha still practiced eight hours a day.

--Bob

On Mon, Aug 7, 2017 at 8:24 PM, Jessica K. Sklar <notifications@github.com

wrote:

And I would love to have a suggestion of how to learn to read the schema. For instance, looking at this http://mathbook.pugetsound.edu/doc/schema/ I am not sure how to tell that must be included in a

environment.

For those of us who aren't very computer-savvy, and haven't programmed since the days of C++ in the early 90s, it is very hard to understand what is going on, even when we read the Author Guide and go to the schema pages.

On Mon, Aug 7, 2017 at 8:13 PM, Jessica Sklar sklarjk@plu.edu wrote:

I'm trying. It's not easy for some of us to learn everything at once or get software working on Windows.

On Aug 7, 2017 7:58 PM, "Rob Beezer" notifications@github.com wrote:

An me needs to go inside a p, always.

Please learn how to read the schema via the browser at the documentation page and learn to perform validation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/rbeezer/mathbook/issues/662# issuecomment-320836386 , or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbMvhMqlGyulZ3_ Y39pb1U06gdrrvks5sV86_gaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320839684, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEHATaVeZ1yKQ3KlKecRRcBbt-V4xwNCks5sV9UJgaJpZM4OwKtQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/662#issuecomment-320842243, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbO3STd1sd58YIwhVfEIHAwlH8bTOks5sV9oggaJpZM4OwKtQ .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University