New answers tagged

2

A quick solution would be to use the bidi package’s \LR{} command: \glc \LR{In the beginning} created God - \LR{the heavens} and \LR{the earth.}// See §1.8 (Typesetting Short LTR and RTL Texts) in the documentation for further information.


2

You are mixing xmpincl and pdfx expectations about how the XMP file will be found and created. The command \includexmp is from xmpincl, and pdfx wants nothing to do with it. pdfx provides a simplified interface, but it has strict requirements: Your .xmpdata file must have the same name as the main .tex file (if using the filecontents package, then use ...


0

Don't enclose the font change in braces (itemize will provide them anyway): \documentclass{beamer} \begin{document} \begin{frame} \frametitle{XYZ} \begin{itemize} \fontsize{18pt}{30}\selectfont \item n is the number of states; \item i is the start state. \item j is one of the final states. \end{itemize} \end{frame} ...


1

You don't provide a full MWE, so this may not be at all what you're looking for, but it seems like you're using beamer. If so, then you can change the font size of enumerate and itemize environments through the itemize/enumerate body begin family of keys as follows: \documentclass{beamer} \setbeamertemplate{itemize/enumerate body begin}{\tiny} ...


2

It is not really a direct answer to your question, but you can access the icons of FontAwesome directly with the package fontawesome you are loading. Just the macro names are partly different. %%%%%%%%%%%%%%%%%%%%%%% FOR ICONS %%%%%%%%%%%%%%%%%%%%%%%%% Linux icon: \faLinux \\ StackExchange icon: \faStackExchange \\ GitHub icon: \faGithub \\ Skype icon: ...


2

This solution uses tikzmark and involves turning the itemize environment into an enumerate using the label option of enumitem. The list looks just the same, but the item number is used to turn the bullets into sub-nodes which can be referenced later in the picture. \documentclass[tikz, border=10pt, multi]{standalone} \usepackage{calc,enumitem} ...


2

I used remember picture option for tikzpictures to allow the connection between nodes defined in different tikzpictures (cf. $17.13.1 in the manual). I used minipage to arrange the three block, but other solutions are possible. To overcome a difficulty in the spacing around the node containing the $bullet$ I referred to this answer. ...


0

The french language redefines \thepart to issue nothing, because it wants “Première partie”. So if you switch to French, the command is redefined, but switching to English doesn't define it back. \documentclass{book} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{french} \makeatletter \let\latex@thepart\thepart ...


1

As a workaround, one can reset to normal colour at the begin of every frame: %% Compile with xelatex \documentclass[handout]{beamer} \mode<handout> { \setbeameroption{show notes} \RequirePackage{pgfpages} \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] } \makeatletter \def\beamer@framenotesbegin{% at beginning of slide ...


2

fontspec v2.5a (2016/02/01) "bugs fixed" solves the issue. I am not sure which release note specifically addresses the problem (although I would like to know). Version 2.5 did not include fontspec.cfg where Ligatures=TeX was specified as default feature. Ligatures=TeX is a default option for fonts loaded by fontspec normally. I therefore did not specify ...


2

To remove this question from the list of unanswered questions and inform those interested: The fix is now available on TeX Live. Thanks again to @egreg and @DavidCarlisle for the fast response, that a fix was already on the way.


4

As Akira Kakuto mentioned in his comment, an update to xeCJK has been released (3.3.2 -> 3.3.3). It hasn't been pushed to texlive yet, but I downloaded it from CTAN and installed it in my local texmf folder. The problem is fixed.


2

You need to use the professionalfonts theme if using your own configuration to avoid unexpected weirdnesses cropping up at inconvenient moments. You do not need fontenc as far as I can tell. You do need lmodern because otherwise the default maths will still use Computer Modern, even though fontspec switches text to Latin Modern. I am not sure exactly what ...


0

This solves the problem. \usepackage[htt]{hyphenat}


1

By default, LaTeX doesn't hyphenate typewriter type text. With fontspec you can revert this decision quite easily, but you have to newly define a monospaced font. \documentclass{scrartcl} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german} \setmonofont{Latin Modern Mono}[HyphenChar={-}] \usepackage{tabu} ...


0

You should get no error from the code you posted once it is a complete document with \documentclass, there are however some unneeded commands. As you are using xetex I have used polyglossia to set up language switching I hope that that makes hyphenation good enough, I do not know either language so I can not test. here "Abstract" has been translated by ...


0

EDIT 2: Added lots of new thoughts and suggestions As far as I understand your question, you have created a constructed language with a constructed script with own characters not in Unicode. In addition, you have created a transcription of the conscript into latin letters and digits. Now you want to typeset some texts in your conlang. I suggest that you ...


1

The problem is that a I was using Mendeley a reference manager, that was updating the global bib file in the background without me noticing it. Hence, the bib file was changing. The default behavior of latexmk is to remake all the bbl files if there is any change to the any citation related stuff, for example, a change to the underlying bib file, or adding a ...


1

By trial and error, I came to this. This is complete working example using Latex and some plain TeX definition together. This example is not perfectly. % -*- coding: utf-8 -*- \documentclass[a4paper]{cweb} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{polski} \begin{document} @* Wstęp. To jest początek. A to kolejna linia zakończona ...


2

You have two possibilities: declare to be using the fake language hyphenation rules nohyphenation set \hyphenpenalty to 10000, which disallows hyphenation except at explicit hyphens In the code below I changed the font for the Chinese part; adding a definition for \languageshorthands is needed only if you follow method 1. Once you have decided for a ...


2

You could borrow some code from mtpro2.sty: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Bonum} \setmathfont{TeX Gyre Bonum Math} \makeatletter \AtBeginDocument{% \begingroup\lccode`~=`_ \lowercase{\endgroup\def~}{\futurelet\next\s@@b}% \mathcode`\_=\string"8000 \catcode`_=12 } ...


