New answers tagged

2

Use the package textpos. You may use negative values if you want the tabular higher up and more to the right: \documentclass{beamer} \usepackage[overlay]{textpos} \begin{document} \begin{frame} \begin{textblock*}{0.15\linewidth}(0.9\textwidth, 0.001\textheight) \begin{tabular}{|c|c|}\...


4

How about using minipage environment and control the left/right column with respect to the \textwidth: \documentclass{beamer} \begin{document} \begin{frame} \begin{minipage}[t]{0.85\textwidth}% Left side \begin{itemize} \item comment 1 regarding table \item comment 2 \item comment 3 \item comment 3 \item comment 3 \...


4

Here is a way with tikz overlay: \documentclass[fragile]{beamer} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document} \begin{frame} \begin{itemize} \item comment 1 regarding table ...


3

It is possible to create columns with the column environment. \documentclass[]{beamer} \usetheme{Madrid} %\usepackage{tikz} \begin{document} \begin{frame} \begin{columns}[T] \begin{column}{10cm} \begin{itemize} \item comment 1 regarding table \item ...


3

The main issue is that you forgot overlay in your tikzpicture. However, this is also to inform you that there is the tikzmark library, with which you can make the tables nodes, and elements subnodes. \documentclass{beamer} % only frames \usepackage{tikz} \usetikzlibrary{shapes.geometric,positioning,matrix,fit,tikzmark} \begin{document} \begin{...


1

With your help -- thanks to AndréC, Schrödinger's cat and Zarko -- this is how it should look like (in the world of Zelda, more of the arrows are strictly vertical, but this doesn't count). What I needed was tikzlibrary matrix and fixed text width: \begin{tikzpicture}[every node/.style = {draw, shape=rectangle, rounded corners, text width = 9em, inner ...


6

You are asking whether one can achieve the desired alignment with positioning only. The answer is yes, but you make your life unnecessarily complicated IMHO. Things get much more straightforward when you use the matrix library on top of this. Then the desired alignment is just a matrix with node anchors south. This requires much less tuning (only the text ...


5

Like this? This require some manual interfering into code: \documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc, positioning} \usepackage{luatextra} \begin{document} \begin{tikzpicture}[ node distance = 1ex and 2em, every node/.style = {draw, shape=rectangle, rounded corners, align=left} ...


2

The answer to the question in the title is that you do not need the float package or \restylefloat. The package is a good package and has several useful extensions to the built in float features, but you do not need it (and it does not affect the float position, just formatting). "Float" here is unrelated to floating point numbers, it refers to the ...


0

Unlike in the MWE, in your real document there is not enough space left on the page. If the text must come after the image, place a barrier to avoid it floating away: \documentclass[notitlepage]{report} \usepackage{graphicx} \usepackage{placeins} \begin{document} At t = 90.5, $\delta_{1} = 0.131$, $\delta_{2}=0.872$, and $x[0] = 0.139$ we notice ...


0

There are ways without any special package such as graphbox, adjustbox or even tabularx. \documentclass{article} \usepackage{graphicx} \begin{document} \hfill{\scshape Technical University of Denmark}% \hskip1em \vtop{% \vskip-1em \hbox{% \includegraphics[width=0.15\textwidth]{DTU}% }% } \end{document}


1

like this? (size of image you can adjust with width of p{<width>} column type, see suggested code below) For this image you should have in your document preamble: \usepackage{tabularx} \usepackage[export]{adjustbox} I guess, that this image you like to have in header in the first (or all) page(s). In this case, you should integrate in document ...


1

Modifying your MWE, I have the following proposal. Output Code \documentclass{article} \usepackage{geometry} \usepackage{graphbox} \begin{document} \hfill{\scshape\large Technical University of Denmark}% \hskip1em \includegraphics[align=t,vshift=.6em,width=0.2\textwidth]{DTU} \end{document}


2

To align figures built with TikZ, it is enough to build each of them in a scope environment and to shift the latter. I factorized the options of each figure with \tikzset, which lightens the code:\tikzset{every path/.style=thick, acteur/.style={ circle, fill=blue, thick, inner sep=1pt, minimum size=0.2cm ...


4

A possible solution could be a tabular: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{makecell} \begin{document} \noindent\begin{tabular}{m{4cm}m{5cm}} \makecell[l]{\textbf{Best regards,}\\ \\ Firstname Lastname\\Student B.Sc.} & \...


2

This is equivalent to Golovan's solution, but uses the ifoddpage package to simplify the coding. \documentclass[11pt,a5paper,twoside]{report} \usepackage{polyglossia} \setdefaultlanguage[spelling=new,babelshorthands=true]{german} \def\baselinestretch{1.07} \topmargin -2.3cm \textheight 16.6cm \newdimen\pagewidth\pagewidth=14.8650889cm \hoffset -1in \...


6

The problem is that when LaTeX constructs the margin note "III", it chooses side based on the page counter which still contains 1 (LaTeX usually collects more material than fits one page before inserting a pagebreak). The only reliable way to get page number of an object is to use a label. So the following code puts a label at the beginning of the paragraph ...


0

The memoir class provides for a variety of anonymous breaks (no number, no title text) in a document. \plainbreak{<num>} % insert <num> blank lines \fancybreak{<text>} % insert <text> % e.g., \fancybreak{{*}\\{* * *}\\{*}} % insert a diamond shape made of asterisks \plainfancybreak{<space>}{<num>}{<text>} % insert &...


8

I think you don't you need a machinery like TikZ for that: \documentclass{article}% \usepackage{lipsum} \newcommand{\threestars}{\begin{center}$ {\ast}\,{\ast}\,{\ast} $\end{center}} \newcommand{\varthreestars}{\begin{center}\begin{tabular}{c}$\ast$\\[-0.8ex] $\ast\enspace \ast $\end{tabular}\end{center}} \begin{document} \lipsum[1] \threestars \...


3

TikZ may help in this case. \documentclass[12pt]{article} \usepackage[margin=3cm]{geometry} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usepackage{lipsum} \begin{document} \lipsum[1-1] \vspace*{2mm} \noindent\begin{tikzpicture} \pgfmathsetmacro{\a}{\textwidth/2} \path (0,0); % move pen to (0,0) left most of the text \path (\a pt,0) node[scale=5,...


2

A small variation of the Torbjørn T. answer: \documentclass{beamer} \usepackage{forest} \begin{document} \begin{frame} \begin{forest} for tree = { draw, rounded corners, minimum size=3em, % nodes style grow=0 } [A [B1 [C1] [C2] ] [B2 [C3] [C4] ] ] \end{forest} \end{frame} \end{document} the result is the same ...


4

Is using forest an option? I'm certainly not an expert, but I think it is quite popular for making trees. \documentclass{beamer} \usepackage{forest} \tikzset{ block/.style = {rectangle, draw, text width=3em, text centered, rounded corners, minimum height=3em}, } \begin{document} \begin{frame} \begin{forest} for tree={grow=east, block} [A [B1 [C1] [C2]...


0

I added the node distance option in block style definition with values are 0.5cm and 1cm. In my code, block2 is mine block while block1 is yours. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ block1/.style = {rectangle, draw, text width=3em, text centered, rounded corners, minimum height=3em}, block2/.style = {rectangle, ...


Top 50 recent answers are included