5
votes
1answer
45 views

How to pass figure position to keyval macro?

I want to wrap a macro around figure-env to make my document more readable. Here is minimal example of how it is now: \documentclass[10pt,a4paper]{article} \usepackage{keyval} \makeatletter ...
2
votes
1answer
97 views

Modify the @tufte@margin@float environment to automatically align floats

The Tufte classes provide the @tufte@margin@float environment which is used for tables and figures, but its result it's not automatically aligned with the text. The \marginnote command provide a ...
3
votes
1answer
42 views

Change figure caption name in “thesis” document

Does anyone have an idea why this approach to changing figure naming doesn't work in thesis type document? I'm using babel and all other captions translate normally, except "Figure", which stays at ...
1
vote
0answers
19 views

Why is space inserted at beginning of table or figure caption when using macros to define caption label? [duplicate]

Here is my MWE. As you can see, the problem only happens when we use the macro \suppOrApp. \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{caption} ...
7
votes
1answer
96 views

Remove space before macro if exist a environment

I create a new macro: \newcommand{\intersection}[1]{% \par\vspace{\baselineskip}% \noindent\textbf{\large\bfseries\sffamily #1}\par} It works perfectly for what I want, but when there is a ...
0
votes
0answers
36 views

Employing options of the figure or table environment via \newcommand

I am writing a large document in which I would like to employ the options of figure environments via \newcommand{\figposa}{H} \newcommand{\figposb}{T} \newcommand{\figposc}{B} ...
7
votes
2answers
108 views

LaTeX float controls - what is the denominator of the fraction macros?

I'm looking in Section C.9 of the LaTeX manual (pages 199 and 200). LaTeX defines a few macros to control the float placement algorithm, namely, \topfraction, \bottomfraction, and \textfraction. The ...
4
votes
1answer
344 views

How to pass two parameters to a \newenvironment?

I have defined this new environment for handling my images in my document I want to pass two parameters: #1 to refer to pathname to the imagefile #2 to refer to the string I want to pass to the label ...
6
votes
1answer
129 views

Why doesn't font family change take effect when using AtBeginEnvironment{figure} together with memoir?

I'm trying to use \AtBeginEnvironment{figure} to customize the font family and font size used in figures. However, it doesn't seem to have any effect. Here is a minimal example: ...
5
votes
1answer
698 views

Shortcut commands for referencing floats

I always include the following commands in the preamble of my latex documents to make sure I refer to floats consistently in the text. I was wondering if the community had any thoughts about this, is ...
14
votes
1answer
465 views

What is a BANG float?

This question follows up on What is the exact purpose of \ftype@<TYPE>?. The LaTeX kernel source refers to a BANG float in the ltoutput.dtx, but there is no explanation for it. Anybody knows ...
17
votes
3answers
488 views

What is the exact purpose of \ftype@<TYPE>?

I currently working on some float related code an saw that the standard float environments figure and table define (beside others) the macros \def\ftype@figure{1} and \def\ftype@table{2}. The LaTeX ...
1
vote
1answer
525 views

Renew command begin figure? [duplicate]

Possible Duplicate: Macro for figure position? Is it possible to make change that changes all instances of \begin{figure} into \begin{figure}[h] ?
7
votes
3answers
1k views

Macro for figure position?

Why is the following minimal example not working? I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but ...
18
votes
4answers
651 views

How exactly does \def\p@figure{Figure~} work?

I took this line from my thesis style and added it into my document (preceded by \makeatletter) and what it does that whenever I used \ref{figureid} instead of putting just the figure number, it puts ...