How to display a content in two-column layout in LaTeX? - latex

I am writing an article in LaTeX and I would like to display some content in two column layout. In the left column a matrix and in the right column a list of items. I have tried with tabular environment but it does not work as I want.
My question is how to create a two column area in a LeTeX document (or something similar) and be able to put certain content to left and right column? I do not want to create a two-column layout for whole document, only for part of it.

Load the multicol package, like this \usepackage{multicol}. Then use:
\begin{multicols}{2}
Column 1
\columnbreak
Column 2
\end{multicols}
If you omit the \columnbreak, the columns will balance automatically.

Use two minipages.
\begin{minipage}[position]{width}
text
\end{minipage}

Related

How to adjust text in table in latex

I have table with 5 cells ,
I want to let all cells text in the same adjust
my first cell text from four litters and the second cell text is word from 7 litters so the two cells are not in the same adjust
I attached picture to show you my problem
any help please.
Array columns in a tabular environment must be associated with an alignment qualifier. In your example, you probably used c (center), but you should have used l to have the text in the cells left aligned or r for a right alignment.
But this is very basic LaTeX use and you should absolutely read a tutorial on LaTeX tables.
Note that there are many useful packages that extend the tabular functionality and allows to have centered paragraph, to control their vertical alignment, to align digital numbers and so on. Look at this thread in tex.stackexchange.com to have a good overview on existing packages for table formatting.

LaTeX one column title and index in a two column document

I'm trying to write a document using the twocolumn option but I found that the title and the index are formatted in the same way as the text. How can I have a twocolumn document with the title and the index onecolumn?
I've tried #twocolumn false and the abstrack package but the first gives me a one column half page long and the second do not allow me to span the index fr multiple pages.
This should do the trick
\documentclass[twocolumn]{article}
\usepackage{multicol}
\twocolumn[
\begin{#twocolumnfalse}
\begin{center}
...complicated research title here....
\end{center}
\end{#twocolumnfalse}
]

Can I make the entire "Table 1" clickable as a reference in Latex?

In my document, I'm using the label function to label tables and figures:
\label{}
Then I use the \ref{} function to refer to the table or figure. in my text.
The problem that I have is that in my text I write this:
As can be seen in Table \ref{table1}.
It will output my text as:
As can be seen in Table 1.
However only the number "1" is clickable and leads up to the table. I want the "Table" part to be clickable as well, so you can click on any part of "Table 1" and get referred up to the table.
I've tried different ways by using \phantomsection\label{} and then \hyperref[]{}, but this doesn't output the table or figure number dynamically.
Use \autoref.
\autoref creates a reference with text depending on the type.
A picture will tell more then thousand words:
Example code:
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\begin{document}
\textbackslash ref to the Figure \ref{fig:example}
\textbackslash autoref to the \autoref{fig:example}
\textbackslash nameref to the figure \nameref{fig:example}
\begin{figure}
\centering
\includegraphics[width=0.3\textwidth]{example-image-a}
\caption{\label{fig:example}Example image}
\end{figure}
\end{document}
To change the text inserted by \autoref for e.g. a table:
\renewcommand{\tableautorefname}{bettertablename}
See the hyperref manual for all options.

MS-Word-2010 cross reference of math. equations gap in paragraph

I created a word document in version 2010. The mathematical equations are described by a number and written as follow.
a= b/c Eq.4.5
Now if I use equation number in text to refer towards a= b/c Eq.4.5 with hyperlink then whole
equation is appearing in text (as shown before in mid of sentence).
After reading into several blogs, I redefine number with 'insert bookmark' option by only selecting number 'Eq.4.5'.
Now if I use this bookmark in text to refer towards Eq.4.5 with hyperlink then a gap is
appearing in text (as shown before in mid of sentence).
Please can someone guide me how to remove this gap from text? as manually I can remove it but in print or update of document it appears again and again. If I switch on 'Show/Hide' option, it look like with small arrows as follows.
--> --> --> --> Eq.4.5
It appears the bookmark counts the 'tab's before the number too. (As that is what the small arrows indicate.)
Try remaking the bookmark and making sure you only have the number selected (by for instance using shift + right arrow key)
This can be done by using a table and a caption. The table is needed to separate the equation from the caption.
Make a table with invisible lines that is 3 columns wide and 1 row.
Edit the properties of the table so that the total table width is 100% width, and the columns are each 10%, 80%, and 10% width.
Set the Valign to the cells to be middle.
Add the equation to the center cell of the table.
Click on the right cell of the table and add a caption. Since the equation is in a separate table cell, the equation will not be considered part of the caption. If the caption is added to the table itself instead of appearing in the cell, then just highlight the caption and drag it into the cell.
Center the equation in its cell and it will be centered in the page.
Right-align the equation number and it will be right-aligned to the page

Subfloat figures in latex

I am inputting a bunch of figures in Latex using
\begin{figure}[h]
\centering
\subfloat
etc.
How do I get the subfloat figures to go to the next page? What I mean is, I'm inputting a ton of figures so it'll definitely be more than one page but if I do separate figures for each the a, b, c, d, etc. for the captions will change, so ideally I'd like one enormous figure with a bunch of subfloats a through z on different pages - how do you do that? Right now, I simply can't see the subfloat figures that stretch over the page, so I'll need to get another page somehow.
Separate the figures into batches that fit on one page and in the figure environments after the first put
\addtocounter{figure}{-1}
which will decrease the figure counter making it the same as for the previous bunch and then also add
\addtocounter{subfigure}{N}
where N is the number of subfigs that you have already placed, which will start the subfig counter from the correct value.
More on the subfigure package here (PDF).

Resources