Tag Info

New answers tagged

3

The document @Sverre wrote, but with LuaLaTeX gives a correct output. However, as @UlrikeFischer said, it seems to be “wrong” in many ways. %!TEX TS-program = lualatex \documentclass{article} \usepackage[utf8]{luainputenc} \usepackage[T1]{fontenc} \usepackage{mathptmx} % Times font \usepackage{helvet} % Helvetica font \usepackage{courier} % Courier font ...


4

There are many way to write with your preferred fonts. Just one simple example with XeLaTeX/LuaLaTeX % !TEX program = xelatex % !TEX encoding = utf8 \documentclass[journal,a4paper]{IEEEtran} \usepackage{fontspec} \defaultfontfeatures+[\sffamily,\ttfamily]{Scale=MatchLowercase} \setmainfont{FreeSerif} \setsansfont{FreeSans} \setmonofont{FreeMono} ...


2

Replacing \usepackage[cross,center,width=216mm,height=303mm]{crop} % bleed is 6mm by \usepackage[mirror,cross,center,width=216mm,height=303mm]{crop} % bleed is 6mm \makeatletter \newsavebox\WholePageBigBox \renewcommand*\CROP@genreflect[1]{% \leavevmode \savebox\WholePageBigBox{\hb@xt@\paperwidth{\vbox ...


5

The syntax is not \ifx<firsttoken><secondtoken>{<true code>}\else{<false code>}\fi The correct one is \ifx<firsttoken><secondtoken><true code>\else<false code>\fi So you can remove the braces around {#1} and {#2} (which, in the case of \usepackage{fontspec} act as a group delimiter).


0

On OSX, I was able to get things working in the following way: Install to default user location (/Users/john/Library/Fonts) mkluatexfontdb --force --verbose=-1 -vvv That's all it took!


0

Does this work (assuming the MinionPro package) \def\@biblabel#1{[{\figureversion{lining}#1}]}


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


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.


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


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/msttcorefonts analogically(!) like other already available fonts. NB ...


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



Top 50 recent answers are included