# Tag Info

2

Consider just a suggestion in terms of displaying the information. You seem to be using row/column indices, which I've set using \small. I've used hhline to highlight the blocks (requires a fragile frame): \documentclass{beamer} \usepackage{array,tabularx,hhline} \newcolumntype{C}{>{\centering\arraybackslash}X} ...

4

You can use \hdotsfor from amsmath (the argument indicates the number of columns to be spanned): \documentclass[11pt,a4paper]{article} \usepackage{amsmath} \usepackage{array} \usepackage{booktabs} \begin{document} using the detached coefficients, we have the scheme\\\\ \noindent $\begin{array}{@{} >{{}}r @{} >{{}}r *{20}{ @{}>{{}}r<{{}}@{} } } ... 3 You can add an extra column and place the text in that, then use \cmidrule instead of \midrule to draw the lines across just the first columns. \documentclass[11pt,a4paper]{article} \usepackage{array,booktabs,amsmath} \newcommand*{\Ph}{\hphantom{)}}% \begin{document} Expand$(x+1)^{2}$,$(x+1)^{2}$,$(x+1)^{3}$,\dots,$(x+1)^{n}$. Proceeded by successive ... 3 A solution with tabular contents. \documentclass{article} \usepackage{array} \newtheorem{ax}{Axiom} \begin{document} \begin{ax}[inf assoc]\hfill \begin{tabular}{>{$}r<{$}@{${ }={ }$}>{$}p{5cm}<{\$}} c_0 \sqcap (c_1 \sqcap c_2) & (c_0 \sqcap c_1) \sqcap c_2 \end{tabular} \refstepcounter{equation}\hfil\normalfont(\theequation) \end{ax} ...

1

You haven't told us which package, if any, you use to define the ax environment; in the example below, I'll assume it's the ntheorem package. If the axiom environments all consist of a header (and possibly a short blurb) followed by a displayed equation, you could load the mathtools package (a superset of the amsmath package) and use its \shortintertext ...

0

They won't work. You have to do something special. I've done that below: a manual stepping of the ax counter and placing the Axiom X (title) as part of the align-like construction. Using a full length alignment you can stretch things across the entire line width: \documentclass{article} \usepackage{amsmath} \newtheorem{ax}{Axiom} \makeatletter ...

1

