Hot answers tagged

9

Something like this? Note that the images on the left are not all the same width because the images I used have different proportions. Provided yours have the same height:width ratio, they will match in width. \documentclass[letterpaper]{article} \usepackage[scale=1]{geometry} \usepackage{tikz,calc} \usetikzlibrary{positioning,calc} ...


8

You may also try the textpos-package. It has a good manual, and is easy to learn, even if you learn by trial and error. If you like me is not skilled in Tikz, maybe you find textpos easier to use. I have made the cover page, but you will have to link to your own files. Probably, you should harmonise the high and width of all picture in an external program, ...


6

Here's an example using images from my own computer. You can use your own. \documentclass[10pt]{book} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{calc} \newcommand\myhoffset{0.75in} \newcommand\mytitlesep{1.00cm} \newcommand\portraitscalefactor{85/100} \newcommand\portraitheight{\dimexpr1in*\portraitscalefactor} ...


6

\documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage[paperwidth=6in, paperheight=9in, margin=0.9in, showframe]{geometry} \usepackage{lipsum} \begin{document} \begin{figure} \centering \begin{minipage}{.4\textwidth} \centering \includegraphics[width=1\linewidth]{example-image} \end{minipage}\qquad \begin{minipage}{.4\textwidth} ...


4

Comment your \hfill. It adds some additionnal space and your second minipage does not fit in a single line any more. Or set your minipage length to something smaller. By the way, I would suggest you to center your image using the c option. And you should use the whole \textwidth in your minipage not to waste space. \begin{minipage}[c]{0.45\textwidth} ...


4

