New answers tagged

1

The instruction \the\font produces nothing “visible”, but the control sequence that chooses the current font, in the internal NFSS format. You can produce the string representation of this control sequence by \expandafter\string\the\font. I changed the fonts to some I have. \documentclass[12pt]{article} \usepackage{fontspec} \usepackage{polyglossia} ...


3

Load the luatex85 package: \documentclass[oneside,a4paper, 12pt]{article} \usepackage{luatex85} \usepackage[T1]{fontenc} \usepackage{fontspec} \setmainfont{TeX Gyre Termes} \usepackage{polyglossia} \setdefaultlanguage{english} \usepackage{microtype} \begin{document} challenge is to know whther s \end{document} Then microtype will recognize luatex ...


9

It's a tough problem, unfortunately. The developers of LuaTeX decided to remove several primitives favoring a syntax \pdffeedback <keyword> Some of the removed primitives were expandable: \pdftexrevision \pdfxformname \pdfcreationdate \pdffontname \pdffontobjnum \pdffontsize \pdfpageref \pdfcolorstackinit which means that one expansion step was ...


1

Just for completeness: It is also possible to use the simplified version of the Friggeri CV from my github account. I modified the template so that it works with a regular Texlive installation and pdflatex, without the need for luatex and biber.


0

I managed to get the desired result. In LyX click on the reference within the text and change the way its displayed in "formatting". In LaTeX, this can be achieved by using \citep instead of cite


4

If you are happy setting this system wide, you can edit the customisation into texmf.cnf but it is important to pick the correct texmf.cnf. Probably kpsewhich texmf.cnf should return the correct file. On my system, for TeX Live 2015, this is /usr/local/texlive/2015/texmf.cnf. Wherever it is, the file should be almost empty with just some explanatory comments ...


5

Be warned, this isn't an experts answer. It is an answer from an users perspective. The whole ecosystem of LaTeX has improved a lot: texlive comes with a package manager that really works (but I don't know exactly since which year). It is able to get specific packages from different repositories. Inverse search and forward search work under Linux and ...


1

It's an boxing and grouping issue -- Outside of the minipage, \pptTitle is still empty, but expanding pptTitle first (after using a copy with \let and redefining \pptTitle to be an \gdef (expanded definition) will work outside. Even a \global\renewcommand wouldn't work here. minipage is a special parbox and as such it's a box, i.e. the \(re)newcommand ...


3

LuaTeX has string.explode() to make a table of strings from one string with a separator, suitable for your case. (See the documentation of LuaTeX for that). But your question is much simpler to answer: \documentclass{article} \usepackage{luacode} \begin{luacode} split=function(inputstr) local str,cnt = string.gsub(inputstr,";"," & ") ...


3

Lua's string does not have a split function by default. See Split Join for numerous design and implementation examples. Writing Lua in TeX makes escaping of special characters an issue. Package luacode provides several methods and environments for writing Lua code. Its documentation provides an overview, how which character in each method are escaped. ...


2

The fontspec package easily takes care of most of your needs. Using \addfontfeatures should rarely be needed. It's true that Latin Modern Roman doesn't honor the +scmp feature, but you can easily define the small caps font. Don't use LM Roman 12, but the generic family name. \documentclass{article} \usepackage{fontspec} % required with LuaLaTeX ...


2