Perhaps something like this. This uses figure* to produce a double-column float. To centre the caption, caption is used so that the figure* caption can be assigned to the lstlisting captions rather than regular figures. \documentclass[10pt,journal,compsoc]{IEEEtran} \newcommand{\us}{\char`_} \usepackage{listings} \lstdefinestyle{base}{ language=C, ...

4

Get rid of the minipage and enclose the listing inside a figure*; it will be moved to the top of the following page but you won't have the problems that you are experiencing now: \documentclass[10pt,journal,compsoc]{IEEEtran} \usepackage{listings} \lstdefinestyle{base}{ language=C, basicstyle=\footnotesize\ttfamily, multicols=2, ...

3

\documentclass[a4paper]{article} % All packages included for context \usepackage[margin=1.5in]{geometry} \usepackage{hyperref} \usepackage{apacite} \usepackage{natbib} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[capitalise,noabbrev]{cleveref} \usepackage{floatrow} \usepackage{subcaption} \usepackage{longtable} ...

2

Like this? \documentclass{article} \usepackage{array,graphicx} \usepackage{multirow} \begin{document} \begin{table}[H] \centering \setlength{\extrarowheight}{5pt} %% <--- this added \begin{tabular}{c|c|c} \multirow{3}[6]{*}{\rotatebox{90}{Dataset}} & \multicolumn{2}{c}{Variable} \\ ...

3

\documentclass{article} \usepackage{tikz,stackengine} \begin{document} \stackon[-5pt]{\resizebox{2in}{!}{Minimum Working Example}} {\begin{tikzpicture}\draw[color=cyan](0,0) circle (2);\end{tikzpicture}} \end{document}

3

One option is to use overlay for the tikzpicture; to achieve exact positioning, you could also use the tikzmark library to place some marks and then, using remember picture, to use those marks to place the tikzpicture at the desired location; a little example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark,calc} \begin{document} ...

7

Here I introduce \pushfigure[alignment]{width}{content}{captioningof} to push figures onto a "stack", and then \popfigures to set them all on a line. In all cases, captioning should be done with \captionof for any figure being "pushed". Bottom alignment is the default. The \pushfigure phase of the operation saves all the parameters, and measures the ...

1

You shouldn't be using \intertext to start the display. And you're better using \shortintertext in the second case, in order to reduce the vertical spacing. \documentclass[12pt,a4paper,twoside]{scrbook} \usepackage{amsmath} \usepackage{mathtools} \usepackage{amssymb} \usepackage{lipsum} \begin{document} \lipsum[1-3] \newpage \lipsum[1-3] \newpage ...

3

The subcaption package is doing something dodgy. For example, you can't use \captionof{subfigure} inside a subfigure (anywhere else is fine). I overcame the problems of my previous solution by permanently replacing subfigure with minipage and creating my own \caption from scratch. % arara: pdflatex % !arara: indent: {overwrite: yes} ...

3

Use \marginnote instead of \marginpar. \marginnote accepts a vertical offset as optional argument, so you can rewrite your definition of footnote as \renewcommand{\footnote}[2][0pt]{% \refstepcounter{mynote}% \mbox{\textsuperscript{\tiny\sffamily\themynote}}% ...

4

This is another solution, using siunitx, booktabs, makecell and threeparttable. With a small margin (1.8cm) the table fits into the margins if the font size is set to \small. Hope to have turned nightmare into a mellow dream… \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=1.8cm]{geometry} ...

3

There seems to be too much data to put into one landscape table really, I used a small font and stole some margins but really it needs a different layout of some subject knowledge to compress the data (eg reduce the number of decimal places in some fields) \documentclass[a4paper]{article} \usepackage{dcolumn,booktabs} \newcolumntype{d}[1]{D..{#1}} ...

3


1

you can use this \documentclass{article} \usepackage{amsmath} \begin{document} \[ f(x) = \left\{\begin{alignedat}{3} & mx^2 +nx +1, &&\text{if } & & x \le -1 \\ & 2m e^{|x|-1} + \sin \pi x - 3n, \qquad &&\text{if } &-1< & x < 1 \\ & 3x^2 - ...

5

An alternative would be to use the cases environment. It needs less ampersands here, at the cost of the x alignment, but I personally think it's more elegant so. \documentclass{article} \usepackage{amsmath} \begin{document} \[ f(x) = \begin{cases} mx^2 +nx +1, &\text{if } x \le -1 \\ 2m e^{|x|-1} + \sin \pi x - 3n, &\text{if } -1 < x ...

4

You need to use && to get the conditions left aligned. To get the x aligned as well, in this case I would recommend using an \hphantom: Notes: You need to use {-1} for the second case so that the - is treated as a unary operator instead of a binary operator. To answer your questions from the comments: Each & provides a right/left ...

1

One could replace the aligned with a TABstack. The tabbing and EOL characters have been changed, when nested inside of an align environment. OR you could just use the [t] option on the aligned. \documentclass[letter, 10pt, conference]{article} \usepackage{amsmath,tabstackengine} \stackMath \setstackTAB{\&} \setstackEOL{\#} \begin{document} ...

3

I don't understand why your code is such complicated. Here is more simple code which creates exactly the same table as the table mentioned in your question. \vbox{\offinterlineskip \def\crl{\cr\noalign{\hrule}} \def\barb{\omit \vrule height 3pt \hfil\vrule} \def\low#1{\vbox{\hbox{\rm#1}\kern-9pt}} \halign{\vrule height3ex depth1ex ...

4

Use \hfill inside the same minipage \documentclass{article} \begin{document} \noindent \begin{minipage}{\textwidth} \Large \emph{A efectuat:}\\ st.gr. FAF \hfill Name Name\bigskip \emph{A verificat:}\\ lect. univ. \hfill Prof Name \end{minipage} \end{document} Otherwise don't use a minipage at all \documentclass{article} \begin{document} ...

0

The title is set at the top of the page by default (no vertical space added). You added a \vspace{2cm} above the \makecvtitle, causing it to be pushed down by 2cm. Remove this and you'll note the title being aligned with the top: \documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, ...

1

Another solution with the makecell package, which is designed precisely to choose both vertical and horizontal alignment and a common formatting in cells with the \thead and makecell commands. I also loaded cellspace to have a less tight vertical spacing in tables: \documentclass{report} \usepackage{booktabs} \usepackage{longtable} \usepackage{makecell} ...

7

Vertical centring of headings is most easily done with tabular and I removed center as it doesn't centre longtables. I reduced the inter column spacing by a bit as your table was slightly too wide for the page. \documentclass{report} \usepackage{booktabs} \usepackage{longtable} \newcommand*{\thead}[1]{% ...

0

At least with your MWE you can solve it by setting lineskip to zero (without having to set a higher baselineskip as suggested in another comment). \documentclass[10pt]{book} \usepackage{blindtext} \usepackage{eledmac} \usepackage{eledpar} \setlength{\lineskip}{0pt}%<======== here \begin{document} \begin{pages} \begin{Leftside} \beginnumbering ...

3

This can be set with the makecell package. It allows for line breaks in cells and adding vertical spacing between rows in preamble. Its \thead and \makecell commands also allow for common formatting of cells. I added the caption package to have a correct vertical spacing between caption and table. If adding vertical spacing between rows doesn't work with ...

3

Using m-columns To change the spacing, you can use the capabilities of package booktabs. Better would be to make a more generic change. \documentclass[12pt,a4paper,ngerman]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{babel} \usepackage{booktabs} \usepackage[para]{threeparttable} ...

3

Since you said images in first column, you can use adjustbox package with export option and align the images at the top. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} %Grafiken \usepackage{booktabs} %Professionelle Tabellen \usepackage[para]{threeparttable} %Tabellen mit Legenden \usepackage{tabularx} %automatische ...

2

\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} %Grafiken \usepackage{booktabs} %Professionelle Tabellen \usepackage[para]{threeparttable} %Tabellen mit Legenden \usepackage{array} \usepackage{ragged2e} \usepackage{tabularx} %automatische Zeilenumbruch ermöglicht ...

4

It's better having some text between the label Proof and the alignment. Use \qedhere in the last line. Note that the attribution should be an optional argument to res. \documentclass{article} \usepackage{amsmath,amsthm} \newtheorem{res}{Result}[section] \newcommand{\dd}{\mathop{}\!\mathrm{d}} \begin{document} \setcounter{section}{3}\setcounter{res}{10} % ...

4

You can use anchor=north for each node in the legend. Even better appears to be anchor=base which aligns with the base line of the first line. Since the images have their center on the baseline, we need to shift them somewhat: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} \begin{axis}[ ...

7

The inserting \par\break just before next chapter is sufficient. \documentclass{report} \usepackage{lipsum} \begin{document} \chapter{Lorem ipsum} \lipsum[1-15] Some mid-document\footnote{This is a footnote.}. \lipsum[16-20] Some text\footnote{This is a footnote.}. \par\break \chapter{Ipsum lorem} \lipsum[1-15] Some footenote\footnote{This is a ...

3

This places the rule in the top corner. I added \noindent so that it wasn't shifted to the right, removed the "by eye" vertical adjustments and added a negative space of exactly \vspace*{-\dimexpr\topskip+\topmargin+\lineskip\relax}% before the rule. \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{techclass}[2015/02/08 v0.1 ^^J LaTeX document class for ...

0

replace \setlength\voffset {8mm} \setlength\topmargin {-1in} by \setlength\voffset {8mm} \setlength\topmargin {-1in} \addtolength\topmargin {-8mm} in your place i'll never change \voffset and \hoffset you can try with \setlength\topmargin {-1in} \addtolength\topmargin {+-something} \setlength\oddsidemargin {-1in} \setlength\evensidemargin {-1} ...

3

You could do it using \valign: \newskip\colskip \colskip=2em \newtoks\cellformat \cellformat={ \parindent=0pt \raggedright \hsize=\dimexpr\hsize/4 % the width of a cell } { \def\cr{\crcr\noalign{\hskip\colskip}} % gets inserted between columns \valign{& \vfill\the\cellformat #\vfill\tabskip=\baselineskip\crcr \span Two rows& 3rd row& ...

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

3

Use a box \textwidth wide, which contains the picture raised by 2cm, but with its height trimmed by the same 2cm, so it will be placed at the very top of the page. \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french, english]{babel} \usepackage{geometry} \usepackage{lmodern} \usepackage{graphicx} ...

1

A dirty trick using a float (The minipage is framed in pale red to control their size): \documentclass[a4paper]{report} \usepackage{graphicx,lipsum,geometry,xcolor} \geometry{lmargin=1.8cm,rmargin=1.8cm,tmargin=2cm,bmargin=3cm} \renewcommand{\textfloatsep}{0pt} \begin{document} \begin{figure}[!t] \color{red!10} %for testing only ...

4

Here is a very manual method. \documentclass[a4paper]{article} \usepackage{tikz,lipsum} \begin{document} \begin{tikzpicture}[remember picture,overlay] \node[anchor=north west,inner sep=0pt] at (current page.north west) {\includegraphics[width=\paperwidth,height=0.72\paperheight]{example-image-a}}; \end{tikzpicture} \null ...

Top 50 recent answers are included