29 questions linked to/from Why the end-of-line % in macro definitions?
27k views

### What is the use of percent signs (%) at the end of lines?

I see that the code in many packages and examples contains percent signs % at the end of (many) lines. What are they used for? Do they affect the parsing of those lines?
95 views

### Spurious whitespace in caption [duplicate]

Possible Duplicate: Why the end-of-line % in macro definitions? I am not sure what is happening with this MWE. First the problem: You can clearly see the whitespace between the label and the ...
78 views

### Include SVG aligns/centers different when used with “newcommand”? [duplicate]

this is my first post in this forum, but i have been here a thousand times, enjoying the high-quality answers to often also good quality questions. So i try my best to also provide all needed ...
49 views

### Unwanted space after \labeltext with \nameref package [duplicate]

I'm using the \nameref package and I need to obtain a labelled text within round brackets, but it adds some space before the right bracket, while it doesn't add space after the left bracket. Here is ...
48 views

### Problem Using \hfill to Justify Text [duplicate]

I am writing a resume using the scrartcl,currvita, and classicthesis packages. Everything else is fine but I have run into a problem correctly justifying some dates along the right side of the page. ...
124k 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 ...
5k views

### Why do people use unnecessary braces?

I often see people creating new macros where the macro token is surrounded by braces. For example, \newcommand{\foo}{foo} This is unnecessary and I find the extra braces make it harder to read. Why ...
2k views

### Where are the necessary places to be appended with % to remove unwanted spaces?

I have experience where empty spaces cause unwanted effects. It is not easy to trace the cause of these unwanted effects. In order to eliminate any doubt, I often overuse % as follows. \usepackage% ...
14k views

### Highlighting table cells

I have a large (13x13) table in which I need to highlight a subset of cells. I know that I can set a background color to those cells using colortbl or xcolor. But I need to highlight the table without ...
25k views

### Two minipages with 0.5\textwidth each get placed one below another

This happens in the beamer class only. Does anyone know the reason behind this? I fix it by just setting both widths to 0.49\textwidth and this works but I'm still curious why this happens and if I ...
2k views

### hfill alignment doesn´t work

I used the code below to format some information but the last line before the red line is not right aligned. I can`t find the problem in the code. Any suggestion? Thanks. \documentclass[11pt,a4paper]{...
1k views

### TeX complains about a “Package inputenc Error” [closed]

Compiling a simple document, I get the following error: On the line 166, there is a \begin{itemize} environment. I tried commenting it out and the error goes away, but there doesn't seem to be ...
477 views

### Extra spacing in \ref or \eqref

I changed the equation numbering format to avoid the 0 when I don't have subsubsection. Output ex. : Equation (1.1.a) instead of Equation (1.1.0.a) But now, when I use the \ref or the \eqref ...