0
votes
0answers
19 views

Summing a list and specifying number of elements on list

How would I create something like either of the following on LaTeX?
1
vote
1answer
51 views

How to write mathematics in cover letter? [closed]

I can't write $\ell_1$ and other mathematics symbol in this cover letter: what packages are needed? \documentclass[a4paper,parskip=full,]{scrlttr2} \usepackage[urw-garamond]{mathdesign} ...
2
votes
2answers
75 views

overline over no text

Suppose I want to have the function $\bar: A \to B$ where instead of $\bar$ it's a longer bar. What is the proper way to do this? Note that the bar here is floating on top of no text. It's just ...
2
votes
3answers
140 views

Difficulties implementing Equations

I am trying to write this equations in TeXnic Center, but so far, I am not very successful. The equations I want to write are here: ...
2
votes
2answers
137 views

Display a breve over several letters

I'm writting with a very dumb question, buy I haven't been able to find anything regarding this topic, nor think of a more general topic to look into. I'm trying to have a \breve which scales ...
2
votes
2answers
110 views

Difficulty with \flalign

Consider the following example. \begin{flalign} &Max Z=a+b\\ &Min P=c-d\\ &\mbox{subject to}\\ &a \leq 10\\ &c \geq 5 \end{flalign} When I run it I get the desired output, but ...
39
votes
4answers
3k views

What is the Necessity of $…$ Around Numbers?

I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand ...
3
votes
1answer
258 views

How to squeeze a formula inside a text in latex?

I type some formula in latex inside my text, but When I make it pdf I see it is not squeezed. How I can make it squeeze? See the attached, which shows the problem!
2
votes
2answers
90 views

Summation as exponent

x^{\displaystyle\sum_{k=1}^n {n \choose k}p^k + 1} How can I make the exponent look smaller?
3
votes
2answers
126 views

How to format this formula, in particular, the parentheses better?

