Tag Info

New answers tagged

3

As long as you are always grouping things on the right, you can make this work by making the right-hand side right-aligned (using an alignat environment), and then adding an appropriate amount of space on the right to get the alignment under the brace. This technique also works equally well for grouping on the left. \documentclass[a4paper]{article} ...


3

Here is an alternative view on the grouping, which might be of interest: \documentclass{article} \usepackage{mathtools,calc} \begin{document} \[ %\setlength{\jot}{.5\jot} Adjust to bring the equations closer vertically \begin{aligned} 1 + 1 + 1 &= 1 + \underbrace{1 + 1} \\ &= ...


2

As long as we add not too many one-cipher numbers, we can use the effect, that all ciphers have the same width. It gives a little bit more general solution, then the one of the predecessor. \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \[ \begin{array}{r@{{}={}}c} 1 + 1 + 1 +1& 1 + 1+ \underbrace{1 + 1} \\ ...


2

You can use array instead of aligned if this this what you require: \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} $$\begin{array}{rcc} 1 + 1 + 1 &= &1 + 1 + 1 \\ &= &\underbrace{1 + 2}\\ &=&3 \end{array}$$ \end{document}


4

Use \DeclareMathOperator{operatorcommandname}{operator name} in the preamble for function or operator names that should be printed upright. \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\sinc}{sinc} \DeclareMathOperator{\si}{si} \begin{document} \begin{align} \si(x) &= \dfrac{\sin(x)}{x} \\ \sinc(x) &= \si(\pi x) ...


1

Another way to present the desired effect: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} f(x) = e^{alpha x} P(x) + \begin{cases} \cos(\beta x) \\ \sin(\beta x) \end{cases} \end{align} \end{document} which yields


2

Just combine them. Also use \cos and \sin to set the trig functions as functions, not variables. \documentclass{article} \newenvironment{sistema}% {\left\lbrace\begin{array}{@{}l@{}}}% {\end{array}\right.} \begin{document} \[ f(x)=e^{\alpha x}P(x) + \begin{sistema} \cos(\beta x) \\ \sin(\beta x) \end{sistema} \] \end{document}


0

Another difference is that \DeclareMathOperator can only be used in the preamble while \newcommand has no such restriction.


8

Such a big formula should be in a displayed formula, see later for reasons. Use equation or equation* (the latter if you don't want an equation number). I also changed a bit your preamble, with instructions to geometry rather than setting internal parameter such as \topmargin or \evensidemargin: you seem to want one inch margins and \geometry{margin=1in} ...


10

There is a bunch of options to improve this: Put T(n) in math mode --> spacing before = is better Use \left(....\right) to get bigger bracket, however the spacing before and after brackets are too large Use \biggl(...\biggr) for larger brackets and better spacing Use \mleft( and \mright) from the mleftright package for adapted brackets and better spacing ...


2

Here, I introduce \varhash and \varfhash to be used in tandem (or for sans font, \sfvarhash and \sfvarfhash). I started with a \sffamily f to build things from there. In the last line, I overlay the two glyphs to see if they compare. Since I use the current font for the f, this answer will depend on the font chosen for the document. Bu the answer can be ...


1

One way to achieve this would be to use the double integral math symbol and strike it out. \usepackage{ulem,amsmath,xspace} \newcommand{\fiber}{\sout{$\iint$}\xspace} And then use \fiber where needed. It's far from ideal, but it can do the trick.



Top 50 recent answers are included