Linked Questions

1
vote
0answers
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 ...
94
votes
3answers
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 ...
6
votes
3answers
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{...
11
votes
3answers
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 ...
2
votes
3answers
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. ...
4
votes
1answer
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. ...
2
votes
3answers
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}[...
2
votes
2answers
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 ...
4
votes
1answer
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 ...
6
votes
3answers
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 ...
4
votes
1answer
272 views

ConTeXt: Macro within macro for URLs

Background Would like to define a base URL that can be reused by other macros. Problem Using the \goto macro requires a fully expanded URL. Minimum Working Example Here's code that illustrates ...
1
vote
1answer
391 views

Centering continues to next page after sideways table

I have used this guide to create a sideways table. However, for some reason the \centering continues to the next page. \begin{appendices} \section{This Section} \label{thissection} \vfil \sbox0{\...