New answers tagged

6

Logical markup is always possible with a \newcommand{...}[1]{...} and using grouping to prevent leaking of font declarations or color settings into the rest of code. For more sophisticated approaches I recommend however appropiate packages for the relevant purpose. For code markup, there are minted, listings and tcolorbox (with its listings features) ...


1

\usepackage{fourier} Then $\wideOarc{AB}$ However, as Andrew Swann noted in a comment, loading the fourier package changes all the fonts in the document.


1

Use the package fontawesome and run it with lualatex or xelatex. Do not load package inputenc and not fontenc and use the already defined macros of fontawesome: \documentclass[a4paper, 10 pt, oneside, final]{scrartcl} \usepackage[left=4.6cm, right=3.75cm, top=0.5cm, bottom=0.5cm]{geometry} \usepackage{amsmath,amssymb,mathrsfs} \usepackage{marginnote} ...


3

Use xelatex of course, along with a cursive font (there's plenty free online). Warning: This might not be sufficient, it still looks too "clean" and the lines too straight for it to be actually handwritten.1 \documentclass{article} \usepackage{fontspec} \usepackage{lipsum} \setmainfont{Cursive standard} \begin{document} \lipsum[1] \end{document} 1: ...


0

Here is a TikZ-solution. \newcommand{\blurred}[3]{ \draw [black!#1] node at (#2,#2) {#3}; \draw [black!#1] node at (0,#2) {#3}; \draw [black!#1] node at (#2,0) {#3}; \draw [black!#1] node at (-#2,#2) {#3}; \draw [black!#1] node at (-#2,0) {#3}; \draw [black!#1] node at (0,-#2) {#3}; \draw [black!#1] node at (#2,-#2) {#3}; \draw [black!#1] node at (-#2,-#2) ...


2

How to use the condensed fonts of MyriadPro with pdftex I had much help by Ulrike Fischer and a useful hint by David Carlisle to find this solution: \documentclass[fontsize=16pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} %\usepackage{lmodern} \usepackage[medfamily]{MyriadPro} \sffamily%to load the fd-file ...


1

(Too long for a comment, hence posted as an answer.) If you have access to the Opentype version of the Myriad Pro Condensed font, you may want to look into using either XeLaTeX or LuaLaTeX, as both can handle Opentype fonts directly. (On my system -- MacTeX2015, MacOSX 10.11.3 -- the font Myriam Pro Condensed is installed as a system font in opentype ...


5

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{sansmath} \begin{document} foo \sansmath \begin{align*} a & b & c \end{align*} \end{document}


1

Verdana is a sans font that has serifs on the capital i.


3

Here I link them together with a small rule. \documentclass{article} \usepackage{stackengine} \begin{document} \[ \stackengine{0pt}{{\footnotesize P}\kern-2.5ptA}{\kern1pt\rule{3pt}{.3pt}}{O}{l}{F}{F}{L} \] \end{document}


2

or \documentclass{article} \begin{document} $\textsc{p\kern-.3emA}$ \end{document}


2

like this ? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[frenchb]{babel} \begin{document} {P\scriptsize\hspace{-1em} A} {\scriptsize P}\hspace{-1em} A \end{document}


0

Another option: \documentclass{article} \newcommand{\boldm}[1] {\mathversion{bold}#1\mathversion{normal}} \begin{document} There is a normal symbol, $p_1$. Now, a bold symbol: {\boldm $p_2$}. It works! \end{document} Output:


2

You need to use the professionalfonts theme if using your own configuration to avoid unexpected weirdnesses cropping up at inconvenient moments. You do not need fontenc as far as I can tell. You do need lmodern because otherwise the default maths will still use Computer Modern, even though fontspec switches text to Latin Modern. I am not sure exactly what ...


0

The hyphenat-package works fine. \usepackage[htt]{hyphenat}


4

I suppose that your question is: why wd.dvi is displayed by xdvi without tfm correction but all others experiments show the correction. Widths of all characters are copied in the pfb font file, namely the command hsbw uses the left side-bearing and width values. You can try to do t1disasm cmr10.pfb > cmr10.pps and look into cmr10.pps at the character ...


1

To answer your question 4 about fonts, you can get a good list of Type 1 math fonts usable by PDFLaTeX, with samples, at the LaTeX Font Catalogue. I personally like \usepackage[osf,slantedGreek]{mathpazo} This gives you an attractive Palatino clone with excellent coverage. You can combine it with other math symbol packages, such as amssymb, boondox and ...


0

Your example left the sans serif family unchanged so the main font loading is not affecting the result once you uncomment the declaration to switch to sans serif. latin modern sans as you saw, does not cover this range. TeX Gyre has a sans serif font Heros, but that drops the accented letters. But of the fonts I have easily to hand Arial and Sans Source Pro ...


2

For commercial fonts, many sites make you beg for information, even though one would expect salesmen to exhibit the opposite behavior. MyFonts supplies more information than most, allowing you to do an advanced search for fonts with Greek language support tagged “polytonic.” Both criteria are necessary, because searching for Greek in the “language support” ...


9

multi-question questions don't really fit the site format but.. Do you think that it is Ok to recommend the mathtools package instead of amsmath package. The mathtools package calls the amsmath package and improves it as far as I understand. Yes What about the empheq package It's OK but more of a "contrib" package than mathtools which aims to ...


6

You're using the syntax of eqnarray, and are forgetting to load amsmath; compiling your example produces scores of errors and the output is almost arbitrary. \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage{amsmath} \begin{document} \begin{align*} \sum_{i=1}^{k+1} i^{3} &= \biggl(\sum_{i=1}^{n} i^{3}\biggr) + i^3\\ &= ...


5

Combining Alan Munn's comment with egreg's answer: \documentclass{article} % ref.: egreg at http://tex.stackexchange.com/a/14406/ \usepackage{pifont} \makeatletter \newcommand\Pimathsymbol[3][\mathord]{% #1{\@Pimathsymbol{#2}{#3}}} \def\@Pimathsymbol#1#2{\mathchoice {\@Pim@thsymbol{#1}{#2}\tf@size} {\@Pim@thsymbol{#1}{#2}\tf@size} ...


2

You could borrow some code from mtpro2.sty: \documentclass{article} \usepackage{unicode-math} \setmainfont{TeX Gyre Bonum} \setmathfont{TeX Gyre Bonum Math} \makeatletter \AtBeginDocument{% \begingroup\lccode`~=`_ \lowercase{\endgroup\def~}{\futurelet\next\s@@b}% \mathcode`\_=\string"8000 \catcode`_=12 } ...


1

if everything else fails, you can try to fake the euro sign. this solution may not look as good, but it works anytime: \newcommand{\euro}{{\mathrm{C}\!\!\!\!\!\!=}}


2

There is no semibold version but you could scale up a smaller font size (the code I use is okay for a short portion like a title but not suitable for longer text!): \scalebox and resizebox of the graphicx package can be used too. It is up to you to decide if this looks pleasing ... \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} ...


0

I guess this is hardcoded in the *.sty file. When looking at the moderncvbodyi.sty you'll find the following: \renewcommand*{\cventry}[7][.25em]{% \cvitem[#1]{#2}{% {\bfseries#3}% \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}% \ifthenelse{\equal{#5}{}}{}{, #5}% \ifthenelse{\equal{#6}{}}{}{, #6}% .\strut% \ifx&#7&% ...


0

The question started from being akin to Wikipedia and ended up as a duplicate. As you can see, process of colouring the heading and setting it to uppercase is pretty much manual. Is there a command that I can use to automate it? Also, I would like a '.' (dot) after the number. The question # 1 (coloured section) has been answered by @Arne ...


0

There is in fact a package option for this: if you pass noBBpl to mathpazo, then its blackboard bold fonts are not loaded. That also means you have to load the AMS ones separately, but that just means using amssymb, which is simpler than defining another symbol font alphabet: \documentclass{article} % these two \usepackage commands make it work ...


0

as moospit pointed out, this answer solved my problems, I simply added \addtokomafont{descriptionlabel}{\rmfamily} to my preamble since glossaries inherits descriptionlabel for the glossary entries.


1

Just to show my last comment with some font I have found on my machine (there are many fonts free for download on the web): % arara: lualatex \documentclass{article} \usepackage{fontspec} \begin{document} \setmainfont{ALGER.TTF} \noindent Shadow text\\ with line break \end{document}


2

Here is a first cut for the simple arrow you have proposed. This scales the arrow size and line width relative to the size when the font is 10pt. As in Rmano's answer, I have used em to modify the width. A node is added with a \strut at the end which, coupled with \raisebox{-.3\baselineskip}, allows the vertical placement of the arrow to be defined using the ...


2

You need to adjust the baseline etc., but using ex or em as basic measurement units you can have: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,positioning,calc} \def\mypic{\tikz[x=1em,y=1em,baseline=-0.5,->]{\draw[>=stealth] (0,0)--(0.5,0.5) --(1,0);}} \begin{document} text text \mypic\ text {\LARGE text \mypic text } ...


9

This is arguably a bug in polyglossia. Examining the polyglossia.sty one sees it has a concept of \familytype. When the user has selected a language, the font selection is influenced by it this tests the value of \familytype. There is some code to set during package loading \familytype: \expandafter\ifx\familydefault\sfdefault \def\familytype{sf} ...


0

Copy some of the declarations from mathabx: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{libertine} \usepackage[libertine]{newtxmath} \usepackage{amsmath} \DeclareFontFamily{U}{mathx}{\hyphenchar\font45} \DeclareFontShape{U}{mathx}{m}{n}{<->mathx10}{} \DeclareFontSubstitution{U}{mathx}{m}{n} ...


1

I changed my answer, to this code: \documentclass{article} \usepackage{ipsum} \linespread{1.35} \usepackage{titlesec} \usepackage{xcolor}% For colored things \usepackage{fontspec}% Font specification \titleformat{\section}% {\normalfont\Large\color{blue}}% format applied to label+text ...


0

The problem was solved by adding export HOME='/var/www' to the shell-script just before the pdflatex command.


2

You can raise the symbol: \documentclass{article} \usepackage{lmodern} \usepackage{amsmath} \usepackage{amssymb} \DeclareFontEncoding{LS1}{}{} \DeclareFontSubstitution{LS1}{stix}{m}{n} \newcommand*\varnothingstix{% \text{% \usefont{LS1}{stix}{\textmathversion}{n}\raisebox{.15ex}{\symbol{"C9}}% } } \makeatletter % the current math version is saved ...


0

Yes, I also was facing this problem on Ubuntu 14 and Mint 17.3. Running sudo apt-get install texlive-lang-greek solved the error Package fontenc Error: Encoding file 'lgrenc.def' not found. Now is LyX working fine. To install latest the latest versions of LyX and TeX Live on Linux Mint or Ubuntu do this: Installing LyX 2.1.4 and TeX Live on Linux ...


1

There are similar symbols, with the same straight cuts, in the STIX fonts. Note that using newpxtext and newpxmath rather than pxfonts is recommended. \documentclass{article} \usepackage{newpxtext,newpxmath} % alias for comparison; don't use the following three lines \let\PXbowtie\bowtie \let\PXltimes\ltimes \let\PXrtimes\rtimes \let\bowtie\relax ...


4

Here's a way: \documentclass{article} \usepackage[sfdefault]{roboto} \begin{document} This is the Light version \begingroup \fontseries{t}\selectfont This is the Thin version \endgroup This is the Light version again \end{document}


2

You are making it harder than it has to be. \underbar{$x$} resolves it without further packages or new commands. To get equal length use \overline{x} instead of \bar{x}. The bars are longer than in the above, but equal.


7

There is a typo (\mathbb is the correct command). You must have the amsfonts package added in the preamble. This example works: \documentclass{article} \usepackage{amsfonts} \begin{document} $\Lambda \in \mathbb{Z}^{+}$ \end{document} UPDATE. The compiler reports the command it did not recognise. If you are running pdflatex or whatever from the command ...


3

Actually, for me, neither work. and it is the same with other tex gyre fonts (tex gyre pagella). Looking at the font itself, as provided by texlive 2015, it doesn't contain any cyrillic glyphs. Looking at the changelog from website (http://www.gust.org.pl/projects/e-foundry/tex-gyre/adventor/qag-hist.txt/view) it is due to a licensing disagreement. ...


1

Do you mean something like this: For this you need to column type add >{\ttfamily}: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{tabularx} \usepackage[active,floats,tightpage]{preview}% <-- Only show only table. % Don't use in +real document! ...


1

I had this problem, too; when I removed this: \usepackage[T1]{fontenc} the problem disappears and the fonts become very nice and sharp again! Maybe you are using fontenc, or maybe it's some other package that's causing the problem. Check this possibility.


1

What you are looking for is called "NFSS family name" (where "NFSS" stands for New Font Selection Scheme). Section 5.2 of the fontspec manual: In fontspec, the family names are auto-generated based on the fontname of the font; for example, writing \fontspec{Times New Roman} for the first time would generate an internal font family name of ...


3

The n-type column uses math mode: you want a text font so need an N-type column (manual, page 10) \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[np]{numprint} \usepackage[lf]{venturis} %% lf option gives lining figures as default; %% remove option to get oldstyle figures as default ...


0

Thank you @Herbert for a lead on this one! Installed only the fonts that I needed (Preview and install) Opened cmd and navigated to c:\windows\fonts Listed all Futura fonts by executing dir /b fut*.* cmd listed the fonts as C:\Windows\Fonts>dir /b fut*.* Futura Book Bold Italic.ttf Futura Book Bold.ttf Futura Book Italic BT.TTF Futura Book.ttf ...


1

Put the ttf file into \Windows\fonts and then run with xelatex or lualatex \documentclass{article} \usepackage{fontspec} \setmainfont{Futura} \begin{document} Some text in normalfont \bfseries Some text in bfseries \itshape Some text in bfseries and italic \end{document} and look if the fonts were found.



Top 50 recent answers are included