0
votes
0answers
19 views

Referring to a complete subequation environment. Is there a recommended style?

I have a subequations environment which is labelled and inside it I have an alignat environment which has a label for each line. Would you say it is ok to refer to the complete model as I do it in ...
4
votes
2answers
67 views

Smashoperator for the vertical space?

I would like to vertically smash a summation sign in a way that the line has a vertical space as if the summation sign wouldn't be there. To illustrate it please see the MWE. The space between the ...
2
votes
1answer
79 views

Can I write $\log^2{x}$ in skmath?

Standard LaTeX has the opportunity to write things like $\log^2{x}$. This is however no longer possible when loading the skmath package, because skmath expects the logarithm to be entered ...
4
votes
1answer
39 views

math subarray/substack environment not working

I am trying to get stacked indices using subarray/substack using the following snippet, but I am not seeing stacking beneath the sum symbol. This is the type of output I am expecting, but this is ...
3
votes
2answers
92 views

returning maths values in a new command

So I'm trying to construct a command which calls another command to make typing easier, but for some reason I'm not able to get the commands to return things properly. Here is what I have ...
4
votes
4answers
111 views

Dividing Long Equation using Split

I have a long equation as below, As the equation is too long, I am working to split it. Unfortunately it was not successful. Confused where could be the mistake. Could you assist to point it. MWE: ...
4
votes
3answers
60 views

Alignment using an alignat{2} environment

In the following code, I have the appropriate alignment. All the equal signs are aligned. There is one expression that is written on two lines; I wanted the first plus signs aligned. I used an ...
2
votes
1answer
39 views

aligning equations with a tag

\documentclass{article} \usepackage[a4paper, total={6in, 8in}]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{mathtools} \usepackage{amsmath} ...
6
votes
1answer
186 views

Typesetting mathematical constants

Is there any command for typesetting constants in mathematical formulas? I would imagine something similar to \operatorname or \DeclareMathOperator, but for constants. I want the constant to be ...
5
votes
1answer
105 views

Define certain letter in math-mode to be always non-italic

Imagine I have a 500 page book about complex numbers. But I always wrote just j in math-mode as the imaginary unit. But I should have written \mathrm{j}. Is there a command I could write into my ...
1
vote
1answer
72 views

Center-justifying first part of multline

Consider the following MWE. With my document setup, the equation has to be broken into two lines. Luckily I can get the entire matrix on one line, so I can break the equation after the equals sign. By ...
3
votes
4answers
80 views

How can I change the font of all equations?

I'd like to change my default font style in all equations of one document, not just single equation. I guess I am using \usepackage[utf8]{inputenc} and \usepackage{amsmath}, which may be related to ...
3
votes
1answer
54 views

How to typeset times in regular text

How should I enter in a time of day in latex in order to have it typeset properly, if I am using the amsmath package? I am using pdflatex. say I want to write "12:00". In math mode, this gives a ...
4
votes
3answers
246 views

How to write two equations as part of one equation?

\begin{equation} \begin{align} \mathbf{x_{t}=f_{t}(x_{t-1},u_{t})}\\ \mathbf{y_{t}=g_{t}(x_{t},v_{t})} \label{eq:state-space&obs-equ} \end{align} \end{equation} I want that y(t) equation should ...
2
votes
0answers
24 views

\dotsc or \dots in this case? [duplicate]

I know that we should use \dotsc with a comma and \dots if there is no comma. But what if I have a comma on the right side and no comma on the left side, for example in Pr[X_i | X_{i+1}, ... ] ...
5
votes
2answers
100 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
5
votes
1answer
109 views

Why can't split with curly-brace be inside align but it can be inside gather?

The following code snippet will guide you through the issue chronologically. \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \begin{document} \section*{gather+aligned} ...
2
votes
2answers
48 views

set section environment to be math only, amsmath's begin{gather}

I want to create a small formulary, and for that virtually every line has to be math formulas. I use the gather-environment from the package amsmath, for example: ...
0
votes
1answer
89 views

“Dimension too large” using geometry package

So, I have an interesting problem with a really (really really ...) large equation that I am trying to typeset. Basically, crunching the file through pdflatex gives: This is pdfTeX, Version ...
5
votes
2answers
730 views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
0
votes
0answers
46 views

! Undefined control sequence \backsim [duplicate]

My latex file does not accept the command \backsim. This is what I wrote in the file: $ \backsim 2.5 \mu$ What is wrong?
0
votes
0answers
68 views

Locally change font style from sfmath to amsmath

I am using the package sfmath. It is rather hard to explain why, but the reason should not matter for my question. If it is required I can try to explain why I need sfmath. Nevertheless, the main ...
1
vote
1answer
57 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
4
votes
2answers
48 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
2
votes
3answers
98 views

Aligning a set of equations with one equation number

The following set of equations cannot be aligned from left to right. Since, I need to index them just with one number, I had to use split equations: \begin{equation} \begin{split} X={}^ 2 \bar{x} + ...
2
votes
1answer
61 views

changing the general theme of math fonts

I'm using latex templates which is producing a particular kind of math font, shown below. How can I change it to produce something like following? I'm particularly interested in changing the math ...
3
votes
2answers
63 views

Is there a better (more condensed) way of formatting a subscript \perp (or \bot)?

I'm writing a lot of these types of formulas: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathrm{e}^{-\mathrm{i} \boldsymbol k_\bot \cdot \boldsymbol r_\bot} ...
4
votes
4answers
174 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
2
votes
2answers
130 views