1

if everything else fails, you can try to fake the euro sign. this solution may not look as good, but it works anytime: \newcommand{\euro}{{\mathrm{C}\!\!\!\!\!\!=}}


2

You can disable the pretty useless “quoting” feature of Spanish babel: \documentclass{article} \usepackage[spanish,es-noquoting]{babel} \usepackage{pdfpages} \begin{document} \includepdf[landscape]{example-image-16x9.pdf} \end{document}


3

This is an issue with < and > being active at the wrong time. It appears at a time when the landscape option (and xetex driver for pdfpages) will try to do \special {pdf: put @thispage <</Rotate #1>>} I didn't try to disentangle completely the sequence of events (but see update below), but loading babel after pdfpages fixes the issue. I ...


12

You can use newunicodechar: \documentclass{article} \usepackage{xeCJK} \usepackage{newunicodechar} \usepackage{xcolor} \newunicodechar{の}{\textcolor{red}{の}} \begin{document} ...


11

This is precisely one of the things that XeTeX makes excitingly easy to achieve. See the section Character classes in its documentation (texdoc xetex in your TeXLive/MikTeX installation or http://texdoc.net/texmf-dist/doc/xetex/xetexref/xetex-reference.pdf). Here is an example, but you definitely should check the XeTeX reference for more, especially as you ...


14

Here's a LuaLaTeX-based solution. It defines a Lua function, named color_chars, that renders in red all instances of characters contained in a pre-defined set of characters. The code uses the function unicode.utf8.gsub instead of the more basic string.gsub, so that it can handle characters that aren't ASCII-encoded. The code take care not to operate on TeX ...


0

Just have your macro take an argument and then feed the characters to the macro. If they are to be consistently formatted, you want one macro which you use to format the 200 characters. You don't need - or want - 200 macros. For example, \documentclass{article} \usepackage{xcolor} \newcommand*\learnme[1]{\textcolor{red}{#1}} \begin{document} ...


2

The following solution uses the Biber back-end because we need to create a new field (indexname). Analogue to shortname and sortname our new field is called indexname. First we need to make the new field known to Biber and biblatex. Create a .dbx file with the following contents \DeclareDatamodelFields[type=list, datatype=name]{indexname} ...


9

This is arguably a bug in polyglossia. Examining the polyglossia.sty one sees it has a concept of \familytype. When the user has selected a language, the font selection is influenced by it this tests the value of \familytype. There is some code to set during package loading \familytype: \expandafter\ifx\familydefault\sfdefault \def\familytype{sf} ...


3

What you need is the customization of \footfootmark defined in extrafootnotefeatures-xetex-bidi like this \bidi@ensure@newcommand{\footfootmark}{% \ifdim\footmarkwidth < \z@ \llap{\hb@xt@ -\footmarkwidth{% \hss\normalfont\footscript{\@thefnmark}}% \hspace*{-\footmarkwidth}}% \else \ifdim\footmarkwidth = \z@ ...


0

I found it myself. You have to go to the CMD Shell and type initexmf --edit-config-file dvipdfmx this will create a config File in your Windows User Directory, which even in Workplaces usually is not write protected. In this file you can make any changes, and the original file will be overwritten.


7

Alternatively, you can ask fontspec to scale the fonts according to your main font instead of using a trial-and-error number. This is done by using either MatchLowercase or MatchUppercase as an argument to the Scale option. In your case, you can declare your font as: \newfontfamily{\ezra}{Ezra SIL}[Scale=MatchLowercase] If you are using other fonts in ...


5

You can scale the font when you create your new font family with an additional font feature: \documentclass[twocolumn,10pt]{article} \usepackage{polyglossia} \setmainlanguage{dutch} \usepackage{fontspec} \newfontfamily{\ezra}{Ezra SIL}[Scale=0.8] \DeclareTextFontCommand{\textezra}{\ezra} \begin{document} Nadruk op het in acht nemen van de geboden. ...


0

The following complete example gives no error with a current xelatex \documentclass{IEEEconf} \begin{document} \title{zzz} \author{z. zz} \twocolumn[ \begin{@twocolumnfalse} \maketitle \end{@twocolumnfalse} \vspace{2mm} \hrule \begin{abstract} abstract text. \end{abstract} \hrule \bigskip ] aaa ...


0

MikTex Package Manager shows all the packages including ones which are not installed on the computer. In here for instance, ucharclasses package was not installed on my computer. But when I searched it in the MikTex Package Manager I could find it. So when I right clicked on it and opened the properties window it shows the files belong to the package (In my ...


0

No problem with up-to-date TL2015: \documentclass[landscape,a4paper,10pt]{article} \usepackage{helvet} \usepackage[margin=0pt]{geometry} \usepackage[newdimens]{labels} \LabelCols=2 \LabelRows=2 \LabelSetup \usepackage{pst-barcode} \newcommand{\sap}[2]{\centering \begin{pspicture}(0,-0.2in)(2.8in,1.5in)\psbarcode[scaley=1.5]{#2}{includetext textsize=10 ...


5

Your code doesn't work because you're issuing \makeatletter at the wrong time; category codes are not changed when tokens have already been absorbed. You need \makeatletter \section{\textbackslash section\f@size pt} \makeatother but it's better to use a specific macro. \documentclass{article} \newcommand{\cs}[1]{\textbackslash #1} \makeatletter ...


1

Its seems something with the font colour is broken, so that the text is displayed in white. Workaround Reset the font colour in every frame. The following code adds \usebeamercolor[fg]{normal text} to the definition of a slide (taken from beamerbaseframe.sty). \documentclass{beamer} \usepackage{pgfpages} \setbeameroption{show notes on second screen} ...


1

Ok as nobody had written: this works \newcommand{\начать}[1]{\emph{#1}} \let\начать\begin \let\конец\end \newenvironment{стих}{\begin{verse}}{\end{verse}} Works out of the box, thanks to @David Carlisle for \let\xyz\begin tip


0

\Sectionformat is from the hyperref package. So if you make sure you include it in the synopsis document with the extract* environment, things should work correctly. If you need other packages in the synopsis, add them to the extract* environment as well. You should also avoid adding text on a line after a synopsis, as that text will be ignored (your ...


2

The best is if you install CMU also in the /Library/Fonts folder. Otherwise, you can get the same with a slightly more complicated code: \documentclass[12pt]{article} \usepackage{environ} \usepackage[no-math]{fontspec} \newfontfamily{\tipacm}[ Extension=.otf, UprightFont=*rm, %ItalicFont=*ti,% no IPA here BoldFont=*bx, %BoldItalicFont=*bi,% no ...


1

CMU Serif is not part of Mac OSX system fonts. You have to make the TeXLive (MacTeX) fonts known to your system: Run kpsewhich --var-value TEXMFLOCAL which shows the directoty of your local tree. This is by default for a Mac ~/Library/texmf/ but can be different on your machine. Then save the font files into ~/Library/texmf/fonts/opentype/ and run texhash ...


1

Here is a code that does what you want. You really don't want the chapter numbers in the margin, but at the left of the right margin, so I used the \filleft command from titlesec. I had to remove the path to Inconsolata (which I do not have; I replaced it with the version that comes with MiKTeX, and is in the path). ...


2

I'm not sure why the IEEE templates continue to suggest adding that code, which is wrong to begin with. Just replace that code by \usepackage{graphicx} You may want to add a \graphicspath declaration, but it's optional. Don't add \DeclareGraphicsExtensions command.


0

\documentclass{article} \usepackage{fontspec} \renewcommand{\familydefault}{\sfdefault} \setmainfont{Fontin} \begin{document} Here is some text. \textnormal{Here is some text.} \textup{Here is some text.} \textrm{Here is some text.} \textsf{Here is some text.} \textsl{Here is some text.} \textsc{Here is some text.} \uppercase{Here is some text.} ...



Top 50 recent answers are included