-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add sentence to textprops tutorial mentioning mathtext rcParams #8853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR! 👍 to the content, but sphinx is not happy:
and I am not sure why.... |
I wonder if this is an order of compilation issue with sphinx gallery? attn @choldgraf ? |
huh....that's weird. It looks like the label is defined properly. Do the generated RST files all look correct? (inside of |
Oh yeah, it looks likes the generated mathtext RST is putting a bunch of stuff in a code block that shouldn't be (including the definition of the label I'm trying to reference.) |
maybe it's an indentation problem then - double check that everything is indented properly! |
Comparing Also, I had to remove some unused footnotes in a in order to get the documentation to compile. Not sure if you guys got that error too. I'm running Sphinx 1.6.2. |
I think you are working from and old checkout, those references were already removed in 3649684 |
This is a candidate for squash-merging. @geib7592 If you are comfortable doing so, it might be worth rebasing this PR. Thanks for working through the sphinx issues 😄 |
Darnit. Well, I'm learning as I go. So I attempted to rebase, and now this PR contains commits that are unrelated to what I changed. Is this fixable, or should I just start over? |
|
And creating git-snarls is something that happens occasionally to everyone (I am currently at scipy watching some tutorial presenters sort out some git issues 😎 ) |
@tacaswell is there any resource we can point contributors to that explains more clearly how to rebase? If not I can write something up...rebasing is pretty confusing the first several times it's done... |
@choldgraf see #8398 We had a nice write up (to be fair I am biased because I wrote it) that some how got deleted. |
ah cool, that is v useful! I had a quick comment on that text but I'll add it in the issue you opened. |
@geib7592 I think you missed the force push step (and did a |
…as adding the line of ### and then adding a # on one of the lines that was missing it
Thanks, it looked like I was digging myself deeper into the abyss. But I think it looks okay now. |
Little known fact, when Nietzsche said
he was actually talking about rebasing off of a stale git branch |
tutorials/text/text_props.py
Outdated
@@ -143,7 +143,9 @@ | |||
# Default Font | |||
# ============== | |||
# | |||
# The base default font is controlled by a set of rcParams: | |||
# The base default font is controlled by a set of rcParams. To set the font | |||
# for mathematical expressions, use the rcParams begining with ``mathtext`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beginning
👍 You are now through the worst of the git learning curve. http://tom.preston-werner.com/2009/05/19/the-git-parable.html is my favorite reference for this sort of thing. |
PR Summary
Addresses issue #8702.
Minor change to the text_props tutorial to point out that the math font needs to be set with the
mathtext
rcParams. I also added a label to the math tutorial so I could link to it.I'm a new contributor, and this is my first PR. Please let me know if I've done anything incorrectly, and thanks for your patience! If all goes well, I'd like to get more involved!
PR Checklist