# Tag Info

10

Your settings are never applied because in the first argument to \SetProtrusion you only specify the encoding. microtype will always try to load the best matching settings, and since settings for Charis SIL exist, they will be applied instead. Drawing from this answer, you can overwrite settings by first loading the configuration file and then redefining ...

0

... so after installing Source Sans Pro,modify friggeri-cv.cls as follows: \newfontfamily\bodyfont[]{SourceSansPro} \newfontfamily\thinfont[]{SourceSansPro ExtraLight} \newfontfamily\headingfont[]{SourceSansPro Black} \defaultfontfeatures{Mapping=tex-text} \setmainfont[Mapping=tex-text, Color=textcolor]{SourceSansPro Light}

8

For luatex you can load the fonts in base mode \ifx\XeTeXversion\undefined \input luaotfload.sty \def\otf#1{file:#1.otf:mode=base} \else \def\otf#1{[#1.otf]} \fi For xetex, I pinged Arthur in chat.... luaotfload documentation explains the need for this: base mode works by mapping OpenType features to traditional TeX ligature and kerning ...

5

I have fixed the bug in Polyglossia with this commit and will make an upload to CTAN shortly. Many thanks to Enrico for investigating and suggesting a workaround.

3

May be you can change to tcolorbox. The results for your example look better: \documentclass[a4paper, fontsize=12pt, twoside=false, onecolumn, final, openany, parskip=full, chapterprefix=false]{scrreprt} \usepackage{tcolorbox} \def\a{Here goes some really boring text which we use to fill the paragraph, but which is shorter than the standard lipsum and ...

2

You have to declare a math font: \documentclass{memoir} \usepackage{amsmath,amssymb,amsthm} \usepackage{unicode-math} \setmainfont{Zapfino} \setmathfont{Latin Modern Math} \setmathfont[range=\mathup/{latin,Latin}]{TeX Gyre Heros} \begin{document} This is a proof $\sin x^2$ $\sum$ $\delta$ \end{document}

6

It's a bug in gloss-latin.ldf that doesn't advertise the pattern file name for LuaLaTeX. Workaround: do it yourself. \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage[variant=classic]{latin} \setotherlanguage{italian} \makeatletter \def\latin@language{% \language=\l@classiclatin ...

2

You can safely continue to use luatex and benefit from the memory requirements. The informational message means that the plot in question fails to benefit from speed improvements of lua backend. But you do not need them. So: simply ignore this message and continue as usual.

4

Your conjecture is true: \documentclass{memoir} \usepackage{minted} \usepackage{fontspec} % disable the default 'Ligatures=TeX' option \defaultfontfeatures{} \setmonofont{Courier} \begin{document} \begin{minted}{bash} 0-1--2---3 \end{minted} \end{document} If you want to have ligatures in running text also for the monospaced font, but not in ...

5

Here I demonstrate only how to use fontspec to select many different fonts for different languages in one document. I use a main font that already covers a wide Unicode range, and then select other fonts as appropriate. I used fonts either available in TeXLive or freely available elsewhere. Compile with lualatex. Note that for Hebrew and Arabic you have to ...

12

You can trap the error and make it a warning, just setting a flag, then test for that and load something else, see the code below. Note this is poking into internal interfaces so if it breaks at a fontspec update, don't complain:-) \documentclass{article} \usepackage{fontspec} \newif\ifgoodfont \makeatletter \ExplSyntaxOn \cs_set:Nn \__fontspec_load_font: ...

9

Yes, see the documentation of the buildpage_filter callback, and possibly also the pre_output_filter callback. Note however that unlike the linebreaking algorithm, there are very few parts of the page breaker that you are forced to use directly, which is why different strategies can be programmed even in classic tex without needing lua extensions, such as ...

4

Hmm not really the user interface you want, but perhaps a pointer to a solution, the document runs without error (and I hope makes the right thing, although I can't read it:( if you force the font to be loaded before fontspec triggers (I assume) luaotfload which changes the font loading \documentclass{article} %\usepackage[utf8]{inputenc} \usepackage{dad} ...

3

Here's a simple script that will mark up words that you specify by editing the script-- it was the simplest way to handle lots of words and lots of different colors. It requires perl, which is standard on Unix (Linux/OS X) and a single download away on Windows. I'm assuming you have lots and lots of keywords to mark, so I've used perl which makes it easy to ...

7

ConTeXt and LaTeX are both based on TeX but have a different philosophy and syntax. Both can use one of the three different engines: pdftex, xetex, and luatex. The current version of ConTeXt, called MkIV, works only with luatex, the former version MkII can also run with pdftex and xetex. ConTeXt has a build-in MetaPost support, but also works with TikZ and ...

10

I'm not an expert on any of this but this is what I've been able to figure out. ConTeXt is a macro package, a peer of LaTeX. It happens to run only on the LuaTeX engine. LaTeX supports several engines, so you get LuaLaTeX and XeLaTeX, and I think (but may be mistaken) that "vanilla" LaTeX runs on PDFTeX or "original" TeX. The differences between the ...

4

ConTeXt provides a proof of concept module for such translations: m-translate. You could use it to translate text, but the translation takes place before macro expansion. So, the method will fail if the translation string is part of a macro name. The translation can be enabled and disabled using \enableinputtranstion and \disableinputtranslation. Here is an ...

7

Here's another with l3regex. \documentclass{scrartcl} \usepackage{xcolor,xparse,l3regex} \ExplSyntaxOn \NewDocumentCommand \texthighlight { +m } { \david_texthighlight:n { #1 } } \cs_new_protected:Npn \david_texthighlight:n #1 { \group_begin: \tl_set:Nn \l_tmpa_tl { #1 } \seq_map_inline:Nn \g_david_highlight_colors_seq { \clist_map_inline:cn { ...

12

Solution using LuaTeX callbacks. Library luacolor.lua from luacolor is also used. First package luahighlight.sty: \ProvidesPackage{luahighlight} %\RequirePackage{luacolor} \@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}} \RequirePackage{luatexbase} \RequirePackage{luacode} \newluatexattribute\luahighlight \begin{luacode*} highlight = require ...

5

Strongly based on my answer at How to insert a symbol to the beginning of a line for which a word appears?. However, I had to extend the logic to handle multiple color assignments. Syntax is multiple invocations of \WordsToNote{space separated list}{color} and then \NoteWords{multiple paragraph input} Macros in the input are limited to style (e.g., ...

6

I've installed URWGrotest.ttf in my local directory -- using xelatex works out of the box for this. (Source of the font: http://font-db.com/font/URWGroteskT/57578, it's a .zip file, where the font file is called font.ttf, so I renamed it) \documentclass{article} \usepackage{fontspec} \usepackage{blindtext} \setmainfont{URWGrotesk.ttf} \begin{document} ...

1

According to the comment from Joseph Wright and Andrew I'll explain my solution: From Excel or LibreOffice: file > Save as > CSV Using CVSsimple package on the file file.cvs with the column name and firstName: \csvreader {file.csv}{name=\name,firstName=\firstName} { \begin{tabular} name & first name \\ \name & \firstName \end{tabular} } ...

Top 50 recent answers are included