3k views

### Why the end-of-line % in macro definitions? [duplicate]

I found two things peculiar in the common style of macro definitions: Ending lines in macro definitions with '%'; Not wrapping a macro name in braces. Example: \newcommand\examplemacro{% \...
1k views

### remove indent when bolding the beginning of paragraph [duplicate]

I have the following document: \documentclass[a4paper,10pt]{article} % -------- Packages \usepackage{marvosym} \usepackage{enumitem} % \usepackage{fontspec} \usepackage{xunicode,xltxtra,...
152 views

### When to use % and when to not [duplicate]

I have recently falled into an error because I didn't use % when I was supposed to. My question is now: When do I have to use % at the end of the line and when should I leave it out?
405 views

### Extra space in citation brackets when in footnote [duplicate]

I'm facing a rather weird problem (at least for me). I'm trying to get the reference in my PhD thesis right, and what I would like is the following: citations are displayed as footnotes, and they ...
260 views

### biblatex remove space after serie in reference [duplicate]

I´m creating a new bibliography style by customizing the standard.bbx file for my master thesis. So far I had no big troubles but now I want to adjust the macro series number since this should be in ...
220 views

### Unwanted graphic offset [duplicate]

I'm getting a small difference in horizontal alignment when using the two ways of placing an image as shown in my code below. I know it doesn't look like there's much point in what I've done, but this ...
203 views

Possible Duplicate: What is the use of percent signs (%) at the end of lines? I know that % is commonly used to uncomment parts of the code, but recently I read that there is another use for the ...
120 views

### When to use % after a command [duplicate]

I am writing my own class file and when I am browsing through code developed by others I see % sign popping up at the end of command lines while other authors do not use it. Consider the following ...
43 views

### How to have only 1 space between a word and a counter [duplicate]

I am using the following counter: \newcounter{foo} \newcommand\num{ \refstepcounter{foo} \thefoo.} Two (2) spaces are automatically inserted between the preceding word and the counter -- ...
116 views

### Using '%' at end of line [duplicate]

When browsing though LaTeX source code, I have noticed that many people put % at the end of a line or after closing brackets. I would like to know if there is any benefit in this practice. Moreover, ...
109 views

### What is the space around a parbox? [duplicate]

I write a short macro which put a picture on the left and a text on the right: \newlength\largeur \newcommand{\uneQuestion}[1]{ \setlength{\largeur}{\columnwidth} \addtolength{\largeur}{-...
78 views

### Why does my command produce spacing? [duplicate]

I've written a command that takes a number of minutes and formats it like so: Xh Xmin. The logic of the command works fine, but if I use it in combination with other command or itself, it produces ...
44 views

### hyperrefs have a different spacing when written inside a macro [duplicate]

Let's say I want to make a hyperlink like this: A link is placed \href{www.google.com}{here} to google. Then I decide to make a macro for that: \newcommand\Myhref[2]{ \href{#1}{#2} } A link is ...