# Tag Info

1

I was working on something similar to what Fran has just posted. Same basic idea with some embellishments. The missing piece is to connect the vertical lines through the horizontal rules. \documentclass{article} \usepackage[table]{xcolor} \begin{document} \begin{table} \setlength\doublerulesep{0.5pt} \begin{tabular}{|| >{\sffamily}c || *5{>{\...

1

Unnecessarily complicated: \documentclass{article} \begin{document} \begin{table*} \centering \begin{tabular}{|| *6{c} ||} x & x & x & x & x & x \\ \end{tabular}% \begin{tabular}{*5{c} ||} x & x & x & x & x \\ \end{tabular} \end{table*} \end{document} But even easier: two tables side by side, with no gap, is one ...

1

I recommend you use the \usepackage{wrapfig} and after \begin{document} wrap the figure to put it on the right top corner. \begin{wrapfigure}{r}{0.2\textwidth} \includegraphics[scale=0.2]{somepicture.jpg} % No idea on how to position this \end{wrapfigure}

0

\documentclass[10pt,a4paper]{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage[UKenglish]{babel} \usepackage[UKenglish]{isodate} \usepackage[page]{appendix} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[space]{grffile} \usepackage{pdflscape} \usepackage{caption} \...

1

I don't know why you are using this \. \begin{tabularx}{\textwidth}{ss} \textbf{Pinco Pallino} & \textbf{Il Gabibbo}\\ Professor of Ualleranomics & Professor of Minchiology \\ Université of Life & Facebook University \\ pinco.pallino@life.be & ilgabibbo@...

6

The proposal here is to use the built-in columns of beamer, and to synchronize them in a rather brutal yet working way. \documentclass{beamer} \mode<presentation> { % \usetheme{default} % or try Darmstadt, Madrid, Warsaw, ... % \usecolortheme{default} % or try albatross, beaver, crane, ... % \usefonttheme{default} % or try serif, ...

2

The problem seems to be that the minipage is a bit too narrow, so the tikzpicture gets pushed to the next line. Make it 0.67\textwidth wide, and it looks better. To get better vertical alignment on the line, remove all the \raiseboxes, give the nodes a name like a, and set baseline=(a.base) in the tikzpicture options. The items in the two lists are not ...

1

With use of the \centerline{...}: \documentclass{beamer} \mode<presentation> { \setbeamertemplate{navigation symbols}{} \setbeamertemplate{caption}[numbered] } \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{arrows, arrows.meta, backgrounds, ...

2

Redefines \@dblflt to use [p] instead of [tp]. Note: dblfloatfix uses the same approach to set the default to [tbp]. \documentclass{book} \usepackage{mwe} \usepackage{xcolor} \usepackage{multicol} \newcommand{\myfigure}[2]{% \begin{figure*}% \centering \includegraphics[width=#2\textwidth]{#1} \end{figure*}} \begin{document} \pagecolor{yellow!10} \...

0

\onecolumn \begin{landscape} \begin{longtable}{|p{0.04\linewidth}|p{0.13\linewidth}|p{0.05\linewidth}|p{0.21\linewidth}|p{0.16\linewidth}|p{0.16\linewidth}|p{0.16\linewidth}|} %new \caption{A sample wide and long table.} \label{tab:long} \\ \hline \thead{Study} & \thead{Approach} &...

1

As I mentioned in comment, longtable doesn't work in two columns documents. For using it in such documents, you need to change document before longtable into one column type and after it return to two column. This, regardless that you use afterpage, left empty space before and after table. it is not clear, if cells content in the real table body are longer ...

0

You can use a tabular environment for that. If you use the m{width} spec (which requires the package array), it will wrap the text and center it vertically. To make sure the arrows are also centered horizontally, you need to add >{\centering}. Thus the MWE becomes: \documentclass{article} \usepackage{array} \usepackage{lipsum} \begin{document} \begin{...

2

The following code adaptation uses zref's savepos module to store the x-coordinate on the left side of the text you're placing (LEFT or RIGHT). This x-coordinate is used to identify whether you're in the left/right column, depending on whether it's less than or greater than (or equal to) 50% of the page width. Since you're using tikz already, you can use ...

1

Maybe with minipage? \documentclass[12pt]{article} \usepackage[latin1]{inputenc} \begin{document} \begin{minipage}{0.4\textwidth} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita ...

0

A solution with tabularx: the ratio of the coefficients for \hsize has to be 1/2, and their sum has to be the number of columns (2): \documentclass[]{article} \usepackage[showframe]{geometry} \usepackage{tabularx} \usepackage[svgnames, table]{xcolor} \usepackage{lipsum} \begin{document} \noindent\setlength{\extrarowheight}{2pt}% \setlength{\arrayrulewidth}...

0

\linewidth is the length of the line. So you will be able to achieve the desired result with the following code. \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1-4][1-8] \begin{table}[!h] \caption{} \begin{tabular}{|p{0.33\linewidth}|p{0.6\linewidth}|} \hline \lipsum[1-2][1-2]& \lipsum[1-2][1-2]\\ \...

0

I would personally use a class that was developed for this purpose, e.g. moderncv and then use the command \setlength{\hintscolumnwidth}{7cm} to set the left column width, as in: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} % adjust the page margins \usepackage[scale=0.9]{geometry} \setlength{\hintscolumnwidth}{...

2

You could accomplish this by banning all floats from the first column of the first page of your document by inserting \suppressfloats at the start of the document. This command prohibits the placement of further floats in the current column and causes all floats declared here to be deferred to the second column. Here is your MWE with just one line added to ...

0

In a two column document use the figure* environment if the illustration is wider than a column. This will put the figure at the top of the page spanning both columns. \documentclass[twocolumn]{article} % preamble stuff \begin{document} % some text \begin{figure*} \centering ILLUSTRATION WIDER THAN ONE COLUMN \caption{Spanning two columns} \end{figure*} % ...

0

After a bit more of searching, I actually found an elegant and feasible solution using the parallel package. It produces nearly exactly the result I wanted it to. \documentclass[a4paper]{article} \usepackage[german]{babel} \usepackage[left=1cm, right=1cm, top=1cm, bottom=1cm, includehead, includefoot]{geometry} \usepackage{parallel,enumitem} \usepackage{...

Top 50 recent answers are included