Tag Info

Hot answers tagged

64

EDITED to allow repeat invocations without having to reset parameters, using the syntax \diminish[scale-down-ratio]{string} The value of \defaultstartht sets the strut height of the first letter (default is set to \baselineskip), and the scale-down ratio defaults to 0.98, but may be supplied as an optional parameter. Beware that arithmetic underflows are ...


21

A recursive macro: \documentclass[border=2]{standalone} \usepackage{mathptmx} % a scalable font is needed \makeatletter \def\makesmaller#1#2{% \dimen0=\dimexpr\dimen0-.08pt\relax \ifx#2\relax \expandafter\@gobble \else {\fontsize{\dimen0}{0}\selectfont#1}% \expandafter\@firstofone \fi {\makesmaller{#2}}% } \def\decreasingpi{% ...


19

Mark Wibrow enhanced the text decoration library of TikZ greatly and you can do all kinds of stuff based on formulas regarding the character number and total count of words and so on. Here is a wacky take on it, (thus a simple monotone scaling along a path is very simple and is possible just by playing with the formula with scale instead of yscale) ...


6

Use a minipage \documentclass{article} \usepackage{amsmath} \begin{document} We make the further assumption that \begin{equation}\label{eqn:assumption} \begin{minipage}{0.9\textwidth} There is a bounded linear operator $B:X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$ \end{minipage} \end{equation} ...


6

If you start a paragrah inside a vbox (or vcenter) the lines will be broken to \hsize which is \textwidth here which is wider than you want. You should use a tabular which will vertically centre and look more like latex. All LaTeX box and rule commands consistently start a paragraph (so \rule here) but TeX primitives like \hbox do not.


4

Just another way... \documentclass[varwidth,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{lmodern} \newdimen\dx \def\dm#1#2{\dx=1em\relax\def\rt{#1}{\Dm#2\dm}} \def\Dm#1{\ifx#1\dm\else\fontsize\dx\dx\selectfont#1\dx=\rt\dx\expandafter\Dm\fi} \begin{document} \dm{0.95}{3.14159265358979323846264338327950288419716939937510} \end{document}


3

I think that there are two most sensitive options: increase the first space and make it symmetric: $\langle\,,\rangle$ put \cdots in place of teh arguments: $\langle\cdot,\cdot\rangle$ (this is what I prefer). Typeset versions: In the second one, if you don't like the space after the comma: $\langle\cdot{,}\cdot\rangle$


3

\therefore is not a text command. It needs to be in maths mode e.g. $\therefore$. In your snipped, it is outside the align environment and therefore in text mode which won't work. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amssymb,amsmath} \begin{document} \noindent c)\\ coordinates = ...


3

I think you can use tikz-cd for this kind of diagrams. For example, use \documentclass[preview,border=1pt]{standalone} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} %% Hint for the positions: L=left, R=right, U=up D=down \begin{tikzcd} C \arrow[bend left=80]{r}[name=LUU, below]{} \arrow{r}[name=LUD]{} \arrow[swap]{r}[name=LDU]{} ...


3

A solution using MetaPost could look something like this: u:=1.8cm; % Horizontal scale s:=6pt; % shift from letters h:=10pt; % height label(btex $C$ etex, (0,0)); label(btex $B$ etex, (u,0)); label(btex $A$ etex, (2u,0)); drawarrow ((s,0)--(u-s,0)) shifted (0,-h); drawarrow ((s,0)--(u-s,0)) shifted (0,h); drawarrow ((u+s,0)--(2u-s,0)) shifted (0,-h); ...


3

With stacks. \documentclass{article} \usepackage{graphicx} \usepackage[usestackEOL]{stackengine} \stackMath \def\xtnd{-\kern-5pt-\kern-5pt} \setstackgap{L}{.45\baselineskip} \begin{document} \[C \mathop{\raisebox{1pt}{\Centerstack{ S\\ \xtnd\rightarrow\\ \raisebox{.5pt}{$\scalebox{.8}{$\downarrow$}\scriptstyle\tau$}\\ \xtnd\rightarrow\\ T}}} B ...


2

One advantage with \( and \) over dollar signs is that it is easier to match parenthesis in your editor.


2

You can do in your preamble \newcommand{\myvec}[1]{\overrightarrow{#1\vphantom{k}}} And use it in your document $\myvec{k} \myvec{x}$


1

This question has already been answered, but I believe that there's a solution applicable to a wider variety of situations. What you call "vector height" can be split up into several different "heights" or "parts of total height" or whatever: Now, in your case you want the "height" of both vectors to be equal. However, taking only these "vectors" into ...


1

The difference between your example and the one you refer to from how-to-add-equation-with-cases-inside-the-table is that you are trying to put a displayed equation into a "centred" table cell whereas the example puts one inside a "paragraph" in a tabular environment. You either need to use a p-cell in your tabular environment: \begin{tabular}{p{5cm}} ...


1

For example (the value is only exemplary): \documentclass{article} \usepackage{amsmath} \begin{document} We make the further assumption that \begin{equation} \label{eqn:assumption} \text{\begin{tabular}{p{0.85\linewidth}} There is a bounded linear operator $B\colon X\to X^*$ such that $B^*=B$ and the operator $JB$ is an extension of $T'(0)$ ...


1

All your $'s inside align should be replaced by &'s. (You snippet is not a MWE, hence version without corrections and the final result).


1

When you type \newtheorem{thm}{Theorem}[section] it means that it will number by sections, write "Theorem" and you refer to it using the environment name thm. You need to write \begin{thm} Let $X$ be boundedly compact metric space and $\mathcal{B}$ a family of closed balls in $X$ such that \begin{equation} sup\{d(B):B \in \mathcal{B}\} ...


1

Here is my version also using tikz-cd: % arara: pdflatex \documentclass{article} \usepackage{tikz-cd} \begin{document} \[\begin{tikzcd} C \ar[shift left=7pt, ""{name=UL, below}]{r}{S} \ar[shift right=7pt, ""name=LL]{r}[swap]{T\vphantom{'}} & B \ar[shift left=7pt, ""{name=UR, below}]{r}{S'} \ar[shift right=7pt, ""name=LR]{r}[swap]{T'} & A\\ ...



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