Hot answers tagged

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} ...


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

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) ...


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

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 ...


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, ...


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 ...


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} % ...


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

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

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:


2

try this: \documentclass{book} \usepackage{titletoc} \usepackage{lipsum} \usepackage{tcolorbox} \usepackage{picture} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{3} \begin{document} \tableofcontents \chapter{A chapter} \startcontents[chapters] \begin{picture}(0,0) \put(.4\linewidth,2.5cm){\begin{tcolorbox}[width=.5\linewidth] ...


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., ...


1

I've changed below to right and changed inner sep= to 3pt in your code: \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry} \usepackage[utf8]{inputenc} %\usepackage[misc]{ifsym} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{tikz} ...


1

H if used has to be used on its own it makes no sense to combine with the float options as the meaning of H is to make the environment not a float. Note that if you did not use H you would want p as omitting p forces latex not to use a float page, which for a large float is normally what is needed. If you do not give latex any legal position to place the ...


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, } ...


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

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.



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