Re: [Tex-music] Struggling with fonts

2019-01-27 Thread O. Michal
V Nedeľa,  27. január 2019 o 08:32 -0500, Bob Tennent napísal(a):
>  >|I did use >|musixtex -F "xetex" -p 312a.mtx >|after that, which
> did yield the correct result. Almost. The only >|problem is, that the
> letter "??" does not appear in the PDF output. It >|does not seem to
> be an issue with Cormorant Garamond, as the same goes >|for PDF
> output provided by Dirk (which does use the default font). 
>  >|> To use CormorantGaramond: >|>   TeX:
> \font\elevenrm=CormorantGaramond-Regular-osf-t1 at >|> 11pt\elevenrm
> >|> or similar in the preamble.
> My advice was faulty. CormorantGaramond-Regular-osf-t1 is avirtual
> T1-encoded font constructed by otftotfm for use withtraditional LaTeX
> engines and apparently the T1 encodingdoesn't support all the glyphs
> you need.
> Try
>   TeX: \font\elevenrm="[CormorantGaramond-Regular.otf]" at
> 11pt\elevenrm
> to use the whole opentype font.
> Bob T.

+PAX

That did the trick! Thank you very much again for your help. Now I have
everything I need to pull the whole thing off.

Thanks to Christian Mondrup as well, I'm planning to use the same
approach in my case (with \includegraphics).

Michal
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-27 Thread Bob Tennent
 >|I did use
 >|musixtex -F "xetex" -p 312a.mtx
 >|after that, which did yield the correct result. Almost. The only
 >|problem is, that the letter "??" does not appear in the PDF output. It
 >|does not seem to be an issue with Cormorant Garamond, as the same goes
 >|for PDF output provided by Dirk (which does use the default font). 

 >|> To use CormorantGaramond:
 >|>   TeX: \font\elevenrm=CormorantGaramond-Regular-osf-t1 at
 >|> 11pt\elevenrm
 >|> or similar in the preamble.

My advice was faulty. CormorantGaramond-Regular-osf-t1 is a
virtual T1-encoded font constructed by otftotfm for use with
traditional LaTeX engines and apparently the T1 encoding
doesn't support all the glyphs you need.

Try

  TeX: \font\elevenrm="[CormorantGaramond-Regular.otf]" at 11pt\elevenrm

to use the whole opentype font.

Bob T.
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-27 Thread Christian Mondrup

On 1/27/19 6:44 AM, O. Michal Mária OSB wrote:

+PAX

Thank you very much for all the replies, especially to Bob. The "TeX" 
line in the preamble was the most important piece. I did use


musixtex -F "xetex" -p 312a.mtx

after that, which did yield the correct result. Almost. The only problem 
is, that the letter "ľ" does not appear in the PDF output. It does not 
seem to be an issue with Cormorant Garamond, as the same goes for PDF 
output provided by Dirk (which does use the default font). Is there a 
way to make sure that unicode characters will get through the whole 
rendering process? I can't find any clue to that in the documentation, 
and musixtex is very convenient, but it obviously does a lot of stuff 
and I don't see anything related to this in the terminal output, or in 
the logs. The correct text (with ľ) is present both in the .pmx and .tex 
files generated by musixtex.


I can reproduce the problem with the character "ľ" missing in the pdf 
output in my texlive environment. My searches for solutions in tex 
stackexchange and similar places were not successful. I wonder, however, 
whether the plain TeX extension 'Csplain' (Czech and Slovak in plain 
TeX) might be something worth looking at. Csplain is part of texlive. 
See http://petr.olsak.net/csplain-e.html


I've been successfully using latex for a while to prepare music editions 
containing music and text elements (like critical notes). I'm using
\includegraphics to add pdf music examples into the text and \includepdf 
to include multiple page pdf (scores) while adding latex style page numbers.


A recent example is a modern edition of Danish language cantata by 
Heinrich Ernst Grosmann (late 18th century cantor at the cathedral of my 
home town Aaarhus)


See Pdf scores and engraving sources at

https://imslp.org/wiki/Cantata_paa_Nytaars-Dag_Vi_Himlens_allm%C3%A6gtigste_Herre_(Grosmann,_Heinrich_Ernst)

