# Tag Info

1

Too long for a comment. If I change the font to Linux Libertine O (OpenType variant), then it works for both XeTeX and LuaTeX. Also the character can be specified directly: \documentclass[11pt]{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} \begin{document} \emph{G\~\i k\~uy\~u ĩ} \end{document}

3

Some graphics driver support uppercase extensions (pdftex.def) others do not. xetex.def with version 2014/04/07 v0.99 does not. The simple form is to add the support for each extension manually, e.g.: \DeclareGraphicsRule{.PNG}{QTm}{QTm}{#1} \DeclareGraphicsRule{.JPG}{QTm}{QTm}{#1} \usepackage{grfext} \AppendGraphicsExtensions*{.PNG,.JPG} However this ...

1

Longer post This task was a big issue for me many years ago when I was typesetting and generating preview books of fonts where I needed to know all kind information about the glyphs before actual typesetting. I divided the answer into three small parts each with compilable TeX file. Part 1: xelatex and its tool There is a way in xelatex, it is ...

7

MnSymbol changes all the delimiter codes, but also fontspec does and later than MnSymbol, so the problem arises. A possible solution is to load fontspec with the no-math option; another one is not using MnSymbol at all. \usepackage[no-math]{fontspec}

5

A starting point is xelatex format and the polyglossia package. I have downloaded and installed the Scheherazade font and I enclose a result of my efforts. I am sorry if I misspelled the Urdu terms. I haven't tested that but I think that you can wrap your Urdu words and BibTeX/BibLaTeX should processed them, it is worth some experiments. It would be great to ...

0

I don't have the Palatino... Arrows font on my computer, but I can show you how to retrieve glyphs from the Code2000 font even if you cannot type them. Next to common typing and copying+pasting from the Internet resources, we can use \char command and the glyph's octal, decimal or hexadecimal value. It is usually easy to retrieve such a value, e.g. by ...

2

Here is an example: \documentclass{article} \usepackage[shortcuts]{extdash} \begin{document} \hsize 4cm We have ababababababa\-/, edededededed\-/~and ififififi\-/methods. \end{document} yielding The solution is in the documentation for extdash which says that sometimes a linebreak immediately after the dash is inadmissable, and to use \=/ instead ...

3

The problem with Biber's \DeclareSourcemap is that it may only be used once in a document (only the last instance will be executed, all the other calls will be ignored)*, as such it is quite hard to implement a macro using \DeclareSourcemap. If you just want to add a comment to some bibliography entries, we can go down a different route. ...

1

So apparently you cannot add multiple \DeclareSourcemap to a latex file since only the last one it taken into account. One Solution can be to declare only one source map and modify the entries manually \DeclareSourcemap{ \maps[datatype=bibtex]{ \map[overwrite]{ \step[fieldsource=entrykey,match=\regexp{^a$},final] ... 1 Georgian hyphenation works out of box in texlive2013. You need to install support files manually in miktex, since hyph-utf8 in current miktex is without georgian support files. Ask author of georgian support package at http://tex.tsu.ge . p.s. babel+hyphenation works for xelatex and lualatex also 2 Are you running Windows? You could try running fc-list to get a list of the fonts installed on your computer. They should be listed in the format <path>:<font names>:<styles> eg. C:/WINDOWS/fonts/corbelz.ttf: Corbel:style=Bold Italic In this case, you could use the font 'Corbel'. As far as I know, you'd have to make sure the font is ... 1 Just use the scaling feature of fontspec (inherited by unicode-math): \documentclass{article} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{Roboto} \setmathfont[Scale=MatchLowercase]{Asana Math} \begin{document} normal vs.$\mathsf{math}$\end{document} On the other hand, mixing Asana Math for math and the Roboto font doesn't seem a good ... 3 I would add "-I omega". Omega is a TeX system working internally in Unicode. XeLaTeX does exactly the same. Setting input markup to omega has the effect that UTF-8 is assumed and unnecessary modules for handling input are disabled. Some time ago I planned to make support for Indic languages. I only know Hindi and without help of others I cannot continue my ... 0 The problem might be that the output is different from xelatex (picture on left) and lualatex (picture on right). Your code is working on my computer and it should be all right as gargi.ttf is a part of official ttf-indic-fonts-core package in Linux. You could try the other fonts from that package, the files are Kedage-b.ttf, Kedage-n.ttf, lohit_bn.ttf, ... 1 Those characters are not in DejaVu Sans. Earlier you used gargi and your question was why the ligatures you see in your editor were used. Then the answer was that gargi didn't have those ligatures. So this is really not about TeX. With this example: % -*- TeX-engine: xetex; -*-% \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari, ... 0 I was finally able to get my book printed by the company. Since multiple iterations of sending documents back and forth was out of the question, I changed two things at the same time, so it is unfortunately not possible to determine which of those changes was responsible. Using an evaluation version of Callas pdfToolbox, I ran the same font check that the ... 5 The Leo Liu's comment is actually a solution. We can use a file name of the font to load the font with the fontspec package. The similar problem is when a font is not actually installed or cannot be installed due to the user's limited rights on the computer and we still wish to use the font. We use ExternalLocation option for this purpose, I enclose an ... 2 I also wanted to delete the annoying "xdvipdfmx (0.x.x)" and here is a solution for windows users (only TeX Live!): Be careful you have to patch the executable, do it on your own risk and make an backup of the file first. Get a Hex-Editor (I'm using the freeware CFF Explorer). Assuming your using it too, open the file xdvipdfmx.exe, go to "Hex Editor" and ... 2 With the present latexmk, a simple trick is to arrange to treat this by the dvi-pdf route for making pdf files. You do this by getting the 'xdv' file copied to a 'dvi' file. The following lines in an initialization file implement this:$pdf_mode = 3; $postscript_mode =$dvi_mode = 0; $latex = 'xelatex --no-pdf %O %S && cp %Z%R.xdv %D';$dvipdf = ...

2

I think you have two options: Switch from XeLaTeX to LuaLaTeX. When I run your MWE on my system (MacOSX 10.9.2, MacTeX2013, Acrobat pdf viewer, TeXworks editor), I get the same problems as you do when I compile it under XeLaTeX, with all three font pairs you mention. However, no problems occur if I compile the MWE under LuaLaTeX using either Minion/Myriad ...

16

the randtext package may help; its ctan catalogue entry says <description> The package provides a single macro <tt>\randomize{TEXT}</tt> that typesets the characters of <tt>TEXT</tt> in random order, such that the resulting output appears correct, but most automated attempts to read the file will misunderstand it. This ...

11

You can do this: [𝚖𝘺𝗻𝕒𝒎𝕖@𝕖𝕩𝙖𝘮𝓅𝖑𝙚.𝖼𝘰𝗺] instead of myname@example.com but note this is real text so a non-spam user isn't prevented from copying the address and perhaps not noticing that it is unlikely to work. (If the bit between [ and ] isn't readable you may need to install some fonts to cover that range)

3

Your TeX Live installation is faulty or incomplete. It misses the Latin Modern fonts in OpenType format which are necessary for fontspec to work, because they are the “fallback fonts”. If you have the “vanilla” TeX Live, use tlmgr to install/reinstall collection-fontsrecommended (or just the lm package). For a TeX Live/Debian, use apt-get to install all ...

3

In my opinion, the best strategy is still marking the parts in English as such. However, if your English words are just a few, there are alternative approaches. With ucharclasses Define transitions to and from Latin characters. \documentclass[12pt]{article} \usepackage{polyglossia} \usepackage{ucharclasses} \usepackage{microtype} % better management of ...

1

After trying a whole day I ended up dong my own python script with pyparsing: #!/usr/local/bin/python # file: xelatex-clean.py def spoil(l): if type(l) == list: if len(l) == 0: return '' elif len(l) == 1: return spoil(l[0]) return l def pprint(nested, max_level, level = 0, indent = ' '): for i,c in ...

2

It seems that there are some problems with the fork of moderncv you've downloaded. Anyway, with the last edit in your question, since you get an error with \github, this means that you're using the normal version of moderncv. Note that you can add your Github account with normal moderncv class, there is no need to use that fork. Simply replace ...

3

You shouldn't use both babel and polyglossia. You're also mixing up the options to the languages. \documentclass[10pt,twoside]{memoir} \usepackage{polyglossia} % Vgl. http://tex.stackexchange.com/questions/135185 \setmainlanguage{english} \setotherlanguage[spelling=old,babelshorthands=true]{german} \usepackage{fontspec} ...

3

You have several questions: Prevent line breaking between CJK characters. There is a \CJKglue between any two CJK characters, which is initially defined to be \hskip 0pt plus 0.08\baselineskip\relax to enable wrapping. You can redefine \CJKglue to be a empty macro to prevent wrapping. (Sorry again for Chinese document of xeCJK only.) Prevent line breaking ...

4

When the following statement is expanded by TeX \psSolid[object=point,args=0 \b \a, name=A, text=B, pos=uc] the args= will be seen in PostScript as args=0 22 the space after \b is gobbled by TeX. It is the same as in \TeX forever. Use \psSolid[object=point,args=0 \b\space \a, name=A, text=B, pos=uc] In your second example The definition args=O A ...

8


3

The line \titleformat{\chapter}{\LARGE\headingfont} is the culprit. The syntax is wrong. The right one is \titleformat{\chapter}[display] {\huge\headingfont}{\chaptertitlename\ \thechapter}{20pt}{\Huge} So, the MWE (I've used Arial instead of Armata since I don't have that font installed): \documentclass{book} %%% to allow custom headings ...

2

\newfontfamily is only used for additional fonts, not for the main one. \documentclass{scrartcl} \usepackage{fontspec} \setmainfont[Mapping=tex-text]{Arial} \newfontfamily\TGPagella[Mapping=tex-text]{TeX Gyre Pagella} \newfontfamily\Agenda[Mapping=tex-text]{Agenda-Medium} \begin{document} hello \textbf{world} \TGPagella hello \textbf{world} \Agenda ...

-3

Try running latex+dvipdfm+viewpdf rather than latex+dvi2ps+ps2pdf+viewpdf. It worked for me.

2

I was faced with the same challenge a while ago. In my case, I only needed to compile documents of a fixed format and I thus only needed a small subset of the TeX distribution. To extract this subset i wrote a script, which Sets up a "watch" on the TeX distribution (I used FileSystemAuditRules). Compiles all relevant file templates using the monitored TeX ...

4

You can use the newunicodechar package. (Also works with xelatex) \documentclass{article} \pagestyle{empty}% for cropping \usepackage[utf8]{inputenx} \usepackage{newunicodechar} \newunicodechar{〈}{\ensuremath{\langle}} \newunicodechar{〉}{\ensuremath{\rangle}} \begin{document} Here are angle〈 〉brackets. $Here are angle〈 〉brackets.$ \end{document}

3

You can define an environment that typesets the entries in text mode, but then adds brackets: \documentclass{report} \usepackage{amsmath} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{sanskrit} \setmainfont{Times New Roman} \newfontfamily\devanagarifont{Devanagari MT} % <-- I don't have Lohit Hindi ...

3

use amsmath and its macro \text or as an alternative the macro \mbox: \documentclass{report} \usepackage{amsmath} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{sanskrit} %\setmainfont[Script=Devanagari]{Lohit Hindi} %\setmainfont{Times New Roman} \setmainfont{TeX Gyre Termes} ...

1

Your swf doesn't provide an own background colour. What you see is the gray background of the Flash Player plugin. It may help to set the transparent option for the player plugin. Then the white document page may shine through: \documentclass{article} \usepackage{media9} \begin{document} \includemedia[ transparent, activate=pageopen, width=200pt, ...

1

Acc. to the media9 documentation: \addmediapath{/Users/masi/Dropbox/Physiology/}

7

What is currently the most modern way of TeX-based typesetting? It should include microtypographic features, UTF-8 support, preferably OTF fonts and compatibility with most basic classes like KOMA/memoir and packages such as pgfplots and biblatex with the use of biber. Apologies if this answer is a bit tongue-in-cheek. The most "modern" from my ...

2

The \text⟨lang⟩ macro is only for short insertions. Use \begin{⟨lang⟩} … \end{⟨lang⟩} instead. It will typeset a new paragraph. In your case when you use Arabic the paragraph is typeset right-to-left. \documentclass[12pt]{article} \usepackage[paperwidth=8.5in,paperheight=14in,left=1cm,right=1.5cm,top=1cm,bottom=0cm]{geometry} %margins ...

Top 50 recent answers are included