-
Notifications
You must be signed in to change notification settings - Fork 348
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
Allow Latex expressions in single-line titles and Cartesian axes labels #4566
Conversation
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Also fixed that remaining |
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
@PaulWessel Do you mind moving the 4 latex tests into a separate directory, e.g, |
Good idea, will do soon but in the middle of Xcode debug on another branch... Or you can do it, create a latex test folder and move the ones from psbasemap and pstext I think. Not sure about doc/scripts/GMT_latex.sh though as not a test. |
Changes in this PR: 1. Move the 4 latex tests to the directory `latex` 2. Exclude LaTeX tests if latex or dvips are not found
After installing the full mactex via homebrew There are still a few comments to address:
We may also need to add instructions to install LaTeX in the wiki. |
Thanks, now committed |
Warnings fixed. instructions for wiki next but not in this repo. |
Yippie! |
FYI, I created a wiki page for "how to install LaTeX" at https://github.com/GenericMappingTools/gmt/wiki/Install-LaTeX-for-GMT-LaTeX-Integration. |
Description of proposed changes
See #4563 for background. This PR implements the ability to place Latex expressions in titles and labels. Users who wish to use this feature must have a working installation of latex and dvips as well as recommended fonts. Because a title may contain a mix of text and equation, I change the default Latex font to match the corresponding title or label font chosen in GMT. The correspondence should work for all of our standard fonts, e.g., Helvetica, Times-Roman, Courier, Bookman, Palatino, etc.
Some limitations that may be relaxed later:
I have updated the documentation and added two test scripts (latextitle.sh and latexlabel.sh). The output of the latter looks like this:
Feel free to test-drive this PR to possibly expose any issues. Once acceptable we also need to update the run-time dependency entries on the wiki and Building.