Linked Questions

41
votes
3answers
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{% \...
2
votes
1answer
819 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,...
5
votes
1answer
141 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?
1
vote
1answer
287 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 ...
0
votes
1answer
161 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 ...
2
votes
0answers
209 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 ...
2
votes
0answers
169 views

The meaning of the percent sign in LaTeX coding [duplicate]

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 ...
4
votes
1answer
119 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 ...
4
votes
1answer
40 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 -- ...
1
vote
0answers
110 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, ...
1
vote
1answer
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 ...
1
vote
1answer
72 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 ...
1
vote
0answers
85 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}{-...
0
votes
1answer
59 views

Why does one sometimes get what appears to be arbitrary spacing with the subcaption package? [duplicate]

I have a very simple MWE which demonstrates the problem: \documentclass{book} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}[b]{0.20\...
1
vote
1answer
44 views

Trouble aligning text [duplicate]

I'm having trouble aligning some text for math definitions that I am writing in LaTeX. Here's what I currently have: \newcounter{defctr} \newenvironment{defn} {\noindent \refstepcounter{defctr} ...

15 30 50 per page