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

Using mscoreLaTeX with TeXstudio #2

Open
jimishol opened this issue Mar 24, 2024 · 0 comments
Open

Using mscoreLaTeX with TeXstudio #2

jimishol opened this issue Mar 24, 2024 · 0 comments

Comments

@jimishol
Copy link

There is no issue but in absence of discussion tab I thank you and would like to describe how I used mscoreLaTeX with TeXstudio.

  1. I moved mscoreTeX.sty inside the preamble so as to have any name for the tex file and don't bother to name my tex file as main.tex
  2. I used the packages polyglossia, fontspec and main fonts CMU Serif, so as to implement easily the greek language.
  3. In Options - Configure TextStudio - Build - Default Compiler had to choose either XeLaTeX or LuaLaTeX because of previous packages.
  4. Since musecore saves mscx files in directories of the same name I altered #1 in your script by #1/#1. (I just need to save musescore files where my tex file is, there musescore creates a same name folder and in it saves the mscx file.)
  5. In Options - Configure TextStudio - Build - User Commands - Add I created a command named mscorepdf (or whatever anyone likes) with the command xelatex --shell-escape %.tex This command appears in Tools-User with the shortcut of Alt-Shift-F1
  6. I liked a more easy way to run the previous command so in Options - Configure TextStudio - Shortcuts - Tools - User
    I set to it Additional Shortcut to Ctrl-Alt-M

I could not find a way to run the mscore commands from inside of document by the write18 and the variable \jobname. That is why I used the equivalent % in TextStudio user command.
By the above I can create any tex files and, after any save of musescore mscx edited files, compile them by Ctrl-Alt-M.

A problem appeared only with very long strings for the #1, I believe because of some kind of hyphenation.
I attach my single tex file named by english and greek letters and space. It does work for me even with such a name. Rename .txt extension as tex (.tex extension is not supported by github).
main τεστ.txt

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

1 participant