Search found 14 matches
- Mon Dec 01, 2008 12:02 pm
- Forum: General
- Topic: Vertical alignment of vertical text in tabular & array
- Replies: 4
- Views: 3936
Re: Vertical alignment of vertical text in tabular & array
Great. Thanks, Phi.
- Sat Nov 29, 2008 6:37 pm
- Forum: General
- Topic: Vertical alignment of vertical text in tabular & array
- Replies: 4
- Views: 3936
Vertical alignment of vertical text in tabular & array
Many thanks for your suggestion, Phi.
In fact, I can make your code much simpler and have it still work:
\documentclass[a4paper,11pt]{report}
\usepackage{graphicx}
\def\uptext#1{\rotatebox[origin=c]{90}{#1}}
\begin{document}
\begin{figure}
\begin{tabular}{m{11pt}m{0.8\linewidth}}
\uptext{This ...
In fact, I can make your code much simpler and have it still work:
\documentclass[a4paper,11pt]{report}
\usepackage{graphicx}
\def\uptext#1{\rotatebox[origin=c]{90}{#1}}
\begin{document}
\begin{figure}
\begin{tabular}{m{11pt}m{0.8\linewidth}}
\uptext{This ...
- Sat Nov 29, 2008 12:56 pm
- Forum: General
- Topic: Vertical alignment of vertical text in tabular & array
- Replies: 4
- Views: 3936
Vertical alignment of vertical text in tabular & array
Hi all
I'd like to have vertical text down the side of a figure vertically centred. Here is a MWE of the problem:
\documentclass[a4paper,11pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{tabular}{cc}
\rotatebox{90}{This should be centred vertically} &
\framebox[0.8 ...
I'd like to have vertical text down the side of a figure vertically centred. Here is a MWE of the problem:
\documentclass[a4paper,11pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\begin{tabular}{cc}
\rotatebox{90}{This should be centred vertically} &
\framebox[0.8 ...
- Thu Nov 13, 2008 11:59 am
- Forum: General
- Topic: Single line spacing for the cases environment
- Replies: 2
- Views: 3680
Single line spacing for the cases environment
I think that a redefinition of the cases environment is not really needed. I agree. However, that solution requires code before every instance of the cases environment. I wanted a solution that wouldn't need me to do that, so that if you change your mind, or want a different stretch factor, you don ...
- Wed Nov 12, 2008 9:55 pm
- Forum: General
- Topic: Single line spacing for the cases environment
- Replies: 2
- Views: 3680
Single line spacing for the cases environment
Hi all
I'm posting a solution to a problem I had because I couldn't find the exact solution on the web, but managed to work it out myself from a similar solution posted on these boards for the quotation environment.
If you're writing a document with double spacing you will find that when you use ...
I'm posting a solution to a problem I had because I couldn't find the exact solution on the web, but managed to work it out myself from a similar solution posted on these boards for the quotation environment.
If you're writing a document with double spacing you will find that when you use ...
- Thu Oct 09, 2008 11:33 pm
- Forum: General
- Topic: Macros in includegraphics options
- Replies: 8
- Views: 13276
Macros in includegraphics options
Juanjo, that is immensely helpful, and just what I wanted. Thank you so much. It works brilliantly.
For completeness, I include the much less elegant hack I had just managed to work out before I read yours:
\newlength{\trimllx}
\newlength{\trimlly}
\newlength{\trimurx}
\newlength{\trimury ...
For completeness, I include the much less elegant hack I had just managed to work out before I read yours:
\newlength{\trimllx}
\newlength{\trimlly}
\newlength{\trimurx}
\newlength{\trimury ...
- Thu Oct 09, 2008 4:13 pm
- Forum: General
- Topic: Macros in includegraphics options
- Replies: 8
- Views: 13276
Macros in includegraphics options
The unit px is not a valid unit for LaTeX. You can try first to omit the units in your new command \trimvals . The values will be given the unit bp (Big Point) internally. Thanks. However, I still get the same results with no units as with px - i.e. the crop/zoom works as expected without the macro ...
- Thu Oct 09, 2008 3:38 pm
- Forum: General
- Topic: Macros in includegraphics options
- Replies: 8
- Views: 13276
Macros in includegraphics options
Hi all
Sometimes I want a figure which zooms in on a certain region of an image. I do this by:
\begin{figure}
\includegraphics[height=\textwidth,clip,trim=24px 86px 146px 57px]{imname}
\caption{A zoom}
\end{figure}
This works fine. Often I'll want to repeat the zoom (i.e. use the same values for ...
Sometimes I want a figure which zooms in on a certain region of an image. I do this by:
\begin{figure}
\includegraphics[height=\textwidth,clip,trim=24px 86px 146px 57px]{imname}
\caption{A zoom}
\end{figure}
This works fine. Often I'll want to repeat the zoom (i.e. use the same values for ...
- Fri Sep 26, 2008 11:38 am
- Forum: New Members
- Topic: Hello. I'm Olly.
- Replies: 3
- Views: 3200
Hello. I'm Olly.
Me too!localghost wrote:I hope we will not only talk about but also solve some issues.
Thanks, all.
- Thu Sep 25, 2008 7:37 pm
- Forum: General
- Topic: Automatic capitalization within a macro?
- Replies: 6
- Views: 12307
Automatic capitalization within a macro?
I'll take that as a definitive answer. Many thanks for your help, Ted.Ted wrote:Giving TeX the ability to detect where capitalization is appropriate would require more machinery than what you can pack into a package.