# Tag Info

3

An acceptable workaround, which still let's you use \textsc without changing it, it defines a similar command \work which does have the desired spacing. I think that there's absolutely no reason to desire this spacing: letters overlap! They need room to breathe… \documentclass{scrartcl} \usepackage{blindtext} \usepackage{fontspec} \setmainfont{Latin ...

5

You can access this glyph by setting the Alternate option to 0 (zero): \documentclass{article} \usepackage{fontspec} \setmainfont[Path = <path>, Alternate = 0]{WATERSTITLINGPRO-RG} \begin{document} R \end{document} (<path>is where I specify the folder to which I downloaded your font ... ) How did I know? Well, FontForge tells me that the ...

14

\documentclass{article} \usepackage{lipsum} \begin{document} \directlua{function last_line(h) ll=node.slide(h) newh = node.remove(h,ll) callback.register("post_linebreak_filter",nil) tex.setbox(0,ll) return h end } \directlua{callback.register("post_linebreak_filter", last_line)} \lipsum[3] \begin{center} \fbox{\unhbox0} \end{center} \end{document}

2

You had a couple of syntax issues with \foreach: the major was the syntax for evaluate key. It is /pgf/foreach/evaluate=<\variable> as <\macro> using <formula>. This should work. \documentclass{standalone} \usepackage{tikz} \directlua{require("stardate.lua")} \def\StarDate#1{% \directlua{tex.sprint(StarDate("#1"))}% } ...

5

The problem has not yet been solved with version 0.7f of unicode-math, so this answer is just an attempt to see what's happening; an ugly workaround is proposed. This is what I get when adding \showlists to the definition of \big with \usepackage{etoolbox} \makeatletter \patchcmd{\big}{\n@space}{\n@space\showlists}{}{} \makeatother from $\big($. ...

5

Use of luainputenc is deprecated. The documentation of luainputenc itself says: Input encoding management for LuaTEX, needed only for compatibility with old documents. For new documents, using UTF-8 encoding and Unicode fonts is strongly recommended. You’ve been warned! UTF-8 support works out of the box with lualatex and fontspec if your files are ...

3

If you don't want to pass lines to LaTeX, you have to return empty string from the callback, otherwise callback pass the line if return value is nil. Because you don't return any value, nil is used implicitly. And because LaTeX doesn't process input anymore, you have to parse input for \end{LuaVerb} from Lua side, otherwise you would grab all lines until the ...

6

luainputenc doesn't define a conversion for U+2011 (NON-BREAKING HYPHEN); you can do it yourself: \documentclass{article} \usepackage[utf8]{luainputenc} \DeclareUnicodeCharacter{2011}{\mbox{-}} \begin{document} Åsa‑Nisse \end{document}

7

You can use traditional TeX programming in LuaTeX too. An you don't need to use the boxing and unboxing for your task. You can try: \def\centerlastline#1{\par {\leftskip=0pt plus1fil \rightskip=0pt plus-1fil \parfillskip=0pt plus2fil \noindent #1\par}% } \centerlastline{\lipsum[3]}

1

I don't understand what \blockquote does and I have no arabic font on my computer. But I am able to say where is the core of your problem. You have to split the text to two paragraphs and to set \baselineskip and \lineskiplimit for the first paragraph. It means (I did'n try this): \def\ar#1#2{{\luatextextdir TRT\arabicfont\baselineset ...

11

After too many hours of failed attempts I got a working solution. The problem was in setting correct values to glue nodes. Documentation on this is unfortunately lacking, so I spent too much time hacking node dumps, but this lead to nowhere. \documentclass{article} \usepackage{lipsum} \usepackage{luatexbase} % we will use node attributes to start/stop ...

2

Today I returned to this question which I could not previously solve to my full satisfaction. But today, while exploring once more barbara beeton's suggestion in her very first comment, I could find a solution. Setting the value of \lineskiplimit to -\maxdimen forces LaTeX to adopt a single fixed line height throughout the document. On this basis, then, I ...

1

