Page LayoutPage with two columns with mini page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
marek_step
Posts: 27
Joined: Sun Aug 19, 2012 8:48 am

Page with two columns with mini page

Post by marek_step »

Hello all!

I need once again your help! I am unable to put floating pics one side the other side the text. Because the texts are too short, they are not aligned vertically the right place. So I decided to use mini page (good idea?) to have two columns. One side the text, the other one the pics and control the vertical space with \vspace{30pt} for example ...

Here a minimal example:

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\begin{document}

\title{How to Create a Minipage with one Side Pics the other side Text}
\date{}
\maketitle

\section{Glaze Techniques of Japanese Pottery}

% first column
\begin{minipage}[t]{0.45\textwidth}

\subsection{Abura-age-de} 

Glaze that looks like deep-fried toufu; found on Ki-Seto ware.

\subsection{Aka-e} 

Polychrome overglaze, usually red in tone. This style of overglaze painting was introduced to Japan directly from China, and is used primarily with porcelains (Imari, Kakiemon, Nabeshima and Kutani).

\subsection{Ame-yu} 

Ame means amber and yu means glaze. Ame-yu can be translated as amber (caramel) glaze - it contains iron oxide or manganese oxide with feldspar. Often seen on chawan (tea bowls) and mizusashi (water jars). For more, see Ohi Ware. 

\end{minipage}

%second column
\begin{minipage}[t]{0.45\textwidth}

\fbox{\includegraphics[width=0.4\textwidth]{pix01.jpg}} %\caption[ An example of Abura-age-de Glaze ]{\tiny{An example of Abura-age-de Glaze}\footnotemark} \label{abura-age-de glaze}
%\footnotetext{Source: \url{http://www.etc.jpg}}


\fbox{\includegraphics[width=0.4\textwidth]{pix02.jpg}} %\caption[ An example of Ame-yu Glaze ]{\tiny{An example of Ame-yu Glaze}\footnotemark} \label{ame-yu glaze}
%\footnotetext{Source: \url{http:tec.jpg}}

\end{minipage}
 
\end{document}
The two columns are aligned one under the other ... How to make the captions?


I would be very very grateful for any hint.


Greetings from Munich


marek

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: Page with two columns with mini page

Post by StarValkyrie »

I'm not totally clear on what it is you're trying to do - are you getting the two minipages one after the other in the left column and you want them side by side, each their own column? Try putting \hfill between the minipages. If that's not what you're talking about can you create an image of what it is you want the output to look like?
marek_step
Posts: 27
Joined: Sun Aug 19, 2012 8:48 am

Re: Page with two columns with mini page

Post by marek_step »

Thank you very much StarValkyrie!

Yes my posting was not very clear. I tried to put two columns one side to an other, left to right. And the \hfill did the trick! Uff!

Best greetings


marek
marek_step
Posts: 27
Joined: Sun Aug 19, 2012 8:48 am

Re: Page with two columns with mini page

Post by marek_step »

I forgot: how to add the captions? But I will try to find it myself. I will come back later to post the solution ...
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Page with two columns with mini page

Post by Johannes_B »

Use package capt-of.

Code: Select all

\captionof{figure}[LOF entry]{Object caption}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
marek_step
Posts: 27
Joined: Sun Aug 19, 2012 8:48 am

Re: Page with two columns with mini page

Post by marek_step »

Thank you for your patience Johannes_B ... (Not sure whether you are ironic or angry with me)

In any case your reply was very helpful :-)) The deadline of my thesis is approaching. So many questions again ...


marek
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Page with two columns with mini page

Post by Johannes_B »

To be honest, neither ironic nor angry. All you need right now is the keyword and find out details yourself. ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply