last day (29 days later) » 

8:31 PM
2
A: Empty set symbols confused

egregThere are not two distinct Unicode points for the empty set and its variant symbol (they are just different forms of the same symbol). Find a font that has the circle form and use it. \documentclass[12pt]{article} \usepackage[fleqn]{amsmath} \usepackage{unicode-math} \usepackage[english,greek]{...

 
@Manuel It's really annoying. Let's hope these bugs will be fixed soon.
 
@egreg thank you I will try it! Can you please explain to me why except the first \setmathfont there are two more?
 
@Adam The first and third \setmathfont shouldn't be necessary in an ideal world (Latin Modern Math is the default of unicode-math), but they're unfortunately needed if different fonts are used for some ranges. With only the second declaration, two bugs of unicode-math show, which are corrected with the other two declarations. The order matters.
 
@egreg I used these lines of code and I get errors: Undefined control sequence. l.37 \setmathfont {Latin Modern Math} LaTeX Error: Missing \begin{document}. Undefined control sequence. l.38 \setmathfont[range=\varnothing ]{Asana Math} Missing $ inserted. <inserted text>
 
@Adam Please, upgrade your TeX distribution.
 
8:31 PM
@egreg I use ShareLatex so it is upgraded. :)
 
@Adam Not sure it is. Look in the log file for the version of unicode-math
 
@egreg where can I find it?
 
@Adam In the log file; look for unicode-math and the version number will be next to it. Sorry, but I won't register just for this.
 
@egreg It says unicode-math 2014/06/30 v0.7f
Thank you for your help
 
Can you report the first error message you get? Literally, please. Paste it in the box and click the “fixed font” button
 
8:34 PM
Undefined control sequence.

l.39 \setmathfont {Latin Modern Math} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
Undefined control sequence.

l.39 \setmathfont {Latin Modern Math} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.
 
Did you copy exactly my example? My impression is that you have \setmathfont before \usepackage{unicode-math}
 
I copied exactly the first error. Unicode-math is loaded after \setmathfont
AA sorry....I copied exactly your example
 
@Adam I don't understand. You should have
\documentclass[12pt]{article}

\usepackage[fleqn]{amsmath}
\usepackage{unicode-math}
\usepackage[english,greek]{babel}
before any \set...font command
 
Wait to check
 
The only way you can get \setmathfont to be undefined, is having \setmathfont before \usepackage{unicode-math}.
You must have mixed your own way (not really correct) with mine
 
8:40 PM
I have this and it doesnt work...It has another error
\usepackage{fontspec}

\usepackage[english,greek]{babel}

\usepackage[fleqn]{amsmath}

\usepackage{unicode-math}

\setmainfont
[
  Ligatures=TeX,
  Extension=.otf,
  UprightFont=*,
  BoldFont=*Bold,
  ItalicFont=*It,
  BoldItalicFont=*BoldIt,
  Mapping=tex-text
]{GFSArtemisia}

\setsansfont[Mapping=tex-text]{GFSArtemisia.otf}

\setmathfont{Latin Modern Math}
\setmathfont[range=\varnothing]{Asana Math}
\setmathfont[range=\int]{Latin Modern Math}
 
Why do you want to do your way? First amsmath, then unicode-math, then babel, then all font declarations. You may have to load the fonts by filename, so it should be latinmodern-math.otf and Asana-Math.otf
By the way, what's the meaning of declaring Artemisia as the sans serif font?
 
Sorry I had copied the previous file I change it when you told me. Still has a lot of errors. I didn't. I had troubles with languages so this is an answer form the site.
 
@Adam What errors?
 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! ! fontspec error: "font-not-found" ! ! The font "Latin Modern Math" cannot be found. ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !............................................... l.48 \setmathfont{Latin Modern Math} |''''''''''''''''''''''''''''''''''''''''''''''' | A font might not be found for many reasons. | Check the spelling, where the font is installed etc. etc. | | When in doubt, ask someone for help! |...............................................
Cannot use \XeTeXOTcountfeatures with nullfont; not an OpenType Layout font.

<argument> \XeTeXOTcountfeatures \l_fontspec_font \l_fontspec_script_int \l_... l.48 \setmathfont{Latin Modern Math}
Notes/Propability and Statistics/Preamble.tex, line 48

Cannot use \XeTeXOTfeaturetag with nullfont; not an OpenType Layout font.

<argument> ...\XeTeXOTfeaturetag \l_fontspec_font \l_fontspec_script_int \l_... l.48 \setmathfont{Latin Modern Math}
Notes/Propability and Statistics/Preamble.tex, line 48

Missing = inserted for \ifnum.
 
As I said, you may have to call the fonts by file name (it depends on the host system whether you can load them by font name)
\setmathfont{latinmodern-math.otf}
\setmathfont[range=\varnothing]{Asana-Math.otf}
\setmathfont[range=\int]{latinmodern-math.otf}
 
8:53 PM
How can I do this?Sorry for the questions....
 
@Adam Can you see the three lines of code above?
 
Yes I used them
 
@Adam And?
 
I used them from the beginning...I never removed them
 
@Adam I mean, the three lines I added a few minutes ago. These vvvvv
\setmathfont{latinmodern-math.otf}
\setmathfont[range=\varnothing]{Asana-Math.otf}
\setmathfont[range=\int]{latinmodern-math.otf}
 
8:59 PM
Good God thank you it worked!!!
 
@Adam I'll update my answer
 
Thank you so much for your time.
 
@Adam All's well that ends well
@Adam Ciao!
 
Thank you, Bye
 

  last day (29 days later) »