# Tag Info

0

After an odyssey of trying anything that came to my mind and talking to Robert Koch i finally found a solution to my problem. I am going to post the answer so that in the off chance of someone running into the same issue in the future there is no need for endless trial and error. When i encountered the problem first i was using TeXstudio as an editor. ...

2

An up-to-date TeX distribution has the XCharter OpenType font, so you can use it instead of \renewcommand{\rmdefault}{bch} which will not give you anything except for ASCII characters. Moreover \la as you defined it is just a switch that tells XeLaTeX to use Brill from that point on. A correct document would be \documentclass{article} ...

2

in \la{N} the {} are not doing anything, \la does not take an argument, it switches font for the remainder of the current group. In this case that is the \end{enumerate} So at that point the font (and any other local declarations) revert to the values they had at \begin{enumerate}. It isn't clear if you intended \la just to change the font of N or if you ...

1

In my case, it was caused by a Greek symbol pasted directly into body text instead of inside an inline equation. My Lyx file was working fine until I did something and this error showed up, pointing at an equation that had been showing up just fine previously. I discovered that the problem was in fact that I had typed a Greek symbol in standard text (not ...

3

I don't know why you'd want to use mathptmx and substitute symbols from newtxmath instead of directly using the latter. The fonts provided by mathptmx are in large parts ugly, because they are built from various sources; in particular the Greek letters are nasty. However, here's how you can do for the integral. I'll leave to you other symbols. Note that ...

3

Provided you don't need scaling, at a minimum you need something like this: \documentclass[a4paper]{report} \DeclareFontEncoding{LMX}{}{} \DeclareFontSubstitution{LMX}{ntxexx}{m}{n} \DeclareFontFamily{LMX}{ntxexx}{} \DeclareFontShape{LMX}{ntxexx}{m}{n}{<->ntxexx}{} \DeclareFontShape{LMX}{ntxexx}{b}{n}{<->ntxbexx}{} ...

2

The packages MinionPro and MyriadPro from FontPro can be used together. By default, the math font is not changed by MyriadPro. With the sansmath option, the sans serif of \mathsf is adjusted and an additional math version is defined to allow two math fonts with matching math symbols in one document (see the documentation for that). Thus, the code ...

2

Your installation was correct. If you try other fonts, you would encounter no problems. You just were unlucky enough to try the Garamond font first. The KPSE* family and the updmap are not the issue here. Apparently, the problem lies with the documentation at the LaTeX font catalog which claims that Garamond is part of TeXLive. Garamond is only partially ...

0

Adding to Sverre's answer of using TeX Gyre Termes (tgtermes package): it doesn't work for me with \ttfamily / \texttt{} i.e. typewriter fonts. I get the following from pdftotext (version 0.12.4): rmfamily: zażółć gęsią jaźń ttfamily: za»óª¢ g¦si¡ ja¹« I have browsed The LaTeX Font Catalogue and found out the following solution -- use TXTT font for ...

3

You can use the Times font TeX Gyre Termes: \documentclass{article} \usepackage{tgtermes} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \input glyphtounicode \pdfgentounicode=1 \begin{document} \noindent \rmfamily rmfamily: zażółć gęsią jaźń \\ \ttfamily ttfamily: zażółć gęsią jaźń \\ \end{document} Copy and paste from the .pdf gives this ...

2


3

The mycmr10.vf file includes your new character width. So xdvi knows this from this source and the characters are overlap. But xdvi doesn't read the cmr10.tfm file (as mentioned in the previous thread). You can try this in your working directory: tftopl cmr10.tfm > cmr10.pl edit cmr10.pl in order the character A has different width. pltotf cmr10.pl ...

5

Your test is not conclusive. Consider the file \nopagenumbers \font\ptm=ptmr8r \ptm a \bye and compile it with tex -recorder, so a .fls file will be created containing information about the loaded files; I only removed the first line that reports the working directory PWD <not shown> INPUT /usr/local/texlive/2014/texmf.cnf INPUT ...

4

The tfm information is saved in .fmt file when tex -ini is run. The dvi output includes the shifts (numerically specified by internal unit) of current typesetting point. These commands are used at inter-word spaces, inter-letter kerns and at other vertical/horizontal spaces generated by TeX) the commands about typesetting the characters from the slots ...

