2022 Developer Survey is open! Take survey.

Hot answers tagged

7 votes
Accepted

Smarter way to write bullet point notes?

The easylist package is suitable for this kind of use cases. You choose a symbol as package option (at, sharp, ampersand, pilcrow, for @, #, &, ¶ respectively, or not choose a symbol for the ...
user avatar
  • 29.6k
5 votes

Smarter way to write bullet point notes?

You can include Markdown in LaTeX using the markdown package: \documentclass{article} \usepackage{markdown} \begin{document} \begin{markdown} main phrase * hence A 1. since A follows B 1. ...
user avatar
  • 2,410
4 votes

Usage of \greadlist* from package 'listofitems'

You can define your own variation of the commands. \documentclass{amsart} \usepackage{listofitems} \ExplSyntaxOn \NewDocumentCommand{\readnamedlist}{smm} { \IfBooleanTF{#1} {\exp_args:NNc \...
user avatar
  • 985k
3 votes
Accepted

adjust text in itemize environment in a tikz node

You can work with text depth to align the text at the top. I added text depth=1.9cm to the textbox style. \documentclass[tikz, class=scrreprt, fontsize=10pt]{standalone} \usepackage[T1]{fontenc} ...
user avatar
  • 2,410
3 votes

Smarter way to write bullet point notes?

Just for fun. Of course, you have to remember your level. \documentclass{article} \usepackage{outlines} \usepackage{enumitem} \usepackage{showframe}% alignment tool \begin{document} \begin{outline} \...
user avatar
  • 69.5k
3 votes

I need to expand a macro defined in listofitems package

There are two main issues. One was the confusion brought on by \edef\tmp{\listlen\myitem[2]}\myitem[2,\tmp], because \tmp itself contained a closing right bracket. It turns out one doesn't even need \...
user avatar
3 votes
Accepted

How to insert square bracket in itemize environment in LaTeX?

Assuming that you want to use $[\frac{a}{b}]$ as the item marker, you need to protect the closing ] so it is not mistaken as the one closing the optional argument to \item. Additional braces suffice. \...
user avatar
  • 985k
3 votes
Accepted

Usage of \greadlist* from package 'listofitems'

Expand the \csname before invoking the \greadlist. \documentclass{amsart} \usepackage{listofitems} \begin{document} \newcounter{num}\setcounter{num}{4} \setsepchar{,} \expandafter\greadlist\...
user avatar
2 votes

I need to expand a macro defined in listofitems package

Here's an expl3 version. First the exercise texts are stored in a property list. I believe that using names for the exercises is better than numbering them, because it would be difficult to keep a ...
user avatar
  • 985k
2 votes
Accepted

I need to expand a macro defined in listofitems package

I suppose the attempts at defining \tmp take place because nesting optional arguments didn`t succeed. You can nest optional arguments if the entire content of the optional argument is nested in curly ...
user avatar
2 votes

Usage of \greadlist* from package 'listofitems'

I think those days expl3-solutions are state of the art, so I'd in any case prefer egreg's solution. The following is just for exhibiting the technique of exchanging arguments after expansion: \...
user avatar
2 votes

Alignment inside itemize command

If you're using the enumitem package, you could use the align=left option. You'll also need to make your labelindent and leftmargin sizes nice and generous; you may need to tweak the exact widths. \...
user avatar
  • 35.7k
1 vote
Accepted

How to position bullet on top of tabular?

Use \begin{tabular*}{...}[t] to top align a tabular
user avatar
1 vote

adjust text in itemize environment in a tikz node

If your concern is only how to draw boxbox, than tcolorbox package offer simple and shorter code as pure tikz, which can also be used in tikzpicture: \documentclass[border=3.141592, class=scrreprt]{...
user avatar
  • 251k
1 vote
Accepted

vertical alignment of item label in itemize/enumerate lists

If I understand well what you want, a simple \parbox with the optional argument for the vertical placement (the content of a \parbox is vertically centred by default) is enough: \documentclass{...
user avatar
  • 259k
1 vote
Accepted

List with the first item equals the last number in another list + 1

You can try this: \documentclass{article} \usepackage{enumitem}% <-- changed \begin{document} List 1 \begin{enumerate} \item A \item B \end{enumerate} List 2 \begin{...
user avatar
  • 347

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