Jump to content
You must now use your email address to sign in [click for more info] ×

ZeMike

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by ZeMike

  1. I think I found a solution to this problem. Here it is.

     

    I work with :

    MacOs El Capitan 10.11.6

    TeXLive 2015

    Affinity Designer 1.4.2

     

    We have to play at both MacOs and LaTeX side to make this work. First of all you have to install the OTF fonts corresponding to the LaTeX fonts, including math mode fonts. Here is what is to download :

    General Text Fonts : https://www.ctan.org/pkg/cm-unicode

    Math Fonts : http://www.gust.org.pl/projects/e-foundry/lm-math/download

     

     

    Once that all the included OTF fonts are installed (with fontbook for example), you have to play the LaTeX side. Here is a sample LaTeX script (UTF-8 encoding for the text file in my case, I use TexStudio) :

    -----

    \documentclass[]{article}

     
    \usepackage{fontspec}
    \usepackage{polyglossia}
    \usepackage{unicode-math}
    \setmainfont{CMU Serif}
    \setsansfont{CMU Sans Serif}
    \setmonofont{CMU Typewriter Text}
    \setmathfont{Latin Modern Math}
     
     
    \title{}
    \author{}
    \begin{document}
    Hello, world!
    Привет, мир!
    $ a≡b≠Ω♯$
    $$
    \int_0^\infty x^2\beta d\alpha \omega
    $$
    $$L_{{\Omega ,\nu }}^{\circ }(\nu ,T)={\frac {2{\mathrm {h}}\nu ^{3}}{c^{2}}}{\frac {1}{{\mathrm {e}}^{{{\mathrm {h}}\nu /({\mathrm {k}}T)}}-1}}$$
    \end{document}
    ----
     
    Then, compile with XeLaTeX (important : standard LaTeX will not work, as well as pdfLaTeX). The LaTeX system then produces a PDF file. Unfortunately, this PDF file is not suitable for Affinity Designer (as well as for Adobe Illustrator ...) : for some obscure reasons, lots of symbols disappear, the size of the integrals do not fit, etc. The solution for me was to open the pdf file generated by LaTeX with "Preview.app" installed with MacOsX, and then export again as a PDF file. This PDF file is okay for Affinity Designer on my system.
     
    Hope this helps !
       Mike

     

     

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.