Questions tagged [newfloat]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
87 views

Can I automatically have Figures be auto-fitted according to my margins?

First question here. I'm trying to figure out if there is a way that i can automatically have a figure like the second one in the 2nd page be in the paramaters of the margins i have set. I would like ...
Ferrius Undermine's user avatar
0 votes
0 answers
48 views

Use video environment from revtex

I want to add a video environment from Revtex class to my thesis. This video environment from Revtex is like the figure environment but a command \setfloatlink{} allows to hyperlink the video 1. (like ...
abhin suresh's user avatar
0 votes
0 answers
20 views

Issues with newfloat, custom ref macros, and listof

I have written macros to generate "names spaces" for chapters and sections etc. This all works great but newfloat's listof feature (or the underling tocloft) seams to break on it: \...
AltF4's user avatar
  • 75
0 votes
0 answers
43 views

Reuse a counter for numbering floats

I can’t find how to number floats created with \newfloat using an existing counter (like sibling=theorem but for \newfloat). Any idea? MWE: \documentclass[options]{article} \usepackage{amsmath} \...
tobiasBora's user avatar
  • 8,401
2 votes
1 answer
37 views

Package `cleveref` does not display the name of a new float in the reference

I have defined a new float and would like to reference it using cleveref. Here is my MWE: \documentclass{article} \usepackage{tcolorbox} \usepackage{newfloat} \usepackage{hyperref} % \usepackage[...
chandra's user avatar
  • 3,084
3 votes
1 answer
106 views

Cleverref when used with subcaption and minted shows "?? 1a" for clever references

If I combine cleverref with subcaption and minted, then \cref{lst:subfigure} does resolve to "?? 1a", when it should be "listing 1a". How can I fix this? Minimal non-working ...
Flow's user avatar
  • 893
1 vote
1 answer
56 views

Table of contents customization name for a newfloat environment

Good afternoon, everyone. I'm using the "newfloat" package a lot, but I can't change a specific thing. I've searched a lot theses days, but I can't find anything related. I got the following ...
Marcus Ferreira's user avatar
0 votes
2 answers
48 views

Custom float for algorithm does not position correctly

I'm trying to write a custom environment to style algorithms, and have LaTeX position them as floats. For now I have this: \usepackage{newfloat} \DeclareFloatingEnvironment[fileext=algf,placement={!...
Svalorzen's user avatar
  • 296
0 votes
1 answer
106 views

Custom float environment doesn't work with documentclass revtex4-2

I'm using a custom float environment in one of my documents as described here. This used to work with \documentclass{article}, however, when I change to \documentclass{revtex4-2} it gives me an error ...
a_guest's user avatar
  • 351
0 votes
1 answer
140 views

Format Prefix of Custom Float Environment entry in Custom List of Figures

I am working on a document with complex formatting based on report class. I defined a new List of Figures for Photographs using \DeclareFloatingEnvironment from newfloat package based on this answer. ...
Raja Ayaz's user avatar
  • 123
0 votes
1 answer
106 views

fixed position with newfloat

Listed code renders text with some text related to the third listing above source code with cat file2. Forced positioning with H solves the problem however this option is not available in newfloat ...
Mario's user avatar
  • 1
0 votes
0 answers
141 views

Memoir and Float, H option

What is the right way to solve this package clash? After I updated memoir from the 2021 texlive install I started getting this LaTeX Error: Command \newfloat already defined. This is because I load ...
Bob's user avatar
  • 1,240
1 vote
1 answer
80 views

A global command so that some float environments are not shown at all

I'm using package newfloat to define an additional figure environment (for supplementary figures). A journal asks me to provide these in a separate document. Ideally, I'd just need to set a variable ...
Joce's user avatar
  • 635
0 votes
1 answer
695 views

Caption Chronology Timeline LaTeX [closed]

I am writing because I am trying to add a caption to a timeline. I am using Overleaf. I am not sure how to do this properly (right now I get the error message \caption outside float)... \begin{...
AnEostig's user avatar
0 votes
1 answer
337 views

Custom new environment positioning and margins

How can I place the following custom new environment at the top of every page like figures (options [ht])? \usepackage[newfloat]{minted} \newenvironment{code}{\captionsetup{type=listing}}{} \...
Antonio Santoro's user avatar
1 vote
2 answers
554 views

\captionsetup turn on numbering for new caption

For my thesis, I want to create a new caption that says Model 1, Model 2, etc. So far, I've gotten to it saying Model, but no numbering yet. I've used this command: \captionsetup[model]{name=Model, ...
Britta's user avatar
  • 121
1 vote
1 answer
282 views

How to set an entryprefix for new float environment?

When using the scrreprt class I can use the option listof=entryprefix to have "Abbildung" stand in front of the numbering in my list of figures for example. With the commands \renewcommand*\...
Lukas's user avatar
  • 639
2 votes
1 answer
316 views

algorithm2e with booktabs style and listing the algorithms in toc

I'm using the solution that @egreg provided on this answer, but I'm using the algorithm2e package instead of algorithms. I'd like to retain the design from booktabs but the command \listofalgorithms ...
Emanuele Nardi's user avatar
1 vote
1 answer
70 views

Add a symbol after the name+number in listof

I created another list instead of \listoftables and \listoffigures. I need to add the symbol "--" after the name "Quadro" on the toc list for this created list. I did it for \...
Luiz Henrique Sá Santos's user avatar
1 vote
1 answer
114 views

Problem with using capt-of and float packages

I was trying to answer https://tex.stackexchange.com/581714 and came up with this MWE using both the capt-of and float packages. I thought that I had followed the instructions presented for the ...
Peter Wilson's user avatar
1 vote
1 answer
146 views

Own float object without numbering in caption

I would like to define my own float object because I want it to be separated from figure and table. So I tried to use \newfloatusing the float package. It works fine for me but there is a numbering ...
Jan's user avatar
  • 11
1 vote
0 answers
137 views

Why do I need a blank line in the listing environment when using the minted package with the newfloat option in a tufte-handout

As described in the title. MWE: \documentclass{tufte-handout} \usepackage[newfloat]{minted} \begin{document} \begin{listing} \begin{minted}{python} a = 666 \end{minted} \end{listing} \end{document} ...
candor's user avatar
  • 11
1 vote
1 answer
131 views

How to correctly reference and set up \label for a custom float

I am using the caption, float and newfloat package in my thesis. I have defined a custom float as follows: floatstyle{plaintop} \newfloat{model}{thp}{lob} Now I want to reference a label to my model. ...
TheViking's user avatar
3 votes
1 answer
48 views

Zeroth chapter and float numbering

Consider the following document that tests the newfloat package. \documentclass[a4paper, 10pt]{book} \usepackage{lipsum} \usepackage{caption} \usepackage{graphicx} \usepackage{newfloat} \usepackage{...
Vincent's user avatar
  • 5,163
3 votes
2 answers
524 views

Remove space between figure label and number in caption within a separate floating environment

I created a separate floating environment for my supplementary figures using \usepackage{newfloat} \DeclareFloatingEnvironment[name={Figure S}]{suppfigure}. However, this prints in the figure ...
Maerim's user avatar
  • 33
1 vote
2 answers
151 views

Captioning `qtree` trees

I want to have two trees aligned side by side within a footnote, both captioned and labeled. The following reports an error and produces misalignment. \documentclass{article} \usepackage[utf8]{...
bozidarka's user avatar
  • 960
0 votes
1 answer
248 views

Memoir's single-column \newfloat doesn't work with multicol?

I've been using memoir's \newfloat to make boxes of text that float within a multi-column document. When I use twocolumn mode, everything works fine. However, I need to use the multicol package for ...
user182238's user avatar
3 votes
1 answer
503 views

Floating environment with caption outside the box

I have defined a float environment following this answer in the "optional caption" version: \documentclass{article} \usepackage{newfloat} \usepackage{caption} \DeclareFloatingEnvironment[fileext=frm,...
Ntakwetet's user avatar
  • 631
1 vote
2 answers
990 views

\DeclareCaptionLabelFormat not working

I'm trying to create a custom environment called graph and underline the label before the colon. This is what I have: \documentclass{article} \usepackage{caption} \usepackage{float} \usepackage{ulem}...
ericw31415's user avatar
3 votes
1 answer
425 views

How to change caption style for new float in memoir?

i defined a new float in memoir class. everything works fine, except i can't manage to change the caption font style. if i declare \captionnamefont{\bfseries}, the font changes only for default float ...
user195690's user avatar
1 vote
1 answer
159 views

{xe|lua}latex + svmono + newfloat + biblatex = ↯

Running xelatex or lualatex on \documentclass{svmono}%%% V 5.6 from http://www.springer.com/gp/authors-editors/book-authors-editors/resources-guidelines/rights-permissions-licensing/manuscript-...
user avatar
0 votes
1 answer
26 views

How to use accentend characters in newfloat

I am using \newfloat to redefine numbers of Figures, as explained here. I used the following code: \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{graphicx} \...
Oalvinegro's user avatar
1 vote
1 answer
264 views

How to add babel captions to newfloat package environments?

This minimal example, will produce the following PDF: \documentclass[12pt]{abntex2} \usepackage[utf8]{inputenc} \usepackage{newfloat} \DeclareFloatingEnvironment[fileext=loq,placement={!hbtp}, ...
user's user avatar
  • 4,725
2 votes
1 answer
932 views

Styling and spacing around float caption for listing

When I use the newfloat package instead of the float package there seem to be some side effects with llncs and/or listings. Case 1: When I use the float package, the float caption of listings is not ...
white_gecko's user avatar
  • 2,101
3 votes
1 answer
508 views

Make the float name bold

I'm using the llncs calls and introduce a new float with the float package. But the float name of the new float is formatted differently then the original floats, as shown in my mwe. \documentclass{...
white_gecko's user avatar
  • 2,101
1 vote
1 answer
195 views

Custom environment in wrapfigure

I which to have a wrapped figure in a custom float environment: the caption should be on top and carry the name "Infographic". Unfortunately I don't know how to do this. This is what I came up with ...
Tom de Geus's user avatar
3 votes
1 answer
275 views

New Float order in endfloat

I have created new float(Map) in my document and I have used endfloat package but the problem is "List of Maps" should show after "List of Figures" currently Map appearing after table Plese see the ...
Shalu's user avatar
  • 319
3 votes
1 answer
300 views

svmono + newfloat - caption: how to adjust spacing separating the caption and the float contents

Consider the following code \documentclass{svmono}% Version 5.5, available from https://www.springer.com/gp/authors-editors/book-authors-editors/manuscript-preparation/5636 \usepackage{newfloat} \...
user avatar
1 vote
1 answer
146 views

Correct loading order of package newfloat along with hyperref and algorithmic packages?

There is extensive documentation that hyperref must be loaded towards the end. In particular, the following is the correct loading order for these specific packages: \usepackage{float} \usepackage{...
Dr Krishnakumar Gopalakrishnan's user avatar
1 vote
0 answers
88 views

How to format paragraphs in newfloat

Is there an option in the float package to format the contents of a float type similarly to ordinary text (i.e. indent new paragraphs)? \documentclass[twocolumn]{article} \usepackage[utf8]{inputenc} ...
Gabriel Christian Alava's user avatar
3 votes
0 answers
370 views

Vertical space inside, before and after LaTeX environments

Background Similar questions have been asked before on this forum, but my question is a bit wider. The ultimate goal is to define an environment that is useful for automatic documentation of ...
Tore H-W's user avatar
  • 493
0 votes
1 answer
932 views

Use custom text as counter for newfloat environment

I have defined a custom floating environment using newfloat to describe some application scenarios. These scenarios have distinctive and short names, which I would like to use as the "number" of the ...
languitar's user avatar
  • 798
2 votes
1 answer
247 views

Conflict between `mbk` and `mwrep` and `newfloat`

If I try to define a new float with: \documentclass{mwart} \usepackage{newfloat} \DeclareFloatingEnvironment{plate} It works. But if I just change the class to \documentclass{mwrep} \usepackage{...
user avatar
0 votes
1 answer
630 views

Using a custom float in beamer frame

I have created a float with the newfloat package for graphs and plots. This way, I can use a different caption label and counter from the Figure floating environnement : Graph 1 - Tresca stress vs ...
Dimitri's user avatar
  • 81
9 votes
0 answers
1k views

minted: remove space between caption and frame in float environments [closed]

I am using minted with the newfloat option to typeset code listings in float environments. Unfortunately, the caption in such a case has a large distance to the source code area: \begin{listing} \...
languitar's user avatar
  • 798
2 votes
2 answers
130 views

newfloat vs tex4ht

When using newfloat to create a new type of float, tex4ht swallows the first line of text inside the float when it converts to .odt format. In the MWE, the new float is example; this works the same ...
musarithmia's user avatar
  • 12.4k