Tag Info

New answers tagged

3

Since you may want to set a pretty small threshold, it is not efficient to try out combinations like 30*##1<3E-6. Simply enable fpu and use \ifpgfmathfloatcomparison. (The latter seems to be undocumented. And its friend \ifpgfmathcomparison is mentioned once. However you may take a look at pgfmathfloat.code.tex.) columns/B/.style={column type=c,column ...


0

Here is the best solution I could found: \pmb{\left[\vphantom{\frac{1}{2}}\right.} \frac{1}{2} \vec{\nabla} \times \vec{v} \pmb{\left.\vphantom{\frac{1}{2}}\right]} It is dirty, but it does exactly what I want:


3

You can do \documentclass{article} \usepackage{bm} \showoutput \begin{document} $[ \vec{\nabla} \times \vec{v} ]$ $\bm{[} \vec{\nabla} \times \vec{v} \bm{]}$ \end{document} It does not work with \left, \right with the default cm fonts as there is no bold extension font (for large brackets) in that font set. However extended brackets are not needed ...


3

First of all, either you define a kod environment or a \kod command taking an argument with \DeclareTextFontCommand You can surely select boldface by adding the declaration \bfseries; using the command defined beforehand avoids code duplication. I leave a definition for the environment, but I don't think it's useful. \newcommand{\kodfont}{% ...


2

Here are some options, depending on your input preference. They all produce the following output: Consistent use of \\ to end the question: \documentclass{article} \newenvironment{QandA} {\begin{enumerate} \let\olditem\item \long\def\item##1\\{\olditem{\bfseries ##1}\par}} {\end{enumerate}} \begin{document} \begin{QandA} \item This is a ...


0

You can bold any number of words in the line. However, bolding a line is very difficult, since TeX must decide where to split the line, and this depends on the font. After the line is split, you need to return to the original tokens, but they are already "lost". Many years ago Jim Sterken formulated this problem in 1983: ...


1

Sorry, I was a bit too fast with my answer. Use \usefonttheme[onlymath]{serif} for serif font in math mode and \boldmath for bold font - again only in math mode. \documentclass{beamer} \usefonttheme[onlymath]{serif} \begin{document} \begin{frame} \begin{columns} \column{.5\textwidth} \centering $ x = 5 - 2 $ \column{.5\textwidth} \centering ...


0

The answer by egreg loads new fonts that seems to change fonts for the whole document -- not only in listings (in my document it changed the font used in paragraphs). The accepted answer uses pcr -- some may find it not very beautiful. You could use lmtt instead. Below is the version that uses lmtt and additionally wraps the font-change command into the ...


4

This might be a basic beginning to work from. You can make a command that tests any number against a maximum, which you define in another command. If the numbers are in a tabular you can use the collcell package to apply the \numtest macro to each item automatically. See the second tabular in the example. \documentclass{article} \usepackage{array} ...


2

Fake the boldface with the Garamond font provided by mathdesign; but, please, think twice before using boldface with Garamond. \documentclass{article} \usepackage[lf]{ebgaramond} \usepackage[cmintegrals,cmbraces]{newtxmath} %\pdfmapfile{+EBGaramond-Maths.map} % not necessary on my system \usepackage{ebgaramond-maths} \usepackage{amsmath} ...


2

Without knowing what you actually did, you appeared to have done the right thing. Perhaps you forgot to remove the old .aux file? \documentclass{report} \usepackage{tocloft} \renewcommand{\cftchapfont}{\normalfont} \renewcommand{\cftchappagefont}{\normalfont} \begin{document} \tableofcontents \chapter{A chapter} \chapter{A chapter} \end{document}


9

Load the bm package and the problem goes away, both using \bm and \boldsymbol (which gets redefined by bm to be the same as \bm). This spacing issue is one of the reasons why \bm should be used for bolding math instead of amsmath's \boldsymbol. \documentclass[fleqn,11pt]{book} \usepackage{amsmath,bm} \begin{document} \begin{align*} ...


3

Yes, there's a minor increase in the symbol width. Here is a correction using an \ooalign overlay: \documentclass{article} \usepackage{amsmath} \newcommand{\boldsigma}{{\ooalign{\phantom{$\sigma$}\cr\hidewidth$\boldsymbol{\sigma}$\hidewidth}}} \begin{document} $\boldsymbol{\sigma}_0$ $\sigma_0$ Width of $\boldsymbol{\sigma}$: ...



Top 50 recent answers are included