# Tag Info

0

I changed your given MWE. There are several mistakes included, for example should package hyperref be the last called package. I added the command \ihead[Test]{Beispiel 1} % [plain]{scrheadings} to show you that the part included with [] is shown on the first page of a chapter or TOC and the part included in {} is showed on all other pages ...

3

You have to use the proper header names of columns. Your columns have names parameter and test but you are using name and surname. Change them to columns/parameter/.style={column name=$\epsilon$, column type={|c|}}, columns/test/.style={column name=$\phi$, column type={|c|}}, Code: \documentclass{article} \usepackage{pgfplotstable} ...

1

With or without placeins you can prevent a float floating "backwards" to the top of the page with its definition by using \usepackage{flafter] which is part of the base latex distribution.

1

To reduce the spacing between figures and text, you can use \belowcaptionskip if all your figures have a \caption: \setlength\belowcaptionskip{-3ex} \begin{figure}[h] \centering Figure contents \caption{Figure caption} \end{figure} In order to reduce the spacing between paragraphs, set \parskip: \setlength{\parskip}{0mm} To see the current ...

1

Beware of spaces at the end of lines between environments/commands! The hint is that you have a comment character at the end of your first subfigure. If you change all of these lines so that they look like \end{subfigure}% Then all is well:

1

XeLaTeX should handle eps files with non problem. But your eps file might contain extraneous material, suche a bitmapped screen preview of the real image. Therefore try converting it into another acceptable format, for example pdf with ps2pdf and import the pdf image instead of the eps one. Maybe that the extraneous material forbids a suitable ...

3

You haven't provided your requirements for quite a few design aspects, so I have to make some assumptions. In particular, in the examples below I'll assume that the two side-by-side figures should jointly span the entire width of the text block. You also haven't indicated whether or not the side-by-side figures should be able to float, in the LaTeX sense ...

2

Here is the kind of thing I think you want although I'm not sure. You can fiddle with the sizes to make the most of the space but you need things smaller than in the MWE unless you want more than 2 lines of sub-figures which is another option. \documentclass[a4paper, 12pt]{article} \usepackage[left=3cm, right=2cm, top=3cm, bottom=4cm]{geometry} ...

4

