# Tag Info

4

Here I introduce \varlet[stem]{letter}, where stem is used if the stem is not to be taken as the original letter. For example, in the case of D and E, the stem is a capital I. The shift length is defined by \shiftgap. Thanks to barbara for suggesting it be measured in em (a horizontal font measure) and not ex (a vertical font measure). Note that proper ...

3

You have \usepackage{mathptmx} followed later by \usepackage{lmodern}. This means that the mathptmx font choices and settings are applied first and then they are overridden by those from lmodern (which is close to the default LaTeX font). So all you need to do is remove the \usepackage{lmodern}.

1

I've used any font from the CTAN catalouge and I always find this type of font switches kind of annoying and clunky. You can instead use whatever font you wish from your system using fontspec and switching to either Lua- or Xe-Latex compilation. \documentclass{article} \usepackage{multirow,booktabs,pgfplotstable,lipsum} \usepackage[T1]{fontenc} ...

1

I just found out that you can trick XeTeX into using system wide fonts for text using plnfss's ability to read ordinary fd files from the LaTeX fss. As an example, we shall use Computer Modern Unicode. Copy the following code into eu1cmr.fd. \ProvidesFile{EU1cmr.fd} [2015/07/06 font definitions for EU1/cmr.] \DeclareFontFamily{EU1}{cmr}{} ...

5

fouriernc does not specify a sans serif font. By default, you will therefore get Computer Modern Sans. Since you are loading fontenc with option T1, these will be postscript type1 versions from, usually, cm-super. And, indeed, completing your document and compiling to PDF throws no error and shows that all fonts are, indeed, scalable type1: name ...

0

Just remove \usepackage{polski} altogether and you should be fine. All its functionality is covered by \usepackage[polish]{babel}.

5

You can use \text: \documentclass{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{fouriernc} \usepackage[scaled=0.83]{helvet} \usepackage[scaled=0.82]{luximono} \usepackage{marvosym,pifont} \usepackage{mathtools} \newcommand{\T}{\text{\sffamily\bfseries\slshape T\/}} \begin{document} I like $\T$ to be a slanted and sans serif ...

3

The question is somewhat general, but refers to the specific problem of periods, which have a special meaning for TeX delimiters. (Choosing other punctuation from other fonts works fine, right?) My understanding is that they should always have delcode of zero; unicode-math has a line of code to ensure this, and due to a broader bug in how range is ...

1

Yes, you can get what you want, but I heartily discourage you from doing so. The fourier package uses different font encodings for the math fonts, that it sets up at begin document, so after pxfonts has performed its duties: of course this utterly confuses math typesetting, because symbols will point to very different slots than expected by pxfonts. The ...

2

You can make \wideOarc accessible (all needed information is in fourier.sty): \documentclass[11pt,oneside]{article} \usepackage[utf8]{vietnam} \usepackage{fourier} \usepackage{pxfonts} \DeclareSymbolFont{largesymbols}{FMX}{futm}{m}{n} \DeclareMathAccent{\wideOarc}{\mathord}{largesymbols}{228} \begin{document} $\wideOarc{AB}$ \end{document} A brief ...

1

Using Computer Modern for math with Libertine as main text font can take you before the Spanish Inquisition and you could be sentenced to the comfy chair. Be advised. ;-) You can do much better: the package newtxmath accepts the option libertine and provides math symbols that go along well with Linux Libertine. \documentclass{article} \usepackage{amsmath} ...

1

