converting to SVGs from latex-image-code on a Windows 10 machine

50 views
Skip to first unread message

Jessica Sklar

unread,
Jul 30, 2017, 12:33:33 AM7/30/17
to MathBook XML Support
I've taken a lot of the necessary steps towards getting this to work (I think), but am getting stuck at the end.  Here is what I have done:

1. Installed Python.
2. Installed ImageMagick with path C:/ImageMagick-7.0.6-Q16, including legacy utilities in the installation so that convert.exe was installed
3. Made a copy of mbx.cfg and put it in mathbook/user.
4.Revised the pdfpng line in the copy of mbx.cfg to read:
pdfpng = c:/ImageMagick-7.0.6-Q16/convert.exe

My questions:
1. Do I need to install anything else?
2. What is the precise code to do the actual SVG conversion? I tried in my Git Bash shell a version of what I saw in the Authors' Guide, changing sageplot to latex-image-code and the name and location of my PTX file:
$ ~/mathbook/script/mbx -vv -c sageplot -f svg -d images ~/mathbook/examples/sample-article/sample-article.xml
but got the following report:
MBX-DEBUG: CLI args {'verbose': 2, 'component': 'latex-image-code', 'format': 'svg', 'xmlid': '', 'server': None, 'data_dir': None, 'out': None, 'dir': 'images', 'xml_file': 'C:/Users/sklarjk/xsltproc/ptx/index.ptx'}
MBX-DEBUG: Python version: 3.6 (expecting 2.7 or newer)
MBX: discovering MBX root directory from mbx script location
MBX: MBX distribution root directory: C:\Users\sklarjk\mathbook
MBX-DEBUG: xsl, script, user dirs: ['C:\\Users\\sklarjk\\mathbook\\xsl', 'C:\\Users\\sklarjk\\mathbook\\script', 'C:\\Users\\sklarjk\\mathbook\\user']
MBX-DEBUG: output dir: C:\Users\sklarjk\xsltproc\ptx\images
MBX: parsing configuration files: ['C:\\Users\\sklarjk\\mathbook\\script\\mbx.cfg', 'C:\\Users\\sklarjk\\mathbook\\user\\mbx.cfg']
MBX-DEBUG: configuration files used/read: ['C:\\Users\\sklarjk\\mathbook\\script\\mbx.cfg', 'C:\\Users\\sklarjk\\mathbook\\user\\mbx.cfg']
Traceback (most recent call last):
  File "C:/Users/sklarjk/mathbook/script/mbx", line 1067, in <module>
    raise ValueError('the "{}" component is not a conversion option'.format(args.component))
ValueError: the "latex-image-code" component is not a conversion option

Pretty sure the highlighted part is explaining the problem, but don't know how to fix it. Is it that my command is wrong, and if so, what should it be?

I get if no one can help with this from afar, but I figured I'd ask in case it was an easy fix.  Thanks in advance!

Rob Beezer

unread,
Jul 30, 2017, 12:58:55 AM7/30/17
to mathbook-x...@googlegroups.com
Read the output of

$ ~/mathbook/script/mbx -h

carefully and try again?

On 07/29/2017 09:33 PM, Jessica Sklar wrote:
> I've taken a lot of the necessary steps towards getting this to work (I think),
> but am getting stuck at the end. Here is what I have done:
>
> 1. Installed Python.
> 2. Installed ImageMagick with path C:/ImageMagick-7.0.6-Q16, including legacy
> utilities in the installation so that convert.exe was installed
> 3. Made a copy of mbx.cfg and put it in mathbook/user.
> 4.Revised the pdfpng line in the copy of mbx.cfg to read:
> |
> pdfpng =c:/ImageMagick-7.0.6-Q16/convert.exe
> --
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-sup...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Alex Jordan

unread,
Jul 30, 2017, 1:03:40 AM7/30/17
to MathBook XML Support
Use

-c latex-image

not

-c latex-image-code