\begin{figure} doesn't expand the optional argument; when expansion happens it's too late. \documentclass[10pt,a4paper]{article} \usepackage{keyval} \usepackage[demo]{graphicx}% draft is just for the example \makeatletter \define@key{image}{pos}{\def\i@pos{#1}} % define key-val \setkeys{image}{pos=!htbp} % set default \newcommand{\image}[2][]{% ...

0

If I understand your problem correctly, you're just trying to get a figure into a single column in the text. There's a few issues with your code: The \widetext environment is only intended for placing full width equations into the middle of two column text. Using figure* creates full width figures in two column documents which can only be placed at the top ...

0

The problem is I think quite simply that the \parbox in your step-files is too narrow to fit the text, so it overflows out of the parbox, and hence out of the \fcolorbox. If you use a large enough width, in this specific case 1.5\linewidth seems to fit well, the result is better: I'm not entirely sure why the second box is that narrow, but I suppose it ...

6

Since you're looking to make the two graphs larger, you could (a) increase the widths of the two subfigure environments to, say, 0.75\textwidth and (b) set the widths of the graphs to 1\linewidth, i.e., to the full width of the enclosing subfigure environments. LaTeX will automatically insert a line break between the two subfigures. ...

3

You can give three option for fonts: font = <options> → affects whole caption labelfont = <options> → affects only the caption label and separator and textfont = <options> → affects only the caption text What you need is font = bf (instead of labelfont=bf) in \usepackage[labelsep=newline,% line break after label ...

3

The problem is in the order with which you load the packages: stfloats (assuming you really want to use it) should go before fixltx2e or the float will disappear. I get no error from your minimal example, however, only the disappearance of the float. Note however that \ifCLASSINFOpdf \usepackage[pdftex]{graphicx} \else \fi is useless; just do ...

3

Each of your \subfigures is 1\textwidth wide - there's no way LaTeX could fit two of these in a row. Also you don't need the minipage there. Try something like this: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \usepackage{mwe} \begin{document} \begin{figure*} \centering \begin{subfigure}[b]{0.475\textwidth} ...

3

You can put \processdelayedfloats just before the appendix: \documentclass[11pt]{article} \usepackage{morefloats} \usepackage{setspace} \usepackage[round]{natbib} \usepackage{booktabs} \usepackage[nomarkers,nolists]{endfloat} \begin{document} body here \begin{table}[htbp] \begin{tabular}{lc} 1&1\\ \end{tabular} \end{table} body here too \pagebreak ...

0

Yeah, i try to build a example with the "error" i get. but after i replace the original text with same amount of lorem ipsum words, it works and all is fine. \documentclass[12pt,a4paper,parskip=half,headsepline,plainheadsepline,DIV15,BCOR12mm,oneside]{scrbook} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...

1

insbox is a set of generic macros that allow to insert (almost) any box (graphic file, equation, …) on the left ot the right of a paragraph. The two main commands are \InsertBoxL{n}{boxcontent}[correction] and \InsertBoxR{n}{boxcontent}[correction] where n is the number of lines at the beginning of the paragraph that remain untouched, and the optional ...

0

I use a similar solution to the one proposed by werner. However I prefer to define the minipage with text instead of line width: \begin{minipage}[c]{0.95\textwidth} \begin{lstlisting} \end{lstlisting} \end{minipage} "c" for centering and "0.95\textwidth" to make the listing a little bit smaller than the rest of the text.

1

A proposition: Don't use floating figures, remove \begin{figure}...\end{figure} around the graphics and caption Use caption package and \captionof{figure}{foo text} instead of standard \caption command Redefine the figure output command \thefigure to obtain the \thetheorem.\arabic{figure} output (Optional) Use a resetting of figure counter by theorem, i.e. ...

0

It ends up that Apple's Preview application opened and displayed the .eps file properly. If, at that point I choose to Save... the document everything is fine, and I get a correctly formatted .pdf file with correct margins, etc. But, if I choose Export as PDF..., it exports and shows the .pdf on the screen properly. However, on disk the margins are much too ...

6

The easiest way is to put each float in a separate file of the form \expandafter\ifx\csname r@fig:A\endcsname\relax\else\expandafter\endinput\fi \begin{figure} ..... \caption{This is figure A.}\label{fig:A} \end{figure} then use \input{figAfile}\ref{fig:A} the figure will only be set once even if you input it multiple times as the \ifx test ...

0

Perhaps what you are looking for is how to wrap a your text around your figure. This can be done with the wrapfigure environment (inspired by the LaTeX Wikibook) \documentclass{report} \usepackage{wrapfig} \usepackage[demo]{graphicx} \usepackage{kantlipsum} %To generate lipsum \begin{document} \kant %Lipsum \begin{wrapfigure}{r}{0.5\textwidth} ...

2

Here is the relevant excerpt from the user manual: Let's start with an exercise taken from a book by James Davies, \textit{Life and Death}\footnote{Elementary Go Series vol. 4, Kiseido Publishing Company, \copyright 1975, 1996}~: \medskip \begin{minipage}[c][1.0\height][c]{0.65\textwidth} \begin{verbatim} \white{b4,c4,d4,e4,f4,g3,g2,c3} ...

1

As mentioned in my comments, you can try with the subcaption package which allows you to specify the width of the box that contains the subfigure. That way you can set them to be equal. E.g.: \documentclass{report} \usepackage{subcaption} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \begin{subfigure}[b]{.45\linewidth} ...

0

If you want LaTeX to move a figure to another page, if appropriate, do not tell it to try to include the figure HERE! no matter what. That is, omit the [H] argument to the figure environment or, if you prefer, you can specify other positions in addition to H e.g. Htb or something. The important point is to let LaTeX move the figure somewhere suitable if ...

0

@Torbjørn T. Thank you very much. The problem has been solved. For anyone facing the same problem, the steps are as follows: Change the Document>Settings>Text Layout to Indentation: Default (Even if you still want to keep your document not-indented as I do) This will be quite tedious! For all figures: inside the figure float, change the paragraph settings ...

1

(It is a little bit difficult to say for sure, but I think I know why this happens. At least partly.) There are two problems relating to the paragraph settings of the paragraphs containing the floats that can produce additional whitespace. 1. Empty paragraphs If you look at the LaTeX source of one of the figures you'll see something like \noindent ...

4

EDITED to remove double appearance of "Figure 1". EDITED again to give the OP a gray box around the caption. EDITED a 3rd time to place repetitive stuff in macros. Use \startfig to open the figure, and \capfig{} to provide the caption and/or label and close it out. Final EDIT to add support for labels. \documentclass{article} ...

0

Check out my typical Makefile # This is a LaTeX Makefile created by Predrag Punosevac# ######################################################## SHELL = /bin/sh .SUFFIXES : .tex .dvi .ps .pdf FILE = sam-new LATEX = /usr/local/bin/latex PDFLATEX = /usr/local/bin/pdflatex BIBTEX = /usr/local/bin/bibtex XDVI = /usr/local/bin/xdvi DVIPS = /usr/local/bin/dvips ...

2

The causes of the incorrect number in the cross-reference to the figure as a whole are (i) the incorrect use of {...} to encase the material after \begin{figure} and (ii) the fact that the \label{fig:revol} statement does not occur immediately after the corresponding \caption statement (viz., \caption{Validation of Revolving by Categories}). Instead, the ...

4

subfigure package is obsolete. Use subfig package instead. I prefer using subcaption package which provides subfigure environment. \documentclass[12pt,demo]{elsarticle} %%%\usepackage{subfig} do not use load this package \usepackage{subcaption} %%% \begin{document} \begin{figure} \centering \begin{subfigure}{.4\textwidth} ...

1

I came up with this little script (ran from the root folder of the project): #!/bin/bash for image_file in $(ls fig/) do if grep$image_file *.log -c > 1 then echo "File $image_file is in use." else echo "File$image_file is not in use." mv "fig/$image_file" "fig/moved.$image_file" # or any other action fi done

2

I'm not sure about your question. If you like to clean up a directory and get rid of auxiliary files and let's say all files *.jpg, and you are under Windows, you could use a powershell script published by U. Ziegenhagen here: http://uweziegenhagen.de/?p=2095. Customise it, put it into your folder and press shift + rightclick. Beware: it deletes in a ...

0

For the first point, you can try use the caption package and write in your preamble: \captionsetup{format=plain,justification=justified} Another valid option would beformat=hang. You also can set the width of the caption with\captionsetup{width=…}`. See the details in §2 of the documentation. If you want your caption to be no wider than the figure, you ...

1

Package subfigure has been superseded by package subfig a long time ago because of some messy stuff (as you have seen). An alternative to subfig is package subcaption by the author of caption. That means a maximum of compatibility. Here is your example changed to use the subfigure environment, which is basically a minipage. You can use the autoref ...

4

As mentioned in the comments, I don't think there's a way to change the caption position automatically. However, LaTeX provides two commands that can place the rule automatically for you: \topfigrule and \botfigrule. Here's an example, but as with Steven's solution, this still requires you to specify what placement the figure will be to get the caption ...

3

Well, if you explicitly define what is a top vs. bottom figure with the [!t] or [!b] specifier, it is only one extra step to redefine \captionsetup to tfigureFormat or bfigureFormat, accordingly, as shown in my MWE. Alan Munn points out that this solution is not automatic, but only works if the placement of the figures is explicit. He references Frank ...

2

The technique followed below builds on what is discussed in Wrapping two figures in one paragraph: \documentclass{article} \usepackage{graphicx,caption} % http://tex.stackexchange.com/a/133660/5764 \makeatletter \def\newparshape{\parshape\@npshape0{}} \def\@npshape#1#2#3{\ifx\\#3\expandafter\@@@npshape\else\expandafter\@@npshape\fi {#1}{#2}{#3}} ...

0

Do not do this! You can use the deprecated macros \rm and \it to switch between families. This is one of the ugliest things I've ever seen. \documentclass{article} \usepackage{caption,etoolbox} \captionsetup{font=it} \everymath{\it} \preto\caption{\everymath{\rm}} \begin{document} As $|\Psi(x_0,t)|^2$ represents yadayada and $x_0$ blah at time $t$, it is ...

2

The landscape mode is not possible inside the multicols environment. Use \rotatebox instead: \documentclass[twoside]{article} \linespread{1.08} \usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry} \usepackage{multicol} \usepackage{lscape,multirow,rotating,caption,tabularx,booktabs} \usepackage{blindtext} \begin{document} \begin{multicols}{2} ...

2

With threeparttable and booktabs it works flawlessly \documentclass{scrartcl} \usepackage{threeparttable,booktabs,array} \begin{document} \begin{table} \centering \begin{threeparttable} \caption{Test test test test testtest test test testtest} \label{tbl:things} \begin{tabular}{p{.4\linewidth}@{}c} \toprule Part & done \\ \midrule Title ...

6

There is no way to do this with floating figures without rewriting half of latex: the caption (including any footnote marks) is set at the point of the figure environment and a floating figure can float past footnotes, thus getting the footnote numbers out of order. If you really want this output style (I can see no good reason for it, a float is by design ...

2

I get the desired result if I use the KOMA-option captions=tableheading and remove both \floatstyle{komaabove} and \restylefloat{table} and also \usepackage{float}. \documentclass[captions=tableheading]{scrartcl} \usepackage{ctable} \begin{document} \ctable[ table, caption={Test test test test testtest test test testtest}, label=tbl:things ...

1

Please insert code using the brackets symbol, otherwise we can't copy it properly. If you wish to align caption and table, just add "left": \documentclass{scrartcl} \usepackage{float} \usepackage{ctable} \floatstyle{komaabove} \restylefloat{table} \begin{document} \ctable[table,caption={Test test test test testtest test test testtest}, ...

2

USe \protect \caption{test $x^{\protect\scalebox{0.55}{(n)} }_{i}$}

1

This might be what you're after: \documentclass{acm_proc_article-sp}% http://www.acm.org/sigs/publications/acm_proc_article-sp.cls/view \usepackage{etoolbox,lipsum} \makeatletter \patchcmd\@maketitle\@author{\@author \\[\normalbaselineskip] \myfigure}{}{} \newcommand\myfigure{% \makebox[0pt]{\includegraphics[width=\linewidth]{example-image}} ...

3

Here's an options using the caption package and its margin key (I added the showframe option to geometry so as to have a visual help for the page layout; I also added \marginparsep to the width of the figure, table and captions, but this is optional): \documentclass[% 12pt, BCOR=15mm, captions=tableheading, DIV=current, ]{scrbook} ...

1

Since this is a thesis, I would recommend checking the appropriate style manual (usually specified by the school) for how to refer to figures in running text. The Chicago Manual of Style (16th ed.) counsels, "Each illustration should appear as soon as possible after the first text reference to it" (3.8), and "An illustration should never be referred to in ...

0

I found the problem! The captions at the pictures (to be specific the two higher pictures) were to long, somehow causing the picture on the left to drop. Shortenning the caption aligned the pictures.

Top 50 recent answers are included