Linked Questions

423
votes
11answers
110k views

Space after LaTeX commands

I have a definition: \newcommand{\arnold}{Arnold Schwarzenegger} When I refer to it by: \arnold is a it is rendered as: Arnold Schwarzeneggeris a In order to have a space in front of "is" I ...
3
votes
0answers
811 views

How to insert a space after a substitution of a variable or a command? [duplicate]

I am trying to learn how to define commands (\newcommand) and variables (\def) in LaTeX. When I try: \def \new {$new$} or \newcommand{\new}{$new$} and substitute it in the text: \documentclass{...
0
votes
0answers
342 views

Problem with spacing after abbreviation [duplicate]

Possible Duplicate: \newcommand and spacing No space following macro without argument I want to use \newabbrev for some abbreviations, but the spacing is off. With \newabbrev, I get spacing ...
1
vote
0answers
189 views

Text in command gets glued to following text [duplicate]

I made this command \newcommand{\BR}{MyBrand\superscript{\scriptsize ™}}, when I use it and write something like this \BR is awesome the ouput is: MyBrand™is awesome What am I doing wrong here?
0
votes
0answers
158 views

Declare macro for simple text snippets [duplicate]

I want to use something like this: \newcommand{\favouritealgorithm}{\texttt{Gaussian elimination}} so that My favourite algorithm is \favouritealgorithm written in C. produces My favourite ...
0
votes
0answers
60 views

Missing space after “ø” \o [duplicate]

I am writing a German text with some Scandinavian names which include characters like ø. In one case the ø is at the end of the word and the following whitespace is ignored. MWE: \documentclass{...
1
vote
0answers
60 views

space inside tikz node [duplicate]

Why is there no space between the \x number and the text in my tikz nodes? There is a space in the final one in which I manually inputted a number instead of using a forloop. That's what I'd like the ...
0
votes
0answers
42 views

In text mode space being taken away [duplicate]

Why does the space after \AA disappear? \documentclass{article} \begin{document} 5 \AA wavelength \end{document} Since extra spaces don't achieve anything in LaTeX, what can be done besides forcing ...
0
votes
0answers
37 views

\newcommand that behaves like a normal word [duplicate]

Is there any way to define a \newcommand that behaves like a normal word? I have a few names for Objects, that might change later. To keep my flexibility i use \newcommand{\superprod}{superPRODUCT}....
408
votes
63answers
70k views

What packages do people load by default in LaTeX?

I'm getting the impression from reading the answers written by some of the real experts here that there are quite a few little packages that just tweak LaTeX2e's default behaviour a little to make it ...
402
votes
4answers
50k views

What's the difference between \newcommand and \newcommand*?

I just spotted someone use \newcommand* in an answer and realised that I'd never quite sorted out in my head what the star (asterisk) was there for. (This one is practically impossible to search for ...
133
votes
2answers
20k views

Drawbacks of xspace

I'm certain I have read that xspace can cause more problems than it solves. But I cannot find anything to that effect either on this site or the web. Are there any drawbacks or risks associated with ...
14
votes
3answers
1k views

Why don't I get any space after \thepage?

The code \thepage of yields the output 3of. I can fix it by writing \thepage~of, but what causes this in the first place? I can't imagine when it would be useful.
17
votes
2answers
9k views

No space after closing double quote

As the title says, there's no spacing after my closing quotes, I have boiled my huge preamble down to the following, % Manual: http://ctan.org/tex-archive/macros/latex/contrib/memoir/memman.pdf \...
8
votes
2answers
4k views

How to redefine the section symbol (§)?

I'm trying to redefine the section symbol (§) so that it automatically places a space after it. When inserting the symbol in text, I typically write \S{} Section Number which gets me the spacing ...

15 30 50 per page