Also, where you have "images" in that command is the location where the output images will be dumped. So if you run this command from some folder, you will want an images subfolder to already be there. Alternatively, you can give a full path to that folder. So something like this:

$ ~/mathbook/script/mbx -vv -c latex-image -f svg -d path-to-images-folder ~/mathbook/examples/sample-article/sample-article.xml

path-to-images-folder could be:
images
~/scratch/images
~/yourbook/output/images
/Users/jessica.sklar/scratch/images

The ~ is a reference to the home directory your account starts in when you enter a shell. Starting a path like this with a slash gives you an address branching from the deepest root folder.


Message has been deleted

Jessica Sklar

unread,
Jul 30, 2017, 4:42:14 AM7/30/17
to MathBook XML Support
Yatta!! With Alex's correction of latex-image-code to latex-image and clarifying what the path/to represented, I got part of the way there. The final steps to makin it all work were:

(1) Realizing I hadn't installed pdf2svg (whoops). This was easily corrected.
(2) Realizing the /user/mbx.cfg file code was looking in all the wrong places.  My cloning of the mathbook repo put xsltproc.exe in c:/Users/sklarjk/xsltproc, and either my reassigning of the system path to pdf2svg failed or mbx wasn't using it.  The code that finally did the trick in the cfg file was 

xslt = c:/Users/sklarjk/xsltproc/xsltproc
tex = xelatex
pdfsvg = c:/pdf2vg/dist-64bits/pdf2svg
asy = asy
sage = sage
pdfpng = c:/ImageMagick-7.0.6-Q16/convert.exe
pdfeps = pdftops
pdfcrop = pdfcrop

Maybe you'd want to add a note in the Authors' Guide telling Windows users they may need to revise these lines taking into account their excutable file locations? Let me know if you want me to add this as an issue, Rob.  

Jess

Rob Beezer

unread,
Jul 30, 2017, 11:12:32 AM7/30/17
to mathbook-x...@googlegroups.com
Making progress!

On 07/30/2017 01:42 AM, Jessica Sklar wrote:
> Maybe you'd want to add a note in the Authors' Guide telling Windows users they
> may need to revise these lines taking into account their excutable file
> locations? Let me know if you want me to add this as an issue, Rob.

Yes, without an issue it'll get lost. If you could do it, that would be very
helpful. Thanks.

Rob Beezer

unread,
Jul 30, 2017, 11:14:22 AM7/30/17
to mathbook-x...@googlegroups.com
On 07/30/2017 12:30 AM, Jessica Sklar wrote:
> Hmm. Rob, sorry, reading the output of
> $ ~/mathbook/script/mbx -h
> didn't help at all.

Does it not list "latex-image" (not "latex-image-code") as one of about six
options for "-c"?

I've been planning a cosmetic depreaction of "latex-image-code" to "latex-image"
anyway....

Rob

Alex Jordan

unread,
Jul 30, 2017, 11:51:21 AM7/30/17
to MathBook XML Support, bee...@ups.edu

I've been planning a cosmetic deprecation of "latex-image-code" to "latex-image"
anyway....

If you do this, consider that you can put *any* snippet of LaTeX in these
things. We mostly use it for tikz images (and now xypic images) but it has
more broad capabilities than just images (unless you define "images"
broadly). For instance, with a really complicated math expression that
MathJax couldn't handle because it needs a special package, you could put it
in a <latex-image-code> as "\[ .... \]" and get it that way after adding the
package to latex-image-preamble.

So while "latex-image" might still be an OK name, I'm not so sure. (Although
to the degree I don't like it, "latex-image-code" has the same problems.)

Thinking of these things as chunks of LaTeX, not as images, was the
breakthrough I had with a clean understanding of how to size them well all
across output modes. (The only thing stopping me from implementing/sharing
that is the sidebyside inclusion mechanism with saveboxes is not compatible
with that idea.)

Jessica Sklar

unread,
Jul 30, 2017, 12:10:50 PM7/30/17
to mathbook-x...@googlegroups.com
Oh, crap.  It sure does.  I think maybe my window-size was too smal to see it?? *blush*



