Tag Info

New answers tagged

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


0

As @HarishKumar says, in general this is not possible, and will likely be rejected by the journal. Simply put the figure on the next page. There exists a very dirty trick that allows it, but it is a likely reason for rejection. The body of the article has to start by the first section and not by a figure! It is probably not mentioned in the manual since (1) ...


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


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


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


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


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


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


0

Perhaps this is what you're hoping for: \documentclass{article} \usepackage[table]{xcolor} \def\hbar#1#2{%% {\color{#2}\rule{4mm}{#1mm}}} \def\legbox#1#2{%% {\color{#1}\rule{4mm}{4mm}} \hspace{0.4mm}#2 \hspace{3mm}\\} \begin{document} \begin{figure}[h!] \centering \makebox[0pt] {%% \setlength{\extrarowheight}{50pt}% ...


0

Here are two ways how I would do that. The second one gives you more flexibility if you want to switch the font for this symbol or alike... I do not know about your s' approach. % arara: pdflatex \documentclass{article} \begin{document} \'s\'S \end{document} % arara: lualatex \documentclass{article} \usepackage{fontspec} ...


1

Just to follow up the comments (and from curiosity), here's the same text in Noto Serif: \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX]{Noto Serif} \usepackage{polyglossia} \setmainlanguage{czech} \setotherlanguage{bulgarian} \begin{document} \textbulgarian{ || \textbf{\mbox{сп\`{о}р-ен}, -ни} \textit{прил.\,м.} || ...


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


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


0

I was wonder this same thing (but reversed, ie, why don't figure captions go above like I would expect). I don't know why or how this convention came about. Maybe its because tables have "titles" but figures have "captions". In any case, I think "captions" would be better placed above figures. As a reader, I would like to read the caption (ie, title) of ...


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


0

There's no real need for anything special here: \documentclass{article} \usepackage[margin=1.2in]{geometry} \usepackage{graphicx,pdflscape,lipsum,caption} \begin{document} \lipsum[1-5] \begin{landscape} \centering \includegraphics[scale=1.3]{example-image} \captionof{figure}{Some caption associated with the picture} \label{fig:singleton} ...


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

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


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


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}


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


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


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


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}


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

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

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


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


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


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


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


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


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


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}


0

Well obviously the page nodes and pdflscape don't work together. Heiko could perhaps say if there is solution. As an alternative you could change the page layout e.g. with the means of the KOMA-classes: \documentclass[pagesize]{scrartcl} \usepackage{tikzpagenodes} \usepackage{lipsum} \newcommand{\showboxes}{% \begin{tikzpicture}[remember picture,overlay] ...


1

Another option is to add the logo image just before the footline template is built, using something like \addtobeamertemplate{footline}{\hfill\includegraphics[scale=.25]{example-image}\hspace*{0.5em}\par\vspace{2pt}}{} Change the lengths used in the \hspace and \vspace commands to the desired values. A compete example: \documentclass{beamer} ...


1

I would use calculate the height of one of the navigation symbols and drop the logo down by the required amount: \documentclass{beamer} \usetheme{Warsaw} \newlength{\navigationsymbolheight} \settoheight{\navigationsymbolheight}{\NoHyper\insertframenavigationsymbol} \logo{\raisebox{-\navigationsymbolheight}{\includegraphics[scale=.25]{example-image}}} ...


5

Just set the two cases in the same equation environment, separating them using something like \quad: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{cases} \dot{x} = 2z + xy \\ \dot{y} = 4xy - z \\ \dot{z} = -5z \end{cases} \qquad \begin{cases} x(0) = 0 \\ y(0) = 0 \\ z(0) = 1 ...


3

Here are two possible solutions. If you want the second version, @Werner's answer is much better. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{cases} \dot x = 2z + xy & x(0) = 0 \\ \dot y = 4xy - z & y(0) = 0\\ \dot z = -5z & z(0) = 1 \end{cases} ...


0

This is not exactly right that "latex uses boxes". LaTeX is a macro package over TeX and TeX uses boxes. I show you the solution where dimensions are set exactly as in your sketch but LaTeX is not used. I used plain TeX and opmac. \input opmac \nopagenumbers \sdef{pgs:7x7}{(7,7)cm} \margins/1 7x7 (5,5,5,5)mm \newcount\tmpnum \def\pgp#1{\tmpnum=0 \pgpA ...


2

Here me approach with two minipages. I added colored frames to check visually their size and position. \documentclass{letter} \usepackage[height=10cm,width=10cm,margin=5mm]{geometry} \usepackage{url} \usepackage{xparse} \usepackage{rotating} \usepackage{xcolor} \usepackage[colorlinks]{hyperref} \ExplSyntaxOn \NewDocumentCommand{\printpgp}{O{}m} { ...



Top 50 recent answers are included