Tag Info

New answers tagged

0

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 ...


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} ...


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 ...


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} ...


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 ...


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} ...


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/constantia analogically like other already available fonts. Of course ...


0

(As requested.) One alternative might be Source Sans Pro by Adobe, which gave me the following fonts: SourceSansPro-BlackIt.otf SourceSansPro-It.otf SourceSansPro-Black.otf SourceSansPro-LightIt.otf SourceSansPro-BoldIt.otf SourceSansPro-Light.otf SourceSansPro-Bold.otf SourceSansPro-Regular.otf SourceSansPro-ExtraLightIt.otf ...


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} ...


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, ...


3

If you have the Segoe fonts installed in your systems font directory run fc-cache -fv to update the font cache (if not already done by your system). Then something should work (run with xelatex or lualatex: \documentclass{article} \usepackage{fontspec} \setmainfont{SegoeUI-Regular} \usepackage{lipsum} \begin{document} \lipsum[1] \bfseries\lipsum[2] ...


2

Eventually I was able to find the reason with the great help of the comments to my question. For those observing similar problems, I post an answer here. The missing \partial comes from reassigning unicode ranges to different fonts. Don't do it unless you know what the side effects are. I didn't and therefore another problem was hidden by this wrong ...


6

Some years ago, the package xltxtra was recommended for usage with XeLaTeX, but it isn't any more. To the contrary, it is not recommended to load xltxtra, unless you really need its extra functions (you usually don't). The \setromanfont command has been deprecated some years ago, favoring the clearer command \setmainfont. The Mapping=tex-text option has ...


1

I found the solution: Lua uses a font name data base, which I had to update using the command: luaotfload-tool --update


5

You have to use a font that has the required glyphs. They are in FreeSerif, for instance. Here's how you can use them directly, by hiding the font change in a macro: \documentclass{scrartcl} \usepackage{fontspec} \usepackage{newunicodechar} \setmainfont{Linux Libertine O} \setsansfont{Linux Biolinum O} \newfontface{\freeserif}{FreeSerif} % for the ...



Top 50 recent answers are included