Hot answers tagged

7

I propose this code, based on alignat and pstricks: \documentclass[11pt, svgnames]{book} \usepackage{amsthm,latexsym,amssymb,amsmath, verbatim} \usepackage{makebox} \usepackage{pst-node, auto-pst-pdf} \pagestyle{empty} \begin{document} \begin{postscript} \everypsbox{\scriptstyle} \begin{alignat*}{7} x_{1} & = . &\: & d_{\rnode{d1}{1}1} & ...


4

You need to separate storing contact info and retrieving it. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\defineInfo}{mm} { \prop_new:c { g_nebu_contact_#1_prop } \prop_gset_from_keyval:cn { g_nebu_contact_#1_prop } { #2 } } \NewDocumentCommand{\contactInfo}{mm} { \str_case:nnF { #2 } { {phone} { \...


3

I adjust the font size of the icon from packages pifont and amssymb, use \raisebox and \hspace to fit the icon position, finally, it looks good, here is a full example: \documentclass{article} \usepackage{pifont} \usepackage{amssymb} \begin{document} \begin{itemize} \item[$\square$] no checked \item[\rlap{\raisebox{0.3ex}{\hspace{0.4ex}\tiny \ding{52}}}...


3

Don't guess the width and redefine the left distance: \documentclass[]{scrbook} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[binary-units=true,locale = DE]{siunitx} \usepackage{caption} \usepackage[nonumberlist,acronym,toc,symbols,nomain]{glossaries-extra} \usepackage{showframe} % just for the example % Setup list of abbreviations \...


3

If the items are single lowercase letters, you can compare their ASCII codes. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\supportMaterials}{m} { \begin{itemize} \nebuch_supportmaterials:n { #1 } \end{itemize} } \clist_new:N \l__nebuch_supportmaterials_clist \cs_new_protected:Nn \nebuch_supportmaterials:n { \...


2

The line is in the margin: \documentclass{article} \usepackage[heightadjust]{marginnote} \usepackage{lipsum} \let\Item\item \renewcommand\item{\marginnote{\hrulefill}[1.6\baselineskip]\Item} \begin{document} Please initial each line item of the procedure. \begin{itemize} \item First item needing an initial line next to it. ...


2

Simple with enumitem: use the wideoption`, like this: \documentclass[a4paper, 12pt]{article} \usepackage[]{ragged2e} \usepackage[showframe]{geometry} \usepackage{enumitem} \begin{document} \begin{enumerate}[wide, leftmargin=\parindent] \item \textbf {Inference Rules}\\ \begin{enumerate}[leftmargin=2\parindent] \item First ...


2

Something like this should do the job: \documentclass{article} \newcounter{comment} \newcommand\comment{\par\medskip \refstepcounter{comment} \noindent COMMENT \thecomment:\enspace\ignorespaces} \begin{document} \comment\label{firstcomment} (some text) (some more text, unrelated to COMMENT \ref{firstcomment}; this further piece of text may include ...


2

Here is one approach. Before every \item, we check the current value of MyListi. If it is equal to some threshold, given via \MyListSeparateAfter, we split the list there. Some content can be inserted between the two list parts, given via \MyListInsertBetween. Boxed draws a box around its content. You can specify the desired width of the box (\linewidth by ...


1

Your graphic is to large for the standard memoir or article top and bottom margins, and will overwrite the page number, or running footers. With the existing margins, the maximum you can use is width=108.7mm. It will then fit within the existing text area. This question has be asked several times before, and linked to LaTeX standard document classes and ...


1

I don't see why you would want to emulate the Word output with LaTeX. Usually, the LaTeX output is superior by default. That said, you can easily achieve what you are aiming for with enumitem: Just leave out the \hspace{.1cm}! You also need itemindent=0pt, but that's the default. Don't insert manual line breaks (that's almost never a good idea); instead, ...


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