213 views

### Three ways of grouping: compare and contrast [duplicate]

Grouping is often important in TeX/LaTeX programming. I know of three ways to delimit a group: Via a \begingroup…\endgroup pair; Via a pair of matched braces {}; Via a \bgroup…\egroup. Now I am ...
194k views

### Multiline comment [duplicate]

In tex there is a way to do a comment multiline like in C, C++ /* comment */ or in HTML <!-- comment -->? I'm currently using \ifx \ifx true false My multiline comment that will not be in the ...
2k views

### paralist: how to format the counter

I use the following code to obtain a listed item \documentclass{article} \usepackage{paralist} \begin{document} \begin{inparaenum}[(a)] \item first item, \item second item, \item last item \end{...
277 views

### Command delimited by return or blank line

I have this document \documentclass{scrartcl} \long\def\quotenextparagraph#1 {\begin{quote}#1\end{quote}} \begin{document} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod ...
213 views

### The \begin ... \end pair seem to have problems

According to Leslie Lamport in his 1985 book "LaTeX user's guide and reference manual" the macros \begin... \end form a group whereby code within the group is not visible from outside it. ...
797 views

### How can I define a macro with literal square brackets in the body?

The following macro works correctly for enclosing an expression in parenthesis. \def\group#1{\left ( #1 \right )} I want to write the equivalent macro for enclosing an expression in square brackets. ...
275 views

### Lualatex: Arabic in combination with italic - conflict

When I try to combine arabic font with italic style I get an error: \documentclass[a4paper,11pt]{article} \usepackage{arabluatex} % for support of arabic fonts \newfontfamily\arabicfont{Amiri}[...
668 views

### Using \bgroup \egroup with \frac

I understand from this post that \bgroup is equivalent to { and \egroup is equivalent to } (Edit: turns out that my understanding was wrong, see @david-carlisle comments for details). I have a ...
501 views

### Koma script: Restore default chapter style

I want to have for just one chapter a special chapter heading format. So I use the command \setkomafont{chapter}{\centering\large\rmfamily} and then I want to revert back to the default chapter ...
124 views

### Line spacing with line in between

I would like to make an article that has a line spacing between each line and each space contains a horizontal line. The space needs to be large enough for writing notes by hand. The code below works ...