# Tag Info

1

I found the solution: Lua uses a font name data base, which I had to update using the command: luaotfload-tool --update

1

I am summarizing the comments here, but the gist is: @phg suggested that one can escape by using catcodes. There is the verbatim catcode, but it has issues with linebreaks. An alternative, albeit undocumented but seemingly preferable (i.e. escapes without wrapping issues), catcode is \notcatcodes. One can employ this in Lua to escape any string with the ...

5

You have to use a font that has the required glyphs. They are in FreeSerif, for instance. Here's how you can use them directly, by hiding the font change in a macro: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{newunicodechar} \setmainfont{Linux Libertine O} \setsansfont{Linux Biolinum O} \newfontface{\freeserif}{FreeSerif} % for the ...

3

I've been using the following for mplib with OpenType fonts in luatex (no format): \input luaotfload.sty \input luamplib.sty %\mplibsetformat{metafun} % optional use of metafun extensions \mplibcode beginfig(1); label.rt(btex sup etex, origin); label.top("test", origin); endfig; \endmplibcode %%%% Example Using an OpenType font %%%% \font\bigfont = ...

8

The logos can be found on the internet. You can then insert the logos using the includegraphics command. \section{\includegraphics[scale=0.03]{linkedinLogo.png}} {linkedin.com/in/yourname} ~ \section{\includegraphics[scale=0.03]{skypeLogo.png}} {skype:yourname?call} ~ Another possibility is to draw the logos using Tikz. I have created the LinkedIN logo in ...

3

With utf8 the Unicode character € is mapped to \texteuro, which requires textcomp. The definition of \texteuro is \DeclareTextCommandDefault{\texteuro} {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro} If the TS1 font for the current family is known not to have the Euro symbol (that is, it belongs to class 5), the glyph is faked by means ...

7

LaTeX does not need to check anything, the T1 encoding doesn't include euro by definition. It is in the TS1 encoding (as used by textcomp) and of course in the EU1 and EU2 encodings used by lua and xe latex.

4

You can use these icons (that are part ot the font since version 4) with this code : \documentclass[a4paper, 12pt]{article} \usepackage[x11names]{xcolor} \usepackage{array} \usepackage{fontspec} \setmainfont{Minion Pro} \usepackage{fontawesome} \def\faSkype{\FA\symbol{"F17E}} \def\faLinux{\FA\symbol{"F17C}} \def\faTh{\FA\symbol{"F00A}} ...

1

A bit late to the party, but this fix to http://tex.stackexchange.com/users/243/topskip's answer does the job: in response to question in comments: In topskip's answer Hello World is still written to the pdf file, which is not typically what one would want. So I've taken his answer and made the change that if the line read does not contain "\end{foobar}" ...

4

The problem has been discussed some time ago http://comments.gmane.org/gmane.comp.tex.live/30992 but imho never really been investigated (it doesn't make much sense to use such fonts with lualatex and so there is not much pressure in resolving a rather harmless warning). You could open a bug report at ...

4

It seems that siunitx is missing some kind of "default" font for the cases except \mathscr and \mathscrbf: \documentclass{minimal} \usepackage{fontspec,luatextra,unicode-math} \usepackage[noload=abbr]{siunitx} \sisetup{decimalsymbol=comma, detect-all,debug} \let\nbu\SI \setmathfont{latinmodern-math.otf} ...

12

The PGF releases on CTAN and sourceforge contain a bug where the interaction of shadings/transparency and the standalone package and xelatex (and xdvipdfmx) causes problems. The code will work if, for example, the document class is set to article (and, obviously \usepackage{tikz} is added to the preamble). This was fixed in the CVS version back in January. ...

2

This is another solution, without extra package. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{french} \makeatletter \newcommand{\nospace}[1]{\nofrench@punctuation\texttt{#1}\french@punctuation} \makeatother \begin{document} \nospace{a:b} \end{document} Thanks all.

4

Probably Polyglossia should offer the possibility of disabling the automatic spacing feature for French in certain contexts such as monospaced text. However, here's how you can do it: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{xpatch} \setmainlanguage{french} \xapptocmd\ttfamily{\XeTeXinterchartokenstate=0 }{}{} ...

4

I can reproduce the problem, if the white space before \end{luacode} is a tabulator character. Environment luacode is a special environment, because it changes category codes to read its contents in a more verbatim way. Therefore the end detection is not done by the usual macro expansion, but by searching for the string \end{luacode} at the start of a new ...

6

Irrespective of the 'document level' interface you use, at the level of primitives using Lua means that the \directlua primitive is being used. The logic here is easy enough to follow provided you bear in mind this is 'Lua-in-TeX'. When LuaTeX parses a file it works in the same way as 'classical' TeX. Thus each token is read and expanded, executed or ...

1

This can handle up to 11 pictures per page. \documentclass{article} \usepackage{graphics,mwe} \makeatletter \newcounter{relative} \newcount\R@temp \newif\ifR@label \newif\ifR@loop \newcommand\new@relative[3]{% #1=label, #2=count, #3=page \expandafter\gdef\csname R@#1@count\endcsname{#2}% \expandafter\gdef\csname R@page#2\endcsname{#3}% }% ...

1

Ok, I think I got somewhere - below the glues are labeled with "GL" + a number (which I don't know what it means, but is shown in Lua for any Lua node via tostring(node) - also the glue one - and seems to be unique), and it looks like this: The problem is then relating this number with actual elements in the Latex source; the luatexref-t.pdf documentation ...

3

The sansmath does \providecommand\sansmathencoding{OT1} at the beginning; this can so be overridden by adding \newcommand\sansmathencoding{\encodingdefault} before loading the package. You also must ensure that fontspec doesn't hijack math codes and fix another setting where sansmath hardwires OT1. For uppercase Greek, EULERGREEK is needed. ...

1

Sean's comment helped to find out, that MikTex's lualatex was trying to download the packages, even though the packages were already installed previously. Going into the MikTex Settings (Admin) program and changing Ask to Yes for installing packages on the fly, then running compilation again, resolved a hangup and produced a file.

Top 50 recent answers are included