--
You received this message because you are subscribed to a topic in the Google Groups "MathBook XML Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathbook-xml-support+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



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

Rob Beezer

unread,
Jul 30, 2017, 12:15:46 PM7/30/17
to mathbook-x...@googlegroups.com
I *KNEW* that would get your attention. One less hyphen, no? ;-)

I think of this element as "this is an image and the language that describes the
image is something LaTeX knows how to digest." Abstractly, it describes an
image by (source) code. And then "code" is a bit redundant.

So it shouldn't matter if we use xypic, or tikz, or \[,\], or ....

And the schema should restrict it to a child of "image". In other words, I
don't think of it as a device to get that super-complicated expression as an
end-run on MathJax. A diagram with math notation (in a figure or side-by-side,
yes).

Ideally it would be mutually exclusive with image/@source (did I use the @
properly?) but then we get an "approximate" W3 schema, not a faithful one. So I
guess a Schematron rule will catch this duplication. I think @source wins right
now.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-sup...@googlegroups.com>.

Rob Beezer

unread,
Jul 30, 2017, 12:20:23 PM7/30/17
to mathbook-x...@googlegroups.com
On 07/30/2017 09:10 AM, Jessica Sklar wrote:
> Oh, crap. It sure does. I think maybe my window-size was too smal to see it??
> *blush*

<audible-chuckle />

Keep chewing that bone. I learned all my XSLT in the gutter. It's tough being
self-taught on the leading edge.

Keep the questions coming - the documentation will be better sooner as we learn
where the rough spots are. And we *know* they are out there.

Rob

> On Sun, Jul 30, 2017 at 8:14 AM, Rob Beezer <bee...@ups.edu
> <mailto:bee...@ups.edu>> wrote:
>
> On 07/30/2017 12:30 AM, Jessica Sklar wrote:
>
> Hmm. Rob, sorry, reading the output of
> $ ~/mathbook/script/mbx -h
> didn't help at all.
>
>
> Does it not list "latex-image" (not "latex-image-code") as one of about six
> options for "-c"?
>
> I've been planning a cosmetic depreaction of "latex-image-code" to
> "latex-image" anyway....
>
> Rob
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "MathBook XML Support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe
> <https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> Dr. Jessica Sklar
> Chair of Mathematics
> Pacific Lutheran University
>
> --
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-sup...@googlegroups.com>.

Bob Plantz

unread,
Jul 30, 2017, 1:58:49 PM7/30/17
to mathbook-x...@googlegroups.com
"Keep the questions coming - the documentation will be better sooner as we learn where the rough spots are.  And we *know* they are out there."

Just a reminder that I would not have written my Raspberry Pi book without all the hard work you have already done. Our students love the book, and I've enjoyed working on it. Well worth the "rough spots."

--Bob






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

--
You received this message because you are subscribed to the Google Groups
"MathBook XML Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "MathBook XML Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-support+unsubscrib...@googlegroups.com.

Rob Beezer

unread,
Jul 30, 2017, 3:30:52 PM7/30/17
to mathbook-x...@googlegroups.com
Thanks, Bob, for the encouragement. I've known from the start that Rome was not
built in a day. ;-)

