New answers tagged

1

Here's a solution that uses the [h!] position specifier to direct LaTeX to make the figure environment non-floating. Of course, this method won't work if there's not enough space remaining in the column to actually insert the two side-by-side images and their captions. Instead of absolute widths for the minipages and images, I'd use relative widths, e.g., ...


4

A common misunderstanding is that figures or tables have to be placed in an environment of the same name to let them float away. They can be placed in situ (given enough space is available), just dropping the figure or table environment. If a caption is needed (the \label command in the MWE is useless without \caption, then \captionof by the caption package ...


3

The simplest way to do this is to use an array inside your math environment with centered columns. \documentclass{article} \begin{document} \[ \setlength{\arraycolsep}{3em} \begin{array}{c c} 1 & 1 \\ 1\quad1 & 1\quad1 \\ 1\quad2\quad1 & 1\quad2\quad1 \\ 1\quad3\quad3\quad1 ...


3

Here's an alternative solution with a newcommand, if I understood what you want to do. Output Code \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes.geometric, arrows.meta} \tikzset{ connect/.style={-{Latex}}, } \newcommand\DrawStation[4][black]{% \begin{scope}[shift={(#3)}, #1] \draw (0,0) -- ++(2cm,0) ...


4

The best solution could be to use a pic which is something similar to \newcommand but for tikzpictures. It avoids nesting tikzpictures which is not recommended. Some more information abouts pics in: Can a shape be composed out of “subshapes” in TikZ? or What are the new features in TikZ/pgf 3.0? \documentclass[tikz]{standalone} \usepackage{tikz} ...


1

Single line displays should always use \[ not align* so I would possibly use \[ E1 \qquad \text{and} \qquad E2 \] but hard to say as you have not provided a real example.


0

Setting the page layout like this: \textwidth 6.75in \textheight 9.25in \oddsidemargin -.25in \evensidemargin -.25in \topmargin -1.5in is not very intuitive. It is not clear how big the actual margins are. You should use the geometry package for that. With it you can easily specify the margins like this. \usepackage[left=1.5cm, right=1.5cm, top=0.5cm, ...


0

@John: You're right, tikz/tikzpagenodes did the trick. I didn't know that tikz poster class is surrounded by tikzpicture environment.


2

You can hide the width of the hyphen, but i am not sure it looks much better. \documentclass[8pt, marklength=20mm, coverwidth=162mm, coverheight=229mm, bleedwidth=30mm,spinewidth=65mm]{bookcover} \usepackage[icelandic, latin, czech]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tgpagella} % ...


3

The order in the option does not matter as they just restrict where latex attempts to place the float so the main effect of the option you give is to prevent the float being placed on a float page as p is not included. Obviously h has to be tried first, at the point the float is entered, but top bottom and page floats are just cyclically tried as each time ...


3

You must add overlay key in : \tikz \node[draw, right,name=kap2,rounded corners, overlay, fill=red!20,align=left] at (3,-2) {Killing vectors}; Don't forget to compile twice ! \documentclass{beamer} \usepackage{mathtools,tikz,lmodern, xparse} \usepackage{tensor} \usetikzlibrary{%arrows, chains, matrix, ...


2

You need to set a extra pair of brackets like this: \begin{align} p_{e,i}(k)=\frac{4}{b_{i}(k)}\left(1-2^{-\frac{b_{i}(k)}{2}}\right)Q\left(\sqrt{\frac{3\ b_{i}(k)\gamma_{i}(k)}{2^{b_{i}(k)}-1}}\right),~\forall~i,~k, \text{even } b_{i}(k). \label{evenpber} \end{align} MWE on https://www.latex4technics.com/?note=7ij0mu This results in:


3

With your code I get the warning address field is 155.80432pt to high So I would know I have to enlarge both the height of the address field and the space above the refline by 156pt: \makeatletter \@addtoplength{toaddrheight}{156pt}% enlarge the height of the address field \@addtoplength{refvpos}{156pt}% shift the refline down \makeatother The ...


1

You can do this with the floating.environment option while reading the following documentation: library(xtable) ?print.xtable For example: print(xtable(data.frame(3)), floating.environment = "table*") Note that this is an option to print.xtable, not to xtable directly. Another option that is related is tabular.environment.


1

Instead of eso-pic, you can use background with tikzpagenodes help. \documentclass{article} \usepackage{background} \usepackage{tikzpagenodes} \usepackage{lipsum,showframe}% Just for this example \backgroundsetup{% scale=1, angle=0, contents={\includegraphics[width=5cm]{example-image}}, position=current page text area.north east, anchor=below left, } ...


2

There is no Right counterpart to the exists Lefts. But you can move stuff into position: \documentclass{article} \usepackage{eso-pic,graphicx} \usepackage{lipsum,showframe}% Just for this example \begin{document} \AddToShipoutPictureBG*{ \AtTextUpperLeft{% \makebox[\textwidth][r]{% Move over to right so right aligns with right of text block ...


2

The command \visible prevents newly shown items from shifting existing ones around. In your case, I'd combine \visible with \alt as below: MWE \documentclass[xcolor=dvipsnames]{beamer} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \begin{document} \begin{frame} Text always present \begin{itemize} \item<2-> Item 1 \item<3-> Item ...


2

The easiest solution is to modify the contents of the cell, The first solutions added a "strut" extending downward, while the second shows a more general approach using \raisebox. \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|} \hline \rule[-2\normalbaselineskip]{0pt}{3\normalbaselineskip}% strut a) T.Insert(8) & b) T.Insert(12) & ...


3

I managed to some hove fix and optimize your first example, see, if after this you still need new-commands defined in your second example: \documentclass{beamer} \usepackage{mathtools,tikz,lmodern, xparse} \usetikzlibrary{%arrows, chains, matrix, positioning, %shadows, shapes, ...


0

I cannot really test your example file because I do not have the font. So here is a Latin Modern Roman example. The issue is that the abstract is set in a list environment while the abstract title stuff is not. The list environment makes it easy to modify the margins of the abstract text, but it also means that the \abstractname is not so easily modified. ...


2

Here's a way to indent the final block by limiting the scope of the \setlength{\parindent}{0pt} and adding an explicit skip at the start. \documentclass{book} \usepackage[turkish]{babel}%türkçe karakter \usepackage[utf8]{inputenc} \usepackage{textpos} \newcommand{\fromtop}[1]{\dimexpr-1in-\topskip-\topmargin-\headheight-\headsep+#1\relax} ...


1

It would really be better to provide an example code, you don't need to post your real words just xyz and \rule{1cm}{1cm} instead of graphics is enough, but anyway... At the point that the third page is about to start, latex has the pending figure and it has to decide whether to output it at that point on a float page (which it has done) or to hold it back ...


2

A couple of options. The differences in output are because the right=of and above right=of changes the anchor of the node. above sets anchor=south, while above right sets anchor=south west. Indeed you'll see that the bottom of the blue circle and the south west point on the black circle is located in the center of the two other circles. By adding ...



Top 50 recent answers are included