Hot answers tagged

37

Combining results from the questions cited in my comments... namely, doncherry's use of the fts "Teen Spirit" font (http://www.tug.dk/FontCatalogue/teenspirit/) referenced at How do I make my document look like it was written by a Cthulhu-worshipping madman?. I also used my answer at What are the ways to position things absolutely on the page? Below, I ...


10

You can add declarations for such inputs: \documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{FB01}{fi} \begin{document} find \end{document}


4

You have to confine the font selection only where needed. \documentclass{article} \usepackage{fontspec}% typeset with xelatex \usepackage{tikz} \usepackage{xstring} \usepackage{multicol} \defaultfontfeatures{Extension=.otf} \usepackage{fontawesome} \begingroup\lccode`\|=`\\ \lowercase{\endgroup\def\removebs#1{\if#1|\else#1\fi}} \newcommand{\macroname}[1]{\...


4

Don't use inputenc or fontenc with xetex. Use fontspec and then specify any opentype font you have on your system. I used one example below. \documentclass[10pt,foldmark,notumble]{leaflet} %\usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \renewcommand*\foldmarkrule{.3mm} \renewcommand*\foldmarklength{5mm} \usepackage{url} \usepackage{amsmath} %\...


3

If you are compiling with pdflatex, this is one of several ways to get Times New Roman font for both math and text: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{newtxmath,newtxtext} \usepackage{lipsum} % just to generate dummy text \begin{document} \lipsum \end{document} \setmainfont is a command of the fontspec package, which you can't ...


1

The idea for this comes from David Carlisle in chat. Basically, you put the listing in a box that will be scaled down if wider than some width. The adjustbox package provides an easy interface for doing just this. Note however, as Ulrike Fischer mentions in chat, that this may well end up looking horrible (such as my example below), but if looks are ...


1

In texmf-dist/doc/latex/arabi/user_guide.pdf, pages 50–51 give samples of fonts from Microsoft and from arabeyes.org. And the documentation for dad shows examples of its output. Of course, with xetex and luatex, you can use any unicode, OpenType font, whether free or commercial. Here are some free fonts: \documentclass{article} \usepackage[novoc]{...



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