On 07/30/2017 10:58 AM, Bob Plantz wrote:
> "Keep the questions coming - the documentation will be better sooner as we learn
> where the rough spots are. And we *know* they are out there."
>
> Just a reminder that I would not have written my Raspberry Pi book without all
> the hard work you have already done. Our students love the book, and I've
> enjoyed working on it. Well worth the "rough spots."
>
> --Bob
>
> On Sun, Jul 30, 2017 at 9:20 AM, Rob Beezer <bee...@ups.edu
> <mailto:bee...@ups.edu>> wrote:
>
> On 07/30/2017 09:10 AM, Jessica Sklar wrote:
>
> Oh, crap. It sure does. I think maybe my window-size was too smal to
> see it??
> *blush*
>
>
> <audible-chuckle />
>
> Keep chewing that bone. I learned all my XSLT in the gutter. It's tough
> being self-taught on the leading edge.
>
> Keep the questions coming - the documentation will be better sooner as we
> learn where the rough spots are. And we *know* they are out there.
>
> Rob
>
> On Sun, Jul 30, 2017 at 8:14 AM, Rob Beezer <bee...@ups.edu
> <mailto:bee...@ups.edu>
> <mailto:bee...@ups.edu <mailto:bee...@ups.edu>>> wrote:
>
> On 07/30/2017 12:30 AM, Jessica Sklar wrote:
>
> Hmm. Rob, sorry, reading the output of
> $ ~/mathbook/script/mbx -h
> didn't help at all.
>
>
> Does it not list "latex-image" (not "latex-image-code") as one of
> about six
> options for "-c"?
>
> I've been planning a cosmetic depreaction of "latex-image-code" to
> "latex-image" anyway....
>
> Rob
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "MathBook XML Support" group.
> To unsubscribe from this topic, visit
>
> https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe
> <https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe>
>
> <https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe
> <https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe>>.
> To unsubscribe from this group and all its topics, send an email to
> mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com>
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com
> <mailto:mathbook-xml-support%252Buns...@googlegroups.com>>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
>
>
>
>
> --
> Dr. Jessica Sklar
> Chair of Mathematics
> Pacific Lutheran University
>
> --
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com>
> <mailto:mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com>>.
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-support%2Bunsu...@googlegroups.com>.
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-sup...@googlegroups.com>.

Dave Rosoff

unread,
Jul 31, 2017, 1:17:42 AM7/31/17
to MathBook XML Support
Rob asked me to look in here and see if I might help another poor benighted Windows user. It seems that you all were able to resolve the problems you had? Perhaps the Windows part of the Author's Guide would be more efective if, instead of encouraging the user to change the system search path environment variable, we just change mbx.cfg. I'm not sure--it almost seems that sometimes both are necessary, depending on the system (sigh). In any case, path problems account for a huge fraction of difficulties people seem to have with the Windows PTX experience. I'll stay in here in case anything else might come up. I'm glad to see you were able to get past the bumps.

Best,
Dave

Jessica Sklar

unread,
Jul 31, 2017, 2:14:42 AM7/31/17
to MathBook XML Support
Hi Dave,

Thank you for reaching out! (And thank you, Rob, for connecting us.) It all seems to be working now, thank goodness! But I wouldn't be surprised if I had problems in the future I'd want to discuss with another Windows user.

I'll initiate an issue on rbeezer/mathbook for everything that follows. These were the main troubles I encountered installing everything:

First, in order to change the PATH variables, I needed to know where everything lived.  It was hard to find the exact locations of the executable files on my system because I didn't know the command "which." 

