Tag Info

Hot answers tagged

5

There are many incorrect inputs that do not generate an error message. (\section[z]{\section{aa}} for example). \section inside a float is an error it is just not trapped by the system (it would have taken an unreasonable amount of memory to do so at the point that latex was designed.) The math/non-math distinction is built in to tex it is much easier to ...


4

You can define a command to color box containing the item label which can be applied to some item, here we use the enumitem package. \documentclass{article} \usepackage{xcolor} \usepackage{enumitem} \newcommand{\hilight}[1]{\setlength{\fboxsep}{1pt}\colorbox{yellow}{#1}} \newcommand{\hlitem}{\stepcounter{enumi}\item[\hilight{\theenumi}]} ...


4

The natural structure to use here is an enumerated list. Using the enumitem package you can easily change the counter representation to have the desired formatting: \documentclass{article} \usepackage{enumitem} \usepackage{amsthm} \newtheorem{lem}{Lemma} \begin{document} \begin{lem} Let $f$ be a function which satisfies either ...


4

You can use tasks for the inner list. \documentclass{article} \usepackage{enumitem} \usepackage[more]{tasks} \NewTasks[style=enumerate,counter-format=tsk[a]),label-width=2.6ex,column-sep=2ex,before-skip=2pt,item-indent = {1em}] {questions}[\subquestion](2) \begin{document} \begin{enumerate}[nosep] \item Answer any of the ...


3

By default, arguments passed to a command defined by \NewDocumentCommand (which should be preferred to \DeclareDocumentCommand) are short, that is, they shouldn't contain \par (or a blank line, that's the same). You can make any of the argument long by prefixing the argument specifier with +: so \NewDocumentCommand{\WCBlock}{ O{} O{} O{} O{} O{} O{} m +O{} ...


3

The macro \labelitemi contains the symbol for the first level of itemize, it can be redefined to: \renewcommand*{\labelitemi}{\textcolor{gray}{\textbullet}} Full example: \documentclass{article} \usepackage{xcolor} \usepackage{blindtext} \renewcommand*{\labelitemi}{\textcolor{gray}{\textbullet}} \begin{document} \blinditemize \end{document}


3

\documentclass{article} \usepackage{shortlst,amsmath} \begin{document} \setlength{\shortitemwidth}{.3\linewidth} \begin{shortenumerate} \item $\displaystyle a_n = \frac{4n^3 - (-1)^nn^2}{5n + 2n^3}$ \item $\displaystyle b_n = \frac{(n^3 - 5n)^4 - n^{12}}{n^{11}}$ \item $\displaystyle c_n = \frac{n^{n + 1}}{n!}$ \item ...


2

This is a solution with shortlst patched so that you can choose the number of columns (default=3), line stretch (in case lines would overlap) and \laaabelsep, the distance between label and item body, through $3$ keys: nc, il and ls: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{shortlst, setspace, amsmath} \usepackage{etoolbox} ...


2

To know which version of enumitem is installed in your distribution try with this code \documentclass{article} \usepackage{enumitem} \edef\ver{\csname ver@enumitem.sty\endcsname} \begin{document} enumitem version \ver \end{document} The last version of enumitem is 3.5.2 if not try to update it


2

You can use another overlayarea environment for the inner list: \documentclass{beamer} \begin{document} \begin{frame}{Example} These are my points: \begin{overlayarea}{\textwidth}{.8\textheight} \begin{itemize} \item<1-3> Point 1, which spans\par over two rows \only<2>{ \begin{overlayarea}{\linewidth}{1.6cm} ...


2

Just add the wide option. Might also be an idea to play with the itemindent \documentclass[a4paper]{memoir} \usepackage{kantlipsum} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=(\arabic*),wide,itemindent=\labelsep] \item \kant[1] \item \kant[1] \end{enumerate} \end{document}


1

A solution with the shortlst and enumitem packages. You can choose the number of columns (key nc, 3 by default), the interlining to take into account big formulae (key il, 1 by default) and the distance between item label and item body (key ls, 0.6em by default). If necessary, an item will automatically use more than one column. Example: ...


1

Set leftmargin to 0pt so nothing can fit there and the new line is forced: \documentclass{article} \usepackage{enumitem} %\setlist[description]{style=nextline,leftmargin=0pt} % Optional Global Setup \begin{document} \begin{description}[style=nextline,leftmargin=0pt] % Local Setup \item [Green] The color green. \item [Red] The color red. \item ...


1

As LaRiFaRi suggested, try using a table for this purpose instead of a paragraph. The following code should provide you with the desired outcome: \documentclass{article} \begin{document} \renewcommand{\arraystretch}{1.6} % for the extra space between the rows \begin{table} \begin{tabular}{p{3cm} p{10cm}} \textbf{Responsibilities \& Goals} & ...


1

You can use enumitem: \documentclass{article} \usepackage{enumitem} \newlist{list2}{itemize}{1} \setlist[list2]{ nosep, before={\let\makelabel=\mymakelabel}, leftmargin=*, labelwidth=6em, label={\hspace{6em}}, } \newcommand{\mymakelabel}[1]{\textbullet\ #1:\hfill} \begin{document} \noindent Example Paper Title \begin{list2} \item[June 2014] ...


1

A slightly simpler way to do this, also with enumitem. \documentclass{article} \usepackage{enumitem} \newlist{mybullet}{description}{1} \SetLabelAlign{myleft}{$\bullet$\ #1\hfil} \setlist[mybullet]{align=myleft,labelwidth=1in,font=\normalfont,nosep} \begin{document} \noindent Some text \begin{mybullet} \item[Sept 2004]{Something} \item[May ...


1

All you have to do is to add t (top alignment) for the \parbox: The code (I also used the >{...} syntax to simplify a little the code, but this is optional): \documentclass[12pt,a4paper]{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{enumitem} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \newlist{myQuoteEnumerate}{enumerate}{1} ...


1

May be like this \begin{align*} (a)~~ a_n & = \frac{4n^3 - (-1)^nn^2}{5n + 2n^3} & (b)~~ b_n & = \frac{(n^3 - 5n)^4 - n^{12}}{n^{11}} & (c)~~ c_n & = \frac{n^{n + 1}}{n!} \\ (d)~~ e_n & = \frac{2^{(n^3)}}{n!5^{(n^2)} - n^n} & (e)~~ f_n & = \sqrt{n + \sqrt{2n}} - \sqrt{n + \sqrt{2n}}x \end{align*}



Only top voted, non community-wiki answers of a minimum length are eligible