Skip to content
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

Inconsistencies in changing from times/cm to lucida #5

Open
chbrown opened this issue Jul 11, 2016 · 3 comments
Open

Inconsistencies in changing from times/cm to lucida #5

chbrown opened this issue Jul 11, 2016 · 3 comments

Comments

@chbrown
Copy link
Member

chbrown commented Jul 11, 2016

sp.cls imports different packages based on what font option is supplied in the documentclass.

The means an author can use commands from, for example, stmaryrd, without explicitly importing that package, but this breaks when moving to production and adding the lucida flag.

It's an easy fix to explicitly \usepackage the previously implicitly required package in the article's preamble, but that seems sub-optimal.

@fintelkai
Copy link
Contributor

Have you seen this issue in real life? The four packages in question are

  1. amssymb
  2. textcomp
  3. mathptmx (just for times)
  4. stmaryrd (which is needed for semantic value brackets)

amssymb is recreated in lucimatx.sty and should not be loaded when using the lucida fonts.

textcomp is actually loaded by lucimatx.sty itself.

I don't remember why mathptmx is called.

We could dispense with stmaryrd and just import the two glyphs for semantic value brackets.

@chbrown
Copy link
Member Author

chbrown commented Jul 11, 2016

I'm prepping CondoravdiLauer-Anankastics.tex for production work, and they use \shortrightarrow from stmaryrd, so yeah. I haven't hit this before on anything else, though.

@chbrown
Copy link
Member Author

chbrown commented Mar 15, 2017

Looking at this more, stmaryrd and lucimatx conflict (or at least the setup in the \if@lucida branch in sp.cls), so order of import matters. You'll get different looking semantic brackets (among other things, I expect) in the final Lucida render depending on whether the user called \usepackage{stmaryrd} or not. This is bad. Two options:

  1. \RequirePackage{stmaryrd} in sp.cls before running the lucimatx import and other Lucida setup. If we do this, our custom Lucida settings will win whatever conflicts might occur, and any subsequent \usepackage{stmaryrd} calls in the author's TeX will (necessarily) be ignored.
  2. Add stmaryrd to the list of forbidden imports, with an exception for uses like \usepackage[only,funnsymbol1]{stmaryrd} that don't overwrite existing commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants