Graphics, Figures & Tablesinset ?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tim4dev
Posts: 4
Joined: Wed Mar 03, 2010 7:45 am

inset ?

Post by tim4dev »

I am new to Latex.

Make-up a small book for themselves.

There are two questions (see the picture in attach):

1. What name is gray box ? I mean the name of "gray box" in the printing industry. Inset ?

2. How to do it ? ;) To the text was located on the side (left or right) from the image.

Thanks.
Attachments
Gray box and picture.
Gray box and picture.
vrezka.jpg (46.93 KiB) Viewed 2901 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
Joined: Mon Mar 10, 2008 9:44 pm

inset ?

Post by Stefan Kottwitz »

Hi,

you could use the \fcolorbox command like here:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\usepackage{xcolor}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\fcolorbox{black}{gray}{
  \parbox[b]{6cm}{\blindtext}
  \ \includegraphics[height=7cm,width=4cm]{test}}
\end{document}
Stefan
LaTeX.org admin
tim4dev
Posts: 4
Joined: Wed Mar 03, 2010 7:45 am

inset ?

Post by tim4dev »

Thank you very much!

I found something else Vertical alignment of minipages

That's what happened:

Code: Select all

\begin{figure}[!h] 
  \fcolorbox[gray]{0.92}{0.92}{
    \begin{minipage}[!t]{0.7\textwidth}
Lorem Ipsum is simply dummy text of the printing and typesetting
 industry. Lorem Ipsum has been the industry's standard dummy text
 ever since the 1500s, when an unknown printer took a galley of type
 and scrambled it to make a type specimen book. It has survived not
 only five centuries, but also the leap into electronic typesetting,
 remaining essentially unchanged...
    \end{minipage}
    \hspace{0.2cm}
    \begin{minipage}[!t]{0.4\textwidth}
      \includegraphics[height=7cm,width=5cm,keepaspectratio=true]{test}
      \caption{Shaft axis alignment}
      \label{fig:shaft_axis}
    \end{minipage}
  }
\end{figure}
Attachments
Result
Result
vrezka-my.png (40.61 KiB) Viewed 2881 times
Post Reply