XeTeXHow can I produce the same output? (Hoefler example)

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How can I produce the same output? (Hoefler example)

Post by Montag »

Hello,

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)
Last edited by Montag on Thu Jun 02, 2011 12:27 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How can I produce the same output? (Hoefler example)

Post by localghost »

I seem to remember that the fontspec manual has some examples with »Hoefler Text«. So this would be my favorite source for information.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: How can I produce the same output?

Post by Montag »

Thank you. I gave up. The font selection thing is some sort of a mystic scheme to me. :/
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

How can I produce the same output? (Hoefler example)

Post by localghost »

I can't make promises. But I will try to reproduce the desired output. Have to get the font first and install it on my (Linux) system.

Addendum:
Montag wrote:I have now Hoefler Text Regular (apparently it came with Adobe Reader X) and would like to get this example by myself
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: How can I produce the same output?

Post by Montag »

Thanks, Thorsten, it was just not this particular example. I successfully got XeTeX to work for a very simple example with Hoefler Text, except I already fail when trying to produce bbold formatated text. I don't really get it ... at all. :) I fear that you using Linux is nearly useless in the sense of helping a Windows user (me) struggling with the font names and especially its styles. But thank you!
(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. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How can I produce the same output? (Hoefler example)

Post by Montag »

Thorsten, I managed to get some properly formatted output via:

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}
which is great. Could you please continue work on that example you wanted to start? :)


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}
Credit goes to Dario Taraborelli - the code/example on Wikipedia can be found on http://nitens.org/taraborelli/latex.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply