I’m using TeXLive 2015 and compile with lualatex or xelatex. When loading the unicode-math package, the command \not produces a ‘6’ instead of striking through stuff (as in ‘ø’ with \not o). The following example code \documentclass{scrreprt}      \usepackage{         fontspec,         unicode-math,     }  \begin{document}     $\not o$. \end{document}  produces the following output:  I tried to googe this, but couldn’t find any results. It seems unusual that noone else had this issue before – is this intended behaviour? If so, how do I get what I what, namely a ‘ø’ (and actually, I need the result of \not \mapsto)? I have uploaded a paste of a compiilation’s log under .
121078
The following MWE yields the attached picture:  \documentclass{article}  \usepackage{fontspec} \usepackage{amsmath,amssymb} \usepackage{unicode-math}  \begin{document} With \LaTeX{} commands: \begin{gather*}   A \not= B\\   A \not\le B\\   A \not\lesssim B\\   A \not\approxeq B \end{gather*}  With Unicode characters:  \begin{gather*}   A \not= B\\   A \not≤ B\\   A \not≲ B\\   A \not≊ B \end{gather*} \end{document}     Why is \not replaced by 6?  I tried using a Unicode combining long solidus overlay instead, but that doesn't work at all:  \begin{gather*}   A ≠ B\\   A ≰ B\\   A ≴ B\\   A ≊̸ B \end{gather*}
20826
In a text file, there is a string "I don't like this".  However, when I read it into a string, it becomes "I don\xe2\x80\x98t like this". I understand that \u2018 is the unicode representation of "'". I use   f1 = open (file1, "r") text = f1.read()   command to do the reading.  Now, is it possible to read the string in such a way that when it is read into the string, it is "I don't like this", instead of "I don\xe2\x80\x98t like this like this"?  Second edit: I have seen some people use mapping to solve this problem, but really, is there no built-in conversion that does this kind of ANSI to unicode ( and vice versa) conversion?
76313
It sounds simple but I have a really heavy issue with the "ö ü ä ß" in Latex. I use a template from my university, i have a mac and i use TeXShop if that matters.  Within there is a packages.tex with the following  (...)  \usepackage[T1]{fontenc}            % Standard package for selecting font encodings \usepackage{lmodern}                    % alternative Computer Modern-fonts for computer screens \usepackage{textcomp}                   % LaTeX support for the Text Companion fonts (...)   Also I have a thesis.tex with  (...) \usepackage[utf8]{inputenc}     % Accept different input encodings \usepackage{ifthen}                     % Conditional commands in LaTeX documents (...)   Now I tried to use  \usepackage[ngerman]{babel}   as well as  \usepackage[applemac]{inputenc}   but unfortunately it doesn't work. The best case was another error "hyphenation flashed" or something.   \documentclass[     fontsize=12pt,     a4paper,     portrait,                                    oneside,                                         openright,                                   final,                                               titlepage,                                       onecolumn,                                       bibliography=totoc,     numbers=noenddot                     ]{scrbook} \usepackage[T1]{fontenc}         \usepackage{lmodern}     \usepackage[utf8]{inputenc}      \usepackage{ifthen}          \begin{document} öä \end{document}   Now I replaced  \usepackage[utf8]{inputenc}        with  \usepackage[applemac]{inputenc}   in the minimal working example above and it worked BUT in the other document it still doesn't work :( There it gives me the error (see picture)
106088
I got a weird problem with the  package and the  package. Let's see the MWE first.  %!TEX program = xelatex \documentclass{article} \usepackage{graphicx} \usepackage{fontspec} \setmainfont{Times New Roman} \newfontfamily\test[AutoFakeBold = 5]{Times New Roman} \begin{document} \test Test \textbf{Bold Test}  \includegraphics[scale = 0.1]{photo}  Words that shouldn't be bolded. Even if \textmd{textmd-ed}. \end{document}         In the preamble, I loaded the graphicx package and the fontspec package, then I set Times New Roman as the default font of the text as well as the font of the test command. In the definition of \test, I enabled AutoFakeBold. In the document body, between the two chains of text, I inserted a photo with the \includegraphics command.  It's a normal manuscript, except that AutoFakeBold was set to 5 to make the abnormal output more remarkable. After the compilation, however, the later line of text presented an unexpected output. That is, this line of text shouldn't be bolded.  Even more surprising is that, if one   cancel the option passed to \includegraphics, or put some more text after \textbf{},   the problem will go away.  I suspect the problem lies in the FakeBold mechanism of the fontspec package and/or the key-val mechanism of the graphicx package, but unfortunately, I don't read LaTeX3 codes, so I cannot locate it.  Maybe an issue should be posted to fontspec or graphicx, but before that, could someone provide me a quick fix to this problem?    EDIT 2015/01/05  Thanks to the help of qingkuan@bbs.ctex.org, it seems to be a bug of XeTeX. See the new MWE.  % !TeX program = xetex  \font\x="[cmunrm.otf]" \font\bx="[cmunrm.otf]:embolden=5;"  \x Test {\bx Bold Test} \XeTeXpicfile "example-image.png"  width 1cm\relax Words that shouldn't be bolded.   \tracingoutput=1 \showboxbreadth=\maxdimen \showboxdepth=\maxdimen  \bye         I made a ticket on  and hope this will be fixed soon.
4578
I'm writing a book using Latex in what I want to write code in Python. My operating system is Linux and my editor is Kile with:  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{verbments}   But I can not see the characters in Spanish  \begin{pyglist}[language = python, encoding = utf8]     print ('Tomorrow is another day') \end{pyglist}   I perform the compilation with the command  pdflatex -shell-escape -interaction = nonstopmode   but I get the following error.  *** Error while highlighting: UnicodeDecodeError: 'utf-8' codec can not decode byte 0xf1 in position 9: invalid continuation byte     (file "/usr/lib/python3.3/site-packages/pygments/lexer.py", line 164, in get_tokens)   I also have observed that verbments generates a file called name.pyg.sty that curiously is codified in ISO-8859-15 instead of UTF-8 as all my other files.
33144
Please how can I insert these unicode symbols in the range u2400 to u2421. They are names of control characters.  You can see them here:   I could find the package keystroke which has very nice keys, but that is not what I want.  Thanks!  -- Edited:  Quoting Marco: "The problem is to find a font that contains these characters."
59017
I'm trying out  with gnuplot to generate the data.  This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the graph.  The problem I'm having is that I get different behaviour under xelatex as pdflatex or lualatex.  In xelatex, the data file is littered with ^^I whereas in the other two formats these are tabs.  It appears that the code ^^I is getting stored as a macro which then gets written out to the file, so possibly there's something funny going on with the ^^I syntax: xelatex is reading it literally.  Indeed, when I do \show\pgfplots@TAB (the macro in question) then for pdflatex and lualatex then I get a literal tab whereas for xelatex I get ^^I.  So how do I get a tab in xelatex?  And why isn't \gdef\pgfplots@TAB{^^I} working?  (The previous line in the code, by the way, is \catcode`\^^I=12 - I don't know if that has anything to do with it.)
85960
I am trying for about a week to launch unicode-math package with XeLaTeX and got nothing. PDF is created well but all Cyrillic symbols in math mode are skipped. I tried using different math fonts - no progress at all. In log file, I found low-level error:  Missing character: There is no [cyrillic letter from input] in font cmmi12!   But all fonts used in document are Unicode ones.  Here is a file I want to be processed well (of course it is UTF-8).  \documentclass[12pt]{book} \usepackage{polyglossia} \setdefaultlanguage[spelling=modern]{russian} \setotherlanguage{english} \defaultfontfeatures{Ligatures={TeX}} \setmainfont{CMU Serif} \setsansfont{CMU Sans Serif} \setmonofont{CMU Typewriter Text}    \usepackage{amsmath, amssymb} \usepackage[russian]{hyperref}  \usepackage{unicode-math} \setmathfont{Latin Modern Math}  \frenchspacing  \begin{document} Просто буквы % Plain letters $$Память: M_{доп}(n) = \Theta(N)$$ % Memory: M_add(n) = \Theta(n) \end{document}   Looking for your help.
97691
This is a little bit off topic as it is not exactly related to TeX.  I saw recently that  was updated to 1.020 which comes with math table support.  Does any one had a chance to play with this font and use it with unicode-math, and in particular with the LuaTeX engine?  I am very interested in purchasing a complete set of this nice fonts family. However I am concerned about its usability with the unicode-math package. Unlike Cambria Math or XITS Math, Minion Math does not come with a single font, instead it has 20 (4 weights 5 optical sizes) fonts. So it will be better to know how it works before spending 700 euro.  In particular, say the following minimal document, will it use correct optical size of the fonts for each of the three formulas? I had trouble with using correct optical size of Minion Pro fonts with fontspec. I worked it out with the SizeFeatures and OpticalSize. However, I am not so sure if the same strategy will work for Minion Math with unicode-math. In addition, in Cambria Math, etc., the bold symbols and alphabets are chosen directly from the unicode math enabled fonts. But in Minion Math, from the glyph tables on their websites, there seems no bold alphabets in each font. So will the mathbf in the document below work out of box?  \documentclass{article} \usepackage{fontspec} \setmainfont{Minion Pro} \usepackage{unicode-math} \setmathfont{Minion Math} % or what ever fonts name actually is  \begin{document} \fontsize{5}{5}\selectfont \[ \mathbf{E} = mc^2 \] \fontsize{10}{10}\selectfont \[ \mathbf{E} = mc^2 \] \fontsize{36}{36}\selectfont \[ \mathbf{E} = mc^2 \] \end{document}
35744
I use TeX Live. See my example:  \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage[english]{babel} \begin{document} Check ligatures: ﬁrst % here I have ligature for "fi" \end{document}   I have Unicode symbol here: ﬁ. When I compile the above LaTeX file I get:  ! Package ucs Error: Unknown Unicode character 64257 = U+FB01  Then I apply the LaTeX system recommendation and compile the following file:  \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage[english]{babel} \DeclareUnicodeCharacter{FB01}{ﬁ}% Here I defined a Unicode ligature \begin{document} Check ligatures: ﬁrst \end{document}   But when I compile this LaTeX file I get:  ! Missing number, treated as zero. &lt;to be read again&gt;                    F l.4 \DeclareUnicodeCharacter{FB01}{ﬁ}  So my question is: How can I input ligatures in a LaTeX file using just the ligature's Unicode symbol?
81644
When I compile with LuaLaTeX and TL2016 this MWE   \documentclass{article}  \usepackage[no-math]{fontspec} \usepackage{luatex85} \usepackage{shellesc}  \setmainfont{Minion Pro}  \begin{document}  \huge{huge} \textbf{\huge{huge}}  \Huge{Huge} \textbf{\Huge{Huge}}   \end{document}   I have this .pdf.     Any help? With TL2015 all is correct. Thanks
53907
In my case, (U)XTerm does display some unicodes, but only partially. For exmaple: for letters are: 𝒫φϕ𝒟. Here is a screenshot of UXTerm and Urxvt respectively   It seems that the problem is related to the letter space or letter length. By the way, everything is fine with gnome-terminal.  My current .Xresources file is: Xft.dpi:       120 Xft.antialias: true Xft.hinting:   true Xft.rgba:      rgb Xft.autohint:  false Xft.hintstyle: hintslight Xft.lcdfilter: lcddefault  XTerm*faceName:          Fixed XTerm*faceSize:          14 XTerm*reverseVideo:      false XTerm*selectToClipboard: true  UXTerm.vt100*faceName:          Fixed UXTerm.vt100*faceSize:          14 UXTerm.vt100*reverseVideo:      false UXTerm*selectToClipboard: true  URxvt.font:            xft:Fixed:pixelsize=18  URxvt.depth:                      32 URxvt.background:                 #222D31 URxvt*scrollBar:                  false URxvt*mouseWheelScrollPage:       false URxvt*cursorBlink:                true URxvt*background:                 black URxvt*foreground:                 grey URxvt*saveLines:                  5000  How to make XTerm and Urxvt to display those characters correctly? Is it possible?
15692
I have discovered a behavior that I cannot explain. When compiling the MWE  \listfiles \documentclass{article} %\usepackage{fontspec} \title{foo\thanks{bar}} \author{baz\thanks{qux}} \setlength{\textheight}{2.25in} % just for the example  \begin{document} \maketitle \end{document}   with XeLaTeX or LuaLaTeX, the result is as expected:    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)  ***********   However, uncommenting \usepackage{fontspec} and compiling with either XeLaTeX or LuaLaTeX results in    Corresponding file list:   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option) fontspec.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX    expl3.sty    2015/02/13 v5524 L3 programming layer (loader)  expl3-code.tex    2015/02/13 v5524 L3 programming layer      etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB) l3unicode-data.def    2015/02/12 v5523 L3 Unicode data l3xdvipdfmx.def       xparse.sty    2014/11/25 v5471 L3 Experimental document command parser fontspec-patches.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe X fontspec-xetex.sty    2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX  fontenc.sty   eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings   eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth er characters in Unicode lower plane  eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live    xetex.def    2014/07/25 v4.03 LaTeX color/graphics driver for XeTeX (RRM/JK)  fontspec.cfg    t3cmr.fd    2001/12/31 TIPA font definitions  ***********   As you can see, only one distinct footnote mark is used when fontspec is loaded. This happens even if I load a system font using \setmainfont and/or friends. I use vanilla TeX Live 2014 (updated today) on Windows 7.  Is there a reason for this behavior or a problem with my setup? Or is this a bug that should be reported?
24023
Restated Problem and a Solution  The use of a times font using the package txfonts will cause tables to be improperly displayed (see below for an image) if a character such as ę,ą or a different character with an ogonek is used.   This has something to do with the procedure involved not being local, that is, having unwanted side effects elsewhere.   An effective way of keeping whatever is done local is by enclosing it in brackets {ę}. This can be generally invoked for any mention of the character in question by mapping ę to {ę}, a to {ą} and so on in the preamble by the following:  \DeclareUnicodeCharacter {281}{{ę}} % 281 is the decimal utf-8 code of ę ...   This will solve the problem for the whole document  A more general solution still that fixes the error introduced in the source file of txfonts is described below under the heading WORKAROUND. However, if you do not want to fiddle with the way the package is called (possibly because it is called in a stylesheet you do not want to change) redefining the characters is a good solution  Initial question  I am typesetting a multilingual document with pdflatex (MikTeX, all packages up to date). I need to use Times font, and, for the time being, I cannot switch to LuaLatex or XeLatex since I am in the final phase of typesetting a book with a class provided by my publisher and I would need to adjust my code in order to use these above.   Using Polish characters with txfonts causes the tables to crash:   \documentclass{article}  \usepackage{txfonts} %\usepackage{mathptmx} \usepackage[polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\pl}{\selectlanguage{polish}\fontencoding{T1}} \begin{document} \textbf{A minimal example using a times font} As soon as I enter the Polish character \pl ę  \ee the tables crash  (the lines of the table get printed onto each other). \begin{table}\begin{center}\begin{tabular}{|l||l|l|} \hline type&amp;n    &amp;rel        \\ \hline \hline One line in the table &amp;260&amp; many  \\ Another line in the table      &amp;792&amp;49  \\ A third line in the table       &amp;288&amp;1  \\ \hline \end{tabular}\end{center}\caption{A test table.}\end{table} \end{document}   The alternative package mathptmx does not cause this problem; however, it does not provide the Greek characters I need. This is demonstrated in the following minimal example:  \documentclass{article}  %\usepackage{mathptmx} \usepackage{txfontsb} \usepackage[polutonikogreek,polish, english]{babel} \usepackage[utf8x]{inputenc} \usepackage[LGR,T1]{fontenc}        \newcommand{\ee}{\selectlanguage{english}\fontencoding{T1}} \newcommand{\grrk}{\selectlanguage{polutonikogreek}\fontencoding{LGR}} \begin{document} \textbf{A minimal example using a times font} I need to  print polytonic Greek (and other special characters) using a  times font (e.g. \grrk ἐᾶν \textbf{ἐᾶν})! \ee   I use the \emph{txfonts} (or   \emph{txfontsb}) package, the alternative \emph{mathptmx} cannot find the metric files (``Couldn't find `grtm.cfg''').  \end{document}   How can I use txfonts and still prevent the tables from crashing? I have also tried out txfontsb!  Update: I see now the has nothing to do with Polish, it's the diacritic in ę (the ogonek) that causes the problem. The same problem appears in the following code with an ogonek on an m:       \documentclass{article}      \usepackage{txfonts}     \usepackage[T1]{fontenc}            \begin{document}     text with ogonek:        \k{m}       \begin{table}\begin{center}\begin{tabular}{|l||l|l|}     \hline     type&amp;n    &amp;rel        \\     \hline     \hline     One line in the table &amp;260&amp; many  \\     Another line &amp;792&amp;49  \\     A third line in the table       &amp;288&amp;1  \\     \hline     \end{tabular}\end{center}\caption{A test table.}\end{table}     \end{document}   If \k{m} is enclosed in brackets {\k{m}} the tables work fine. So it has something to do with  locality and the way txfonts apply the ogonek.
18837
I have a section heading which includes an epsilon. Furthermore I am using the "hyperref" package to create links in my PDF document.  When compiling I get a strange warning that a math symbol is not allowed in a PDF string, e.g. Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing \varepsilon on input line 6.  However, if I open the compiled PDF there are no obvious errors and all links are clickable. Am I missing something, or can I just ignore this warning? Are there any alternatives to achieve the same result?  \documentclass{article} \usepackage{hyperref}  \begin{document} \tableofcontents \section{$\varepsilon$SOA}  Text about $\varepsilon$SOA.  \end{document}     Thanks in advance!
87600
I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case that fails. I don't know why these get different results. Here is the sample that fails:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | }  \hline  {\bf File} &amp; {\bf Cards} &amp; {\bf Summary} \\ \hline  \end{tabular} ]]) \end{luacode*}   \end{document}   I get an error saying:  ! Misplaced \noalign. \hline -&gt;\noalign               {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.22 \end{luacode*}   When I put all of the LaTeX code printed from lua on one line the code works fine:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | } \hline {\bf File} &amp;{\bf Cards} &amp; {\bf Summary} \\ \hline \end{tabular} ]]) \end{luacode*}   \end{document}   So I have a few question.  First, why does the first example shown above fail? It seems like something I am not aware of is being inserted into the generated LaTeX.  Also is there a way for me to see the actual LaTeX that is generated and processed so that I can debug issues like this better?  Is there a way to tell the lualatex to log the actual LaTeX it tries to process?  Any other suggestions for how to debug a problem like this?
71738
Hi I am wondering what code is used to get text above the $\rightarrow$   have tried $ \xrightarrow{P}$ but not running on my LaTeX as I do not know which package to install or how to install it.   currently using \usepackage{mathtools} but it wants to load from a random directory and then LaTeX stops working.