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

Loading microtype before gregoriotex breaks metapost-based features. #1364

Closed
lpburrows opened this issue Jun 13, 2017 · 14 comments
Closed

Loading microtype before gregoriotex breaks metapost-based features. #1364

lpburrows opened this issue Jun 13, 2017 · 14 comments

Comments

@lpburrows
Copy link

I keep getting an error when trying to set braces in Gregorio 5.0.2 on TexShop 3.77 on Mac. The error reads:

"Undefined control sequence.
l.5 \mplibtoPDF
{
l.468 \GreSyllable
{\GreSetThisSyllable{}{}{}{}{}}{}{\GreUnstyled}{1}{\GreSetNe…”

My gabc file has (jr[ocba:1{] ih[ocba:0}]), but it does it at any place braces are coded. Any ideas?

@henryso
Copy link
Contributor

henryso commented Jun 14, 2017

Please run the system-setup.command and provide the output.

@lpburrows
Copy link
Author

Sorry about that.

system-setup.txt

@henryso
Copy link
Contributor

henryso commented Jun 17, 2017

When you installed TeX Live, did you perform a full installation? It seems like some metapost-related commands are unavailable.

@lpburrows
Copy link
Author

I did a full installation, yes. And I just uninstalled MacTeX 2017 and did a fresh installation, and still have the same issue.

@henryso
Copy link
Contributor

henryso commented Jun 17, 2017

Ok, I'm puzzled as to why it's not working. Perhaps our resident Mac expert can help you. @rpspringuel?

@lpburrows
Copy link
Author

A minimal example and then trial and error commenting out packages revealed that microtype was the culprit.

@henryso henryso changed the title Braces not compiling Braces fail to compile when using the microtype package Jun 18, 2017
@henryso
Copy link
Contributor

henryso commented Jun 18, 2017

@lpburrows Do you mind sharing the MWE? I tried a trivial example with microtype and that error didn't happen.

@lpburrows
Copy link
Author

lpburrows commented Jun 18, 2017

@henryso Here's one with both functional and nonfunctional options, for comparison.

% !TEX program = LuaLaTeX+se
% !TEX encoding = UTF-8 Unicode
\documentclass[a5paper,9pt,english-us]{book}
\usepackage{microtype}
\usepackage[autocompile]{gregoriotex}
\begin{document}
\gabcsnippet{(c4) (f) (gh) (h) (h) (h) (ixir1) (hr) (h) (gr1) (hr) (h.) (:)
%(h) (h) /(h) (g) (f) (gr) (gf) (d.) (::)} %functional
(h) (h) /(h) (g) (f) (gr[ocba:1{]) (gf[ocba:0}]) (d.) (::)} %nonfunctional
\end{document}

@henryso
Copy link
Contributor

henryso commented Jun 19, 2017

Ok. Load microtype after gregoriotex.

@henryso henryso changed the title Braces fail to compile when using the microtype package Loading microtype before gregoriotex breaks metapost-based features. Jun 19, 2017
@rpspringuel
Copy link
Contributor

If it's just a package loading order question, then I think that we can just document the required order. There are plenty of other packages that care about their loading order with respect to other packages.

@henryso
Copy link
Contributor

henryso commented Sep 18, 2017

How best to document this?

@rpspringuel
Copy link
Contributor

IIRC we had a blurb in the package loading section about a package conflict before. That conflict got solved, so the blurb was removed, but I think it's a suitable model for how to document this sort of thing. You might try searching through the history of the documentation folder to find what I'm referring to (as my memory isn't up to remembering any more specifics than this).

@henryso
Copy link
Contributor

henryso commented Sep 24, 2017

I can't find the revision with the blurb. Do you know which package had a conflict so I can search for something rather than paging through hundreds of commits?

@rpspringuel
Copy link
Contributor

fontspec: see be4c9f3

henryso added a commit to henryso/gregorio that referenced this issue Sep 30, 2017
@henryso henryso closed this as completed Nov 22, 2017
rpspringuel added a commit to rpspringuel/gregorio that referenced this issue Nov 26, 2017
* release-5.0:
  Remove note about luaotfload bug
  Prevented the change of \gre@diment@lastglyphwidth by a custos alteration. Fixes gregorio-project#1379.
  Added note about package ordering as related to microtype. Fixes gregorio-project#1364.
  Switched to tex.sprint since it's not the last tex print call in the function.
  Opened auto-compiled gabc files in TeX so opening is recorded correctly. Fixes gregorio-project#1367.
  Update references to gna.org
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

3 participants