PreTeXtBook / pretext

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

problem rendering knowls in Notation appendix on local machine #651

Closed sklarjk closed 7 years ago

sklarjk commented 7 years ago

The problem is that they won't render. E.g., if you put the environment witthin a environment, and click on the Definition X link in the Notation appendix, an empty knowl opens, if I am using my Desktop on my Windows machine. If I FTP the files over to the PLU server, the knowls do render.

Alex-Jordan commented 7 years ago

Is this happening while using Chrome? If so that is a known issue that we have thus far chosen to ignore. My loose understanding is that it is a Chrome issue with viewing localhost files. Maybe we Chrome is right though and we should do something to make it feel more secure?

rbeezer commented 7 years ago

I have this problem with Firefox, routinely.

On 07/31/2017 05:55 PM, Jessica K. Sklar wrote:

The problem is that they won't render. E.g., if you put the environment witthin a environment, and click on the Definition X link in the Notation appendix, an empty knowl opens, if I am using my Desktop on my Windows machine. If I FTP the files over to the PLU server, the knowls do render.

— 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/651, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cv2xkI19SBBr9jLY_xKN4SwFlUwxks5sTndkgaJpZM4OpGc_.

sklarjk commented 7 years ago

It did happen in Chrome, but I just tested it and it happens in IE too. I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

Of course, that's easy for me to say, since I'm not the one who'd be doing the addressing.

On Mon, Jul 31, 2017 at 6:15 PM, Rob Beezer notifications@github.com wrote:

I have this problem with Firefox, routinely.

On 07/31/2017 05:55 PM, Jessica K. Sklar wrote:

The problem is that they won't render. E.g., if you put the environment witthin a environment, and click on the Definition X link in the Notation appendix, an empty knowl opens, if I am using my Desktop on my Windows machine. If I FTP the files over to the PLU server, the knowls do render.

— 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/651, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cv2xkI19SBBr9jLY_ xKN4SwFlUwxks5sTndkgaJpZM4OpGc_.

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

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

Alex-Jordan commented 7 years ago

This may be at play: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

sklarjk commented 7 years ago

Oh, and selfishly, it makes testing my code difficult since I have to FTP knowls and html docs (at a minimum) to PLU to test my code. Unless someone knows of a better way?

On Mon, Jul 31, 2017 at 6:26 PM, Jessica Sklar sklarjk@plu.edu wrote:

It did happen in Chrome, but I just tested it and it happens in IE too. I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

Of course, that's easy for me to say, since I'm not the one who'd be doing the addressing.

On Mon, Jul 31, 2017 at 6:15 PM, Rob Beezer notifications@github.com wrote:

I have this problem with Firefox, routinely.

On 07/31/2017 05:55 PM, Jessica K. Sklar wrote:

The problem is that they won't render. E.g., if you put the environment witthin a environment, and click on the Definition X link in the Notation appendix, an empty knowl opens, if I am using my Desktop on my Windows machine. If I FTP the files over to the PLU server, the knowls do render.

— 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/651, or mute the thread https://github.com/notifications/unsubscribe-auth/ ABy2cv2xkI19SBBr9jLY_xKN4SwFlUwxks5sTndkgaJpZM4OpGc_.

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

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

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

rbeezer commented 7 years ago

On 07/31/2017 06:26 PM, Jessica K. Sklar wrote:

I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

MathJax comes from Cloudflare, fonts come from Google, Sage Cell Server is SageMath, Inc, CSS is from AIM, .... No such thing as an offline version.

What you want is the long-rumored EPUB version, which is basically a reflowable PDF without page numbers and margins (ie a bit lame).

Some day a student will make a packaging script to make everything local. But not a priority. Unless that student studies at PLU?

Rob

sklarjk commented 7 years ago

Ah, ok. Learning new stuff every day.

On Jul 31, 2017 8:07 PM, "Rob Beezer" notifications@github.com wrote:

On 07/31/2017 06:26 PM, Jessica K. Sklar wrote:

I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

MathJax comes from Cloudflare, fonts come from Google, Sage Cell Server is SageMath, Inc, CSS is from AIM, .... No such thing as an offline version.

What you want is the long-rumored EPUB version, which is basically a reflowable PDF without page numbers and margins (ie a bit lame).

Some day a student will make a packaging script to make everything local. But not a priority. Unless that student studies at PLU?

Rob

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

davidfarmer commented 7 years ago

Please add this to the FAQ or whatever beginner document is being written:

Q. My knowls are empty.

A. When viewing the HTML version on your laptop or local computer, do not expect knowls to work. This is a known bug/feature, and there is nothing to be done about it. Think of it this way: the knowl content comes from a server, but on your laptop there is no web server: you are just looking at files.

On Mon, 31 Jul 2017, Jessica K. Sklar wrote:

Ah, ok. Learning new stuff every day.

On Jul 31, 2017 8:07 PM, "Rob Beezer" notifications@github.com wrote:

On 07/31/2017 06:26 PM, Jessica K. Sklar wrote:

I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

MathJax comes from Cloudflare, fonts come from Google, Sage Cell Server is SageMath, Inc, CSS is from AIM, .... No such thing as an offline version.

What you want is the long-rumored EPUB version, which is basically a reflowable PDF without page numbers and margins (ie a bit lame).

Some day a student will make a packaging script to make everything local. But not a priority. Unless that student studies at PLU?

Rob

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LNOzv5OiujSmTXTv32zTEfXqtn-lks5sTpgNgaJpZM4OpGc_.gif]

Alex-Jordan commented 7 years ago

The following is a dangerous thing to do, so read carefully. You can close Chrome (make sure all instances of Chrome are closed) and then reopen it with a certain security feature disabled which makes this issue go away for me in the only place I experience it: WeBWorK knowls. Rob and Jessica might see if it works for them too in their situations.

I think it's safe to do this if you only view your PTX output this way. When you are ready to go back to regular web browsing, close Chrome (all instances) and reopen it the normal way. Verify your PTX output is back to not behaving well, and then the security setting should be back active.

Windows: from the command line, run chrome --allow-file-access-from-files. Mac/Linux: run open /Applications/Google\ Chrome.app --args --allow-file-access-from-files. Then open the PTX output. I can only try the Mac version of this, and it does make the issue go away for me with WeBWorK knowls.

https://threejs.org/docs/#manual/introduction/How-to-run-thing-locally

sklarjk commented 7 years ago

Will do.

On Jul 31, 2017 8:59 PM, "davidfarmer" notifications@github.com wrote:

Please add this to the FAQ or whatever beginner document is being written:

Q. My knowls are empty.

A. When viewing the HTML version on your laptop or local computer, do not expect knowls to work. This is a known bug/feature, and there is nothing to be done about it. Think of it this way: the knowl content comes from a server, but on your laptop there is no web server: you are just looking at files.

On Mon, 31 Jul 2017, Jessica K. Sklar wrote:

Ah, ok. Learning new stuff every day.

On Jul 31, 2017 8:07 PM, "Rob Beezer" notifications@github.com wrote:

On 07/31/2017 06:26 PM, Jessica K. Sklar wrote:

I would think this is an issue worth addressing, since students may want to download books on devices to look at in places where they don't have internet access, and since it fails on Chrome, Firefox, and IE :( .

MathJax comes from Cloudflare, fonts come from Google, Sage Cell Server is SageMath, Inc, CSS is from AIM, .... No such thing as an offline version.

What you want is the long-rumored EPUB version, which is basically a reflowable PDF without page numbers and margins (ie a bit lame).

Some day a student will make a packaging script to make everything local. But not a priority. Unless that student studies at PLU?

Rob

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

— You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub, or mute the thread.[AAM6LNOzv5OiujSmTXTv32zTEfXqtn-lks5sTpgNgaJpZM4OpGc_.gif]

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

rbeezer commented 7 years ago

Author's Guide has it now in FAQ. fb16f67d

With that, I'm going to close this.