Second, I had lots of trouble changing PATH variables (I'm using Windows 10).  I still don't know why it wasn't working, and what made it work when it worked.  I had no PATH variable set up when I started, so I clicked New.  I then assigned the PATH variable is assigned to C:\Users\sklarjk\AppData\Local\Continuum\Anaconda2; c:\gs\gs9.21\bin; c:\pdfv2svg\dist-64bits; c:\Users\sklarjk\xsltproc .  But it took a bunch of tries to make it work, and I couldn't tell anything I did differently when I was finally successful in getting them set correctly. There was no way, I think, to change the path to GhostScript in this cfg file, so at least that had to have the PATH environment variable changed. I'm not sure at this point about the other PATH variables I changed, but I'm not going to mess with them now!  

Third, it turned out my build of MiKTeX didn't have xelatex, so I had to install a new version of that.

Finally, I had to change most of the assignments in the cfg file. 
----

My suggestions for additions/changes to the Authors' Guide might be:

1. Explain how to  use the "which" command in the Git Bash shell to see if Windows can find specific exectuables. This could help users discover which software they actually have,  which lines need to be modified in the cfg file, and which apps require changing of the PATH variable.

2.  Tell users check to see if they have xelatex installed (using the "which" command) to see if they need to install a new version of a LaTeX build.

3.  Have users modify the cfg file as needed (after copying it to the user folder, of course).  Have them change any paths they can here rather than setting a new PATH variable. They may be able to use "which" to find locations (I used it to locate, for instance, xelatex, pdftops, and pdfcrop). My cfg assignments ended up being:
 
[executables]
xslt = c:/Users/sklarjk/xsltproc/xsltproc
tex = c:/Users/sklarjk/AppData/Local/Programs/MiKTeX/miktex/bin/x64/xelatex
pdfsvg = c:/pdf2vg/dist-64bits/pdf2svg
asy = asy
sage = sage
pdfpng = c:/ImageMagick-7.0.6-Q16/convert.exe
pdfeps = c:/Users/sklarjk/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdftops
pdfcrop = c:/Users/sklarjk/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdfcrop.exe

4. Have just one section discussing changing PATH variables, and refer to it every time a user is told to change the PATH variable. That will clean up some of the more or less duplicate text in the sections on installing GS, etc  The locations of the executables change as different versions of Windows and software are released (right?), so my suggestion would be to have users find out where their own executables are, and make assignments in the set the PATH variables as needed. This was really finicky and tricky, and I don't know what to tell people that might make it better.  What I had to do seemed obvious, but didn't work and didn't work and didn't work until it did. If it's possible to do this using command line rather than the System Properties interface I recommend telling users how to do that.  The interface just didn't seem to work right for me on Windows 10.


Jessica Sklar

unread,
Jul 31, 2017, 2:28:32 AM7/31/17
to mathbook-x...@googlegroups.com
Oh, and THANK you, Dave, for writing Appendix E.  As awful as it was muddling through this, I can't imagine what it would have been like without your Appendix.   I don't know why I'm so loyal to Windows.  I really doubt my choices sometimes ;) .

Keller, Mitch

unread,
Jul 31, 2017, 9:03:12 AM7/31/17
to mathbook-x...@googlegroups.com
On Jul 31, 2017, at 1:17 AM, Dave Rosoff <dro...@collegeofidaho.edu> wrote:

Rob asked me to look in here and see if I might help another poor benighted Windows user. It seems that you all were able to resolve the problems you had? Perhaps the Windows part of the Author's Guide would be more efective if, instead of encouraging the user to change the system search path environment variable, we just change mbx.cfg. I'm not sure--it almost seems that sometimes both are necessary, depending on the system (sigh).

I think one thing that would be good to put into mbx.cfg would be the path to ghostscript, since the Windows-specific portion of the script explicitly names the GS executable for pdfcrop. I feel like I helped with this in Tacoma in May, too, and it was again down to issues with PATH. I suspect that the environment variable will still have to be set for many things, but it may help smooth over something if mbx.cfg has a path for Ghostscript in it (at least for Windows users).

--
You received this message because you are subscribed to the Google Groups "MathBook XML Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Mitch Keller
Assistant Professor of Mathematics
Washington & Lee University, Lexington VA

Jessica Sklar

unread,
Jul 31, 2017, 11:08:18 AM7/31/17
to mathbook-x...@googlegroups.com
Oh, interesting. My cfg path to pdfcrop directs to a MiKTeX function . I'm glad this didn't cause problems. 




To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Mitch Keller
Assistant Professor of Mathematics
Washington & Lee University, Lexington VA

--
You received this message because you are subscribed to a topic in the Google Groups "MathBook XML Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathbook-xml-support+unsub...@googlegroups.com.

Keller, Mitch

unread,
Jul 31, 2017, 11:31:49 AM7/31/17
to mathbook-x...@googlegroups.com
I’m not talking about the configuration, I’m talking about the actual script mbx. Buried inside the script, where it sets up how to call pdfcrop (using the MikTeX or TeXLive version pointed to in mbx.cfg), there is Python code that passes an option to pdfcrop that tells it where to find ghostscript. I suspect that was put in there because without it, pdfcrop doesn’t know what the ghostscript executable is called. But as it stands now, it also relies on ghostscript being properly in your path.

To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jessica Sklar

unread,
Jul 31, 2017, 3:24:12 PM7/31/17
to mathbook-x...@googlegroups.com
Ah, I see. Thanks!

To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-support+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Mitch Keller
Assistant Professor of Mathematics
Washington & Lee University, Lexington VA


--
You received this message because you are subscribed to a topic in the Google Groups "MathBook XML Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathbook-xml-support+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "MathBook XML Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-support+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Mitch Keller
Assistant Professor of Mathematics
Washington & Lee University, Lexington VA

--
You received this message because you are subscribed to a topic in the Google Groups "MathBook XML Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathbook-xml-support+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Rob Beezer

unread,
Aug 1, 2017, 2:09:58 AM8/1/17
to mathbook-x...@googlegroups.com
Dear Mitch,

Would you mind making an issue?

This also suggests we need to start "versioning" the mbx.cfg file in some way,
so folks know to update their "personal" copies in the user directory when new
options are added.

Rob

On 07/31/2017 08:31 AM, Keller, Mitch wrote:
> I’m not talking about the configuration, I’m talking about the actual script
> mbx. Buried inside the script, where it sets up how to call pdfcrop (using the
> MikTeX or TeXLive version pointed to in mbx.cfg), there is Python code that
> passes an option to pdfcrop that tells it where to find ghostscript. I suspect
> that was put in there because without it, pdfcrop doesn’t know what the
> ghostscript executable is called. But as it stands now, it also relies on
> ghostscript being properly in your path.
>
>> On Jul 31, 2017, at 11:08 AM, Jessica Sklar <skl...@plu.edu
>> <mailto:skl...@plu.edu>> wrote:
>>
>> Oh, interesting. My cfg path to pdfcrop directs to a MiKTeX function . I'm
>> glad this didn't cause problems.
>>
>>
>>
>>
>> On Jul 31, 2017 6:03 AM, "Keller, Mitch" <kell...@wlu.edu
>> <mailto:kell...@wlu.edu>> wrote:
>>
>>
>>> On Jul 31, 2017, at 1:17 AM, Dave Rosoff <dro...@collegeofidaho.edu
>>> email to mathbook-xml-sup...@googlegroups.com
>>> <mailto:mathbook-xml-sup...@googlegroups.com>.
>>>
>>> For more options, visit https://groups.google.com/d/optout
>>> <https://groups.google.com/d/optout>.
>>
>> --
>> Mitch Keller
>> Assistant Professor of Mathematics
>> Washington & Lee University, Lexington VA
>> 206 Robinson Hall ~ 540.458.8099 <tel:(540)%20458-8099> ~
>> http://www.rellek.net <http://www.rellek.net/>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "MathBook XML Support" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe
>> <https://groups.google.com/d/topic/mathbook-xml-support/1kZDdsr2jYE/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to
>> mathbook-xml-sup...@googlegroups.com
>> <mailto:mathbook-xml-sup...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "MathBook XML Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mathbook-xml-sup...@googlegroups.com
>> <mailto:mathbook-xml-sup...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> Mitch Keller
> Assistant Professor of Mathematics
> Washington & Lee University, Lexington VA
> 206 Robinson Hall ~ 540.458.8099 ~ http://www.rellek.net
>
> --
> You received this message because you are subscribed to the Google Groups
> "MathBook XML Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to mathbook-xml-sup...@googlegroups.com
> <mailto:mathbook-xml-sup...@googlegroups.com>.

Keller, Mitch

unread,
Aug 1, 2017, 8:56:54 AM8/1/17
to mathbook-x...@googlegroups.com
To unsubscribe from this group and stop receiving emails from it, send an email to mathbook-xml-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rob Beezer

unread,
Aug 1, 2017, 12:14:54 PM8/1/17
to mathbook-x...@googlegroups.com
Perfect. Thanks.
Reply all
Reply to author
Forward
0 new messages