I frequently encounter the following situation: I am proving a claim which consists of multiple sub-claims, which I've enumerated in a list using the enumerate environment provided by the eponymous package. The proof then also takes the form of such a list. At the end of the proof, the tombstone (a.k.a. QED symbol) appears vertically offset from the final line of the last item of this list. Here's a minimal working example to see this behavior: \documentclass{article}  \usepackage{enumerate} \usepackage{amsthm}  \begin{document}   \begin{proof} \begin{enumerate} \item Problem \end{enumerate} \end{proof}  \end{document  I don't like this behavior, and would like the tombstone to appear vertically aligned with the final line of the last item. So far, I've gotten by with some quick and dirty solutions (using negative \vspace) but I've now come across a case where that doesn't work (because of page breaking). So I'm looking for a proper solution. I've taken a look at , which the site's algorithm suggested to me while typing this up, but didn't like the quick and dirty way suggested there (and wasn't able to implement egreg's answer in a satisfactory manner).
122506
I write the codes below to get a square as if to say q.e.d.  $$equation$$\textbox{\hfill\square}  Text\textbox{\hfill\square}   I want the square at the right extreme of the same line. I succeed only when the rest of the line has text and/or an equation within $ $, but not when it has an equation within $$ $$. In this case the square appears in the extreme right but in the next line but I want it on the same line.  Any help is appreciated.
92468
I would like items in a list to have a hanging indent (that is, for all lines after the first to be indented by a space or more),  but the traditional \hangindent command doesn't work for this.  \documentclass{article}  \begin{document} \hangindent=1cm This line of text has a hanging indent that looks fine, as long as it is outside a list environment. \begin{enumerate} \item \hangindent=1cm This line is inside a list environment and doesn't have a hanging indent- how can I add one? \end{enumerate} \end{document}     How can I add a hanging indent within a list?
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?
22814
I am using enumitem to handle my enumerate and itemize lists. I have a list like  \begin{enumerate}[label=Step \arabic{enumi}.] \item step the first \label{en:step-1} \item el secundo \label{en:step-2} \item item the third \label{en:step-3} \end{enumerate}   When I cross-reference one of these items, the punctuation shows up in the document. For example,   Let us reference \ref{en:step-1}.   gives me  Let us reference Step1..   The regular enumerate or itemize environments don't have this problem; punctuation does not show up when cross-referencing.   In the enumitem documentation there is an option afterlabel but that is only for inline lists.  Is there an option in enumitem, or a way of using enumitem that adds the correct punctuation to the list, but lets me cross-reference the label without the punctuation?
75194
I'm somewhat of a LaTeX noob, and this is driving me completely nuts.  When I type  \documentclass{article} \usepackage{enumitem}  \begin{document}     Some text     \begin{itemize}[noitemsep]         \item Item 1         \item Item 2         \item Item 3     \end{itemize} \end{document}   I don't want the space which appears in between the text "Some text" and the itemization to be there:    When I search around on Google all I see is tons of long, complicated advice on this site, StackOverflow, forums, etc. on how to not fix the problem ("parskip is evil", etc.), or tons of vague/confusing answers on what package to look at, with no actual example for me to learn from.  So while this question is already asked many times, I have never found a single concrete answer to this question.    The question couldn't be simpler: How do I "properly" get rid of this extra space?
102451
In the enumerate environment, an item begins with "[Co]image is..."  LaTex interprets the square bracket as a customized bullet symbol. How can I write [ without this glitch?
121388
How can I get the details and transpose it to horizontal form? Every record ends after Couse. Couse will never be blank or null. Note: These four headers will be there for the below data: Name, City, Age, Couse If you see the second record, there isn't any &quot;Name&quot;: &quot;&quot; -&gt; missing so it should be null in place of that and the remaining will be appended after that with a pipe separated like this:     null                | Ors  | 11 | MB I have data like below in the demo.txt file &quot;Name&quot;:&quot;asxadadad  ,aaf dsf&quot; &quot;City&quot;:&quot;Mum&quot; &quot;Age&quot;:&quot;23&quot; &quot;Couse&quot;:&quot;BBS&quot; &quot;City&quot;:&quot;Ors&quot; &quot;Age&quot;:&quot;11&quot; &quot;Couse&quot;:&quot;MB&quot; &quot;Name&quot;:&quot;adad sf&quot; &quot;City&quot;:&quot;Kol&quot; &quot;Age&quot;:&quot;21&quot; &quot;Couse&quot;:&quot;BB&quot; &quot;Name&quot;:&quot;pqr&quot; &quot;Age&quot;:&quot;21&quot; &quot;Couse&quot;:&quot;NN&quot;  Expected Output: asxadadad  ,aaf dsf | Mum  | 23 | BBS null                | Ors  | 11 | MB adad sf             | Kol  | 21 | BB pqr                 | null | 21 | NN  I tried the below code: but not working my logic counter=0 var_0='Couse'   while read -r line     echo &quot;$line&quot;     counter=$(( counter + 1 ))     var_1=`echo &quot;$line&quot; | grep -oh &quot;Couse&quot;`     if [ $var_0 == $var_1 ]    then         head -$counter demo.txt &gt; temp.txt         sed -i '1,$counter' demo.txt         counter = 0    else         echo &quot;No thing to do&quot;    fi   done &lt; demo.txt
113189
I'm trying to find an alternative to the standard tombstone qed symbol for more informal papers. I initially thought of an empty square with Pub written inside, but what would actually be better would be a small beer mug symbol. (much like the one found in this set of icons )  Unfortunately there doesn't seem to such a symbol in the comprehensive latex symbol list (although many funny symbols can be found there). Has anyone thought about this? Is there any quick-and-dirty solution?
83881
I got the following problem: Right now I am checking my equations, which are usually written in align. This looks great in most of the cases, but sometimes the pagebreaks are weird, ie there is a lot of vertical whitespace left (like 2.5cm) at the end of a page. I made the following MWE to illustrate this.  \documentclass[a4paper, 12pt, headsepline]{scrreprt} \usepackage[onehalfspacing]{setspace} \usepackage{amsmath, amssymb, mathtools} \usepackage{mathptmx} \usepackage[a4paper]{geometry} \geometry{left=2cm,right=5cm,top=2cm,bottom=2cm} % \usepackage{lipsum} %\lipsum \usepackage[pangram]{blindtext}  \begin{document} \Blindtext[1][3]%1 paragraph, 3 pangrams \begin{align} X_{t+1} &amp;=  \frac{X_{t+1}+X_{t+1}}{Y_t}  \label{eq:1}  \intertext{Solving...:} \notag  X_{t}  &amp;=  \frac{X_{t+1}+X_{t+1}}{Y_{t+1}} \notag \\ \intertext{Solving further...:} \notag  % ===PAGEBREAK HERE: 2nd page begins=== &amp;= \frac{X_{t+1}+X_{t+1}}{Y_t} +  \frac{X_{t+1}+X_{t+1}}{Y_t}  \notag \\ &amp;= \frac{X_{t+1}+X_{t+1}}{Y_t}...  \notag \\ \intertext{Solving further...:} &amp; = \frac{X_{t+1}+X_{t+1}}{Y_t}  \notag \end{align}  \end{document}   In the MWE, the first 'Solving further' should be on the first page instead (to save space and it would also look better I guess?). The position where I would like the pagebreak to be is also marked as a comment in the MWE.  My question is first on a general basis: Which is the best environment to achieve multiple line equations, which can be aligned as in align, and to save space at the same time? Or to be more precise: If possible, I'd like to stick with align and adapt the pagebreaks only if necessary.  Thanks!
66173
I am trying to learn how to use enumitem's keys to adjust a description list.  In this case, I would like to have my list items and description text both left aligned, but the description text should all start at the same horizontal position.  What I have below comes pretty close, but it seems that the setting of \labelwidth is being ignored, and that there is some other thing I need to add to get the correct value of leftmargin.  The tabular version produces that output I want, but would prefer to use the description list from enumitem.  \documentclass{article} \usepackage{enumitem} \usepackage{calc}  \newcommand*{\LongDescription}{This is a  long sentence to check that when it gets wrapped it is indented properly on the next line, but doesn't seem to when used in the list.}% \newcommand*{\ShortDescription}{A very short description.}%  \begin{document} \newcommand*{\LargestItem}{The Largest Named Item}% \newlength{\MaxWidth}% \settowidth{\MaxWidth}{\LargestItem}% \newlength{\MaxWidthPlusLabelSep}% \setlength{\MaxWidthPlusLabelSep}{\labelsep+\MaxWidth}%  \begin{description} [leftmargin=\MaxWidthPlusLabelSep,labelwidth=\MaxWidth] \item Small Name:     \ShortDescription \item The Largest Named Item: \LongDescription \item Larger Name:     \ShortDescription \end{description}   \hrule\medskip  I want something like this, but should be able to do this with a list:  \bigskip \begin{tabular}{l@{ }p{\linewidth-\MaxWidthPlusLabelSep}} Small Name:     &amp;\ShortDescription\\\\     The Largest Named Item:     &amp;\LongDescription\\\\     Larger Name:     &amp;\ShortDescription \end{tabular} \end{document}   I have tried the solutions on how to  and  but have not been able to adapt them to what I want.
96232
The following is produced by beamer version 3.41 with enumerate:  \documentclass{beamer} \mode&lt;presentation&gt;     {\usetheme{Rochester}} \begin{document} \begin{frame}   \begin{enumerate}[(a)]     \item Foo     \item Bar   \end{enumerate}   \begin{enumerate}[1]     \item Foo     \item Bar   \end{enumerate} \end{frame} \end{document}     And with beamer version 3.42 the following:    The latter output is so, well, ugly, that it's probably a bug. While waiting for a bug fix (?), how can I temporarily fix this so that I get the output produced by beamer 3.41?
9537
the following code will only make the qed not appear in the second proof. However, it it possible to make the qed symbol never appear at the end of the proofs without having to specify it locally every time?  \documentclass{article} \usepackage{amsthm} \begin{document} \begin{proof} This has the QED symbol. \end{proof} \begin{proof}\renewcommand{\qedsymbol}{} This hasn't. \end{proof} \begin{proof} And this has it again. \end{proof} \end{document}
47838
My self defined environment having a symbol at the beginning and at the end works fine for text without enumeration. When including enumerate the symbols are not there where desired. Is it possible to have the first symbol directly in front of &quot;1.&quot; i. e. in the same line and the ending symbol in the same line as the last line of the enumeration? With \ignorespacesafterend and \unskip I did not succeed. \documentclass{article} \usepackage{amssymb} \newenvironment{myenv}{$\blacktriangleright$}{\hfill$\blacktriangleleft$}  \begin{document} There is a text.  \begin{myenv} And an example \end{myenv}  Here is another text.  \begin{myenv} \begin{enumerate} \item A \item B \end{enumerate} \end{myenv}  \end{document}
106878
It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement.  How can I do this in LaTeX? If I place a qed-box at the end of the statement there is an additional linebreak, which is inacceptable formating.
59376
This is a very short question and hopefully there's a short answer. I know I can use \stackrel{top}{bot} to vertically merge two symbols into one with top on top and bot on the bottom. Is there something similar for left-right merging? I ask because I want to make a += symbol (for an additive update step in code). If there's already a symbol for that, that would be OK too.
100341
I wonder why the compiler shift the item that does not fit the rest of the page to the next pages ?! How to tell the compiler to break such item ?!   Here is a screenshot     and here is code regarding this part   \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage[utf8]{inputenc} \usepackage{titlesec} \usepackage{titletoc} \usepackage{enumitem} \usepackage{mathtools} \setlength{\footskip}{15pt}  \begin{document}  XXX\\[17.5cm] YYY \begin{align*} [\textbf{a},\textbf{b}]_{\mathbb{R}^9}  = \phi\bigl([\phi^{-1}(\textbf{a}),\phi^{-1}(\textbf{b})]_{\mathfrak{u}(3)} \bigr) . \end{align*}  We check the verification of the conditions the bracket $[\,\, , \,\,]_{\mathbb{R}^9}$ must satisfy in the following three steps:  \begin{enumerate}[nolistsep] \item[(i)] (The $\mathbb{R}$-linearity of $[\,\, ,\,\,]_{\mathbb{R}^9}$) For arbitrary $\textbf{a},\textbf{b},\textbf{c} \in \mathbb{R}^9$ and $\alpha_1,\alpha_2 \in \mathbb{R}$, it follows by the $\mathbb{R}$-linearity of $[\,\, \,\,]_{\mathfrak{u}(3)},\phi$ and  $\phi^{-1}$ that \begin{equation*} \begin{split} \bigl[\alpha_1 \textbf{a} + \alpha_2 \textbf{b} , \textbf{c}    \bigr]_{\mathbb{R}^9}   &amp;= \phi\bigl( [\phi^{-1}(\alpha_1\textbf{a}+\alpha_2 \textbf{b}), \phi^{-1}(\textbf{c})]_{\mathfrak{u}(3)}  \bigr) \\&amp;= \phi\bigl( [\alpha_1 \phi^{-1}(\textbf{a}) + \alpha_2 \phi^{-1} (\textbf{b}), \phi^{-1}(\textbf{c}) ]_{\mathfrak{u}(3)}    \bigr) \\&amp;= \phi\bigl( \alpha_1 [\phi^{-1}(\textbf{a}), \phi^{-1}   (\textbf{c})]_{\mathfrak{u}(3)} + \alpha_2 [\phi^{-1}(\textbf{b}), \phi^{-1}  (\textbf{c})]_{\mathfrak{u}(3)}       \bigr) \end{split} \end{equation*}  \end{enumerate}  \end{document}   latex split the block of equations normally except that when I use enumerate environment latex shifts the item entirely to the next page.. This is the only exception and I unfortunately do not know why !
3702
The code below works by printing "page x of y" on each page on the left, and go to next page on the right (or end of Exam for the last page). What I cannot get it to do is to write question xx continues as a central footer. Since I was not able to paste this code as a reply to comments/suggestions on my earlier post here , This is a repeat of that post.  \documentclass[addpoints,10pt,fleqn]{exam} \RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace} \usepackage{setspace}% http://ctan.org/pkg/setspace \RequirePackage{tikz, pgflibraryplotmarks} \usepackage{lipsum}% http://ctan.org/pkg/lipsum \usepackage[margin=1in]{geometry} \usepackage{enumerate,mdwlist} \usepackage{mathtools}  % for 'bmatrix*' environment \usepackage{paralist}   % for 'inparaenum' environment\newcommand{\dist}{\displaystyle} \usepackage{enumitem} \usepackage[normalem]{ulem} \usepackage{geometry} \geometry{ a4paper, total={210mm,297mm}, left=20mm, right=15mm, top=20mm, bottom=15mm,} \singlespacing \pagestyle{headandfoot} \runningheadrule \runningheader{Linear Algebra-MAT 2200} {Tutorial shhet 7, Page \thepage\ of \numpages} {June, 2015}  \begin{document} \raggedright \begin{center} \bf{Linear Algebra} \end{center} Handout 2 \hfill{May, 2015}\\ \flushright Tutorial Sheet 7 \noindent\makebox[\linewidth]{\rule{\textwidth}{1pt}} \pagestyle{headandfoot} \footrule \lfoot{\footnotesize Page \thepage\ of \numpages} \cfoot{\newcommand{\continues}{\ifincomplete {\footnotesize Question \IncompleteQuestion\ continues \hfill Please go to next page\ldots}{}}} \rfoot{\iflastpage{End of Tutorial Sheet 7.}{\footnotesize Please go to next page\ldots}} \begin{questions} \begingroup\onehalfspacing \question Given the vectors \\ \begin{inparaenum}[a)] \item (2, -1, 1) and (1, 2, 1) \\ \item (2, 1, -3) and (1, 1, 1) \\ \item (2, -1, 2) and (1, -1, 2) \\ \end{inparaenum} \break  Find \\ \begin{inparaenum}[i)] \item Which of the pairs of vectors are perpendicular \\ \item A vector perpendicular to both of the given vectors \\ \end{inparaenum} \endgroup \end{questions} \end{document}