9

The tfm file for cmr10 has been read and the relevant data is dumped in the format, and is not read again. You can see all the fonts that were read in your initex run. The tfm for all these are loaded into the format: \font\tenrm=cmr10 \font\preloaded=cmr9 \font\preloaded=cmr8 \font\sevenrm=cmr7 \font\preloaded=cmr6 \font\fiverm=cmr5 \font\teni=cmmi10 ...

1

sudo apt-get install texlive-fonts-recommended After installing the recommended fonts the compliation worked like a charm.

7

Robot comes in two versions, both of which may be seen and downloaded at publicobject.com/2014/06/26/roboto-old-and-new/. For a far more elaborate comparison, see the review by Stephen Coles, “Roboto Is Was a Four-headed Frankenfont,” at typographica.org. For now, the package roboto supplies the older version of the font. Users of luatex or xetex may ...

1

If you can't access these symbols from a Unicode font, but you can see them on screen, you could grab them in some form and then include them as a graphic. \documentclass{article} \usepackage{graphicx} \newcommand{\lbrackopen}{% \raisebox{-.6ex}{% \includegraphics[height=\baselineskip]{lbrackopen}% }% } \begin{document} I could use [this] ...

2

When you do \usepackage[<ENCODING>]{fontenc} the file <encoding>enc.def is loaded (the encoding name is converted to lowercase for reasons due to uniformity in the various file systems). For instance \usepackage[T1]{fontenc} will load t1enc.def. The start of this file is \ProvidesFile{t1enc.def} [2005/09/27 v1.99g Standard LaTeX ...

3

A full solution that neutralizes the pesky encoding specific commands: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[full]{textcomp} \usepackage{kpfonts} \DeclareTextSymbol{\textbornstd}{TS1}{98} \DeclareTextSymbol{\textdiedstd}{TS1}{100} \UndeclareTextCommand{\textborn}{TS1} \UndeclareTextCommand{\textdied}{TS1} ...

5


0

Firstly, if you are being asked to use a standard template then you should not change the defaults. Otherwise, there are two approaches. Approach 1 In IEEEtran version v1.8a, theorem titles are italic by default, unless you use the compsoc option, which gives a bold italic title. If you add this option then a minimal document with a theorem gives the ...

1

If this is what you expect to see in your LaTeX / XeTeX output … then you may just have to change the name of the font, which may be outdated in the example you got. I modified your example like this (with comments removed): \documentclass{article} \usepackage{fontspec} \setmainfont[Script=Devanagari]{Lohit-Devanagari} % Hindi -> Devanagari ...

7

Honest Answer: The answer is straightforward. Because I, the package author, did not have any sensible use case in mind, when writing the macro handling. Explanation: Because the mhchem syntax is so different from normal LaTeX, I have to parse it before any inner expansion. So I have to take care of macros early on and decide how to handle them. I had some ...

4

Provide the italic font to fontspec with its key-value option syntax. Note the reversed order of font-then-options and the fact that TeX ligatures (--/---/curly typographers' quotes) are set up automatically in the latest version of fontspec: \documentclass{article} \usepackage{fontspec} \setmainfont{Helvetica Neue Light}[ ItalicFont=Helvetica Neue Light ...

4

CW from the comments: luaotfload normalizes all names supplied by the font. Apart from lowercasing you can also leave out spaces if you wish. So, for XeLaTeX, spacing and casing are significant, while for LuaLaTeX, they are not. This is not engine-dependent, just how luaotfload (and, incidentally, ConTeXt) treat things. The rationale is simple: ...

0

It looks like mhchem itself uses the math environment and that the macros are somehow not parsed in the same way as normal text. A test of this is to use some kind of math-exclusive command in the macro (like \mathcal{X}), which doesn't produce an error. A clumsy fix (if one is needed) is to just use the \text{} command inside the macros: ...

0

Try fontspec with "Source Sans Pro" (note the space between Sans and Pro). XeTeX is pretty strict when entering font names (LuaTeX doesn't seem to care though).

-1

Too long for a comment: I had a similar problem recently with Source Sans Pro in MikTeX (in TeXLive it worked right away). It is one of those cases in which I tried many things until it worked. So I don't know exactly what did the trick: Install, uninstall, install sourcesans* related packages, both as normal user and as administrator. Reinstalled MikTeX ...

1

In a current miktex and texlive 2014 one can get the search path for font feature files with kpsewhich --show-path="font feature files" and this gives pathes of the type <texmf-tree>/fonts/fea. I tested it with both systems and it worked fine after I updated the fndb/ls-R.

2

Let me present a small snippet in LuaTeX. We pass an argument and selected letters to the Lua core, where the snippet decomposes it at a character level and wraps the preselected letters only by the \malbf command. Words to be marked are tagged, I didn't expect a TeX command, I presumed plain text. I enclose a small example with English (requested letters ...

1

Another much easier solution is: don't use LaTeX in Matlab 2014b to label your axis. For example, you cannot have any thing like x_1^*. If you use only plain text in Matlab, then when you save the file to SVG, the text will be kept. You can then edit the .pdf_tex file generated by Inkscape to show the correct label. This is of course due to the bug of the ...

4

When you are using XeTeX then your task is exactly solved by XeTeX primitives \XeTeXcharclass and \XeTeXinterchartoks. Read the manual of XeTeX. For letters 'a', 'e', 'i', 'o', 'u' the setting looks like: \newXeTeXintercharclass \mycharclassbf \XeTeXcharclass \a =\mycharclassbf \XeTeXcharclass \e =\mycharclassbf \XeTeXcharclass `\i =\mycharclassbf ...

1

As pointed out by Robert in the comments, the problem has nothing to do with Microtype. But by activating Microtype or any other font feature by \setmainfont[Microtype]{Latin Modern Roman} the default font settings get overwritten. Fonts which have a special subfont for smallcaps may not work afterwards. By reinitializing the smallcaps subfont it will ...

4

\text.... commands escape to text mode so use the current text font settings. Math fonts do not change according to the local context and here you want the math monospace font so use \mathtt{MinimumPolynomial}

3

From the comments, I deduce that TeXShop is not yet configured to UTF-8 text encoding. To do that, open the Preferences of TeXShop, select the “Document” panel (the first panel starting from the left), and select Unicode (UTF-8) in the Encoding section, like here (French version of TeXShop, but it should look close in other languages): After this change, ...

12

I don't think it is reasonable to expect a full list to be created and maintained here. I think it is better to explain how to figure out whether fonts have this support so that users can determine the current answer for a specific font for themselves. If nothing else, this will enable people to check whether an answer here is still correct. Thérèse is ...

0

I think I got it: just use a \endofdump to indicate the end of the precompiled format slightly before \begin{document}; and then insert the \AtBeginDvi{\input{zhwinfonts}} line after it. The preamble thus becomes: \RequirePackage{filecontents} % %% NOTE: filecontents cannot be active when -ini runs; must be commented! % %% NOTE: cannot use just {{文章}}, ...

12

The package substitutefont is what you need. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[polutonikogreek,english]{babel} \usepackage{substitutefont} \substitutefont{LGR}{\rmdefault}{bodoni} \begin{document} This is English \textgreek{Πάτερ ἡμῶν ὁ ἐν τοῖς οὐρανοῖς·} \end{document} The only difficult bit, after having realized that ...

3

You should have a \lstset instruction in your preamble: \documentclass [11pt] {article} \usepackage{graphicx} \usepackage{enumitem} \usepackage{url} \usepackage{epstopdf} \usepackage{listings} %\input std-defs %\input EECE2323-header \lstset{ basicstyle=\ttfamily, columns=fullflexible, } \begin{document} %\noindent %\lab{3}{LAB3 - Arithmetic and ...

5

unicode-math makes only sense if you also have a sensible "unicode math" font that you want to use as base math font. There is no "cm bright math" (sans serif math fonts are sparse ...). So it is better to use for the math setup the non-unicode way: \documentclass[a4paper,12pt]{article} \usepackage{cmbright} \usepackage{amsmath,amssymb} ...

4

Version 2 After reading a recommendation/comment by Khaled Hosny I've changed the core of the snippet, so it's switching font only when needed. There is no font change on purpose if a character is a space. In the previous version, it wrapped every single character (not recommended in general as it breaks up ligatures, kerning pairs and probably other ...

1

The problem is that \unslant put the unslanted character on the right edge of the space originally needed for the slanted version. The following variation centers the unspanted character in the same space. \documentclass{article} \usepackage{mathtools} \newsavebox{\foobox} \newlength{\foodim} \newcommand{\slantbox}[2][0]{\mbox{% ...

5

Loading a non existent language is useless. Just add a font family for Ethiopic characters (I used Kefa, use whatever you like). \documentclass[a4paper]{scrartcl} \usepackage{fontspec} \usepackage{polyglossia} \usepackage[Latin,Ethiopic]{ucharclasses} \setmainlanguage{english} \newfontfamily{\tigrinyafont}[Script=Ethiopic, Scale=1]{Kefa} ...

5

The defaults in the format are from fontmath.ltx \DeclareSymbolFont{operators} {OT1}{cmr} {m}{n} \DeclareSymbolFont{letters} {OML}{cmm} {m}{it} \DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n} \DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n} \SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n} \SetSymbolFont{letters} {bold}{OML}{cmm} {b}{it} ...

1

Actually you are simply lucky that the \setbeamercolor does anything useful. beamer hooks in the \newblock command and this will in most cases not work with biblatex but only with manual bibliographies. Use the biblatex tools like e.g. \DeclareFieldFormat{title}{{\scshape\tiny #1}}

1

I managed to make it work with the following settings: Created file in WIN1251 encoding with the following contents: \font\rm=larm1095 \font\bf=labx1095 \beginsection Что сказал медведь \rm Выпей водки и сыграй на балалайке, Иван \bye Compiled it with pdftex. I used this answer by David Carlisle in the neighbour thread to determine the font, which ...

7

You can use shrink tight,extrude by=2pt in this way \newtcbox{\keywordmin}{on line, fontupper=\scriptsize\ttfamily, boxrule=0.5pt,arc=2pt,coltext=tangoBlack1,colback=tangoGrey1,colframe=tangoGrey1, boxsep=0pt,shrink tight,extrude by=2pt} Here shrink tight makes the total colored box to be shrunk to the dimensions of the upper part while extrude by = 2pt ...

3

This is not a bug but a feature. Publishers' styles, unlike generic article etc , usually do not allow the users to change body fonts. All papers in the given journal must have matching look. I usually add to my classes commissioned by publishers some warnings when the class sees an attempt to invoke options like 12pt: "please do not do this". Full ...

5

You have to compare the current value of \f@family and of \sfdefault: if they match, then you're typesetting in sans serif type. Basically you do \ifnum\pdf@strcmp{\f@family}{\sfdefault}=\z@ <we are using sans serif> \else <we are not using sans serif> \fi Example: \usepackage{pdftexcmds} \makeatletter \DeclareRobustCommand{\film}[1]{% ...

Top 50 recent answers are included