$$\mathrm{err} \left( h(\vec{\theta}, \vec{x}), y \right) = \delta_{0y} ~ H \left( h(\vec{x}; \vec{\theta}) - \frac{1}{2} \right) + \delta_{1y} ~ H \left( \frac{1}{2} - h(\vec{x}; \vec{\theta}) ...
5
votes
2answers
66 views

Missing $ inserted when printing numerical phrase

Thanks for taking the time to reply, I did already search the forums and google and know this is a common problem but none of the suggestions I found worked. When trying to use latex to print the ...
3
votes
1answer
44 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
5
votes
1answer
128 views

Break in square root line

I'm having a problem where the line that runs the top length of my square root sign is discontinuous. \begin{equation} N_t(\text{V})=\sqrt{\sum_{i=0}^{n}N_i^2} \end{equation} Yields this... ...
5
votes
2answers
337 views

Prettying up this equation from Mathematica

I like to type in 2d maths into Mathematica and then generate latex code for it. It has been working fine so far until I attempted this expression: TeXForm[HoldForm[ S (k*L) = (4*l + 1)/ 2 ...
1
vote
0answers
48 views

How can I make text inside set notation look like normal text?

I'm very new to LaTeX, and have never been very good with computers, so apologies for not knowing how to post questions on here properly or missing out anything important. I have this: ...
2
votes
2answers
190 views

Problem with the \mathbf command

In this MWE, I want to obtain bold letter for the letter "H" (compare the two "H") : \documentclass[10 pt]{beamer} \usetheme{default} \usepackage{lmodern} % load a font with all the characters ...
3
votes
2answers
109 views

reducing space taken by big math equation

i hve few big equation in my file and they take lot of space. plase help me in reducing their size.i have already tried using \declaremathsizes but it only reduces math font size nt the space it ...
8
votes
2answers
87 views

How do I vary the height of braces without varying the width?

I am trying to highlight pieces of a formula with some text on the side, but one of those pieces is multiple lines. The solution that I came up with was to use braces in an array to highlight the ...
2
votes
0answers
73 views

Automatic line and page breaking - how to turn it off?

I am using MiKTeX 2.9 , I want to turn off automatic line and page breaking , I was trying to use {verbatim} , {alltt} and \verb+...+ , it works , but doesn't keep original font (I am using ...
1
vote
0answers
123 views

\to or \longrightarrow and \mapsto or \longrightarrow in functions? [closed]

I'm typing up a research project and I am not sure which ones I should use when I'm defining functions. I personally prefer \longrightarrow and \longmapsto but I see a lot of people use \to and ...
3
votes
0answers
77 views

Should points in geometry be italic? [closed]

Variables should be italic, that's where we all agree (I think). So, a length of a segment could be marked with a. What about using |AB| for length of line segment? What about notation for a triangle? ...
4
votes
1answer
92 views

Equation number placement

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \begin{equation} R_{jt,L} = \left\{ \begin{array}{ccl} R_{jt} & ; & \mbox{if $P_{jt-1} > P_{jt-1,L}$; } \\ ...
1
vote
3answers
119 views

How to outputs 'C\C++'

I just try output C\C++ in LaTeX as following below: \textit{C\backslashC\+\+} But im getting this issue: ! Undefined control sequence. <argument> C\backslashC \+\+ ...
2
votes
2answers
263 views

Two questions: Math mode and tree diagrams for probability in LaTeX

I am trying to print a worksheet for the math class I'm teaching and I was wondering if anyone can specifically help me out in two areas. a) How do I get the output BAL1L2 without the slant? ...
4
votes
1answer
74 views

Split long text in a formula

I need to insert a formula containing text within. My problem is this text is long and it goes way over the margins, so I am trying to split the line so it could nicely fit in the page. Nothing I have ...
8
votes
3answers
764 views

Write more beautiful math equations, like a professional book

I want to write math equations more "beautiful". My equations are shown as follows: The vector looks ugly and disproportionate. And I like that they look it this way: The vector looks ...
7
votes
2answers
149 views

Typsetting binary arithmetic

I'm stuck trying to typset the following in math mode. I cannot get the spacing correct. 0100 [4 in decimal] x 1100 [12 in decimal] ------ + 0000 [0100 x 0] + 0000 ...
8
votes
4answers
164 views

How to define mathematical functions by the action on an element?

I would like to define a mathematical function by its action. Something like \documentclass{article} \begin{document} \[ \begin{array}{cccc} f\colon & R\times R ...
0
votes
1answer
112 views

Straight bar Latex [duplicate]

How to write the straight bar with subscript as I have attached in the picture?
3
votes
3answers
263 views

Equations in normal LaTeX to MathJax formatting

To use the align environment in a document one does something like: \begin{align*} x &= \sqrt{4^2-1^2} \\ &= \sqrt{15}. \end{align*}put However, to achieve the same desired output on a ...
1
vote
1answer
103 views

Assigning different colors to numerical values below a certain parameter?

I'm relatively new to Latex so apologies for any stupidity upcoming. I'm trying to read a Matlab vector into a latex table with values ranging between 0 and 1. For the values less than 0.1, I want ...
6
votes
1answer
362 views

The size of roots

I can't get to the root of this problem: I need the second root to be the same height as the first one $\sqrt{F} \: \sqrt{F_{x_x}}$ I know I can use \vphantom, but I don't know how.
3
votes
2answers
324 views

How to improve this code to obtain more compact equation?

I have been trying to obtain more compact output for the following code. Any help will really be appreciated! \Pr(s_i^2)= ...
0
votes
1answer
227 views

Formatting of other special functions

There are special macros for stuff like exp, sin, cos, etc... but not for the non-elementary special functions like F, J, I, K, E etc... although their symbold are quite standard throughout ...
2
votes
1answer
377 views

Compound fractions (i.e., “mixed numbers”) look bad in displaystyle

I find that in display mode, fractions that represent simple rational numbers look way too big. For instance, consider this case: $$ a = \frac12(b+c) $$ The fraction gets inordinately large ...
1
vote
3answers
181 views

Equation line break up

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm \topmargin=-1.0cm \textheight=24.5cm ...
2
votes
3answers
125 views

Formatting an equation

\begin{align} \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2 = \frac{1}{2} \left(1-\epsilon ^2\right) \left( -\frac{S \epsilon \sin\tau }{\sqrt{\lambda }} -\frac{\text{g2} S^2 ...
11
votes
3answers
252 views

How to draw a border around character in a formula?

So far everything I found on the matter of borders only applies to the text mode. I want to be able to do something like $x_i = y$ so the result will be like the ordinary "xi = z" formula with the ...
6
votes
2answers
251 views

Vectorization operator

How can I represent the vectorization of a matrix A (i.e, vec(A))? I am talking about this simple operator:
4
votes
1answer
67 views

Smaller font for < sign

I have a table where i report times. Some elements are very small and I would like to write $<1\mathrm{ms}$. However, if I do so, the < 1ms will occupy even more space than a three digit number ...
2
votes
0answers
158 views

radical of polynomial A rad A [closed]

Do we have something like \rad for the radical of a polynomial in LaTeX? I am writing in the equation mode within the theorem environment and everything is in italics. If I use \text{rad}, then I get ...
12
votes
2answers
256 views

How to have a number directly under a decimal point?

I am trying to write a number in quaternary form and would ideally like to show this by having a four underneath the decimal point. I've searched around, but can't figure out how to do this so any ...
2
votes
1answer
148 views

Formatting a conditional table of coefficients in LaTeX

I'm totally blanking on how to format this, or even what to use as a search term to see if anyone has asked about it before. I would like to make a conditional table of coefficients (ie. two tables ...
2
votes
1answer
345 views

Formatting capital letters in math mode

This is perhaps a simple question, but I would like to print a capital I in my LaTeX document (beamer specifically) inside a $...$ construct. I would like my I to appear more substantial by having ...
3
votes
1answer
295 views

In “math-mode line” non-math type

I'd like to type non-math text inside of the bracket math text lines, or know of a better way to do what I'm trying to do. In the following, I don't literally type \nomath. I don't know what I need ...
22
votes
1answer
366 views

Sloppy \left and \right?

The \left and \right commands often produce improvidently large delimiters. It almost always looks better to use delimiters that are just slightly too small than delimiters that are too large. With ...
1
vote
0answers
45 views

Space between a|b in math mode? [duplicate]

For a context free grammar I need to write: A -> a | b My code for this is $ A \rightarrow a | b $ however this gives me something like A -> a|b // wanted: a | b, note the space before ...
3
votes
1answer
956 views

Typeset a number in hexdecimal format (preferably math mode)

Is there a macro for formatting numbers in programming style 0x hex notation, e.g. instead of -1155484576 have 0xbb20b460. I would like to embed these numbers in a math mode context. E.g. if I just ...
2
votes
2answers
157 views

Can anyone solve my error and make the long multiline equation multiline please?

In case it matters, I'm using win edit as editor. \documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm ...
3
votes
2answers
312 views

LaTeX Capabilities: Complicated and Important Equations

As I am introducing LaTeX to an audience, I'd like to show how it can render equations beautifully. As such, I'd like one equation (math/physics) that combines many different formatting requirements, ...