Tag Info

Hot answers tagged

10

I'm not sure I qualify as experienced and/or more successful :-). But here's an example of the setup I used for my thesis. Adobe Garamond Pro was used as the text font. Sadly, I needed bold to appease the thesis arbiters at my university, so I used BoldFont=AGaramondPro-Semibold as it looks slightly less out of place than the standard bold weight. For ...


7

My development version of fontspec might be out of sync with the current TeX Live version on this matter — I know I recently fixed an issue that involved \addfontfeatures incorrectly creating new font families. In my development version, the 2nd use of \addfontfeatures line in the log file doesn't lead into the ‘Font Family (…) created’ message. However, I ...


6

I don't have that font, so I used (actually abused) EB Garamond, but it should work the same with your font. \documentclass{article} \usepackage{fontspec} \setmainfont[ Ligatures=TeX, Extension=.otf, BoldFont=EBGaramond12-Regular, BoldFeatures={FakeBold=3}, ItalicFont=EBGaramond12-Italic, BoldItalicFont=EBGaramond12-Italic, ...


5

The fonts used by mathdesign are not compatible with XeLaTeX and fontspec, because they're neither OpenType nor TrueType fonts. Replace \usepackage{xltxtra} with \usepackage[utf8]{inputenc} and compile with pdflatex.


5

This is due to bad font design, in my opinion. Instead of letting S overshoot its bounding box, the font developers decided to define a bounding box that vertically covers the whole inked area and has some sidebearings, as it becomes apparent when setting the parameter \fboxsep to zero: \documentclass{article} \usepackage{fontspec} \begin{document} ...


4

In according to unimath-symbols.pdf, the best fonts for math symbols are M Latin Modern Math (1588) X XITS Math (2437) C Cambria Math (2189) A Asana Math (2259) P TeX Gyre Pagella Math (1612) E Neo Euler (579) (IMHO, this is very wrong ...) There are many Times-compatible font with fontspec, like TeX Gyre Termes, FreeSerif ...


3

I had some experience with this in my thesis... The Times clone in the TeX Gyre fonts (Termes) can be used quite simply with the unicode-math package. In fact, any of the TeX Gyre fonts can be used this way (at least, the ones with corresponding math fonts) and this should work for XeLaTeX as well. \documentclass{article} \usepackage{unicode-math} ...


3

NB this is an answer to the original question. I described my experience with adding a new ttf font. I use lualatex, first installed tex-live, on my new Ubuntu 14 lts, I want to use from XP font constantia. I copied all CONSTANT*.TTF-files from XP in this map: /usr/share/fonts/truetype/msttcorefonts analogically(!) like other already available fonts. NB ...


2

You can define a specific font command in fontspec just for punctuation. In this example I create an \englishfont family for Latin script (your commands for this were not quite right), then I create a command \punct just for punctuation that uses the \englishfont. It takes one argument, which could be any string you want in the other font, such as ...


2

I no longer have the Mona Lisa font, but here’s an example of modifying the code for fonts other than those Peter Wilson used. The code is simpler with fontspec: % xetex or luatex \documentclass[12pt,twoside,openright]{memoir} \usepackage{fontspec,xcolor} \newfontface\bmb{Bembo Book MT Pro}[Numbers=OldStyle]% or use \setmainfont if the main matter will be ...


1

you have to define a main font with \setmainfont: \documentclass{article} \usepackage{fontspec} \usepackage{arabxetex} \newfontfamily\arabicfont[Script=Arabic, Scale=1.5]{Scheherazade} \setmainfont{Linux Libertine O} %\SetTranslitConvention{dmg} \begin{document} ...


1

You may use \newunicodechar in a more complicated way to check whether the next character is the same. We need a different active character (here ?) because \newunicodechar already uses ~ internally. \documentclass[twoside]{report} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{hindi} \setotherlanguage{english} ...


1

The fact that the warning diappeard if you get rid of \LaTeX from some title, means that the theme has been created either with an old definition of that command, or thet the definition is incompatible with LuaLaTeX. In facts "someone" specified that some text had to be typeset with the standard Old TeX encoding OT!; normally the default encoding for open ...



Only top voted, non community-wiki answers of a minimum length are eligible