Tag Info

Hot answers tagged

6

If you don't load hyperref, then you'd get macro:->\T1-cmd \textasciitilde \T1\textasciitilde although the default encoding is EU1 (or EU2 with LuaLaTeX). With hyperref you get macro:->\PU-cmd \textasciitilde \PU\textasciitilde because puenc.def has been loaded later. The macro \PU-cmd looks for two arguments and does ...


5

Without any warranty: \documentclass[journal, a4paper]{IEEEtran} \usepackage{etoolbox} \usepackage{fontspec} \setmainfont{TeX Gyre Termes} \setsansfont{TeX Gyre Heros} \setmonofont{TeX Gyre Cursor} \usepackage{lipsum} % just for the example \makeatletter \def\CHANGEDGETFIRSTWORD"#1" #2\relax{"#1" #2} \patchcmd{\IEEEPARstart} {\@IEEEPARstartFONTSTYLE} ...


4

There are many way to write with your preferred fonts. Just one simple example with XeLaTeX/LuaLaTeX % !TEX program = xelatex % !TEX encoding = utf8 \documentclass[journal,a4paper]{IEEEtran} \usepackage{fontspec} \defaultfontfeatures+[\sffamily,\ttfamily]{Scale=MatchLowercase} \setmainfont{FreeSerif} \setsansfont{FreeSans} \setmonofont{FreeMono} ...


3

The document @Sverre wrote, but with LuaLaTeX gives a correct output. However, as @UlrikeFischer said, it seems to be “wrong” in many ways. %!TEX TS-program = lualatex \documentclass{article} \usepackage[utf8]{luainputenc} \usepackage[T1]{fontenc} \usepackage{mathptmx} % Times font \usepackage{helvet} % Helvetica font \usepackage{courier} % Courier font ...


3

Well, according to what you have explained, what you need is not really translate, simply adapt your code to use XeLaTeX instead of pdflatex that is according to what I see, most affordable and easy to do. Remember that the charm of XeLaTeX resides in to use true type fonts and especially open type easily in LaTeX. So you can bring together the best of both ...


3

Converting the comment into answer. TeX doesn't hyphenate the first word. You can add \hspace{0pt}, and trick TeX to treat the long word as not the first word. Using \hspace{0pt} lasdsdasdasdasdasddasdllasfsdjfsd should do the job in the present case. You may prefer to put it in the column definition itself like >{\hspace{0pt}}X thereby avoiding its ...


1

mathspec is basically a collection of hacks; using a real Unicode Math font is better, if your document deals with mathematics. However, here's a way to get bold digits: \documentclass{article} \usepackage{amsmath,bm} \usepackage{mathspec} \setmathsfont(Digits,Latin,Greek){FreeSerif} \setmathrm{FreeSerif} \setmainfont{FreeSerif} \makeatletter ...



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