# Tag Info

1

Not a full answer, but too long for a comment and I hope this is a useful start. The lualatex version of unicode-math loads maths fonts with Rederer=Basic and so turns off such features. \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{mykern.fea} languagesystem DFLT dflt; languagesystem latn dflt; feature kern { pos T P 200; ...

6

Substituting \mathrm with \mathup and \mathbf with \mathbfup works: \documentclass{article} \usepackage{unicode-math} \defaultfontfeatures{Extension = .otf} \setmainfont[ItalicFont = *-Italic, BoldFont = *-Bold]{BemboStd} \setmathfont{latinmodern-math} \setmathfont[range=\mathup]{BemboStd} \setmathfont[range=\mathit]{BemboStd-Italic} ...

2

Since posting this question, I have discovered another question that deals with aspects of this issue in a non-microtype context. The accepted answer there, by topskip (code modified by him or her based on commented suggestions by egreg) suggests the following TeX "hack": \catcode`\—=13 ...

11

You should be writing ## not \# in your macro: \documentclass{minimal} \usepackage{luacode} \newcommand{\Test}[1]{ \luaexec{ local x = string.gsub("#1", "##", "+") tex.print(x) } } \begin{document} \Test{With backslash: \#} % Throws an error as # is not processable in output \Test{Without backslash: #} % \end{document}

7

Excluding pdflatex, which is not an option since it cannot be used together with fontspec, let's try to understand whether xelatex or lualatex can be used. The file xmpincl.sty contains the following lines: \RequirePackage{ifpdf} \ifpdf\else \PackageWarningNoLine{xmpincl}% {Only pdflatex is supported by the xmpincl package} \newcommand{\includexmp}[1]{% ...

5

I got it working with a lua script. Your minimal example becomes: \documentclass{minimal} \usepackage{unicode-math} \setmathfont{XITS Math} \AtBeginDocument{\directlua{require("combining_preprocessor.lua")}} \newcommand{\⃗}[1]{\ensuremath{\vec{#1}}} \begin{document} $v⃗$ \end{document} The idea is that it's difficult to make LaTeX handle a command or ...

1

Please, even if you find this answer helpful, I ask for no votes. Apparently, the last updated AucTeX was dated, according to the site, on 30 November 2012. As it was suggested by @Aditya in the comments, this issue was later reported to the mailing list, in which Tassilo kindly replied he will look up the issue or wait until Berend updates AucTeX with a new ...

6

You have no working format. Go to MiKTeX settings, tab "Format", select "lualatex" and click on build. If you get an error copy the error message.

9

Stealing gratuitously from topskip's answer (although I did vote for it as well:-) He showed how to push the whatsit into the horizontal list (which is basically what \textcolor{}.. does as opposed to \color) But if you want the whatsit to be in the vertical list but have no break point before the following paragraph, you can do as I suggest in comments and ...

11

You should add the whatsit into paragraph itself (i.e. the horizontal list). I guess you have something like this: \documentclass{article} \usepackage{luacode,luatexbase} \begin{document} \begin{luacode*} w = node.new("whatsit","user_defined") w.type=100 function foo(head) new_head = node.insert_before(head, head, w) return new_head end ...

13

A whatsit (user-defined or not) is always non-discardable. So if glue follows it, that glue constitutes a break point. If glue precedes it, that might stretch along with the rest of the page. To make it adhere to the following paragraph, you can make it part of the paragraph. The LaTeX way is to put \leavevmode before it. That positions the whatsit at the ...

0

At least on my system, there is no default option to do this. However, it is not difficult to create such an option. Settings > Configure Kile [should get you the configuration window. This option might be somewhere else on other systems - I'm not sure.] Once in the configuration screen, choose Tools > Build from the list. Underneath the list of tools, ...

1

I post this as a new answer because the latest version of TexMaker (4.1) supports this natively. Options -> Configure TexMaker Fast Compil -> Luatex

1

The version 1.5.0 of eledpar add tools to manage pagebreak on eledpar. There is two commands : \ledpb to make page break, and \lednopb to prevent page break, by adding new line. It needs to make two runs.

7

I suppose you don't want to introduce break points at the double hyphen. Here's a way. \documentclass{article} %\usepackage{fontspec} % works also with fontspec \newcommand{\texthyphen}{} % ensure \texthyphen is not defined \protected\def\texthyphen{\mbox{-}} \begin{document} en dash -- two dashes \texthyphen\texthyphen \textit{en dash -- two dashes ...

7

Indeed, the method of breaking up ligatures by inserting an empty TeX group, {}, does not work in LuaTeX and LuaLaTeX. To prevent the creation of an en-dash, then, you could insert a "zero-width kern", i.e., -\kern0pt- or an explicit "italic correction", i.e., -\/- With either method, LuaTeX will not insert a line break between the two dashes. If you ...

1

This works for me \tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}} The only other thing I am doing is to have write18 enabled in my pdflatex call so pdflatex can call lualatex. Works fine also with large data, but it is painfully slow. Also if there is an error in ...

4

Here a suggestion for you package. I think every important fact is written as a comment : \begin{filecontents}{myexample.sty} \NeedsTeXFormat{LaTeX2e} \def\filedate{2013/11/22} \def\fileversion{v0.1} \ProvidesPackage{myexample}[\filedate\space\fileversion\space] \RequirePackage{ifpdf,ifluatex,ifxetex} \RequirePackage{kvoptions} \RequirePackage{etoolbox} ...

Top 50 recent answers are included