Hot answers tagged


Here is an image-based approach. The scaling is not perfect, but it's pretty close. The basic idea is to set the height of the image to the sum of the height of G and the depth of g in the current font. Then lower the image by the depth of g to attempt to align the baseline. Unfortunately, this method is dependent on the descender depth and capital height ...


Do you mean this: \documentclass[12pt]{book} \usepackage{fontawesome} \begin{document} Some foo text with \faGoogle \end{document} Update with Futura-Normal font and using XeLaTeX. The colour definitions are taken from Google new logo, the font is Product Sans, but this font isn't free, therefore I choose Futura-Normal ...


Logical markup is always possible with a \newcommand{...}[1]{...} and using grouping to prevent leaking of font declarations or color settings into the rest of code. For more sophisticated approaches I recommend however appropiate packages for the relevant purpose. For code markup, there are minted, listings and tcolorbox (with its listings features) ...


save the font file into your systems font directory or in TeX's font directory: TEXMF/fonts/truetype/ For the latter run texhash of update the file name data base for a MikTeX distribution. Then you do not need to specify a path.


You could draw this with tikz: \documentclass{article} \usepackage{amsmath,tikz} \newcommand{\curvearc}{\tikz[trim left]{\draw[->] (0,0) to[bend left] (1em,0);}} \begin{document} \( \stackrel{\curvearc}{AB} \) \end{document} If you would like the width of this arrow symbol to vary with the material underneath and then you can use the following ...


\usepackage{fourier} Then $\wideOarc{AB}$ However, as Andrew Swann noted in a comment, loading the fourier package changes all the fonts in the document.


This is a second-best solution if you don't have a licensed copy of Adobe Garamond Pro: install the ebgaramond package and say \usespackage{ebgaramond}. This package installs an open-source cut of Garamond by Georg Duffner that I find extremely well done.


On a Unix-like system (all I know) you could create symlinks "fonts" to the top level "fonts/" repertory which is referred to by the main document. This could work. Untested due to absence of MWE.


First the obvious: if you really want your source to work with \setmainfont{Adobe Garamond Pro} you need Adobe Garamond Pro ... Further you are with xelatex on Mac OS, which is not the same as xelatex on other systems. The simplest with xelatex on Mac OS is to have the font installed on your Mac in the Mac way. This can be done via FontBook application and ...


This works fine with pdflatex: \documentclass[10pt,a4paper,final]{article} \usepackage[T1]{fontenc} \usepackage{mathpazo,euler} \usepackage[scaled=0.9]{DejaVuSansMono} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{listings} \lstset{basicstyle=\ttfamily} \begin{document} Se utiliza un valor \lstinline!boolean! para poder tener en ...


If you create a textual picture like this: picture pp; pp = "proof" infont "pplri8r"; it will be created with the origin of the text sitting at coordinates (0, 0); then you can get the dimensions like this wd = xpart urcorner pp; ht = ypart urcorner pp; dp = ypart lrcorner pp; You could use this idea to measure individual characters, but ...

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