Greetings
--
Christian Mondrup
WIMA: Werner Icking Music Archive
http://imslp.org/wiki/Category:WIMA_files
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread Bob Tennent
 >|I'm trying to use m-tx to add a couple of pieces of
 >|music material into a book. I will most probably be
 >|doing it by inserting PDFs as floats in the TeX source
 >|(the requirements of the main source TeX file and chosen
 >|packages don't play nice with pmx), but I want to get
 >|the PDFs right, i.e. the width of the score should match
 >|the page layout and the font in the music score should
 >|be the same as it is in the rest of the book. (BTW: I'm
 >|also using GregorioTeX, which integrates nicely with the
 >|existing TeX source without any problem.) Also: The whole
 >|thing uses both the slovak and latin languages. I tried
 >|to typeset a single piece - a simple song in slovak. The
 >|source is in 312a.mtx. I can get a PDF out of it using
 >|the terminal (musixtex 312a.mtx), and apart from wrong
 >|rendering of some unicode letters in the text, the score
 >|looks fine. I then tried to integrate this with certain
 >|pieces of the main book preamble, in order to get the
 >|correct width and font. The result is in 312a-out.tex.
 >|Unfortunately what happens is, that although the text
 >|is rendered correctly (in the correct font and with
 >|all unicode letters), all notes are squished together
 >|at the left side. Am I doing something wrong, or is
 >|there another way how to get that score with the proper
 >|font...?

If you want to import .mtx sources using the Score
environment, as in your 312a-out (rather than importing
PDFs), process a LaTeX source file.tex as follows:

  musixtex -F lualatex -p file.tex

Bob T.
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread O. Michal
+PAX
Thank you very much for all the replies, especially to Bob. The "TeX"
line in the preamble was the most important piece. I did use
musixtex -F "xetex" -p 312a.mtx
after that, which did yield the correct result. Almost. The only
problem is, that the letter "ľ" does not appear in the PDF output. It
does not seem to be an issue with Cormorant Garamond, as the same goes
for PDF output provided by Dirk (which does use the default font). Is
there a way to make sure that unicode characters will get through the
whole rendering process? I can't find any clue to that in the
documentation, and musixtex is very convenient, but it obviously does a
lot of stuff and I don't see anything related to this in the terminal
output, or in the logs. The correct text (with ľ) is present both in
the .pmx and .tex files generated by musixtex.
Michal
V Sobota,  26. január 2019 o 16:35 -0500, Bob Tennent napísal(a):
>  >|The font problem is easy to solve: use LuaTeX. >| >|musixtex -F
> "luatex" -p 312a >| >|gives the attached pdf
> xetex will also work.  To use CormorantGaramond:
>   TeX: \font\elevenrm=CormorantGaramond-Regular-osf-t1 at
> 11pt\elevenrm
> or similar in the preamble.
> bob---tex-mu...@tug.org mailing listIf
> you want to unsubscribe or look at the archives, go to 
> http://tug.org/mailman/listinfo/tex-music
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread Bob Tennent
 >|The font problem is easy to solve: use LuaTeX.
 >|
 >|musixtex -F "luatex" -p 312a
 >|
 >|gives the attached pdf

xetex will also work.  To use CormorantGaramond:

  TeX: \font\elevenrm=CormorantGaramond-Regular-osf-t1 at 11pt\elevenrm

or similar in the preamble.

Bob
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread Dirk Laurie
The font problem is easy to solve: use LuaTeX.

musixtex -F "luatex" -p 312a

gives the attached pdf

I'll need a bit more detail of what "tried to integrate this with
certain pieces of the main book preamble" involves to advise on that.
But maybe it is no longer necessary if the width is set with PMX
commands.

-- Dirk


312a.pdf
Description: Adobe PDF document
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread Bob Tennent
 >|I'm trying to use m-tx to add a couple of pieces of
 >|music material into a book. I will most probably be
 >|doing it by inserting PDFs as floats in the TeX source
 >|(the requirements of the main source TeX file and chosen
 >|packages don't play nice with pmx), but I want to get the
 >|PDFs right, i.e. the width of the score should match the
 >|page layout and the font in the music score should be the
 >|same as it is in the rest of the book.

Then you should be using TeX commands to get the PDFs right
and importing the PDFs as graphics. I don't know what the
Score environment is for.

 >|(BTW: I'm also using GregorioTeX, which integrates nicely
 >|with the existing TeX source without any problem.)

I see no evidence of that in your example. AFAIK gregoriotex
needs lualatex and has has nothing to do with musixtex.

 >|Also: The whole thing uses both the slovak and latin
 >|languages. I tried to typeset a single piece - a simple
 >|song in slovak. The source is in 312a.mtx. I can get a
 >|PDF out of it using the terminal (musixtex 312a.mtx), and
 >|apart from wrong rendering of some unicode letters in the
 >|text, the score looks fine.

Perhaps someone with experience using TeX with Eastern
European languages could advise you.

 >|I then tried to integrate this with certain pieces of the
 >|main book preamble, in order to get the correct width and
 >|font.

To get the correct width, use TeX commands; see Section 14.2
of musixdoc.pdf. Or use the options for \includegraphicx to
scale the imported PDF.

CormorantGaramond.sty supports latex, pdflatex, xelatex and
lualatex, but not plain TeX. 

Bob T.
---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music


Re: [Tex-music] Struggling with fonts

2019-01-26 Thread Dirk Laurie
Op Sa. 26 Jan. 2019 om 15:51 het O. Michal Mária OSB
 geskryf:

> I then tried to integrate this with certain pieces of the main book preamble, 
> in order to get the correct width and font. The result is in 312a-out.tex. 
> Unfortunately what happens is, that although the text is rendered correctly 
> (in the correct font and with all unicode letters), all notes are squished 
> together at the left side.

That always means that the necessary .mx2 file was not generated. It
is automatically taken care of by the musixtex.lua script, but it
sounds as if you are doing something more complicated than just
running that script.

---
TeX-music@tug.org mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music