XeTeX ⇒ How can I produce the same output? (Hoefler example)
How can I produce the same output? (Hoefler example)
how can I re-produce the text which can be seen in right picture here?
I have now Hoefler Text Regular (apparently it came with Adobe Reader X) and would like to get this example by myself. It looks great!
(colors aren't important)
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How can I produce the same output? (Hoefler example)
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How can I produce the same output?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How can I produce the same output? (Hoefler example)
Addendum:
I have not been able to spot the font in the AR installation path (used to be in the »Resource\Font« folder). So I'm afraid I can't help any further. As far as I know Hoefler Text comes with a Mac.Montag wrote:I have now Hoefler Text Regular (apparently it came with Adobe Reader X) and would like to get this example by myself
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How can I produce the same output?

(I'm sure Linux doesn't have the same font organisation like Windows.)
About getting Hoefler Text, I don't know how I got it. About 2 weeks ago I did a complete re-install of my sstem, so I know for sure that it didn't come with software I didn't install, meaning illegally obtained software. Thus it must have been OO3 (doubtful) or Gimp (doubtful) or MikTeX (doubtful) or maybe my printer or scanner driver (wouldn't know why it would come with that software). Or maybe it was installed with a NVIDIA graphics driver? Hm ... kind of excited to find out how I got it now.

How can I produce the same output? (Hoefler example)
Code: Select all
%%%% Quelle (teilweise): http://en.wikibooks.org/wiki/LaTeX/Print_version
\documentclass{article}
\usepackage{ifxetex}
\ifxetex
\usepackage{fontspec}
\usepackage{xunicode}
\defaultfontfeatures{Mapping=tex-text} % To support LaTeX quoting style
\setmainfont[
BoldFont = 24521.ttf,
ItalicFont = 24520.ttf,
BoldItalicFont = 24522.ttf
]{24519.ttf}
%\setmainfont{Hoefler Text Regular}
%\setsansfont{Myriad Pro}
%\setmonofont{Consolas}
%\fontspec{Georgia}
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi
\begin{document}
Lorem ipsum... \textbf{where is all the vegemite}
\end{document}

EDIT:
To reproduce the example mentioned in the opening post, the TeX code is:
Code: Select all
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% Dario Taraborelli (2008)
% The Beauty of LaTeX
% URL: http://nitens.org/taraborelli/latex
% Some rights reserved: CC-BY-SA
\documentclass[11pt,a4paper]{article}
\usepackage[dvipdfm, colorlinks, breaklinks, pdftitle={The Beauty of LaTeX},pdfauthor={Taraborelli, Dario}]{hyperref}
\usepackage[usenames]{color}
\definecolor{Gray}{rgb}{.7,.7,.7}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\newcommand{\red}[1]{\color{red} #1}
\newcommand{\old}[1]{\fontspec[Alternate=1,Ligatures={Common, Rare}, Swashes={LineInitial, LineFinal}]{Hoefler Text}\fontsize{24pt}{30pt}\selectfont #1}%
\newcommand{\smallprint}[1]{\fontspec{Adobe Garamond Pro}\fontsize{10pt}{13pt}\color{Gray}\selectfont #1}%
\begin{document}
\thispagestyle{empty}
\old\begin{quote}
{\red Q}ue di{\red ct}es vous de mon appel,\\
Garnier ? Fis je sens ou folie ?\\
Toute be{\red st}e garde sa pel\\
{\red Q}ui la contraint, e{\red ff}orce ou lie\\
S'elle peut, elle se deslie
\end{quote}
\vfill{}
\raggedleft\smallprint{D. Taraborelli (2008), \href{http://nitens.org/taraborelli/latex}{The Beauty of \LaTeX}\\\emph{Some rights reserved}. \href{http://creativecommons.org/licenses/by-sa/3.0/}{\textsc{cc-by-sa}}
}
\end{document}