Just reserve the wanted space to the minipages; with \dimexpr it's easy to fix the space in between the images (here to 2 ems). Note that you don't need \captionof. With \begin{minipage}[t] you ensure alignment with respect to the bottom of the pictures. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage[paperwidth=6in, ...


4

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{array} \begin{document} \noindent \begin{tabular}[t]{ | l | }\firsthline Табельний номер \\ \hline 0000000000000 \\ \hline \end{tabular} \begin{tabular}[t]{@{}r} Прийняти на роботу з \underline{25.01.2016} \\ до \underline{25.01.2017} \end{tabular} ...


3

As I said in my comment, you have problem with \parindent. Your minipage widt with of \textwidth doesn't start at left text border bit after parindent and consequently for its amount protrude right text border caused warning Overfull \hbox (15.0pt too wide) in paragraph at lines 9--31. I f you add before begin{minipage}˛ a command \noindent or set \parindent ...


2

Not there are always issues with minipages. If fact, I found this the easiest approach for this type of cover. I left a MWE as the first page of the book document, since this would be suitable when the goal is the own PDF instead of the hard copy. (Sorry, no scientists nor tigers here, I found only landscapes and a pussycat in the image-gallery directory ...


2

You can put the minipage in a figure environement: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx} \begin{document} \begin{figure*} \hfill\begin{minipage}{0.27\textwidth} \begin{tabularx}{\textwidth}{ | X | } \hline Табельний номер \\ \hline 0000000000000 \\ \hline \end{tabularx} ...


2

As I suggested in my comment, I wouldn't recommend include pictures of tables. I understand that creating large tables with the tabular environment can be somewhat tedious, but if you are tabulating data files, there is pgfplotstable that can be immensely helpful (it is distributed with PGFplots). Here's a small example of how it can be used: ...


2

Edit: Since my suggestion, how to improve looks of both tables, if you employ S column column type from siunitx package, I decided to rewrite my answer following my estimation, that two so huge table squeezed in one page, even in landscape orientation, is not readable in such haven't sense to be present in document. So, I suggest (and encourage you) to split ...


2

Given that each tabular environment has 31 [!] columns, I see no way how they might be made to fit side-by-side on a page, unless you're willing to go with a microscopic font size and thereby assure that they'll be unreadable unless the reader happens to have a magnifying glass. Even if one sets the font size to \tiny, for a 50% linear reduction from ...


2

This is as far as I got. I can only run minted in draft mode and could not get escapeinside to work for any characters. \documentclass[draft]{article} \usepackage{tikz} \usetikzlibrary{tikzmark,calc,shapes.geometric} \usepackage{minted} \begin{document} \noindent\begin{tikzpicture}[remember picture,baseline=(n1.north)] \node[minimum ...


2

If you can change to listings, with tikzmark, tikzmarklistings library and tcolorbox's comment and listing option you can do something similar to what you want. This is just a starting example. You will need to customize 'tcolorboxand listing, but also fight with how to definecomment` to fit your needs. Following code shows how to do it. tcolorbox offers ...


2

You can use BVerbatim instead of Verbatim, but the line numbers and the frame must be added manually. \documentclass{article} \usepackage{minted} \usepackage{lipsum} \setminted[c++]{ % linenos=true, % Line numbers autogobble=true, % Automatically remove common white space frame=lines, framesep=2mm, ...


1

You don't need the column environment. Just place two minipages next to each other inside the shadowed theorem environment. \begin{frame} \begin{THM_mini} \begin{minipage}[c]{0.58\textwidth} Here is a theorem. Here is an equation: \[ E = m c^2. \] Here is a theorem. \end{minipage} \begin{minipage}[c]{0.4\textwidth} \begin{tikzpicture}[>=latex', ...


1

A regular node (with all positioning options) can be used for the logo, something like: \node[blur shadow, anchor=north west] at ($(current page.north west)+(1,-1)$) {\includegraphics[width=5cm, height=4cm]{example-image}}; will do the work. And a similar solution can be applied for the minipage. In fact you don't need a minipage to define a ...


1

Or (as another option: split long equation into two lines: With some changes how to write equations, limit and matrices without change of font size: \documentclass{beamer} \begin{document} \begin{frame} \begin{minipage}{0.45\textwidth} Applying the model iteratively: \[ y^{(t)}= \mathbf{V}^{(t-1)}y^{(1)} \] where \begin{multline*} V^{(t-1)} = ...


1

Your code (minipages with half width, btw. you should not use 0.5 twice as this assumes ideal flawless calculation) seems to imply you want the two tables to be side by side? To be frank: thats not going to happen. If I were you I would transpose the tables and even then you probably would have to use longtable, because they are huge. If however you insist ...


1

As noted in the initial comment the error is \end{minipage} \begin{minipage}[c]{0.5\linewidth} which should be \end{minipage}% \begin{minipage}[c]{0.5\linewidth} As you can not fit two .5\linewidth minipages and an inter-word space on to a single line.


1

\begin{figure}[ht] \centering \includegraphics[width=162mm]{images/fig1.png}% \begin{picture}(0,0) \put(-50,-50){\parbox{.45\linewidth}\centering \caption{Some text}\label{fig1}}} \end{picture} \end{figure} then adjust the -50,-50 coordinates to put the caption wherever you like.


1

I suppose one hackish way might be along these lines: \newlength\cvleftbibindent \setlength{\cvleftbibindent}{\dimexpr \cvleftwidth + \bibindent\relax} \newcommand{\xpublist}[2]{% \begin{sloppypar}% as in original \begin{refsection} \nocite{#2} \renewcommand{\bibfont}{\mystyle[cvstoryshort]}% \defbibenvironment{bibliography} ...


1

Your `tikzpicures` replace width: \begin{tikzpicture}[overlay,remember picture, line width=0.5mm, draw=red!75!black, rounded corners] \draw[->] (ci.east) -- +(5,0) |- (adm); \draw[->] (adm) -- (pm); \end{tikzpicture} and you will get: I wonder, why you draw this image on so complicated way, directly in ...


1

Please include full minimal working examples including the relevant packages you use. Your code produces both an underfull and overfull box. I don't think creating a minipage is really helping here. I can recommend wrapping the \tabularx{} environment into a \table{} environment which in your example doesn't produce any overfull boxes. Also the geometry ...


1

1) \noindent\begin{minipage} 2) no need to \\ befor tabularx if necessary \makebox[\linewidth]{Zur Erläuterung der Vorgehensweise definiert Bechmann die folgenden Variablen:} 3) p{.3\linewidth} \documentclass{article} \usepackage{tabularx} \begin{document} \noindent\begin{minipage}{\linewidth} \makebox[\linewidth]{Zur Erläuterung der Vorgehensweise ...



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