EDIT: Based on the accepted answer above, the following answer, and comments, I have been able to solve my problem in detail. Thanks, all! Here is a MWE showing how it works. % !TeX program = LuaLaTeX % !TEX encoding = UTF-8 \documentclass{article} \usepackage{fontspec} % required with LuaLaTeX \setmainfont[ Ligatures=TeX, Numbers=Proportional, % but ...


6

Tools like Pandoc. Pandoc is able to convert Markdown to LaTeX. I like LaTeX's output, but I'm not really fond of writing LaTeX files. I guess more than 95% of the time Pandoc's Markdown is enough for me (esp. because it supports LaTeX math). In the end, the plain text input is much more readable than my former plain text LaTeX files.


7

Here’s an updated version of the summary I made for myself when I began using fontspec. | tag | fontspec option | comments | |------+--------------------------------------+-----------------------------------------------------| | abvm | Diacritics=[No]AboveBase | default ...


4

The outer $ are mostly irrelevant, because \texttt starts text mode, so you get exactly the same with \texttt{\lambda}: a standard math mode lambda in LuaLaTeX (provided math fonts have been initialized, which happens in your example exactly because math mode had started) and an error in legacy TeX engines and XeLaTeX. The \lambda macro is a \mathchardef ...


1

Because I currently use the version of TexLive found in cygwin, which is apparently not current enough, and don't have the tlmgr command available, I hunted down the spurious space. It's in /usr/share/texmf-dist/tex/latex/polyglossia/gloss-german.ldf, in six different invocations of \xpg@set@language@luatex@ii, for example: (line 225) ...


3

Not really a change to LaTeX itself but I see two major changes the new Online LaTeX editors like Overleaf is an important change in the way that we can create LaTeX documents. Services like Overleaf and Share LaTeX enable newcomers to get started without downloading and installing the software More and better instructional videos on services like YouTube ...


0

Ok, I've solved the problem with ¿ and ¡ using LuateX and fonts as Mathpazo and Helvet. The solution is very easy: For ¿ symbol: \textquestiondown For ¡ symbol: \textexclamdown And that's all


12

For me the biggest change is Lua(TeX): the ability to separate TeX's building blocks (processing the input / building the node lists / output). That way you can for example build a product that uses TeX's linebreaking and hyphenation algorithm and its superb output, but without its troublesome input language. With the minimal TeX file \catcode`\{=1 ...


1

This is mostly a hack, but it does work well. You could do it with just an environment {questionlist} and then incrementing a counter for the “depth”, that might be easier. \documentclass{scrartcl} \usepackage{etoolbox} \usepackage[shortlabels]{enumitem} \newlist{questionlistA}{enumerate}{1} \setlist[questionlistA]{label=\textup{\arabic*)}} ...


8

“Missing termination in the redefinition of \mathchoice made by mathstyle.sty (loaded by breqn): \documentclass[11pt]{report} \usepackage{amsmath,mathtools} \usepackage{breqn} \makeatletter \def\mathchoice{% \relax\ifcase\numexpr\mathstyle\relax % <----- trailing \relax added \expandafter\@firstoffour % Display \or \expandafter\@firstoffour ...


0

The Textpos package can be useful for this purpose. The positioning of your elements would require a lot of interpretation so the following code is illustrative only. The textboxes in the example are shown relative to the margins, which are generated using the showframe option of the geometry package. \documentclass[border=10pt,a4paper]{article} ...


0

I opened the font with FontForge and generated a new TTF. Now everything works as it should. So something is wrong with some of the font names or with the file structure that LuaLaTeX can handle but XeLaTeX can't. I tried other fonts from the source (ufonts.com) and DIN 6776 was the only font with this problem.


3

At present I don't have a 'do X' fix for this, but I can explain why the issue arises and note that I am giving it some thought. The 'traditional' math font set up in TeX uses a series of different font families to deliver different appearance. Inside siunitx, I use this to detect \mathsf and \mathtt (as opposed to roman text) by looking at the \fam value. ...


1

(NB: Since I am new here and not allowed to comment, I put my comment into this “answer”, well knowing that it is not really an answer. Sorry about that.) In her comment, Ulrike Fischer already gave the answer to your initial question: since Beamer use the sans serif family by default, you should declare your font as the sans font, not the main font, using ...


1

You can try libertinusmath-regular which is similiar to Pagella \documentclass[compsoc]{IEEEtran} \usepackage{stmaryrd} \usepackage{unicode-math} \setmathfont[Extension=.otf]{libertinusmath-regular} \begin{document} \(\left\lBrack\check f\right\rBrack\) \(\left\llbracket\check f\right\rrbracket\) \end{document}


3

Since I do not have the font Adobe Garamond Pro I have used the font EBGaramond12, available in TeX Live. This font provides an alternate form one.01 for glyph one: \documentclass{article} \usepackage{fontspec} \usepackage{filecontents} \begin{filecontents*}{ebgaramond12.fea} languagesystem DFLT dflt; languagesystem latn dflt; feature calt { sub one by ...


2

According to The OpenType Cookbook, section Rules, subsection "Common Gotcha", the second rule also needs the apostrophe, when the lookup contains contextual tokens anywhere. But even with apostrophe it is not working in LuaTeX 0.80. It might be a bug. A second bug revealed the use of ranges in @greekletters. Then I get numbers 15 right before the period. ...


1

Granted that the positioning of the accent is suboptimal, you can add \, in a couple of places: \documentclass[compsoc]{IEEEtran} \usepackage{unicode-math} \setmathfont[Extension=.otf]{texgyrepagella-math} \usepackage{stmaryrd} \begin{document} \(\lBrack\,\check{f}\,\rBrack\) \(\lBrack\,\check{f}\rBrack\) \(\bigl\lBrack\,\check{f}\,\bigr\rBrack\) ...


6

Use tex.print(-2,s) to get the desired output. Background: the function tex.print() accepts different numbers of parameters. In the simplest variant, it accepts the string that should be output. It also accepts a "catcode table" as the first argument (a number). There are predefined catcode tables, and -2 is a catcode table where all special characters are ...



Top 50 recent answers are included