natbib in the presence of hyperref uses the url package to format these and that package defines a sans serif style which you can invoke with \urlstyle{sf} For the DOI field, natbib defines the command \doi via something like \providecommand{\doi}[1]{doi: #1} which you can override with \newcommand{\doi}[1]{doi: \url{#1}} ...

1

You could redefine the rm-urlstyle: \documentclass{article} \usepackage{natbib,hyperref} \usepackage{helvet} % helvetica font \renewcommand{\familydefault}{\sfdefault} %\usepackage{sfmath} % helvetica for math mode too \makeatletter \def\url@rmstyle{% \def\UrlFont{\sffamily}} \makeatother \begin{document} test \citet{foo2010} ...

4

Ah, thanks very much for spotting this! The reason this occurs is two-fold. Firstly, when loading a maths font, unicode-math queries it to establish the sizes it should define for script and scriptscript sizes. After doing this, it needs to re-load the font with these new sizes, and that wasn't happening. (I don't know if this was actually a problem in ...

0

You can use the similar commands \mathmbox or \mathmakebox provided by the mathtools package.

2

opmac defines its own font selection scheme in the ams-math.tex file with the \regtfm and auxiliary macros. Unfortunately, this fss works only for ordinary tfm fonts, afaik. Again, unfortunately, the macros are documented only in Czech; fortunately, they are simple yet somewhat terse.

5

Your log-file says LaTeX Font Info: No file OT1qtm.fd. on input line 862. LaTeX then falls back to cmr and so you are missing the bold font. The missing file is from the TeX-Gyre fonts. You will have to install them, or remove the code which change to this font, or add something like \usepackage{mathptmx} in your document to switch to another font.

1

That the math font for \mathcal changes, when package txgreeks is loaded, is not an incompatibility, but intended behavior, the abstract of package txgreeks: The TX Fonts 1 of Young Ryu provide a very complete replacement for the default math fonts of TeX and LaTeX, containing all CM symbols and even all symbols from the AMS fonts, and more. In ...

3

It's a well known problem with mathspec; you have to precede the letter with " in order that superscripts are better placed: \documentclass{article} \usepackage{amsmath} \usepackage{sfmath} \usepackage{mathspec} %\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} \setmainfont{Universalis ADF Std} \setmathfont{XITS Math} ...

-2

WARNING This brings incompatibilities into your TeX installation. Do this only if you understand what you are doing. Thanks to everyone! With the help of your answers I obtained the solution. Just to sum it up, here are all the steps: All the files will be tested in current directory: mkdir mydir && cd mydir Copy the default font to be ...

4

The titling package allows you to reformat the title etc. relatively painlessly. However, even using egreg's font size suggestion, your title took the entire first page when I tested, without even room for the date. So I've used a somewhat smaller size for purposes of demonstration. I'd still recommend a smaller size but you may have different ideas. ...

2

Quick and dirty: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage{mathpazo} \usepackage{blindtext} \title{\fontsize{40}{45}\scshape\bfseries\noindent Hinter eines Baumes Rinde wohnt die Made mit dem Kinde. Sie ist Witwe, denn der Gatte, den sie hatte, fiel vom Blatte. ...

6

There is no boldface small caps font available, so you won't get it. Also \fontsize{50}{50} is not really something one wants to do. What you have to modify is not the \title command, but the \maketitle command. What \title does is just storing the title is a safe place for later retrieval, when the document header will be typeset. Don't forget the sc ...

2

A bit long as a comment so I'm adding this as answer. As it looks as if you don't take the font metrics into account here an example to show you that you can't simply exchange glyphs. The following document uses only one "real" font: sftt1000.pfb. The first paragraph sets this font using the metrics from the normal roman family and the second the correct ...

2

In the case of dvipdfmx, it seems that cmr10.vf is not read if the original map is effective. The follwoing gives an output which Igor wants: \special{pdf:mapline -cmr10 CMR10 <cmr10.pfb} \special{pdf:mapline +ocmr10 CMR10 <cmr10.pfb} \nopagenumbers \font\xxx=cmr10 \xxx M \bye

2

Disclaimer: I do not recommend changing the metrics of standard font files, especially not on system level. Using a new font name and configuring the TeX file/package/... to use the new font name instead seems the cleaner approach to me. In the virtual font, ocmr10.tfm is referred. But only the metrics exists. An actual font mapping is needed, but you ...

0

If you are looking for fonts with small-caps, you might find my font sampler useful, but you should note that it is not comprehensive. It is also restricted to fonts which can be easily used with (pdf)TeX i.e. it does not deal with XeTeX or LuaTeX. Doubtless there are better lists but The LaTeX Font Catalogue seems not to group fonts according to this ...

0

... so after installing Source Sans Pro,modify friggeri-cv.cls as follows: \newfontfamily\bodyfont[]{SourceSansPro} \newfontfamily\thinfont[]{SourceSansPro ExtraLight} \newfontfamily\headingfont[]{SourceSansPro Black} \defaultfontfeatures{Mapping=tex-text} \setmainfont[Mapping=tex-text, Color=textcolor]{SourceSansPro Light}

3

Only hints how to change the fonts, although there are other ways, of course. The standard font is Computer Modern, to use a font it's necessary to know it's font family and available shapes/series. Important is the \selectfont command. \documentclass{article} \usepackage[scaled=0.92]{helvet} \usepackage{courier} \usepackage{blindtext} \begin{document} ...

4

Something like this? This takes a maths alphabet. You can avoid this if necessary but if you want several symbols from the font, it is more straightforward this way. \documentclass{article} \DeclareSymbolFont{extraitalic} {U}{zavm}{m}{it} \DeclareMathSymbol{\Qoppa}{\mathord}{extraitalic}{161} \DeclareMathSymbol{\qoppa}{\mathord}{extraitalic}{162} ...

4

Since QuickLaTeX allows a custom preamble you can simply add a font package, just like you would in a LaTeX document: $[preamble] \usepackage{chemfig} [/preamble] \chemname{\chemfig{CH_3-CH(-[2]CH_3)-CH_2-Cl}}{Isobutyl chloride}$ [latex] [preamble] \usepackage{libertine} \usepackage[libertine]{newtxmath} \usepackage{chemfig} [/preamble] ...

4

I would say that really much depends on what you are trying to achieve. Do you want to make a class that others can use as well? You can define your own commands for sectioning. Are there just minor changes within one of your documents? Use package etoolbox and patch your changes. Are there bigger changes to the sectioning and titles? Package titlesec is ...

5

The titlesec or sectsty packages are your friends for the standard classes. If you want some more control, try the komascript classes or memoir. See the UKTeXFAQ.

3

If you have Charis SIL in your computer (or any font that supports IPA characters), then you can use Xelatex or Lualatex. Here's an example with Xelatex. Alternatively you can also use the tipa package with pdflatex, see also the relevant Wikipedia page, but you would not be entering IPA directly, rather you'd use regular letters and Latex will interpret ...

1

I don't own the fonts, so this might be wild guess. But in general, you should have received a zip(?) file and you have to extract the files into your texmf-local directory. You can locate your texmf-local directory at command prompt with: kpsewhich -var-value=TEXMFLOCAL The general directory layout of files to extract to is shown below: ...

3

The bidi package loaded by polyglossia together with the Urdu language definition file doesn't know about elsarticle, so it redefines \maketitle as if it were the one in article, which is fully incompatible with what elsarticle expects. Here's a workaround. \documentclass[3p]{elsarticle} % save \maketitle as defined by elsarticle ...

4

The font is Computer Modern Sans Serif, the sans-serif variant of the default Computer Modern. You can compare the characters for reference: \documentclass{article} \begin{document} \textsf{supp, gr, R, r} \end{document} It might be Latin Modern Sans Serif as well, a font derived from Computer Modern that I think is indistinguishable form Computer Modern ...

12

The font is Computer Modern Sans. The document is not particularly well typeset, as it mixes Computer Modern math with Times New Roman for text, which should never be done. I can reproduce the output with the following input, apart from the line length: \documentclass[a4paper]{article} \usepackage{times} \addtolength{\textwidth}{-2.78cm} \begin{document} ...

2

I prepared a file amspptfont.tex with the following contents \chardef\atfontcatcode=\catcode\@ \catcode@=11 % the plain fonts \font@\tenrm="[cmunrm]" at 10pt \font@\sevenrm="[cmunrm]" at 7pt \font@\fiverm="[cmunrm]" at 5pt \font@\tenbf="[cmunbx]" at 10pt \font@\sevenbf="[cmunbx]" at 7pt \font@\fivebf="[cmunbx]" at 5pt \font@\tentt="[cmuntt]" at 10pt ...

1

Simple examples: \documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{skins} \usepackage[T1]{fontenc} % manual p. 14 \newtcolorbox[auto counter]{advice}[1][Usage]{colback=blue!5!white, colframe=blue!75!black, fonttitle=\bfseries, title=Tip~\thetcbcounter: #1} \newtcolorbox{warning}[1][]{colback=red!5!white, colframe=red!75!black, ...

1

Don't run updmap. If you have run updmap, delete the directory named .texliveYYYY (e.g. .texlive2013) from your home directory. Note that the name of the directory begins with a dot. To be safe, rename it rather than deleting it. (Deleting the directory is safe but deleting some other directory which you think it this one may not be at all safe.) Always use ...

2

Just put the individual words in curly brackets, as follows: {لها} {عماد} {لا} {بيوتا} {يبني} {العلم} with: \usepackage [utf] {arabxetex}

4

The first thing to diagnose for "XeTeX running slowly" problems is to compile the document with xelatex -no-pdf, and then run xdvipdfmx manually on the resulting .xdv file. Timing each one separately will indicate whether it's XeTeX running slowly or xdvipdfmx. The next step is to figure out if it's XeTeX or fontspec at fault. I would be surprised if it ...

3

Follow ONLY steps 1-4 from the linked instructions. Steps 5-6 and 8 are simply wrong. Step 9 is pointless and step 7 is inefficient. Instead, after completing step 4, do this: ./scripts/install $(kpsewhich -var TEXMFLOCAL) mkdir -p --parents$(kpsewhich -var TEXMFLOCAL)/web2c echo Map MinionPro.map >> $(kpsewhich -var TEXMFLOCAL)/web2c/updmap.cfg ... 2 The triangle is hard-coded in its size. Therefore its definition needs to be adapted. The original definition can be found in beamerinnerthemedefault.sty: \defbeamertemplate*{itemize item}{default}{% \scriptsize\raise1.25pt\hbox{\donotcoloroutermaths$\blacktriangleright$}} Example, which makes the triangle smaller and sets the font to \footnotesize: ... 2 An "as-it-is environment" is environment is given by verbatim: \begin{verbatim} REMARK ATOM 1 O25 KKM 1 41.799 30.649 -26.049 ATOM 2 C25 KKM 1 41.727 29.258 -25.898 ATOM 3 C24 KKM 1 42.793 28.745 -24.865 ATOM 4 C23 KKM 1 44.141 29.190 -25.292 ATOM 5 C22 KKM 1 44.161 ... 4 If your aim is to change the typesetting of operator names to use sans serif type, you should define a new symbol font: \documentclass{article} \usepackage{amsmath} % a new symbol font for names of operators \DeclareSymbolFont{sfoperators}{OT1}{cmss}{m}{n} % don't waste a math group \DeclareSymbolFontAlphabet{\mathsf}{sfoperators} % tell LaTeX to use ... 2 It's not possible to name all of the fonts that have this property, because there is no comprehensive list of all of the fonts on the planet, complete with their font metrics. 3 I do not know which is your system --- in TeXLive pdftex should embed all fonts by default since ages. In the linked article you can see it. To check, I used this MWE: \documentclass{article} \usepackage{mathpazo} \begin{document} This is just an example$a^b-\sqrt{c}\$. \end{document} and with the utility pdffonts: [romano:~/tmp] pdffonts example.pdf ...

3

\textit is command that takes an argument, it also is short, meaning you cannot have multiple paragraphs in there. A proper way would be to use \itshape and use it in a group, best to define your own environment. There are many ways to make this material stand out and recognized not to be part of the usual text. Below, i decided to use lines as well as a ...

Top 50 recent answers are included