Skip to main content

New answers tagged

0 votes

Is there a way to prevent caption package from changing counters beforehand

I guess you want subcaption and its subcaptiongroup, \phantomcaption and subref features. \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Include clickable 'Fig.'/'Table' in \ref without duplication in captions

I want [cross-]references to include 'Fig.'/'Table' before the number so they are clickable and in link color. In addition to employing the hyperref package (which you do already), you only need to (...
Mico's user avatar
  • 515k
3 votes

Include clickable 'Fig.'/'Table' in \ref without duplication in captions

Maybe you can use the cleveref package. \documentclass[12pt]{article} \usepackage[colorlinks,citecolor=blue, linkcolor=blue, urlcolor=blue]{hyperref} \usepackage{cleveref} \crefformat{figure}{#2Fig.~#...
NBur's user avatar
  • 5,166
1 vote
Accepted

Is there a way to prevent caption package from changing counters beforehand

The problem is, that caption need to internally typeset the caption more than once, to do the single line check and either print the single or the multi line caption. So with option singlelinecheck=...
cabohah's user avatar
  • 14.1k
2 votes

How to achieve the layout of figure with vertical and horizonal placement?

This solution uses a tabular to align what can be aligned without changing the images. \documentclass[12pt]{ctexart} \usepackage[margin=2cm]{geometry} \usepackage[export]{adjustbox}% for valign \...
John Kormylo's user avatar
  • 81.2k
1 vote
Accepted

adjustbox gives "Undefined control sequence" error only in a figure caption, but not in a subcaption or normal text

This is because the argument of regular \captions are fragile in the sense that they move; they eventually end up in the List of Figures (or Tables), and therefore need to be written to the .lof (or ....
Werner's user avatar
  • 607k
0 votes

Font size of Figure Caption Header

The reason that sciposter's code isn't working is that in more pedantic systems it requires: \usepackage[font={small},labelfont={bf}]{caption}
TheStumps's user avatar
4 votes

Create a new math symbol

Old question, but the given answer has the defect of forcing MnSymbol which is rarely desired. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \NewDocumentCommand{\triangleLeft}{}{%...
egreg's user avatar
  • 1.1m
0 votes

Problem compiler error about figure/subfigure ' caption using latex IEEE ACCESS template

I think the best approach is to just use caption and subcaption and configure those packages to create captions that look like IEEE Access preferred style. Here is how I do it: \usepackage{caption} \...
Gaslight Deceive Subvert's user avatar
0 votes

Tabular: title above and caption below?

There are already great solutions on this page, though they are a bit too complex for my taste. Here is a very simple solution that delivers most of what you asked for but not all: \usepackage{caption}...
Foad's user avatar
  • 983
0 votes

Aligning legend with figure width memoir class

I don't think that \legend is the right tool: it just uses the \caption mechanism, without adding a label. \documentclass{memoir} \usepackage{graphicx} \NewDocumentCommand{\simonincludegraphics}{O{}...
egreg's user avatar
  • 1.1m
3 votes
Accepted

Whether bookmarks duplicates or not is dependent on engine and `caption` package

A bit late to the party, but I just came across this question. The behaviour is engine dependant as xelatex uses a \special to create a bookmark and that does nothing when you do only trial ...
Ulrike Fischer's user avatar
2 votes
Accepted

Caption of a figure aligned to right-hand margin with `minipage`

It's not really clear what you are asking for, I added babel so that Italian hyphenation rules are used and you have a chance of reasonable line breaking, then in the second example I added \...
David Carlisle's user avatar
3 votes

Underfull \hbox with image

Underfull or overfull box issues are most commonly solved by rewording. In your case, “Montage dosage pHmétrique” has no really good place for line breaking is a very narrow column. In my opinion, two ...
egreg's user avatar
  • 1.1m
3 votes

Underfull \hbox with image

"Badness" is a measure of how much white space has been stretched. There are user-settable tolerances on this and if you look at the caption You can see its first line has been over-...
David Carlisle's user avatar
1 vote
Accepted

Black captions are CMYK, not RGB

The problem in this case was the figures themselves. I used PNGs in an RGBA configuration, which had the unintentional effect of adding color coding on the black caption text. I am not sure why this ...
Henrik Hillestad Løvold's user avatar

Top 50 recent answers are included