Tag Info

Hot answers tagged

7

The \vbox is typeset with a zero height, but it goes above the minipage and its reference point is at the baseline. You could add the information inside the minipage: \documentclass{article} \usepackage{enumitem} \newcommand{\OF}[1]{% \makebox[0pt][l]{\hspace{10cm}\fbox{#1}}% \ignorespaces } \begin{document} ...


7

Both \rlap and \llap are defined in terms of an \hbox \def\rlap#1{\hb@xt@\z@{#1\hss}} \def\llap#1{\hb@xt@\z@{\hss#1}} where \def\hb@xt@{\hbox to} However, an \hbox cannot be used to start a paragraph. You either need to explicitly switch to horizontal mode by using something like \noindent or \leavevmode. (See section 16.3 of TeX by Topic for further ...


7

You can do it with a tabular. This reproduces exactly your image \documentclass{article} \begin{document} \begin{tabular}{@{}l@{ = }ll} E & electric field & [V/m]\\ s & integration path & [m]\\ V & potential in a point & [V]\\ U & voltage between electrodes & [V] \end{tabular} ...


6

Beware doing anything on the main vertical list:-) This does the test in horizontal mode where things are safer. \documentclass{book} \usepackage[inner=10mm,outer=30mm]{geometry} \usepackage[strict]{changepage} \newcommand{\onouterside}{% \begin{minipage}[t]{0.3\linewidth} Some text supposed to be on the outer side. \end{minipage} } ...


5

Unrelated to landscape or images, if you want to centre something wider than the textblock you need to hide its width. \documentclass{article} \usepackage{pdflscape} \usepackage{graphicx} \usepackage[top=1.7cm, left=2.1cm, right=2.1cm, bottom=3.7cm]{geometry} \begin{document} \begin{landscape} \begin{figure} \centering ...


5

You can use a white colored box of 1cm X 1cm as a workaround: \item[Third item\\ \textcolor{white}{\rule{1cm}{1cm}}% <--- % needed here \colorbox{orange}{\LARGE 6-10}] Code: \documentclass{article} \usepackage{enumitem} \usepackage[usenames,table]{xcolor} \usepackage{tcolorbox} \begin{document} \begin{description}[style=multiline,leftmargin=3cm] ...


5

You can open it with \left., e.g. \left. \begin{array}{c} x\\ y \end{array} \right\rbrace = a or, \begin{equation} \left\lbrace \begin{array}{l} \left. \begin{array}{c} x\\ y \end{array} \right\rbrace = a\\ z = b \end{array} \right. \end{equation}


4

You need \hspace* rather than \hspace to avoid space being dropped at start of line, and you can add vertical space with \\[1cm] \documentclass{article} \usepackage{enumitem} \usepackage[usenames,table]{xcolor} \usepackage{tcolorbox} \begin{document} \begin{description}[style=multiline,leftmargin=3cm] \item[{Third item\\[1cm]% \hspace*{1cm}% ...


4

How about not using limits. \documentclass{article} \begin{document} \begin{equation} \left(\int_{U_{s}}f(x)dx\right)^{2} \end{equation} \end{document}


4

There's no need for a tabular environment to be inside a table. Here's a simplified version of your title page: \documentclass[12pt,letterpaper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage[demo]{graphicx} \newcommand{\labno}{3} \newcommand{\labtitle}{Fuerzas Hidrostaticas} ...


4

If you want to use textpos with beamer and with absolute positioning, you have to use the option overlay, otherwise the frame background obscures the textblock. MWE: \documentclass{beamer} \usepackage[absolute,overlay]{textpos} \begin{document} \begin{frame} \includegraphics[width=\textwidth]{example-image} \setlength{\TPHorizModule}{\textwidth} ...


3

I propose to use booktabs and cellspace to improve the look and spacing of your tabular. Don't puut it in a table environment since it doesn't float. \documentclass[pdftex,12pt,letterpaper]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[pdftex]{graphicx} \usepackage{booktabs} \usepackage{cellspace} ...


3

If I have understand your question correctly, you are interested in a two-up booklet layout.If so, you can achieve this by some of already existing packages of latex. Here is the solution using booklet package: \documentclass{article} \usepackage{lipsum} \usepackage[print]{booklet} \setpdftargetpages \begin{document} \lipsum[1-20] \end{document} Note ...


2

First, you create the book using just a normal LaTeX approach, letting pages reformat according to the normal way. You will want to make your pages of an appropriate papersize and such. Here, with book.tex, given below, it creates a 26 page document book.pdf, with a letter on each page. If I needed to insert an extra page midway, or remove one, just let ...


2

A quick trial, needs improvement... The \item[...] allows for a line break in its optional argument, so this a possibility to place the colored box after a line break in this argument. Below is also an example with the many features of tcolorbox instead of fcolorbox. \documentclass{article} \usepackage{enumitem} \usepackage[usenames,table]{xcolor} ...


2

Maybe this is too simplistic or not automatic enough for what you're really seeking, but I think based on the question text and comments that a simple xshift=<shift-dimension> will do. You can (optionally) wrap it into a style (here, near start abs) so the distance can be adjusted globally if needed. \documentclass[tikz]{standalone} \tikzset{near ...


2

Put \draw[shorten <= -1cm,shorten >= -1cm] ($(start)!0.5!(probf)$) --($(x)!0.5!(y)$); just before \end{tikzpicture} $(start)!0.5!(probf)$ is the point midway between nodes start and probf and $(x)!0.5!(y)$ is the point midway between nodes x and y. Both these need the calc library of tikz which you have already loaded. So you are drawing a line ...


2

I can't answer your first question for sure, but I personally find this overlap makes the integral harder to read when it is rendered small. From a technical point of view, this is a TeX issue with the delimiter height. According to texdoc impatient, the height of the parenthesis is computed by TeX using the height of the content and two parameters. ...


2

The tikz solution seems only add such things on current frame. Is it possible to display it on every slide? Just like a logo. See below example code: \documentclass[t]{beamer} \beamertemplatenavigationsymbolsempty \setbeamertemplate{footline}[frame number] \logo{\makebox[1\paperwidth]{\includegraphics[width=.5cm,keepaspectratio]{logo.png}}} ...


2

Here is a solution. I use the measuredfigure environment, from threeparttable, to keep the caption centred with respect to the figure: \documentclass[10pt,a4paper]{article} \usepackage{ebgaramond} \usepackage[margin=1.2in]{geometry} \usepackage{graphicx} \usepackage{pdflscape} \usepackage{caption} \captionsetup{labelfont = sc, textfont = it} ...


2

A very short code, with an rcases environment, from mathtools, nested in a cases environment: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \begin{cases} x = 0 \\ y = 0 \\ z = 0 \end{cases} \qquad \text{and} \qquad \begin{cases} \begin{rcases} x\\ y \end{rcases} = a\\ z = b \end{cases} ...


2

You can use \vfill to push the figure down. \documentclass{article} \usepackage{pdflscape,graphicx} \begin{document} \begin{landscape} \null %%<---- this is needed \vfill %%<-----here \begin{figure} [htbp] \centering \includegraphics[scale=0.65]{example-image-a} \caption{DFD\ldots} ...


2

I'm not sure I've guessed what you want but here is a try: \documentclass{scrartcl} \usepackage[showframe]{geometry} % used to show page width \usepackage{mathtools} \begin{document} \begin{equation*} P_{j}(t, s_{j}) = \begin{cases} 0 & \text{f{\"u}r $t < s_{j}$,}\\ Q_{j}(t - s_{j}) & \text{f{\"u}r $s_{j} \leq t \leq s_{j} + ...


1

You can use the alignenvironment. Be careful to use \\ to break lines. \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} \underline{Verschiebare Ger{\"a}te} \begin{align*} P_j(t,s_j) &= \begin{cases} 0 & \text{f"ur } t < s_j \\ ...


1

If you want to leave the page nodes precisely where the were in portrait (except rotated), you can use the following. \documentclass{article} %\usepackage{fontspec} \usepackage[% letterpaper, % includeheadfoot, head=1.5cm,%\baselineskip, % distance from bottom of header to block of text aka \headsep e.g. \baselineskip foot=1.5cm, % ...


1

You can use the align environment to align math at specific parts: \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} \begin{align*} P_j(t,s_j) &= \begin{cases} 0 & \text{f"ur } t < s_j \\ Q_j(t-s_j) & \text{f"ur } s_j \leq t \leq s_j + p_j ...


1

I quit before I got to the column nodes. Still don't know why the 0.5cm is needed. \documentclass{article} %\usepackage{fontspec} \usepackage[% a4paper, % includeheadfoot, head=1.5cm,%\baselineskip, % distance from bottom of header to block of text aka \headsep e.g. \baselineskip foot=1.5cm, % distance from top of footer to block of ...


1

I don't really get what you're looking for. Does this answer your question? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \left\lbrace \begin{array}{l} \left.\begin{array}{l} x \\ y \\ \end{array}\right\rbrace = a \\ z = b \\ ...


1

The leqno option causes \tag to do what you describe: \documentclass[leqno]{article} \usepackage{amsmath} \begin{document} short \begin{equation} \tag{XX} 1=2 \end{equation} long \begin{equation} \tag{YY} 1=2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+2+ 2+2+2+2+2+2+2+2+2 \end{equation} \end{document}


1

The table, as is, cannot fit any reasonable page width, so I've shrunk it. For the legend, just use a couple of tabular. I also changed your \def into \newcommand and \hbar into \HBar not to conflict with an already existing command. Be very careful with \def. \documentclass{article} \usepackage{booktabs,makecell} \usepackage[table]{xcolor} ...



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