# Tag Info

2

If you only need characters below \ua000 then you can presumably use \def\u#1#2#3#4{\uchar"#1#2#3#4 } If you need to use higher characters with a letter following \u then you could in addition make u a non-letter \catcode`\u=12 but best to do that in a local group or something will break. (This is just using luatex primitives so should work in ...

3

It's a problem with Junicode and, with the available information, it is not clear whether it depends on luaotfload or not. The following example hangs: \documentclass{article} \usepackage{fontspec} \setmainfont{Junicode} \begin{document} elleat \end{document} On the other hand \documentclass{article} \usepackage{fontspec} ...

2

For technical reasons, much of the work of unicode-math related to defining the meaning of symbols is performed at begin document. In particular, \int is among the symbols defined there. So use \AtBeginDocument{% \let\oldint\int \renewcommand\int{\oldint lol}% }

3

\documentclass[a4paper,11pt]{book} \usepackage{unicode-math} \usepackage{libertine} \addfontfeatures{Numbers={Lining,Monospaced}} %\setmonofont{Consolas}% not available for me \setmathfont[math-style=ISO,bold-style=ISO]{Cambria Math} \setmathfont[range=0048-0057]{Linux Libertine O} \usepackage{siunitx} \begin{document} [ ... ]

3

The graph drawing library is probably one of the more complex parts and on top of this, this particular diagram is a particularly complex diagram too. Looking through your code, there are a few issues I can identify: Firstly, there are quite a few superfluous libraries. This is not detrimental, but not exactly recommended either; The graph drawing ...

4

This is plain tex but you could do the same in latex. \setbox0=\vbox{\hsize=7.8cm some text to fill out several lines of a paragraph with a high proportion of g and y and f so that the depth is non zero some text to fill out several lines of a paragraph with a high proportion of g and y and f so that the depth is non zero some text to fill out several ...

5

According to this blog post, it should be possible to upload a latexmkrc file to your project and surprisingly even shell-escape seems to be allowed. I haven't tested it, but something like this should work: $pdflatex = 'lualatex %O %S --shell-escape';$pdf_mode = 1; $postscript_mode =$dvi_mode = 0;

0

Load amsmath always before fontspec. For math use always unicode-math: \documentclass[french]{report} \usepackage{amsmath} \usepackage{unicode-math} \begin{document} ... will work

7

OpenType support in TeX as of when I first wrote xfrac in early 2004 was basically non-existent - XeTeX hadn't even been released back then. Therefore, the package was never designed with that in mind. Besides, the fundamental purpose was to provide a way to write nice fractions for fonts that didn't include them. The package could very likely be made ...

2

To remove this question from the list of unanswered questions and inform those interested: The fix is now available on TeX Live. Thanks again to @egreg and @DavidCarlisle for the fast response, that a fix was already on the way.

3

Your document runs without error on an updated latex. You haven't shown the start of the log which would show the latex version but it looks as if you have an inconsistent installation with ltluatex.lua coming from the October 2015 latex release but a format from the 2015/01/01 release. Most likely you have the updated files but the formats did not rebuild. ...

1

Run with lualatex --shell-escape <file>: \documentclass[a4paper,10pt]{book} \usepackage{auto-pst-pdf} \ifpdf\else \usepackage{pst-electricfield} \fi \begin{document} \begin{pspicture*}(-6,-6)(6,6) \psframe*[linecolor=lightgray!50](-6,-6)(6,6) \psgrid[subgriddiv=0,gridcolor=gray,griddots=10] \psElectricfield[Q={[-1 -2 2][1 2 2][-1 2 ...

3

Here I create \altfrac{}{}. It does not require fontspec, it obeys math mode, its font is larger than that of \sfrac, the denominator lies on the baseline, while the top of the numerator I tries to lay at the top of the normal text font. The numbers are presented in \footnotesize. The slash is a horizontally stretched / to give it more of the fractional ...

2

When you follow the advice of Joseph Wright and Andrew you could also use the pgfplotstable package to print the your CSV file. Because you didn't provide an example, I just copied the code from this answer. To see the result, see there. \documentclass[margin=5mm,preview]{standalone} \usepackage{siunitx} % Formats the units and values \sisetup{ ...

7

Yes. If you want to use mathspec, then at present you need to run XeLaTeX. (The mathspec package pre-dates wide availability of LuaTeX.) There are few technical reasons for this, but mathspec does use one primitive that would need to be emulated in LuaTeX before it could fully supported: \XeTeXglyphbounds — this is used in the \" and " definitions to ...

0

EDIT 2: Added lots of new thoughts and suggestions As far as I understand your question, you have created a constructed language with a constructed script with own characters not in Unicode. In addition, you have created a transcription of the conscript into latin letters and digits. Now you want to typeset some texts in your conlang. I suggest that you ...

1

if everything else fails, you can try to fake the euro sign. this solution may not look as good, but it works anytime: \newcommand{\euro}{{\mathrm{C}\!\!\!\!\!\!=}}

6

This works for roughly the reasons explained in the comments: \documentclass{beamer} \usefonttheme{professionalfonts} \usefonttheme{serif} \usepackage{fontspec} \setmainfont{Latin Modern Sans}%TeX Gyre Schola} % \setsansfont{Latin Modern Sans} \usepackage{unicode-math} \setmathfont{TeX Gyre Pagella Math} \usepackage{siunitx} \sisetup{% detect-all,% } ...

2

Here is some full example which loads hyphenation patterns for requested languages and can detect used language from characters unicode values. Simple Lua library languages.lua is used: kpse.set_program_name "luatex" local M = {} local languages = require "language.dat" M.languages = languages local ranges = {default = "english"} local function ...

0

The following code works as required: callback.register("hyphenate", function (head, tail) for item in node.traverse(head) do if item.id == node.id("glyph") and item.char > 1025 and item.char < 1105 then item.right=2 end end lang.hyphenate(head) end)

3

You've been bitten by the fact that LaTeX environments form a group, and that includes luacode(*). (Note that the document environment doesn't do this, and one might argue that luacode(*) should not either.) Two possible fixes: use \gdef: ... command_str = "\\gdef\\lengthL{" .. (math.random(1,10)/10) .. "}\n" ... or avoid luacode* \documentclass{article} ...

3

Actually, for me, neither work. and it is the same with other tex gyre fonts (tex gyre pagella). Looking at the font itself, as provided by texlive 2015, it doesn't contain any cyrillic glyphs. Looking at the changelog from website (http://www.gust.org.pl/projects/e-foundry/tex-gyre/adventor/qag-hist.txt/view) it is due to a licensing disagreement. ...

2

use the url package and \path|FRQ.DATA.LOG.OUT.PRINT.1| and it will allow breaking at . You could define a command with a different name if needed, see the url package documentation. Adding this to your example from the linked question, and setting up @ as a safer way to input # gives \documentclass[a4paper]{scrartcl} ...

0

Here's a parser that does the job for a big subset of Latex: https://github.com/augustt198/latex2sympy

4

Unlike pdflatex lualatex doesn't trigger the tfm generation from a mf-source if it can't find the tfm (this is not miktex specific: it doesn't do it in texlive either, but there bbold10.tfm exist in the main tree while miktex installs only the mf-sources). So in miktex one has to first call pdflatex which triggers the creation of the tfm and can then use ...

2

The beamer class loads many packages, included graphics. As such, you need to act before loading the class. \def\pdftexversion{200} \documentclass{beamer}

Top 50 recent answers are included