# Tag Info

## New answers tagged positioning

0

You need to have a look into the sources of class moderncv. Then you can find, that the code of header for style classic differes to the code of header for banking. In your case you need to change the code of header for banking. That is the reason you have to use: \patchcmd{\makehead} {\setlength{\makeheaddetailswidth}{0.8\textwidth}} {\setlength{\...

1

refcount allows you to extract page references in an expandable way. The following method uses the \label-\ref system to set a \label on the first page of the LoF/LoT and then add the entries to the ToC where they are needed, expanding the page number using \getpagerefnumber: \documentclass{book} \usepackage{refcount} \begin{document} \frontmatter \...

2

Below is a very special use-case for your scenario. I'm sure it'll need more work if you're using hyperref or other ToC-related packages. The idea is to update the macro that sets every ToC-related entry to condition specifically on whether it's setting the LoF or the LoT. Here's what your typical .toc would look like: \contentsline {chapter}{List of ...

0

I admit, I still do not really understand your question, but if you want to replace text, only is a simple solution. The <+> overlay argument means, that the text will be displayed on the next slide, <+-> that it is displayed on the next and all following. \documentclass{beamer} \begin{document} \begin{frame} some text \...

1

As you may have noticed, the more powerful a package is, the more difficult it is to use. Note: I repeated the definition of the right column to make sure they filled from left to right on every page. \documentclass[10pt,final,hyphenatedtitles]{article} \usepackage[latin]{babel} \usepackage{flowfram} \usepackage{lipsum} \setlength{\columnsep}{0.2cm} \...

2

You need to put node at right path ... \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{shapes.arrows} \begin{document} \begin{tikzpicture} \draw (4,0.25) -- ++(0,2.5) -- ++(-.25,0) -- ++(.5,.5) -- ++(.5,-.5) --++(-.25,0) -- ++(0,-2.5) -- cycle; \node at (4.25,1.5) [rotate=90, anchor=center] {\textbf{here!}}; \draw ...

1

Maybe I missed something, but you don't need TikZ for that: a simple \fcolorbox will do: \documentclass{article} \usepackage{mathtools} \setcounter{MaxMatrixCols}{12} \usepackage{xcolor} \begin{document} \[ \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 &0 \\ 0 &...

3

You can use \subcaptionbox, if you want to have subcaptions, or nothing at all. I declared \small in order to fit the big matrices in the page, it may be unnecessary for your document. \documentclass{article} \usepackage{amsmath} \usepackage{caption} \usepackage{subcaption} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{lipsum} \newcommand{\mybox}...

2

Your problem is that the matrices are wider than the specified with of the subfigure environment (.4\textwidth), so they stick out of the right edge. This causes the overlap with the arrow. Reduce the size of the matrices, by modifying (a combination of), font size and inner sep for the nodes, and column sep, row sep for the matrix. I also increased the ...

3

It depends a lot on the type of overlapping you want. A simple way is negative space: \documentclass{article} \usepackage{graphicx} \begin{document} \hspace*{4cm}\includegraphics[width=5cm]{example-image-A}\hspace{-8cm}\includegraphics[width=5cm]{example-image-B} \end{document} In tikzpicture you can naturally do also overlaps.

0

Not an exact solution, but a workaround. I wasn't happy with how much blank space Latex allowed between the two images. So I copied both images into MS word (or Google Docs), arranged them side-by-side, and used the Snipping Tool to create a "single" picture. What's seen below is a single .png file which is much easier to insert.

3

You should use siunitx and tabular*: \documentclass[5p,times]{elsarticle} \usepackage{amsmath,amssymb} \usepackage{multirow, graphicx} \usepackage{float} \usepackage{dblfloatfix} \usepackage{array} \usepackage{booktabs} \usepackage{threeparttable} \usepackage[referable]{threeparttablex} \usepackage{siunitx} \usepackage{lipsum} \usepackage{caption} \...

1

As the solution for tables (not subtables) side by side with the floatrow package is not mentioned here, I'll add it under the form of an answer to this duplicate question. You can do that easily with the floatrow package. I took the opportunity to propose another layout, without vertical rules, with booktabs. For your original layout I added some ...

1

I think you could use the node anchors to fix its position, but maybe with some more code you could use the "circles" to position it. Output Code \documentclass[a4paper]{article} \usepackage{tikz} \usepackage{calc} \usetikzlibrary{calc, intersections} \tikzset{ linex/.style={green!50!black, shorten <=-3mm, shorten >=-3mm} } \newlength\txtht ...

5

Based on my answer at What are the ways to position things absolutely on the page?. EDITED to handle x alignment with different font sizes. This approach can be combined in a macro with alignments in the form of \aligntext[<font-size>]{<x>}{<y>}{<l/c/r>}{<t/b/B/x>}{<content>} where <l/c/r> is for left/center/...

2

I've never used texpos before, but the example in manual's last page shows that \documentclass{article} \usepackage[absolute]{textpos} \setlength{\TPHorizModule}{30mm} \setlength{\TPVertModule}{\TPHorizModule} \textblockorigin{0mm}{0mm} % start everything near the top-left corner \setlength{\parindent}{0pt} \begin{document} \begin{textblock}{1}(0,0) Xyz \...

2

Another solution with a rectangle split shape. As this kind of shapes doesn't consider a minimum height for vertically split nodes, a \parbox has been used to define different heights in each part. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning,shapes.multipart} \newcommand{\textbox}{\parbox[c][1cm][c]{3cm}{\centering #1}} \begin{...

2

Is this what you want? The trick is to put the graphic file in another \parbox, raise this box of –\height while making LaTeX believe it has 0 height, and finally to top-align the \parboxes \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[noheadfoot, nomarginpar, centering]{geometry} \usepackage{graphicx} \def\titre{ShopTurnXP} \def\...

1

You're making a paragraph consisting of: The rotated logo; the baseline is computed so that the image center doesn't move from the place it would be without rotation A rule; the baseline is at the bottom of the rule A \parbox[b], whose baseline coincides with the baseline of the last item in the box. Thus you can see that TeX respects the specifications, ...

2

You've set the \parbox vertical alignment - or anchor - to be on the [b]ottom and it's height is the entire \textheight. As such, the image's anchor - which is on the baseline is aligned with the bottom of the \parbox which sits at the bottom of the page. The easiest way out of this, without changing your template too much, is to use \raisebox{<height&...

3

I understand, that nodes in stack differs in its heights, which you like to calculate from relative size (in provided picture are written in nodes in stack) of something, i.e. you like to obtain something like this: Code for this can be quite simple and concise, if you employ two more TikZ libraries: calc and chains \documentclass[tikz, border=3mm]{...

3

Just using positioning TikZ library and a well defined node style. Code \documentclass[border=2pt,tikz]{standalone} \usetikzlibrary{positioning} \begin{document} \tikzset{block/.style={shape=rectangle, draw, node distance=-1pt, minimum width = 10em, line width=1pt}} \begin{tikzpicture} \node[block] (first) {first node}; \node[block,...

2

I propose this, using tabularx, geometry and arydshln. Note you don't have to load amsmath since you load mathtools: \documentclass[11pt,a4paper,twoside]{book} %Για τα Μαθηματικά Σύμβολα %%\usepackage{amsmath}%% needless (loaded by mathtools) \usepackage{mathtools} \usepackage{amsthm} %Για την χρήση των Ελληνικών \usepackage{gfsartemisia} \usepackage[...

2

Here is a solution using minipage. I created a command, called \frontSign, which takes two arguments, the first being the title of the person, and the second the name of the individual. You can put more lines in if you want to. I don't actually speak this language, so I am unable to see if the output is okay, so you should probably do some formatting, like a ...

0

Always after the first \cr a \vbox{\vskip 2em} works too, but I don't like it. I still see no difference in \rule{0pt}{2ex} and $$\vbox{\vskip 2ex}$$ or in $\vbox{\vskip 2ex}$ for example. The latter in LaTeX.

1

I am not familiar with the standard letter class. So here is a suggestion for a letter using scrlttr2: \documentclass[ backaddress=off,% no backaddress above the recipients address foldmarks=off,% no foldmarks - maybe you want to use them refline=nodate,% no date in the refline %DINmtext ] {scrlttr2} \setkomavar{fromname}{Name} \setkomavar{...

1

Please consider the command \Figure[][]{}{} which will take four arguments, in which first option is optional. The macro will put the image with scale parameter inside a box and if the width of the box is greater than the \columnwidth, then figure* will be used instead of figure environment. Arguments of the macro: Key-value options to scale the figure, ...

1

i propose a solution using \minipage, the code may looks ugly if several lines are too long and will get wraped, so you must choose good parameters of both minipage width (consider the space between the two blocs; dont use 100% of the line width), image scaling scale and linewidth to obtain a nice shape. i hope i answreed your question. \documentclass{...

Top 50 recent answers are included