juanuni
  • Member for 9 years, 8 months
  • Last seen more than a week ago
P symbol of probabilities
14 votes

You can try dsfont package and \mathds{P} command (mathmode) \documentclass{book} \usepackage{dsfont} \begin{document} $\mathds{P}(A)=0.75$ \end{document}

View answer
How do I align piecewise functions?
Accepted answer
7 votes

You could use cases environment for piecewise functions ... \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} M(x)& = \begin{cases} 2(2x),& x < ...

View answer
What causes the problem when compiling a displayed equation with \overbrace and \underbrace?
Accepted answer
6 votes

I suggest you use \[ \] instead $$ $$ for display math formulas. Like @WillieWong say, with amsmath package You can get a result, perhaps, more appropriate: \documentclass{article} \usepackage{...

View answer
Equation system with specific form
Accepted answer
3 votes

Maybe this could help ... \documentclass{article} \usepackage{amsmath} \usepackage{cancel} \begin{document} \begin{align*} &\begin{cases} \cancel{-12x}+6y=-42 \\ \phantom{.}\...

View answer
Insert image between \title and \author
Accepted answer
3 votes

You could try titling package: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{titling} \pretitle{\begin{center}\fontsize{18bp}{18bp}\selectfont} \posttitle{...

View answer
How to make aligned AND labelled equations (without using tag)?
Accepted answer
3 votes

You don't need use \tag mandatory with align environment. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsthm} \usepackage{amsmath} \usepackage{thmtools} \usepackage{...

View answer
Multiple alignment in math mode - a math equivalent to `\multicolumn`?
3 votes

You can use the \phantom command \documentclass{article} \usepackage{multicol,amsmath,amssymb,geometry} \begin{document} \begin{multicols}{2} \begin{align} P(&\mathcal{X},\mathcal{C},\xi|\...

View answer
How can I typeset this optimisation problem?
Accepted answer
3 votes

You could use align* and cases environments \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \text{minimize} & \sum_{i=1}^{N}\sigma[i] (t_\text{indoor}[i] - t_\text{...

View answer
Header with section name
Accepted answer
3 votes

This could works ... (lipsum package and \lipsum command is for the text in pictures) \documentclass{article} \usepackage[utf8]{inputenc} \title{ccc} \author{Bernar} \date{May 2015} \usepackage{...

View answer
Header and footer for a book using: part on even page and chapter on odd page
Accepted answer
3 votes

You can try with \documentclass[11pt,a4paper]{book} \usepackage[utf8]{inputenc} %\usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{hyperref} \usepackage[head=15pt, top=1in, bottom=1in, ...

View answer
How to tag both the align and individual equations within it?
2 votes

You could try with this not elegant suggestion: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \max_{x,y} & \quad f(x,y) \tag{P1}\\ s.t. & \quad x+y \...

View answer
Border matrix with multiple indices on top and bottom
2 votes

Maybe this work \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \begin{document} \begin{align*} \begin{array}{c} \textcolor{blue}{ \begin{array} {c@{\hspace{13pt}}c@{\hspace{13pt}}c@{\...

View answer
How to make tables in which the text appears vertically?
2 votes

You can try with this \documentclass{article} \usepackage{rotating} \usepackage{multirow} \usepackage{geometry} \begin{document} \begin{tabular}{|c|c|c|c|c|c|}\hline \multicolumn{4}{|c|}{ \...

View answer
Aligned Equation Resizing? (Above or Below \textwidth)
2 votes

You can use align environment from amsmath package: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \min\limits_{\boldsymbol{\Delta(P,Q),u}} & \sum\limits_i u_i, \\...

View answer
Pgfplot logaxis customization
2 votes

You need pgfplots package. Note the use of xtick=\empty, extra x ticks, extra x tick labels, extra y ticks and extra y tick labels \documentclass{standalone} \usepackage{tikz,pgfplots} %\pgfplotsset{...

View answer
Footnote in multirow & longtable doesn't print
Accepted answer
2 votes

You could use adjustbox package for get centered tables with footnote and minipage option for this environment \documentclass{scrbook} \usepackage{supertabular} \usepackage{longtable} \usepackage{...

View answer
Captions to narrow in SCfigure due to small image
2 votes

You can control the space between figure and caption with \sidecaptionsep ... \documentclass[a4paper]{article} \usepackage{pgfplots} \usepackage{sidecap} \renewcommand\sidecaptionsep{2cm} \...

View answer
Aligning issue with overline
Accepted answer
1 votes

You could try this \documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8]{inputenc} \begin{document} $z_1^p\overline{z}_1^{\,q}$ \end{document}

View answer
Table with broken horizontal line
1 votes

I try this adding a new colored row but unfortunately I only get tabu add vertical space to rows. Then I get this non-ellegant trick without tabu package: \documentclass[letterpaper]{article} \...

View answer
Aligning 3 equations with cases and equation number
1 votes

You can use cases environment for this kind of equations. For your problem You could define multicases envinment and use phantom command to get correct alignment: \documentclass[11pt]{scrreprt} \...

View answer
Help with grid lines in a pgfplot (Version 3)
1 votes

This is not an elegant solution, but it may help you: \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{...

View answer
Tikz: text overlapped by objects
1 votes

You can move the labels with xshift and yshift options (see the rectangle with number 5 like label) \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \usepackage{etoolbox}...

View answer
How to format the following equation using table
Accepted answer
1 votes

With fancyvrb package you can get it \documentclass{article} \usepackage{lipsum} \usepackage{fancyvrb} \newsavebox{\FVerbBox} \newenvironment{FVerbatim} {\VerbatimEnvironment \begin{center} \...

View answer
Compilation problem with pgfplots
1 votes

In online compiler appears error with compat=1.8. In your code compat=1.8 appears in \pgfplotsset and like option in axis environment. I delete that and produce this \documentclass{standalone} \...

View answer
Aligning Multiline Matrix Equations
1 votes

You can try with \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{split} \begin{bmatrix} a\\ b\\ c \end{bmatrix}&=\begin{bmatrix} a & b &...

View answer
tangens function pgfplots detail
Accepted answer
0 votes

Following the code in my post I noticed that I made a mistake while I was conforming the intervals. The solution was change +0.01 by -0.01 and vice versa, in \xmin and \mxax. \documentclass[tikz,...

View answer
How to make a command with three optional arguments?
0 votes

You can define something like this: \newcommand{\parcial}[2]{\frac{\partial #1}{\partial #2}} to make \parcial{f}{x}: Note that [2] is for the quantity of variables. Note the order of variables ...

View answer
How to make the first line of equation level up with question number?
0 votes

Do you want this? \documentclass{article} \usepackage{amsmath} \newcommand\Item[1][]{% \ifx\relax#1\relax \item \else \item[#1] \fi \abovedisplayskip=0pt\abovedisplayshortskip=0pt~\vspace*{-\...

View answer
Page setup in memoir class
0 votes

I use your code and lipsum package. I have no errors and looks like but with long chapter name ocurrs like your picture. Review your header config.

View answer
Tabs in cases environment in an equation
0 votes

Isn't an elegant response, but it works. \begin{align*} \phi_{C}(u)= \begin{cases} (j-1)\cdot \lambda & \text{for } \;\,d_{j-1}\;\leq u \leq d_{j}-\lambda \qquad j=1,\ldots ,r\\ ...

View answer