Tag Info

New answers tagged

0

You can use the comment package to easily hide text without removing or commenting out every line of your .tex file by placing everything you want hidden between \begin{comment} and \end{comment}. It isn't clear if this is what you're after, though.


3

While it is possible to tag equations in an align* environment, the \tag command does indeed uses a fixed equation 'number' etc. then. The align* environment however does not count the equation number, but the align environment does. If specific equations should not be numbered, \notag suppresses the numbering then. \documentclass{amsart} \begin{document} ...


3

You'd probably need something like this (simple cases cannot handle this) \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{equation} \left\{\begin{aligned} f(x)&=\tfrac{1}{12} \cdot r, & g(x) &= \tfrac{1}{24} \cdot x, & x&<12 \\ f(x)&=1, &g(x) &= \tfrac{1}{8} \cdot x - 1, & ...


1

Just to provide a few more ideas: \shortintertext{} which needs mathtools is my personal favourite and there's already an example \intertext{} is similar to \shortintertext{} but will have a larger space above and below the the math, also in the example \tag{} is different as it will put text in brackets at the end of the line of Math. If the tag text ...


2

Do you mean something like this? If you are referring to setting source code (LaTeX listings) you should clarify that a bit in your question. % arara: pdflatex \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} G(r) & \\ \shortintertext{comment} &= \frac{A}{B} \\ \intertext{a long comment could look like ...


5

Use \documentclass[12pt,fleqn]{article}


3

The alignment should be used with, well align or align* and left align with fleqn option of the amsmath package. In my point of view the constant block should use two (or even three constants) per row, not one large column. And I've changed the differentials d to use upright characters. \documentclass[12pt]{article} \usepackage[fleqn]{amsmath} ...


3

I do not know the best practises for theorems, but the normal way is that you need at least one \item outside the math mode. Please have a look on my second example which is the correct syntax here. % arara: pdflatex \documentclass{article} \usepackage{mathtools,amsthm} \newtheorem{theorem}{Theorem}[section] \begin{document} \begin{theorem} ...


2

You get an underscore with \_, but I do not think it's an underscore (too high). I suspect an arrow together with the "circ", which might be an triangle arrow head. The arrow version makes more sense in mathematics. The limes is calculated, when variable V converges to Vε. \documentclass{article} \usepackage{amsmath} \begin{document} \[ ...


1

Short answer: the argument must be -1. (But one should take my answer with a grain of salt, since “user’s” docs are completely missing, the “developer’s” docs do not match the code, and the code is incomprehensible.) Long answer: First, there is a variant of align with a micro-fool-proofing: the environment xalignat takes a required argument; when it is ...


5

My eyes bleed, but here it is: \documentclass{article} \usepackage{xparse} \NewDocumentCommand{\dgal}{sO{}m}{% \IfBooleanTF{#1} {\dgalext{#3}} {\dgalx[#2]{#3}}% } \NewDocumentCommand{\dgalext}{m}{% \sbox0{% \mathsurround=0pt % just for safety $\left\{\vphantom{#1}\right.\kern-\nulldelimiterspace$% }% \sbox2{\{}% \ifdim\ht0=\ht2 ...


6

this is U+2983 U+2984 and \lBrace, \rBrace in stix or unicode-math packages \documentclass{article} \usepackage{stix} \begin{document} \[\lBrace zzz \rBrace\] \end{document}


1

I get exactly same output as with pdflatex with htlatex: <!--l. 4--><p class="noindent" ><span class="eufm-10">&#x1D504;</span> <span class="eufm-10">&#x1D505; &#x212D; &#x1D507; &#x1D508; &#x1D509; &#x1D50A; &#x210C; &image; &#x1D50D; &#x1D50E; &#x1D50F; &#x1D510; ...


1

Not a direct answer but I have always found this to be exceedingly useful when creating complex equations or text with extraordinary symbols. [http://www.ctan.org/tex-archive/info/symbols/comprehensive/[1]


4

It works for me if I complete your code to create a minimal example: \documentclass{article} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \[ L1 \cap Li \neq \Phi \] \end{document} Admittedly, this isn't yet quite right because it does not look quite like the target set of symbols. To obtain a subscript in a mathematical expression, ...


0

use it this way: \RequirePackage{amsmath} \documentclass[pss]{wiley2sp} % provides pss two-column style ... Then amsmath defines the \vec at first and wiley2sp will redefine it.


3

In addition to Mico and in order to show the \right| command: % arara: pdflatex \documentclass{article} \usepackage{mathtools} \newcommand*{\partderat}[3]{\left.\dfrac{\partial#1}{\partial#2}\right|_{\mathrlap{#3}\phantom{t_{N_{\textit{sp}}}}}} \begin{document} \[ Q_r = \begin{bmatrix} \partderat{\breve{y}_r}{\theta_1}{t_1} & \cdots & ...


6

I can think of two solutions: Use \dfrac ("display-style fraction") instead of \frac to increase the size of the fractional terms, and Keep using \frac, but reduce the size of the conditioning bars from \bigg to \Big. Both methods are acceptable, typographically speaking. Which one is "better" will depend on many aspects of your documents (about which we ...


3

You can easily do it with align* and \intertext, but the result shows that you shouldn't: the apparent misalignment will look very odd to your readers. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align*} \Xi_c=(0.136,\ 0.307,\ 0.057^+\ &||\ 0.194^-,\ 0.148,\ 0. 087, 0.074) \ \text{ and }\ \aleph_c=[\varnothing]. \\ ...


3

If you want just the letter "p" to be rendered in bold while the "hat" symbol should be rendered in normal weight, you could use either one of the following methods: $\hat{\mathbf{p}}$, $\hat{\bm{p}}$ Which method you should use depends on whether you want the letter "p" in upright-bold or slanted-bold. If both the letter "p" and the "hat" symbol ...


0

Since I've been in doubt myself a few times (and not only with this), I think the best is to create an universal way of doing it so, in case one needs to change it, you just need to go back to the preamble. With the code I post here the following syntax works: A_|whatever| (one could choose another like A_[foo] or A_(bar), but I prefer those for other ...


2

If you have a few textual subscripts and no special characters in them, use \mathrm; otherwise use \textnormal The second method, however, has a drawback: it doesn't honor \mathversion{bold}, as seen from the following example. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} ...


2

Here is a simple solution with the framed option of ntheorem, which has tools for selectively typeset theorem lists: \documentclass{article} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}% just for the example \usepackage[x11names]{xcolor} \usepackage{lipsum} \usepackage{amsmath} \usepackage[thmmarks, thref, amsmath, framed]{ntheorem} ...


2

Use the mdframed key to interact with the mdframed package and set the margins to the appropriate values (the settings I used in the code below reproduce the original settings): \documentclass{article} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}% just for the example \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} ...


5

You should do use \textup or \textrm as noted in comments. The reason why it doesn't work is that even if you specify T1 for text math still uses the 7bit OT1 encoding for Roman letters. You can change that: \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathtools} ...


5

Just use \textrm{äq} for the subscript. \documentclass{article} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} $A_{\textrm{Äpfel}}$ \end{document}


1

This solution uses \genfrac although not exclusively; however it does avoid \atop and works with MathJax. \[ \sum_{m\ge0}\left\langle\!\!\!\genfrac<>{0pt}{}{n}{m}\!\!\!\right\rangle x^{m} \]


2

The following example takes the double brackets from package MnSymbol and uses \genfrac. An alternative would be a simple matrix environment. \documentclass{article} \usepackage{amsmath} \makeatletter \@ifpackageloaded{MnSymbol}{}{% \DeclareFontFamily{OMX}{MnSymbolE}{} \DeclareSymbolFont{largesymbolsMn}{OMX}{MnSymbolE}{m}{n} ...



Top 50 recent answers are included