Equation setting

I have a problem with this equation compilation at the end{split} please fix it. \begin{equation} \begin{split} \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar ...
2
votes
3answers
144 views

\middle too big

I'm trying to typeset an equation that contains a "|": \begin{align*} \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle| X_{1} \leq F_{1}^{(-1)}(q) \right) \end{align*} ...
5
votes
4answers
81 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
2
votes
3answers
89 views

I think fractional expressions in my text is small and not normal?

\documentclass[12pt]{book} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{xepersian} \begin{document} \begin{persian} \lr{$-\frac{1}{3}$} \hspace{1cm} $-\frac{1}{3}$ ...
2
votes
1answer
79 views

Equation + explanation below

I have to write an explanation to my equation, and I would like to do it, below the equation. But, I do not know how to do that. It should look like this: My preamble look like this: ...
3
votes
3answers
593 views

Problem in writing the system of equation in LaTeX

Here's the code I have and here's the system of equation it creates which is not working as desired. Do you know how I can fix it? \item For what value of $b$ would the following system fo equations ...
1
vote
1answer
52 views

How to show a wide bar over a letter?

I want to have a wide bar over XY but it just shows a small bar. Any idea? \item In the standard $(x,y)$ coordinate plane, point $X$ has coordinates $(-4,0)$ and point $Y$ has coordinates $(0,-8)$. ...
1
vote
1answer
97 views

Make font size of numerator the same as denominator?

I have a simple question, I would like to make the font-size of the numerator the same as that of my denominator. For example, something like this: e^{-j \frac{2 \pi n k}{K_F}} gives me an ugly ...
3
votes
1answer
62 views

\bigl( \bigr) in inline mode and in align environment

The following, I believe, is a strange behavior of \bigl(<math content>\bigr) in inline math mode and in the align environment. Consider the following MWE: ...
4
votes
3answers
154 views

Large equation goes out of margin, want to centre it? [duplicate]

I have a large equation \begin{document} \begin{gather} W = \frac{1}{2\mu_0}(\frac{\Psi'^2 \pi^2}{b^2} \sum_{m,n} a_{mn}^2 n^2 (ab/4) + \frac{\Psi'^2 \pi^2}{a^2} \sum_{m,n} a_{mn}^2 m^2 (ab/4) + ...
0
votes
1answer
72 views

Define shorthand command

I use a lot of times the following code: \begin{gather} \begin{aligned} Math here \end{aligned} \end{gather} Is there a way to define a new shorthand command like the following: \SC { Math here } ...
0
votes
2answers
108 views

How to create a mathematics LaTeX document [duplicate]

Ok, this is a complete newbie question: How does one create a methematics paper using LaTeX for a PDF? Specifically, I need help knowing: What to write the document in How to render the Latex How ...
4
votes
1answer
100 views

Necessity of nested \text within math mode for proper \mathchoice-based scaling

Quick summary: \text can be used to ensure proper scaling with respect to the correct math style. When exactly should one use it for that purpose? What need is there for nested invocations of \text ...
13
votes
3answers
382 views

Force latex to show a square matrix as square

How can i force latex to print out square matrix as a square matrix with equal width and height in math-mode? I also read amsmath documentation, but don't found any useful help on it. For example ...
4
votes
2answers
139 views

About \def\b*{\begin{align*}}

I want to make the code shorter. I defined the following pair of macros: \def\b*{\begin{align*}} \def\e*{\end{align*}} My point is that I saw this is a document, with \def\b*{\begin{eqnarray*}} ...
2
votes
2answers
1k views

LaTeX Error: \mathbb allowed only in math mode.

I'm writing a package which, among other things, gives abbreviations for \mathbb, as follows: \newcommand{\A}{\mathbb A} \def\B{\mathbb B} \def\C{\mathbb C} \newcommand{\D}{\mathbb D} ...
7
votes
1answer
36 views

Is it OK to use a macro for an operator, or a macro defined by `\DeclareMathOperator`, as a non-operator?

Macros like \det, I believe, is intended to be used before some expression, but sometimes I wish to use them as in \det \in \mathbf{VP}. Is it acceptable to use them like this instead of using ...
4
votes
2answers
107 views

How to break a line in a long equation?

I am using a class named abntex2 and I don't know how to break an equation. I've tried inserting a package amsmath, breqn, mathtools, but it does not work. I type: \usepackage{amsmath} ... and ...
4
votes
2answers
120 views

Designing medcirc and circledtimes symbols

It would be great to use only \medcirc and \circledtimes from the pxfonts or to design the similar symbols by other techniques. The symbols from pxfonts are quite well but when I connect the ...
2
votes
4answers
152 views

How to modify eqnarray?

I'm currently writing a maths undergrad dissertation using Texmaker, and when I use eqnarray. It keeps justifying all of the equations to the right but still in the center? How do I change this so ...
-1
votes
1answer
195 views

How do I write this mathematical equation?

I want to write the shown mathematical equation in LaTeX but I am getting an error. Here this is not eta but it is n. The code which I am writing is \begin{equation} \Delta {E} + \frac{\omega^2 ...
4
votes
1answer
63 views

How to get a bigger bracket? I have tried \left and \right

I have the following code. The problem is the outer brackets are the same size as the inner bracket so it doesn't look that nice. I have tried \left and \right and it doesn't make a difference. The ...