# Tag Info

1

I fixed the above issue by changing \RenewDocumentCommand{\quote} to \NewDocumentCommand{\cquote} I think csquotes was using \quote somewhere behind the scenes, so me redefining it was breaking stuff.

0

If you want to learn TeX, I'd suggest just learning TeX. Between the LaTeX macros and the power of plain TeX and TeX primitives, you can do pretty much anything you want. You can use other languages to output a sort of "idiot's TeX," where you keep track of counters and do hard-coded formatting in your programming language of choice rather than allowing ...

0

I think it is a bug of luaotfload. You can update to TeX Live 2015 (in a few days) and the problem should have been fixed.

5

Use the ifluatex package. \documentclass{article} \usepackage{ifluatex} \begin{document} \ifluatex hello \else goodbye \fi \end{document}

4

Here are three solutions: Since latexmk also examines the .log file for dependencies, you can persuade latexmk that there is a dependency on file.a by writing a suitable line to the .log file. The following definition of \recorder does this: \newcommand\recorder[1]{\typeout{(#1)}} Get the filename into the .fls file by opening the file without reading ...

1

You can use csquotes to define a quoting style which uses these straight quotes: The \DeclareQuoteStyle command has 5 positional arguments, the name for the style, opening and closing marks for both outer and inner quotes: You can then use the style with \setquotestyle{<name>}. \documentclass[border=5pt]{standalone} \usepackage{fontspec} ...

3

The curly quotes appear because TeX ligatures are on by default in recent versions of fontspec. If your document consists of code only, you can disable TeX ligatures with \setmainfont, this way: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Garamond Premier Pro}[RawFeature=-tlig] \newcommand{\blackSquare}{\symbol{9632}} \begin{document} ...

2

This MWE demonstrates the simple idea and that you don't need to be a "rockstar brogrammer": Just use fontspec and luaLaTeX ... \documentclass[12pt]{article} \usepackage{filecontents,fontspec} \begin{filecontents*}{sbs100demo.fea} languagesystem DFLT dflt; languagesystem latn dflt; lookup demo_bs { sub N S A ...

9

In the 2015/01/01 latex release, it's not needed, but for 2014, the easiest way to get \textsubscript defined is \RequirePackage{fixltx2e} \documentclass[11pt]{article} \usepackage{fontspec} \begin{document} X\textsubscript{Y} \end{document} Older releases of fontspec included fixltx2e automatically, that was removed at some point, and in latex 2015 ...

1

The CMBright fonts are available in OpenType format as part of the cm-unicode project. Granted that your file is UTF-8 encoded, you should get comparable results by doing \documentclass{scrartcl} \usepackage{ifluatex} \ifluatex \usepackage{fontspec} \setmainfont{XCharter} \setsansfont{CMU Bright}[ Scale=MatchUppercase ] \setmonofont{Ubuntu ...

5

I won't consider this as a bug. It’s kind of common sense for – at least some – designer/typographers to kern the period and a quotations mark in that way. The amount of necessary kerning depends on the typeface and is subjective to the designer’s eye, though. On my system all optical sizes apply the same kerning: In XeTeX you can define custom kerning ...

4

I don't know what negative side effects this ugly workaround will cause, but it seems to work (tested with lualatex): \enquote{Hallo Welt\mbox{.}} Are there better alternatives? Yes, next to Tobi's answer that addresses xeLaTeX the following solution is compatible with luaLaTeX. It implements a font feature file that introduces two additional features ...

5

My own conclusion, after running a series of more tests, and after studying a bit more the official spec for JFIF (JPEG File Interchange Format) file format (PDF) is this: ImageMagick is not at fault. All of pdflatex, lualatex and xelatex are wrong and exhibit a bug when they do not properly embed the JPEG into the PDF page. JFIF spec The JFIF ...

7

I'm not sure where you want the row numbers to appear. There may be an approach native to pgfplotstable. One approach would be to manual insert a command at the beginning of each row for which you want such numbers. Alternatively, you could somewhat automate the process of building the table using the following code: Row numbers in a \makebox of zero ...

0

If your OSFONTDIR environment variable is set correctly, then installing (new) system fonts in modern versions of ConTeXt should be as easy as executing the following command: \$ mtxrun --script fonts --reload

10

The image wiz-standard.jpg does not have any resolution DPI settings set (the other image is set to 300 and 300). Several image software packages do not set this properly as it is rarely used (including by TeX as far as I know), but for some odd reason TeX requires it to be set (to anything you like - because it is not used - whether you choose 100x100 or ...

16

As it happens I stumbled upon the same problem last week and the next version of LuaTeX will detect these images and issue a warning: LuaTeX warning (file wiz-standard.jpg): The image specifies an unusual resolution of 1dpi by 1dpi. pdfTeX/luaTeX read jpegs bytewise (no exif involved) and images of these kind really specify a resolution of 1dpi by 1dpi ...

1

Well, I think I got it. First, I added a print line to texmf-dist/tex/luatex/luatexja/ltj-rmlgbm.lua:90: local function open_cmap_file(name, inc, cid_dec, mke) print("open_cmap_file: name " .. name) -- added fh = io.open(kpse.find_file(name, 'cmap files'), "r") .... ... and realized it prints out: open_cmap_file: name ...

5

Infix operators like + and - lose their infix status (and the extra space that implies) if used on their own in this way. Also as noted by egreg, in a superscript the operators would get no space even used as an infix operator. What you have is the standard markup.

2

You could use >={Stealth[scale=2] as an option of the tikz command together with edge[->]: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \usetikzlibrary{graphdrawing} \usegdlibrary{circular} \begin{document} \tikz[simple necklace layout, nodes={draw, circle}, node distance=5cm, >={Stealth[scale=2]} ]{ ...

8

The user guide of the fontspec package is indeed quite lengthy. However, I would not go as far as calling it intimidating. There's a huge and wonderful world out there related to OpenType and TrueType fonts, and it's not surprising (to me at least) that the manual that explains how to explore this world isn't brief. In what follows, I will assume that your ...

11

LuaLaTeX shouldn’t affect your document too much. The main thing you’ll have to change is the preamble. There’s no need to load packages like fontenc or inputenc. LuaLaTeX supports UTF-8 by default, so you should encode your files with UTF-8 (this should be possible with TeXStudio). Instead of having a preamble like \documentclass{article} ...

5

This should do the trick for PDF/X-1a (you need ISOcoated_v2_300_eci.icc in the current directory): % =============================== % Filename: test.tex \documentclass{article} % =============================== % Embedding the color profile. % Requires ISOcoated_v2_300_eci.icc in the working directory % ...

2

Here is rather crude solution, which just inserts a \- between a vowel and some consonants: \documentclass{article} \usepackage{luacode} \begin{luacode*} function insdisc (s) -- add more letters if necessary s = s:gsub( [[([aeiou])([bcfgklmnpqtxz])]] , '%1\\-%2' ) -- but don't leave a single char alone: s = s:gsub( '^(.)\\%-', '%1') s = ...

3

There are things in your current document, that are valid in TeX or valid in LaTeX2.09, but obsolete in current LaTeX, LaTeX2e. Following an example using current KOMA-script to set up the document. As this seems to be some kind of lecture notes, which are intended to have the same appearance, it is adviced to write a short wrapper class. This is the ...

2

I can reproduce the error with lualatex if I use plot instead of plot.dat or plot.txt. Try with the file extension like \addplot[black] table {plot.dat};. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{width=6cm, compat=newest} \usepackage{filecontents} \begin{filecontents*}{plot.dat} 0 1 1 2 2 3 3 4 4 5 \end{filecontents*} ...

2

Two years and a half later, and since Dohyun Kim (author of the luatexkomplib files) maintains luamplib himself, the situation has much evolved in this domain. In particular, since version 2.0 (2013/05) it supports the btex…etex flags directly. So the following code is sufficient to produce the required figure, in the document's current fonts. ...

2

LuaTeX does \edef-like expansion inside \directlua (though the latter is itself expandable). To avoid this, you can use the e-TeX primitive \unexpanded \DeclareDocumentCommand \F{D<>{}O{}}{% \directlua{ fourier( "\luatexluaescapestring{\unexpanded{#1}}", "\luatexluaescapestring{\unexpanded{#2}}" ) } }

Top 50 recent answers are included