GeneralSideways inside a minipage?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mathuin
Posts: 1
Joined: Thu Aug 04, 2011 10:47 pm

Sideways inside a minipage?

Post by Mathuin »

I use the labels environment to generate labels for my homebrew. The labels themselves are made using \genericlabel with a minipage environment. I would like to rotate my labels but none of the flavors of sideways or rotatebox will work for my needs. I searched the forums for an answer, but found nothing about rotating within a minipage environment. I am hoping that some folks here can help.

I have created a minimal working example which is as complete as possible within the context of the label without including unnecessary bits. The example when run as is generates a sample label. Commenting out the sideways environment delimiters makes it look wrong. If any of you can suggest to me how to achieve my desired effect which is to have the label look much the same but rotated I would really appreciate it.

One note: yes, I know, the actual layout of the label will have to change to accommodate the transition from landscape to portrait -- that I can handle once this problem is solved.

Here is my MWE:

Code: Select all

% test case for rotating inside a minipage used for \genericlabel{} inside labels environment
\documentclass[12pt]{article}
\usepackage{rotating}
\usepackage{multirow}
\newcommand{\ttitle}[1]{\large\textbf{\textsf{#1}}}
\newcommand{\tproof}[1]{\texttt{#1}}
\newcommand{\ttoptable}[1]{\small{#1}}
\newcommand{\ttable}[1]{\textrm{#1}}
\begin{document}
\begin{minipage}{2.625in}\centering
% \begin{sideways}
\begin{tabular}{c}
\multirow{2}{*}{\ttitle{Pomegranate}} \\ \ \\
\end{tabular}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}c|c}
\ttoptable{Original} & \ttoptable{Final} \\
\hline
\ttoptable{2010-05-15} & \ttoptable{2011-04-23} \\
\ttoptable{1.100 @ 73 (1.102)} & \ttoptable{1.012 @ 53 (1.012)} \\
\end{tabular*}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}ccccc}
& \multirow{2}{*}{\ttitle{SIP 14}} & \tproof{12.0\% ABV} & \multirow{2}{*}{\ttitle{A1}} & \\
& & \tproof{24 proof} & & \\
\end{tabular*}
% \end{sideways}
\end{minipage}
\end{document}
Thank you very much in advance!

Jack.

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

Post Reply