4

As far as I remember, loading the caption package overwrites some KoMa commands, and the \addtokomafont instructions might not work as intended. I can't test this right now but I would use \DeclareCaptionFont from the caption package: \usepackage{newfloat} \DeclareFloatingEnvironment[fileext=frm,placement={H},name=Box]{myfloat} \usepackage{caption} \...


4

In order to align the image to the right margin, you might want to use foatrow's \floatsetup[figure]{margins=raggedleft} command. You can either use it globally by putting it into the preamble or locally as shown in teh following MWE: \documentclass[12pt,a4paper]{article} \usepackage[showframe]{geometry} \usepackage[demo]{graphicx} \usepackage{lipsum} \...


3

Only as a supplement to the answer of @leandris for the KOMA-Script part: The KOMA-Script class provides environments captionbeside and captionofbeside. \documentclass[12pt,a4paper]{scrartcl} \usepackage{showframe} \usepackage{graphicx} \usepackage{lipsum} \usepackage{float}% if position H is really needed \KOMAoption{captions}{nooneline,centeredbeside,...


3

Here is an MWE using threeparttable. All lined up nicely. I added array and used the \extrarowheight command to add some space between rules and cell content, and removed the side bearings with @{}. I have to add that you also may use \usepackage[margin={0mm, 35mm}]{caption}. However, with threeparttable, you do not need to guess: \documentclass[a4paper]{...


3

As you mentioned, the float package is causing the issue. Remove it and change the syntax to match that provided by memoir natively; it's similar, but different. \documentclass{memoir} \newcommand{\newfloatname}{NewFloat} \newfloat[chapter]{NewFloat}{nwf}{\newfloatname} \captionnamefont{\bfseries} \begin{document} \begin{figure}[h] \caption{Caption ...


3

\multirow{<nrows>}{<width>}{<text>} spreads text (vertically) across <nrows> rows of width <width>. If <width> is given as *, it uses the natural width of <text>. So, for example, using \multirow{12}{*}{<...>} means you want to spread that specific cell over 12 rows. It's obviously incorrect since each TestX ...


3

As I write in the comment to the question, you have misunderstood how multirow calculates spanning of rows, but it is easily fixed. Just add 3 all places (i.e. instead of 6, 9 and 12). To fix the misplaced caption, if you want to use your original code, you have to add extra space after the multirow-row to create enough space for the spanned rows. Since you ...


3

There are two reasons why your code fragment does not compile, even after adding the necessary document preamble: You have a mix of longtable and tabularx commands in your the table's preamble. The heading is for a longtable, but the column definitions are for a tabularx. You have placed the label at wrong place. The best place is inside the caption, i.e. \...


3

If you specify \printendnotes, it turns off the automatic print \AtEndDocument. So the \endnote in the caption is executed too late. Also, you will get two endnotes (3 and 4) if you do not specify a short caption. \documentclass{article} \usepackage{endfloat} \usepackage{enotez} \begin{document} \endnote{First endnote} \begin{figure} \caption[Hi!]{Hi! ...


2

The \subcaptionbox is based on \parbox (and therefore inherits its optional argument "inner-pos") while subfigure is based on the minipage environment (which offers a different set of optional arguments). If no width is given, the \subcaptionbox is as wide as its contents. (When using subfigure a width has always to be given explicitly since it's a mandatory ...


2

A variant code, also based on makecell, combined with multirow – and booktabs, to add some padding around rules. I added some vertical spacing to separate the groups of three lines. Also, a reference to requires a \label command (after the caption) to work. \documentclass{report} \usepackage{multirow} \usepackage{makecell, booktabs} \renewcommand{\...


2

Here is another suggestion without packages newfloat and caption. Additionally I would replace package mdframed by package tcolorbox. \documentclass{scrreprt} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[english]{babel} %%%---being able to use all installed fonts (must compile with LuaLaTeX!) \usepackage{fontspec} \newfontfamily\gillfont{Gill ...


2

You want to use the expansion of \seq_item:Nn: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lipsum} \usepackage{graphicx} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage[french]{babel} \usepackage[justification=centering]{caption} \usepackage[final]{changes} \usepackage{xparse} \usepackage{hyperref} % ...


2

If you read the KOMA-script manual page 128, this behaviour is documented: Note that these options change only the formatting, not the actual position of the caption. Whether the caption is placed above or below a float depends solely upon where you use the \caption command inside float environment. However, this can change when using the float package ...


2

If you do not want the table to float simply do not use environment table. Use instead this code: %\begin{table}[htp!] \begin{center} \begin{tabular}{% l S[table-format=2.2,table-space-text-post=\%] S[table-format=3.2,,table-space-text-post=\%] } \toprule & \multicolumn{2}{c}{\thead{\makebox[0pt]{\textbf{Descriptive Analysis 1}}}}\\ \...


2

I would use xltabular, a nice combination of the longtable and tabularx. It enable use of caption inside table environment: \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage{ragged2e} \usepackage{booktabs, makecell, xltabular} \renewcommand\theadfont{\bfseries\small} \newcolumntype{R}{>{\RaggedRight}X} \newcolumntype{s}[1]{>{\...


2

I suppose that your two images only have a single caption that is top aligned with the upper of the two images. In the following MWE, I have used a tabular to help position the images: \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{floatrow} \usepackage[showframe]{geometry} \begin{document} \begin{figure} \floatbox[{\capbeside\...


2

Probably the following is close to what you want to achieve: \documentclass{article} \usepackage{caption} \usepackage{graphicx} \usepackage{pdflscape} \usepackage{adjustbox} \usepackage{xcolor} \begin{document} %\begin{landscape} \begin{figure} \begin{adjustbox}{minipage=0.45\linewidth,frame=1pt 5pt} \includegraphics[width=\linewidth]{example-image-a} \...


2

To illustrate the use of \captionof with mdframed. One can make it act more like a float by using \afterpage and \clearpage (afterpage package). \documentclass{article} \usepackage{newfloat} \usepackage{caption} \DeclareFloatingEnvironment[ fileext=lob, listname={List of boxes}, name=Box, placement=htp, ]{myBox} \usepackage{mdframed} \usepackage{...


2

Well, usually tables are centered in the available text width. In your case the table was not centered. Please see the following MWE: \documentclass[a4paper]{article} \usepackage[% a4paper, top=3cm,bottom=2cm,left=3cm,right=3cm, marginparwidth=1.75cm, showframe % <========================================================= ]{geometry} \...


1

Since you aready seem to know about the threeparttable package and one of its features (\usepackage{threeparttable} %Tabellenüberschrift linksbündig an Tabelle), why not use it? \documentclass[12pt, titlepage, a4paper, oneside, headsepline]{scrreprt} % headsepline \usepackage{wrapfig} % Text fließt um Figure \usepackage[singlelinecheck=false]{caption} %...


1

For very narrow columns, \sloppy is SOP. You can turn if off between paragraphs using \fussy. Most of these packages are irrelevant to this example, and should have been removed to create a Minimal example. \documentclass[12pt, titlepage, a4paper, oneside, headsepline]{scrreprt} % headsepline \usepackage{scrhack} % verbessert einige Fremdpakete und das ...


1

\\ fills the rest of the line up with empty space. Your caption is actually centered, you just have a whole lot of empty space in your caption. If you don't want the full width, you can tell LaTeX so using a \parbox. \documentclass{scrreprt} \usepackage[font=normalsize,format=hang]{caption} \usepackage{tikz} \begin{document} \newsavebox\foo \begin{...


1

Principially you have two possibilities to add captions to a table (same works for figures too with figure instead table): You can use a non floating table (that means you do not use environment table, which makes the table floating) as shown in the first example of the following MWE, nearly the same you used in your code. Then you need to use command \...


1

I solved the problem by putting the maps inside a figure and using the subfigure command. Here's the code: \begin{figure} \begin{subfigure}[b]{0.4\textwidth} \begin{karnaugh-map}*[4][4][1][$a$ $b$][$c$ $d$] \minterms{0,2, 4,9,10} \implicant{4}{7} \end{karnaugh-map} \caption{AAA} \end{subfigure} ...


1

Is it what you want? A small remark: don't use the centre environment with floats: it adds unwanted vertical spacing. Use \centering instead. \documentclass{article} \usepackage{fontspec} \usepackage{caption} \setmainfont{Segoe UI}% [BoldFont=Segoe UI Bold] \usepackage[tablename=TABLE]{caption} \captionsetup{labelfont=bf, format=hang} \usepackage[...


1

The tglat2e.cls incorporates a large part of amsthm.sty, but removes any reference to QED symbols. It's not difficult to restore it, by pasting the relevant macros. \documentclass{tglat2e} \usepackage{amsmath} %\usepackage{caption} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \theoremstyle{definition} \...


Only top voted, non community-wiki answers of a minimum length are eligible