# Tag Info

0

The font 'Noto Sans Egyptian Hieroglyphs - Regular' has placed its 1,071 glyphs in slots 77824 thru 78894 or, equivalently, slots U13000 thru U1342E. (To typeset all glyphs in a table, one needs 66 rows with 16 glyphs and 1 row with 15 glyphs.) Under either LuaLaTeX or XeLaTeX, one may use either \symbol or \char to typeset the glyphs by their "number": To ...

1

Loading unicode-math package before glossaries-extra, and setting a math font for unicode-math to use seems to do the trick: MWE \documentclass{article} \usepackage{unicode-math} \usepackage[symbols,automake]{glossaries-extra} \setmathfont{XITS Math} \setmainfont{Noto Serif} \makeglossaries \glsxtrnewsymbol[description={tilde}]{tilde}{\ensuremath{\tilde{...

0

You don't need define environment. Use the below codes: \documentclass{article} \usepackage{xepersian} \settextfont{Yas} \defpersianfont\nas[Scale=4]{IranNastaliq} \begin{document} \begin{nas} این طرح‌نما می‌آزماید نگاره و اندازه و شکل را \end{nas} \end{document} Output: Of course, you must first make sure your font is installed. If you are a Windows 10 ...

3

What about the below? \documentclass{book} \usepackage{amssymb} \begin{document} $\Re$ \end{document}

5

I think it's the pxtx fraktur font. \documentclass{article} \usepackage[frak=pxtx]{mathalpha} \begin{document} $$\mathfrak{R}$$ \end{document}

2

Is this close enough? \documentclass{article} \usepackage{amsfonts} \begin{document} $\mathfrak{R}$ \end{document}

2

For inline Hebrew, you should use \texthebrew. The hebrew environment is for paragraph text. %!TEX program = xelatex \documentclass{book} \usepackage{polyglossia} \usepackage{bidi} \setmainlanguage{english} \setotherlanguage{hebrew} \setmainfont{Latin Modern Roman} \newfontfamily\hebrewfont[Script=Hebrew]{Noto Sans Hebrew} \begin{document} Lorem ipsum dolor ...

1

Use bidi's \RLE to correct the text direction: %!TEX program = xelatex \documentclass{book} \usepackage{polyglossia} \usepackage{bidi} \setmainlanguage{english} \setotherlanguage{hebrew} \setmainfont{Latin Modern Roman} \newfontfamily\hebrewfont[Script=Hebrew]{Noto Sans Hebrew} \begin{document} Lorem ipsum dolor sit amet, \begin{hebrew}\RLE{לורם איפסום ...

3

It is not clear what you like to get. I suspect that one from the following examples: generated by: \documentclass[margin=1mm,% added that border is better visible % in real document you can delete margin tikz,convert=pdf2svg]{standalone} %\documentclass[tikz, margin=1mm]{standalone} \usetikzlibrary{fit, ...

1

Answer that emerged from the chat: not a real superscript but simple. \documentclass{article} \usepackage{lipsum} \usepackage[normalem]{ulem} \newcommand{\textss}[1]{\,\scriptsize\uline{#1}} \begin{document} \lipsum[1-5] more text and more text and\textss{more text and more text and more text and more text and more text and more text and more text and more ...

3

The bulk of the code is managing the input. The second argument can be a single number, meaning just one character to color; -, meaning color everything; m-, meaning color from the m-th character to the end; -n, meaning color from the start up to the n-th character; m-n, meaning color from the m-th up to the n-th character. \documentclass{article} \...

3

Here is an extension of egreg's first code in this answer to support ranges of the form min-max, where min means “start” if not given, and max means “end” if not provided. My code uses l3regex to parse the range expression. \documentclass{article} \usepackage{xcolor} \usepackage{xparse} \ExplSyntaxOn \msg_new:nnn { salim } { invalid-range-expression } { ...

5

Here's a LuaLaTeX-based solution. It provides a Lua function that does the actual work and a LaTeX utility macro, called \ColorRangeChar, which passes its three arguments to the Lua function. The three arguments are (a) and (b) integers that indicate the positions of the first and last characters to be colored and (c) the word itself. This solution ...

4

\documentclass{article} \usepackage{xcolor} \newcounter{pft} \begin{document} \makeatletter \def\pft#1-#2;{\edef\lower@pft{\the\numexpr#1-1}\edef\upper@pft{\the\numexpr#2+1}}% \def\ColorRgChar#1#2{\pft#1;% \setcounter{pft}{0}% \@tfor\next:=#2\do{\stepcounter{pft}% \ifnum\value{pft}>\lower@pft \ifnum\value{pft}<\upper@pft \textcolor{red}{\next}% \...

1

This problem has been reported to and fixed by latex3 [1]. The fix is contained in l3kernel 2020-02-21 [2]. [1] https://github.com/latex3/latex3/issues/677 [2] https://github.com/latex3/latex3/blob/2020-02-21/l3kernel/CHANGELOG.md#2020-02-21

3

You have misunderstood the use of multirow. You have to span the number of "normal" rows because multirow does not know the height of the spanning box, see page 6 in the manual and the example given there: The middle column is the \multirow. You would expect it to be vertically centered, but it isn’t. This is because \multirow doesn’t know the height ...

5

Don't use \resizebox, with it you loose control on the font size. Fonts can become to small that can be read. The table generated by your MWE is (without use of \resizebox) wider than is text width. To remedy this you can select one of the following possibilities: make \textwidth wider, for example with use of the \geometry package reduce font and \tabcol ...

2

I adopted an another strategy using into \labelitemi, the option \raisebox{.25\height} where it is possible to move up or down the position of the little \blacksquare symbol. The choice of the position depends of the value of .25: if this number is positive the blacksquare will go upwards. If this number is negative it will go downwards. Here there is a MWE ...

5

Like this: With use of the enumitem package and defined square by \rule: \documentclass[12pt,a4paper]{memoir} \usepackage{fontspec} \usepackage{xunicode} \usepackage{mathtools} \usepackage{unicode-math} \usepackage{enumitem} \setlist[itemize]{label=\rule[0.5ex]{0.6ex}{0.6ex}} \begin{document} Some sample text \begin{itemize} \item Foo \item Bar \...

1

The answer to your question “is this ever going to get fixed?” is yes. Because your MWE works fine for me as of now. I don't know when the bug got fixed. Moreover, the \renewcommand\pgfsetupphysicalpagesizes workaround now produces unexpected behavior. The physical page is clipped to a normal slide's dimension, which means most of the handout content is ...

6

You can add a declaration so that the text font knows bx too: \documentclass{article} \usepackage{mathspec} \setallmainfonts{Times New Roman} \DeclareFontShape{TU}{\familydefault}{bx}{n}{<-> ssub*\familydefault/b/n}{} \begin{document} $$\nabla \times \mathbf{B} = \mu_0 \mathbf{J}$$ \end{document} fontspec will ...

7

This is clearly due to the new LaTeX kernel using b as the default value for \bfseries. Probably fontspec should also define bx weight for compatibility, but in the meantime you can patch mathspec to use b instead of bx. \documentclass{article} \usepackage{mathspec} \usepackage{xpatch} \xpatchcmd{\setmathrm}{bx}{b}{}{} \xpatchcmd{\setmathrm}{bx}{b}{}{} \...

1

Solved \setmainfont{CMU Serif} \newfontfamily{\cyrillicfont}{CMU Serif} \setsansfont{CMU Sans Serif} \newfontfamily{\cyrillicfontsf}{CMU Sans Serif} \setmonofont{CMU Typewriter Text} \newfontfamily{\cyrillicfonttt}{CMU Typewriter Text}

0

It was really easy to make this work. Thanks to the hint given by David in the comments, the default build from the toolbar was using pdflatex. First, select XeLaTex from the drop-down menu. Also, import enumerate before the xepersian package. Then press the Run button from the toolbar and it would build successfully. You can view the PDF output on the right ...

2

An expl3 version of such a loop could look like this. It assumes that you defining a new command. If you want to redefine existing ones you will have to adjust the code. \documentclass[11pt,a4paper]{article} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage[variant=polytonic]{greek} \usepackage{xgreek} \usepackage{unicode-math} \...

1

If you're not French and plan to never write in French, you can just do \documentclass{article} \usepackage{amsmath} \makeatletter \mathchardef\normalcolon=\mathcode: \def\colon{% \noexpand\nobreak \mskip 2mu \mathpunct{} \nonscript\mkern -\thinmuskip {\normalcolon}% \mskip 6muplus1mu \relax } \begingroup\lccode\~=\:\lowercase{\endgroup\...

3

\documentclass{article} \usepackage{amsmath} \begin{document} $\forall x: P (x)$ using \verb|:| $\forall x \colon P(x)$ using \verb|\colon| \def\newcolon{% \nobreak\mskip2mu\mathpunct{}\nonscript\mkern-\thinmuskip{\text{:}}% \mskip 6mu plus 1 mu \relax} \mathcode\:="8000 % {\catcode`:=\active \global\let:\newcolon} $\forall x: P (x)$ using ...

0

I was able to fix the problem by specifying the file name of the font. \font\bf="[cmunsx]" at 14pt \font\rm="[cmunss]" at 11pt \font\tt="[cmuntt]" at 11pt

1

The first \vbox has no notion about the size of the second one, so the \vfill just adds zero glue. If you want alignment at the top, use \vtop. \hbox{ \vtop{ \hbox{1} \hbox{2} \hbox{3} } \vtop{ \hbox{A} \hbox{B} \hbox{C} \hbox{D} \hbox{E} } } \bye But it's rather difficult to understand what you want to achieve.

7

\vbox{ {bottom-left-top} {bottom-left-down} } is the same as \vbox{bottom-left-top bottom-left-down} and sets a paragraph of text, broken into lines \hsize wide. I think you intended \vbox{% \hbox{bottom-left-top}% \hbox{bottom-left-down}% } to vertically stack two hboxes in a vbox.

-1

For Alpine Linux, since the package ttf-font-awesome only has Font Awesome 5, you need to manually download Font Awesome 4 from https://github.com/FortAwesome/Font-Awesome/blob/v4.7.0/fonts/FontAwesome.otf and place it in folder /usr/share/fonts/X11/OTF. You can replace the tag 4.7.0 with latest release in 4.x branch.

4

I have no knowledge of devanagari but it looks as if the input order of the stress sign UDATTA (U+0951) and VISARGA (U+0903) matters. There is a discussion here about the input order: https://github.com/harfbuzz/harfbuzz/issues/2017 It also looks as if the noto fonts has small problems and that siddhanta is better. (https://github.com/googlefonts/noto-...

1

With respect to number formatting, add the following: \renewcommand\choicelabel{(\alph{choice})}

3

You are redefining \familydefault to be equal to \sfdefault. This means that polyglossia is looking for a sans serif cyrillicfont. You can set it up with \newfontfamily\cyrillicfontsf{Arial}[Script=Cyrillic] It would be probably also a good idea to setup \cyrillicfonttt for the typewriter font.

0

So the issue is a Polyglossia 1.46 bug. Installing a user local 1.47 with tlmgr solved the issue, even if it caused another one.

3

I've processed your two MWEs with both pdflatex (without microtype) and xelatex (without defaultfeatures options) and all the outputs are identical. What you are observing are differences created by using features like microtype and defaultfeatures that are not available for the other processor. You'll just have to decide which you prefer.

4

You can add a special helper \punct, which is used instead of ruby for punctuation marks. This stops \futurelet from detecting ruby and therefore suppresses the glue. In \punct, \rlap can be used to "hide" the width of the mark: %!TeX program = XeLaTeX \documentclass{article} \usepackage{xeCJK} \setCJKmainfont{Noto Sans CJK TC} \usepackage[overlap,CJK]{ruby}...

9

You chose the wrong command name. In unicode-math-table.tex we find \UnicodeMathSymbol{"02AA2}{\Gt}{\mathrel}{double nested greater-than}% The table is read at begin document and, unfortunately, it overrides commands without warning. You might do \AtBeginDocument{\renewcommand*{\Gt}{\Group_{\symrm{T}}}} but my advice is to choose a different name. Note ...

2

According to the manual, you can use: duplicatepages Duplicates each page 𝑛 times, with 𝑛 being the argument to this option. (Default: duplicatepages=2)

7

I remove node distance=5mm and add node [above=0mm of above] (top) {\pgfornament[width=\n1]{71}} \documentclass[12pt]{article} \usepackage[a4paper,left=1cm,right=1cm,top=1cm,bottom=1cm]{geometry} \usepackage{fontspec} \usepackage[dvipsnames]{xcolor} \usepackage[object=vectorian]{pgfornament} % also loads tikz \usepackage{labels} \setmainfont{Holden} \...

4

As you are using the TikZ positioning library with \usetikzlibrary{positioning}, you can do: \path ... node [above=1.5mm of above] (top) {...} If you don't specify the 1.5mm, then the node distance is used, which is 5mm in your example (thus much larger). Full code: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage[object=vectorian]{...

3

Apparently the switching back from the fallback is messed up in you example, i.e. it switches to \mymainfont after ≼ even within \texttt. That's why you end up with spaces of different lengths. If you only want a very small number of fallback chars, I suggest setting them up manually: \documentclass{scrbook} \usepackage{unicode-math} \setmainfont{...

Top 50 recent answers are included