New answers tagged

2

One side note: on many systems, Cambria Math will be in the file cambria_01.ttf or cambria.ttc. Therefore, the only portable way to select it is by its display name. That’s not the cause of your error, but it’s something I needed to change to get your MWE to compile. It’s a bug in unicode-math that range=\backtick and range="2035 don’t work. As of August ...


0

Bilingual documents usually have a main language and the secondary language. Pandoc LaTeX templates use polyglossia for bilingual documents. The following is a list of languages that polyglossia supports (p. 5, polyglossia manual). I've assumed the main language to be German and the secondary language to be Hindi. Please adapt accordingly. Markdown source:...


11

The space in the "text layer" of the PDF is inserted by a heuristic of your PDF viewer because there is some distance between the f and the }. In the long term tagged PDF files should solve that problem, but especially for math formulas I wouldn't hold my breadth. So in the short term, you either specify replacement texts for every math formula using e.g. ...


1

Adding in a comment on write streams, since they matter a lot for larger projects. In large works, such as books or theses, the limited amount of writes in Xe(La)TeX (16 write streams) requires the use of libraries such as morewrites to function properly (multiple glossaries, indices etc have a tendency to eat write streams). Lua(La)Tex has 256 write ...


2

A less sophisticated solution: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ mybluenode/.style={ draw=blue,fill=blue!30, circle, minimum width=2cm, inner sep=0pt }, myblacknode/.style={ circle, inner sep=1pt, fill=black }, } \begin{document} \begin{...


4

If you have tons of such diagrams, you may be better off defining an environment that draws the filled circle and sets the baseline of the diagram appropriately, and does other things. This answer is an overkill in the sense that it shows you two ways to avoid repetition: define a new environment. use execute at begin tikzpicture. In practice one uses ...


1

This is a fairly opinion-based answer, as I'm not sure if there actually is a general reference for all this terminology. I usually use "...TeX" (spelled with alternating upper-/lowercase letters) when I mean the language, i.e. the collection of all predefined macros, assignments, specific primitives etc. which can be used in this specific TeX variant. On ...


1

When listings breaks a line that is too long, it inserts some space at the beginning of the new line(s). You can remove this space by setting breakindent=0pt in \lstset: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{listings} \title{Example} \lstset{ basicstyle=\normalsize\ttfamily, breaklines=true, framextopmargin=10pt, ...


2

You should setup the document fonts with \myzfont, \myfont is only for local changes: \input font-change-xetex \hsize3.4in \myzfont{TeX Gyre Heros}{11}{} \hangpun \noindent Some people are for using hanging punctuation, and some against. In the end, it is a matter of personal choice. He said, “I use hanging punctuation.” “But does it really lead to ...


1

Okay, this was quite a stupid question, really. I fixed it by defining a new command: \newcommand{\Lettrine}[2]{\lettrine[depth=1]{\initialmaker{#1}}{#2}} The depth is required because the font now uses six lines instead of five causing the text to run over the bottom of the initial.


2

I asked on the dvipdfmx list and Shunsaku Hirata confirmed my suspicion that it is a dvipdfmx failure. A similar problem can be shown with this smaller example: \documentclass{article} \begin{document} \special{pdf:bcolor [0]} \special{pdf:code q 1 0 0 rg 1 0 0 RG} text in red \special{color push gray 0} %switch back to black Text in black. \special{color ...


1

To run/compile a .tex document on a computere native instead of on online services such as Overleaf you need two things: A IDE (Integrated development environment) or a text editor. Full list over popular editors at this link. TeXstudio is an IDE and will work fine. You could even use Windows notepad, it does not matter as you are only writing pure text. ...


2

Workaround. Use \pgfplotsset{axis line style={color=black}} instead.


1

An answer to the two rules. The following bits of code added/changed to your MWE produce a single rule between the first and second lines of the heading and a rule at the bottom of the heading. ... \setheadfoot{60pt}{20pt} % your header is too large \checkandfixthelayout ... \makeheadrule{mystyle}{\textwidth}{0.4pt} % rule at the bottom \makeoddhead{mystyle}...


2

The Amiri font gives better results:


5

The libertinus package (actually libertinus-otf, that's loaded when XeLaTeX is used) has a nomath option, which however doesn't avoid loading unicode-math, but just doesn't set Libertinus Math as the math font. In my opinion the package should offer the option of using legacy math fonts such as Libertinus1Math. Workaround: trick LaTeX into thinking that ...


4

The package index is not compatible with extramarks, because the latter requires commands that conflict with what the former wants to do. There are better ways for supporting several indices and I can't recommend index, that hasn't been maintained for fifteen years and still advertises being version 4.2beta and does several redefinitions of important ...


1

OP here, I answered my own question by using minipages: % This is a modified ONE COLUMN version of % Deedy - One Page Two Column Resume % LaTeX Template % Version 1.1 (30/4/2014) % Debarghya Das (http://debarghyadas.com) % https://github.com/deedydas/Deedy-Resume % % IMPORTANT: THIS TEMPLATE NEEDS TO BE COMPILED WITH XeLaTeX \documentclass[]{deedy-resume-...


0

I got the answer the problem was regarding the path setting of MikTek. I reinstalled MikTek and set its environment C:\Program Files\MiKTeX 2.9\miktex\config;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin. Then the program runs successfully.


1

Well, the best way to get what you want is to redefine command \namesection, for example like this: \renewcommand{\namesection}[7]{ % Defines the command for the main heading \flushleft { \fontsize{40pt}{60pt} % Font size \fontspec[Path = fonts/lato/]{Lato-Lig}\selectfont #1 % First name font \fontspec[Path = fonts/lato/]{Lato-Lig}\selectfont #2 % Last ...


3

Some suggestions : Using \footnote{...} instead of \footnotemark \footnotetext{...} works just fine (91 occurrences). No need for \textbf directives for the \items in the description environment. Please make a habit of creating an all-blank line instead of \par (170+ instances). Last but not least, create a macro called, say, \mysub via \newcommand\mysub[...


0

I did it in this way (slightly modified code taken from Sergey Golovan book): (define-letter-groups ("A" "Ą" "B" "C" "Ć" "Č" "D" "E" "Ę" "F" "G" "H" "I" "J" "K" "L" "Ł" "M" "N" "O" "Ó" "P" "Q" "R" "S" "Ś" "Š" "T" "U" "V" "W" "X" "Y" "Z" "Ź" "Ż" "Ž" "А" "Б" "В" "Г" "Д" "Е" "Ж" "З" "И" "Й" "К" "Л" "М" "Н" "О" "П" "Р" "С" "Т" "У" "Ф" "Х" "Ц" "Ч" "Ш" "Щ" "Ъ" "Ы"...


2

\font\tenrm="[cmunrm]:mapping=tex-text"


2

The problem with using more than 16 isn't really anything you need to change within the core xetex support code, but if you then make the \newfam allocation go past 16, any "normal" math font package will not work as all the \mathchardef will give errors if used with family number greater than 15. However if you keep the allocated families low you could ...


1

Old question, but this answer might be helpful to someone: To answer the question in the title, your error, 'unicode-math warning: "mathtools-colon"', is simply due to mathtools and unicode-math trying to use the same names for things. It's just a warning from unicode-math as the packages aren't 100% compatible, but can be ignored. You can suppress it if ...


0

Not an answer, but to long for a comment ... I have tested your code on three different systems: Debian 9 with TeX Live 2016/Debian Debian 10 with TeX Live 2019/dev/Debian Debian testing with TeX Live 2019/Debian Your code works fine in all three settings. Now you are using Debian 10 together with TeX Live 2016/Debian, which was part of Debian 9. This ...


0

Well, I'm not sure I understand you right: It seems you want to get rid of the printed section name in header with style fancy ... Style fancy is predefined and adds the section name and an headrule to the headers. To get rid of them you need to redefine style fancy like this: \pagestyle{fancy} \fancyhf{} % <==========================================...


3

Neo Euler is an incomplete font which is no longer being maintained. (Sadly, its creator, Hermann Zapf, is no longer with us and cannot draw any new symbols for it.) The best way to use it is to load a more comprehensive math font as the fallback, then load only the symbols present in Neo Euler over it with the range= option. You can find a demonstration ...


1

Making space active like this will break most latex documents, the cases where it gives an error are the lucky cases where you get warning, more worrying are cases where it adversely affects the typesetting (third example here) or simply gives the wrong number (second and third examples). \documentclass{article} \begingroup \lccode`\~=`\ % \lowercase{% \...


1

As explained in How to use a command as path in 'includegraphics'? the \includegraphics command has problems parsing file names that consist of multiple elements. The solution is also given in that post, although a bit hidden. The idea is to compose a fully expanded path+filename string and use that as argument. Code: \def\image{yourimage.eps} \...


2

arabluatex is able to do this. Of course, you need to use lualatex to compile your document. Please refer to the documentation (currently sec. 7 on p. 35) for more information. \documentclass[12pt]{article} \usepackage{arabluatex} \begin{document} \begin{arab} \arbcolor[red]{b}.alad \end{arab} \end{document}


1

I know it is not perfect with all arabic letters and in all the situations but it is just a start: \def\red#1#2{\hspace{5pt}\char"200D #2\hspace{-5pt}\textcolor{red}{#1-}-} \documentclass[a4paper,12pt,twoside]{memoir} \usepackage{xcolor} \usepackage{polyglossia} \setmainlanguage{english} \usepackage{arabxetex} \let\textarabic\relax % required for ...


3

With some help from here, you can access the glyph directly using: \XeTeXglyph\the\XeTeXglyphindex "one.Alt.oldstyle"\relax The glyph index was found using: otfinfo -g XCharter-Roman.otf | grep one MWE Edit: Don't make 1 active as it can easily cause problems. See comments from @UlrikeFischer below Edit 2: Support enumerate environment with the ...


3

Are there some short versions of f in Junicode or EB Garamond? By "short" version of f, I assume you mean "short-armed" version. Please advise if this interpretation is incorrect. I am not aware of Junicode providing short-arm versions of the f and ff glyphs. I am aware, though, of such glyphs for both EB Garamond and Libertinus Serif, in both the upright ...


3

\documentclass{article} \usepackage{fontspec} \setmainfont{junicode} \begin{document} f ff {\addfontfeature{RawFeature={+salt;}} f ff} {\addfontfeature{RawFeature={+swsh;}} f ff} {\addfontfeature{RawFeature={+ss02;}} f ff} {\addfontfeature{RawFeature={+ss06;}} f ff} {\addfontfeature{RawFeature={+ss07;}} f ff} {\addfontfeature{RawFeature={+ss19;}} ...


1

The variable $pdf_mode is responsible for the engine used to generate pdfs. You have to set $pdf_mode to 5 if you want to use XeLaTeX. You can do that by adding the following line to your configuration file (i.e. $HOME/.latexmkrc): $pdf_mode = 5; Possible values for $pdf_mode are: 0 = no pdf 1 = pdflatex 2 = pdf from ps 3 = pdf from dvi 4 = lualatex 5 ...


1

Without considering your tex editor, in order to compile your tex file with xelatex, add %!TeX program = xelatex to the first line of your source code. Because according to this link, Vimtex supports two TeX directives: TeX root and TeX program. Please consider the following example: %!TeX program = xelatex \documentclass{report} \usepackage{fontspec} \...


Top 50 recent answers are included