In another thread [here][1] I couldn't compile a code and we found out, that it is because of 'colour'.
When I use this code...
\documentclass{standalone}
\newcommand\fsname{Shobhika}
\usepackage{fontspec}
\newfontfamily\fsnsk[Script=Devanagari]{\fsname}[Colour=0000ff]\begin{document}
test
\end{document}
... following error is occuring:
! LaTeX Error: Missing \begin{document}. l.4 ...ntfamily\fsnsk[Script=Devanagari]{\fsname}[ Colour=0000ff]\begin{docum...
When I leave [Colour=0000ff] away ...
\documentclass{standalone}
\newcommand\fsname{Shobhika}
\usepackage{fontspec}
\newfontfamily\fsnsk[Script=Devanagari]{\fsname}
\begin{document}
test
\end{document}
... then the compilation is ok. Others don't have that problem and can compile this code with colour. Fonts we tested out and are working well. Where is the problem?
ShobhikaandShobhika Regularas the font name work. What was the error? TexMaker is the editor; what compilation engine did you use? – Cicada Jan 03 '20 at 14:34ping=iast_test.Script=with a.The.will indeed generate errors. But in the code you haveping=iast_test,Script=with a comma, which works. – Cicada Jan 03 '20 at 14:41,you are right! – Denis Jan 03 '20 at 14:57.(inping=iast_test.Script=Devanagari), while the.texsource that you have showed contains a,(inMapping=iast_test,Script=Devanagari). So either you have copied the error message here incorrectly, or copied the source here incorrectly, or you're compiling a source file different from the one you're copying from. Can you edit this question, this time being careful only to copy-paste (don't retype anything) exactly the source you use and the error message you get? – ShreevatsaR Jan 03 '20 at 17:56ping=iast_test,Script=Devanagariin the error message. – Denis Jan 03 '20 at 22:43missfont.logand see if it gets recreated (if you have the font Shobhika, it should not get recreated), (2) Make sure Texmaker is set to UTF-8 encoding by default (e.g. see Step 1 here). – ShreevatsaR Jan 03 '20 at 23:13missfont.logdoes not get recreated. And UTF-8 encoding is by default. – Denis Jan 03 '20 at 23:29xelatex, without using Texmaker, and (2) Try removing the "[Colour=blue]" as that's what it's complaining about. – ShreevatsaR Jan 03 '20 at 23:41[Colour=blue]was the culprit. Any idea why this causes problems? – Denis Jan 03 '20 at 23:53\documentclass{standalone} \newcommand\fsname{Shobhika} \usepackage{fontspec} \newfontfamily\fsnsk[Script=Devanagari]{\fsname}[Colour=0000ff] \begin{document} test \end{document}– ShreevatsaR Jan 04 '20 at 00:14indic,mappingetc related stuff, and ask about just that small example. Then someone who's familiar withfontspecmight be able to see this question and guess why you get that error. – ShreevatsaR Jan 04 '20 at 00:59\newfontfamily\fsnsk[Script=Devanagari, Colour=0000ff]{\fsname}? – David Purton Jan 04 '20 at 09:54