I would like to put a \xRightarrow into a list instead of a bullet, unfortunately I get  ! Argument of \\xRightarrow has an extra }. &lt;inserted text&gt;                  \par  l.8     \item[$\xRightarrow[continuous]                                     {norm}$] Test   This is from the MWE:   \documentclass{article}  \usepackage{amsmath} \usepackage{mathtools}  \begin{document} \begin{itemize}     \item[$\xRightarrow[continuous]{norm}$] Test \end{itemize} \end{document}   using  $ pdflatex --version pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) $ lualatex --version This is LuaTeX, Version 1.10.0 (TeX Live 2019/Arch Linux)   How can I fix this?  Edit: as @Phelype Oleinik points out in the comments, this is related to parsing the braces [,].
121494
When using commands that allow using key-value pairs, how can one provide an argument value that has commas in it? As an example, say I'm using the \newacronym command from the glossaries package as below:  \newacronym[firstplural = Alphas, Bravos, and Charlies (ABCs), plural = ABCs]{ABC}{ABC}{Alpha, Bravo, Charlie}   Unfortunately, the comma is used to separate key-value pairs so the Bravos, and Charlies (ABCs) portion doesn't get parsed correctly. Is there a way to overcome this?
33114
--Revised-- I am looking at a math workbook for teenagers. This one has the following structure:  1.Main Chapter 1.1 Subchapter 1.11 Task 1 a) problem 1   b) problem 2   c) problem 3 d) problem 4   e) problem 5 1.12 Task 2 etc. ...  Many of the math problems are very small and the natural thing would be to have them on line, horizontally. However an expression is often broken and aligned at the equal sign. Not unlike an equation (but not). Secondly, when the line that contain the structure breaks, the item indicators also align, presuming the use of an enumerated list. How can I reasonably assume this is done? Does it have to be a forced method, as a table, or can it be a flexible one, like inline?
75226
\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} %the argument for d specifies the maximum number of decimal places \usepackage[ngerman]{babel} \usepackage[applemac]{inputenc} \begin{document} \begin{align} \bar{x}&amp;=7+(2\times9) + (2\times10) + (4\times11) + (6\times12) + (7\times14)\\  &amp;+(2\times15) + (3\times16) + 17 + 18 + 19\\ \bar{x}&amp;=14  \end{align}  \end{document}   I was looking long and hard for an answer, I believe {alignat*} is capable to do what I want, I just can't figure out how. I want the too long equation to align as follows: 1st and 3rd row the = should be aligned. But I also want the 1st and 2nd row to be aligned where the first + comes in.
90370
What is wrong with this command? It says it has a problem with value separators, but i can't find it  /summon ArmorStand ~ ~ ~10 {ShowArms:1,NoBasePlate:1,Pose:{LeftArm:[0f,0f0f],RightArm:[0f,0f,0f],Body:[0f,0f,0f],LeftLeg:[0f,0f,0f],RightLeg:[0f,0f,0f],Head:[0f,0f,0f]},ArmorItems:{id:diamond_boots,ench:[{id:protection,lvl:1000},{id:blast_protection,lvl:1000},{id:thorns,lvl:1000},{id:unbreaking,lvl:1000}]},{id:diamond_leggings,ench:[{id:protection,lvl:1000},{id:blast_protection,lvl:1000}, {id:thorns,lvl:1000},{id:unbreaking,lvl:1000}]}, {id:diamond_chestplate,ench:[{id:protection,lvl:1000},{id:blast_protection,lvl:1000},{id:thorns,lvl:1000},{id:unbreaking,lvl:1000}]},{id:diamond_helmet,ench:[{id:protection,lvl:1000},{id:blast_protection,lvl:1000},{id:thorns,lvl:1000},{id:unbreaking,lvl:1000}]}}
30384
I want to describe the variables involved in an equation in an itemized environment such that every item begins with the variable name and subsequently comes the description for it. I'd like to have all the descriptions left aligned.  Here is a MWE that of course does not produce what I am looking for.  \documentclass{standalone} \begin{document} $E[g(x)] = \int_{-\infty}^{+\infty} f_X(x) \, g(x) \, \mathrm{d}x$. % where, % \begin{itemize}     \item $x$      \quad is a continuous random variable.     \item $f_X(x)$ \quad is the PDF of $x$.     \item $g(x)$   \quad is a function of $x$. \end{itemize} \end{document}
103306
I'm doing the following thing  \documentclass[leqno]{amsart} \begin{document} Example. \begin{itemize} \item Such and so \item the following holds    \begin{align}        x - 2    \end{align}        always. \item whatever else \end{itemize} \end{document}   Since I number my equations on the left, what I don't like about this is that the equation number is closer to the margin than the itemize bullets, while I would like it to be the other way around. Is there a way to do that? Maybe I should create a box or minipage with tikz (or something similar)?
72828
Is there a way to use newcommand or some other nice technique to transform any occurence of  "bla"   in math mode into  \text{bla}   The reason I ask is because it is easy, and doesn't interrupt the flow of reading the (La)TeX code as much.  I would like to keep Xe(La)TeX's nice quote behavior (ie it can use the regular "" instead of backticks to quote some text outside math mode).
59668
Lets say I have a 5x5 matrix. I want to place 2 leftrightarrows (with descriptions "3", "2") underneath the matrix, but really close to it: first pointing from col1 to col3 and second from col4 to col5. Plus updownarrows with similar outcome. How can I achieve that?  draft:  1 1 1 | 1 1  &lt;--> &lt;->
66432
The Markdown editor knows that an empty line, followed by a number, followed by a period, followed by a space, is a list item.  This works great It's almost magic  The problem is that I almost always use a close parenthesis for my lists. I think it's a pretty common practice, but the problem is that the editor / Markdown parser doesn't accept parenthesis as an acceptable list delimiter:  This fails horribly This is on the next line I swear
26672
I found this program and I was wondering how can I add on a left brace as in the systeme package or in the cases environment? Also is it possible to left align the right-hand side of the equal sign ?  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{4}    2x &amp; {}+{} &amp;  y &amp; {}+{} &amp; 3z &amp; {}={} &amp; 10 \\     x &amp; {}+{} &amp;  y &amp; {}+{} &amp;  z &amp; {}={} &amp;  6 \\     x &amp; {}+{} &amp; 3y &amp; {}+{} &amp; 2z &amp; {}={} &amp; 13 \end{alignat*} \end{document}
115509
Consider the following table example, the text in the second row is wrapped.  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{booktabs}  \usepackage{array} \setlength{\extrarowheight}{5pt}  \begin{document}    \begin{tabu} to \linewidth {X[.5,c] X[1,l] X[1,l] X[2,l]}     \toprule     \rowfont{\bfseries}     Row &amp; Head 1                   &amp; Head 2 &amp; Head 3 \\\hline     1.  &amp; short text               &amp; ? &amp; ? \\\hline     2.  &amp; long long long long text &amp; ? &amp; ? \\\hline     3.  &amp; short text               &amp; ? &amp; ? \\\hline     4.  &amp; short text               &amp; ? &amp; ? \\     \bottomrule   \end{tabu}  \end{document}   It renders like:    Why is there so little space between the text in the second row and the rule below it?  How can I fix it?  What comes to my mind is to use \\[1ex] instead of \\, is there a better solution?
90365
I'm having trouble using (the amazing)  package with a tabular environment.  Specifically, I'm getting a full extra row in my tabulars when creating rows using \seq_map_inline. I can avoid this behavior by not including the \cr in the last row (in the MWE below, this would involve a few more lines of code, but was not a huge deal in the original usage), and then including the \cr verbatim.  In the MWE I purposely delete a lot of space “just in case” but it does not change anything (except make it harder to read, sorry). Another fix might be inserting negative spacing as in , but I'm confused why the kernel is inserting something into my table (it takes up no horizontal space at least, seen by add a Hi before the \end{tabular}).  Broken but should be right  \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \DeclareDocumentCommand \myTable {m} {   \seq_set_split:Nnn \l_tmpa_seq {,} {#1}   \begin{tabular}{|c|c|}\seq_map_inline:Nn \l_tmpa_seq {Entry&amp;##1\cr}\end{tabular} } \ExplSyntaxOff \begin{document} \myTable{A,B,C,D} \end{document}     Works but more complicated  \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \DeclareDocumentCommand \myTable {m} {   \seq_set_split:Nnn \l_tmpa_seq {,} {#1}   \int_zero:N \l_tmpa_int   \begin{tabular}{|c|c|}     \seq_map_inline:Nn \l_tmpa_seq {Entry&amp;##1       \int_gincr:N \l_tmpa_int       \int_compare:nNnTF{\l_tmpa_int}={\seq_count:N\l_tmpa_seq}{}{\cr}      }      \cr   \end{tabular} } \ExplSyntaxOff \begin{document} \myTable{A,B,C,D} \end{document}
64085
After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the \bigl,\bigr pair with brackets, parentheses, etc. for operators like sums, products, and integrals, and \left,\right in all other cases.  I only recently found out about \middle , which has solved what had been a vexing problem for me: delimiters for function arguments (slashes, bars) not scaling properly. Leafing through my cheatsheet has not been of much help, so I wish to ask: is there an equivalent of \middle for \bigl and \bigr, or would the use of \middle along with that pair not be gauche?
110129
I would like to insert some explanatory text between two items of a numbered list.   Is there a command that can do this in the same way as the \intertext command in an align environment?
104474
I’m using TeXLive 2015.  Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX.  \documentclass{article} \usepackage{     fontspec, %   mathtools,     unicode-math, }  \setmathfont[ %   range = \mathcal, ]{xits-math.otf}  \begin{document}  %   $\mathtt L$     $\mathcal L$  \end{document}   The desired output – when uncommenting all lines – should be:    However, when uncommenting all lines and compiling with xelatex the script ‘L’ is missing. I found out that (re-)commenting out any of the three lines mathtools, range = \mathcal and $\mathtt L$ will restore the script ‘L’. Unfortunately, I have a scenario in which I need all three lines.  Also, compiling with lualatex doesn’t seem to yield any problems.  A similar question is , where  for the unicode-math package has come up. Is that stemming from the same issue or is there something else going on here?
5165
It seems that the commands \xrightarrow, etc. in mathtools package don't allow me to put text above or below two arrows (\rightrightarrows). Is there any way to do this with extensible arrows? A crude way would be  \overset{b}{\underset{a}{\rightrightarrows}}   but the arrows are not extensible. For that matter, it also doesn't support \twoheadrightarrow, etc.
105947
This example illustrates some conflict between xelatex and natbib- and footnote-generated superscripts.  The semi-colon between distinct citations is not typeset as a superscript, nor is the dagger.  The asterisk, however, looks fine to me.  Any suggestion on how to make these auto-generated superscripts look more normal?   Update Mostly fixed, see second screenshot below.  Update 2 Fully fixed!  Alter the MWE below with this code:  \DefineFNsymbols*{safestar}{{$*$}{\textdagger}{\textdaggerdbl}{\textsection} {\textparagraph}{\textbardbl}{$**$}{\textdagger\textdagger} {\textdaggerdbl\textdaggerdbl}{\textsection\textsection} {\textparagraph\textparagraph}{\textbardbl\textbardbl}} \setfnsymbol{safestar}   This comes  Achim Blumensath on the MinionPro mailing list, together with  for the footmisc package.  \documentclass[article, a4paper, 12pt, oneside]{memoir}  \usepackage{fontspec} \usepackage{xunicode} \usepackage{xltxtra} % c/o @wasteofspace, this is the "offending" line \defaultfontfeatures{Mapping=tex-text} \setmainfont{Linux Libertine O}  \usepackage[super]{natbib} \usepackage[perpage,symbol]{footmisc}  \let\sc\scshape \let\bf\bfseries \let\it\itfamily  \setlrmarginsandblock{23mm}{23mm}{*} \setulmarginsandblock{23mm}{198mm}{*} \checkandfixthelayout  \begin{document}  \bibliographystyle{plainnat} \setcitestyle{nature} \thispagestyle{empty}  This is a nice\footnote{(That is to say, minimal.)} example.\cite{lenat1976artificial,lenat1984and} Unfortunately, it has some problems.\footnote{From an aesthetic point of view.}  \bibliography{corneli}{}  \end{document}     But if we don't load , then we get this other slightly problematic result:   I guess I can live with the small and over-elevated asterisk.  It looks less bad when it follows a period.