Linked Questions

312
votes
4answers
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?
5
votes
0answers
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 ...
0
votes
0answers
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 ...
1
vote
0answers
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 ...
1
vote
0answers
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. ...
460
votes
11answers
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 ...
41
votes
8answers
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 ...
57
votes
3answers
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% ...
26
votes
3answers
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 ...
24
votes
1answer
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 ...
2
votes
3answers
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]{...
3
votes
1answer
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 ...
5
votes
2answers
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 ...
5
votes
2answers
389 views

How do I define tikz styles with a xkeyval command?

I would like to write a command which allows the user to change tikz styles. My code goes like this: \documentclass{article} \usepackage{tikz,xkeyval} \makeatletter \def\DEFstyle{} \define@key{...
4
votes
0answers
3k views

How can I remove the blank space before and after a command [closed]

I create a command, \newcommand{\cmd}{b} but when I use this command a\cmd{}c What I get is a b c but what I want is abc How can I remove two blanks?

15 30 50 per page