Ok, I think I got close to why this is happening; I've tried tracing: ... \usepackage{trace} ... \traceon \setotherlanguages{greek,danish} %% (A): causes "Command \proofname already defined."; do it after ntheorem? \traceoff ... .. and comparing the outputs for {greek,danish} and {greek,swedish}. For Swedish, the relevant trace is: {blank space } ...

2

If you really want to use polyglossia then reset \proofname to undefined: [...] \usepackage{amsmath} \usepackage{amssymb} \let\proofname\relax \usepackage[framed,amsmath,amsthm,thmmarks]{ntheorem} [...]

4

If fontspec is unable to find the bold font associated to a medium series font, uou can use the normal options also with \newfontfamily: \newfontfamily{\monobt}{Monospace821BT}[ BoldFont={Monospace821BTBold} ] and then {\monobt\textbf{This is bold}} should work. Notice that the options should go before the font name with older versions of fontspec.

6

This is a dump of the hashtable that stores the command names. \documentclass{article} \newcommand\wibble{hello} \begin{document} \directlua{ for i, v in pairs (tex.hashtokens()) do texio.write_nl(i) end} \end{document} it outputs a long list, but testing with lualatex testfile.tex | grep wibble produces wibble Showing it includes all commands ...

2

You can get the Hebrew font in the bibliography by using your well-defined \textheb command directly in the .bib file itself.

0

You might be missing a require package, try: sudo apt-get install texlive-luatex Then, try the update: luaotfload-tool --update

5

The package ngerman is obsolete and it's available only for back compatibility. You should say \usepackage[ngerman]{babel} instead of \usepackage{ngerman}.

0

I work on a Network that gets "supported" by IT Folks. The IT Folks silently(secretly) installed a Version of miktex 2.9 on the computer I use, changed paths, Environment variables etc. and neglected to inform me of their support. So my problem and solution are for people who work on Networks with support from an IT department : always verify your Paths, ...

2

You can't use kpfonts with fontspec and unicode-math. These fonts exist only in Type1 format for pdflatex.

6

The command \' becomes \EU1-cmd\' \EU1\' and then \EU1-cmd checks if the combination \\EU1\'-. is defined; the control sequence has \EU1\'-. as name and can be checked by \expandafter\show\csname\string\EU1\string\'-.\endcsname which gives > \\EU1\'-.=macro: ->\TIPAaccent {\textdotacute }. Now the problem follows, because \TIPAaccent wants two ...

1

So I did the following and the problem seems to be solved!!! 1- clean LuaLaTeX font cache (LuaTeX cannot find existing font): cd .texmf-var/luatex-cache/generic/fonts/otf/ rm * 2- update Lua font name data base (Arch Linux: fontspec does not find system fonts): luaotfload-tool --update 3- run: sudo texhash et voilà!

4

As far as the yellow LyX notes are completely lost in the generated LaTeX source (i.e, the .tex file), your goal seem impossible without touching the LyX's guts or deal with the original .lyx file. An easier starting point could be use the black comments for this purpose. With this approach, you only have to transform a \begin{comment} note \end{comment} ...

2

You can use the LetterSpace feature instead: \documentclass{article} \usepackage{microtype} \usepackage{geometry} \geometry{a4paper, top=25mm, left=20mm, right=20mm, bottom=30mm, headsep=0mm, footskip=12mm} \usepackage{fontspec} \setmainfont[SmallCapsFont={Latin Modern Roman Caps}, SmallCapsFeatures={LetterSpace=-6}]{Latin Modern Roman} ...

2

as a workaround use ~\work{Kritik der reinen Vernunft} und~

4

The problem is the \underbar command in your moredelim setting: With unicode-math it is a math command. You could use e.g. the ulem package and \uline instead: \usepackage{ulem} ... moredelim=[is][\uline]{_}{_},

3

You are using a text font for math. Try not to overwrite the math definitions by loading as follows: \setmathfont[range=\mathit/{latin,Latin,num}]{Linux Libertine O Italic} This will load the libertine italic font for just normal letters and numbers. You will need to make similar adjustments to your other font loading commands. ...

Top 50 recent answers are included