Information and discussion about
XeTeX , an alternative for pdfTeX based on e-Tex
gioacchele
Posts: 5 Joined: Fri Mar 27, 2009 12:45 pm
Post
by gioacchele » Wed Jul 08, 2009 4:20 pm
Hi all
I've used xelatex and fontspec.sty to use custom opentype fonts in latex documents. Everything seems to work except for the fact i don't see footnote symbols (like asterisk, dagger, etc.) using the command \thanks{} in the \title or \author fields.
Here's an example
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{fontspec}
% set fonts
\fontspec{Cronos Pro}
\setromanfont{Cronos Pro}
\title{\begin{center}This is a Title\end{center}}
\author{Random J. Author\thanks{Ministry of Silly Walks}}
\date{}
\begin{document}
\maketitle
\paragraph{1} Blablabla
\end{document}
You can find the pdf output enclosed.
Any ideas?
Thanks!
Attachments
example.pdf
Output (11.87 KiB) Downloaded 1069 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
localghost
Site Moderator
Posts: 9202 Joined: Fri Feb 02, 2007 12:06 pm
Post
by localghost » Wed Jul 08, 2009 5:24 pm
Replace the
inputenc package with
xunicode . Take also a look at
xltxtra package. Omit the mysterious
center environment around the title. It is completely superfluous since the title is centered automatically.
Best regards
Thorsten
gioacchele
Posts: 5 Joined: Fri Mar 27, 2009 12:45 pm
Post
by gioacchele » Thu Jul 09, 2009 11:32 am
It works including the xltxtra package.
Thanks a lot!
amir
Cadwallon
Posts: 8 Joined: Sun Jul 27, 2014 1:38 pm
Post
by Cadwallon » Tue Aug 05, 2014 4:21 pm
I have a very similar issue using fontspec.
In fact, writing a document of three authors, all the authors' thanks are just yielded as the last one's: Double-dagger.
Code: Select all
\documentclass[10pt]{extarticle}
% \usepackage[latin1]{inputenc} % not for XeLaTeX
\usepackage{xltxtra}
% Fontspec for Fonts
\usepackage{fontspec}
\setmainfont{Palatino Linotype}
\setsansfont{Futura Std Book}[Scale=MatchUppercase]
\setmonofont{Courier New}[Scale=MatchLowercase]
\usepackage{titling}
\pretitle{\begin{center}\LARGE\sffamily}
\posttitle{\par \end{center}\vskip 0.5em}
\preauthor{\begin{center}
\large\sffamily \lineskip 0.5em%
\begin{tabular}[t]{c}}
\postauthor{\end{tabular}\par\end{center}}
\predate{\begin{center}\large\sffamily}
\postdate{\par\end{center}}
\title{Brief Review}
\author{
Cadwallon
\thanks{ \sffamily Main Author}
\and Author 2
\thanks{ \sffamily Sidekick}
\and Author 3
\thanks{ \sffamily Sidekick}
}
\date{ \today}
\begin{document}
\maketitle
\end{document}
This yields the following pdf.
Attachments
test_Main.pdf
(13.68 KiB) Downloaded 683 times
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Tue Aug 05, 2014 4:51 pm
I do not possess the fonts, can you please run the following example and state the result?
Code: Select all
\listfiles\documentclass{extarticle}
\usepackage{fontspec}
\title{Brief Review}
\author{
Cadwallon%
\thanks{ \sffamily Main Author}
\and Author 2%
\thanks{ \sffamily Sidekick}
\and Author 3%
\thanks{ \sffamily Sidekick}
}
\begin{document}
\maketitle
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Cadwallon
Posts: 8 Joined: Sun Jul 27, 2014 1:38 pm
Post
by Cadwallon » Tue Aug 05, 2014 5:24 pm
The result concerning the thanks is the same. All authors have double-daggers.
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Tue Aug 05, 2014 5:34 pm
If you copied my example your log-file contains a file list at the end. I guess somewhere your versions are out of date. Please compare with my filelist, as i can see the expected output.
Code: Select all
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.7.11) 5 AUG 2014 16:45
*File List*
extarticle.cls 1996/10/08 v1.0 Non Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
exscale.sty 2007/10/29 v2.1h Standard LaTeX package exscale
fontspec.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
expl3.sty 2014/01/07 v4646 L3 Experimental code bundle wrapper
l3names.sty 2014/01/04 v4640 L3 Namespace for primitives
l3bootstrap.sty 2014/01/04 v4640 L3 Experimental bootstrap code
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty 2014/01/04 v4642 L3 Basic definitions
l3expan.sty 2014/01/04 v4642 L3 Argument expansion
l3tl.sty 2013/12/27 v4625 L3 Token lists
l3seq.sty 2013/12/14 v4623 L3 Sequences and stacks
l3int.sty 2013/08/02 v4583 L3 Integers
l3quark.sty 2013/12/14 v4623 L3 Quarks
l3prg.sty 2014/01/04 v4642 L3 Control structures
l3clist.sty 2013/07/28 v4581 L3 Comma separated lists
l3token.sty 2013/08/25 v4587 L3 Experimental token manipulation
l3prop.sty 2013/12/14 v4623 L3 Property lists
l3msg.sty 2013/07/28 v4581 L3 Messages
l3file.sty 2013/10/13 v4596 L3 File and I/O operations
l3skip.sty 2013/07/28 v4581 L3 Dimensions and skips
l3keys.sty 2013/12/08 v4614 L3 Experimental key-value interfaces
l3fp.sty 2014/01/04 v4642 L3 Floating points
l3box.sty 2013/07/28 v4581 L3 Experimental boxes
l3coffins.sty 2013/12/14 v4624 L3 Coffin code layer
l3color.sty 2012/08/29 v4156 L3 Experimental color support
l3luatex.sty 2013/07/28 v4581 L3 Experimental LuaTeX-specific functions
l3candidates.sty 2014/01/06 v4643 L3 Experimental additions to l3kernel
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
xparse.sty 2013/12/31 v4634 L3 Experimental document command parser
fontspec-patches.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTe
X
fixltx2e.sty 2006/09/13 v1.1m fixes to LaTeX
fontspec-xetex.sty 2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many oth
er characters in Unicode lower plane
eu1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
xetex.def 2014/04/07 v0.99 LaTeX color/graphics driver for XeTeX (RRM/JK)
fontspec.cfg
t3cmr.fd 2001/12/31 TIPA font definitions
***********
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Cadwallon
Posts: 8 Joined: Sun Jul 27, 2014 1:38 pm
Post
by Cadwallon » Tue Aug 05, 2014 5:48 pm
For the sake of brevity, pray tell, how did you call your XeLaTeX to obtain a logfile of this style? Mine contains the full path to the files.
Johannes_B
Site Moderator
Posts: 4182 Joined: Thu Nov 01, 2012 4:08 pm
Post
by Johannes_B » Tue Aug 05, 2014 6:14 pm
Really? My output should be standard. But it's ok if the filenames are there, as long as you can see the version numbers.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Cadwallon
Posts: 8 Joined: Sun Jul 27, 2014 1:38 pm
Post
by Cadwallon » Tue Aug 05, 2014 6:38 pm
Ok, I figured out.
In fact, it looks like I have up to date versions.
However, there are several 13something.sty not included in my list.
I use TexLive 2014.
Code: Select all
This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014/W32TeX) (preloaded format=xelatex 2014.7.23) 5 AUG 2014 18:16
*File List*
extarticle.cls 1996/10/08 v1.0 Non Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
exscale.sty 2007/10/29 v2.1h Standard LaTeX package exscale
fontspec.sty 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
expl3.sty 2014/07/20 v5241 L3 programming layer (loader)
expl3-code.tex 2014/07/20 v5241 L3 programming layer
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3unicode-data.def 2014/06/30 v5166 L3 Unicode data
l3xdvipdfmx.def
xparse.sty 2014/07/20 v5241 L3 Experimental document command parser
fontspec-patches.sty 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
fontspec-xetex.sty 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
fontenc.sty
eu1enc.def 2010/05/27 v0.1h Experimental Unicode font encodings
eu1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern
xunicode.sty 2011/09/09 v0.981 provides access to latin accents and many oth
er characters in Unicode lower plane
eu1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern
graphicx.sty 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/05/08 v1.15 key=value parser (DPC)
graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
xetex.def 2014/04/28 v4.01 LaTeX color/graphics driver for XeTeX (RRM/JK)
fontspec.cfg
t3cmr.fd 2001/12/31 TIPA font definitions
***********