bRotheRs & sisteRs, I am once again attempting to learn enough Latex voodoo to get something done, and failing comically. The document "RJAuthorguide.pdf" mentions that one can get page width figures through the use of the "figure*" or "table* environments, but despite considerable searching through the mail archives and reading Frank Harrell's discussion of "Using Latex Figure Environments for Plots" until my eyes went on strike, I am nowhere near a solution. Would anyone be kind enough to point me to the Idiot's Guide to Latex Figure Environments? Jim
Jim Lemon wrote:> > bRotheRs & sisteRs, > I am once again attempting to learn enough Latex voodoo to get something > done, and failing comically. The document "RJAuthorguide.pdf" > mentions that one can get page width figures through the use of the > "figure*" or "table* environments, but despite considerable searching > through the mail archives and reading Frank Harrell's discussion of > "Using Latex Figure Environments for Plots" until my eyes went on > strike, I am nowhere near a solution. Would anyone be kind enough to > point me to the Idiot's Guide to Latex Figure Environments? > > Jim >As far as I can recall, figure* and table* are used to create figures/tables that span the entire page when the rest of the document is in twocolumn or multicol mode. I.e. these environments allow you to break out of a multi-column layout to place a figure that acts like it was in a normal single-column layout. There are a bunch of caveats such as the figure/table will only appear at the top or bottom of a page and will not appear on the same page as the point at which it was declared in the source. That is to say, when you declare a figure* in a LaTeX document, one page break must pass before the environment actually gets set in your document- no matter what !h or H vodoo you pull. If your document is not using multiple columns, then you may want to specify the width of your figure when you place it using \includegraphics. In order to scale the figure so that it spans the entire page, set the width argument equal to \textwidth: \begin{figure} \centering \caption{A graph of x verses y along with a linear regression fit.} \label{fig:xVsY} \includegraphics[width=\textwidth]{/path/to/your/figure} \end{figure} Some good resources are: The LaTeX Wikibook: http://en.wikibooks.org/wiki/LaTeX Getting to Grips with LaTeX: http://www.andy-roberts.net/misc/latex/ Hope this helps! -Charlie ----- Charlie Sharpsteen Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://n4.nabble.com/Page-width-figures-in-Latex-tp1694612p1694673.html Sent from the R help mailing list archive at Nabble.com.
On Mon, 29 Mar 2010 12:21:40 +1100, Jim Lemon <jim at bitwrit.com.au> wrote:>bRotheRs & sisteRs, >I am once again attempting to learn enough Latex voodoo to get something >done, and failing comically. The document "RJAuthorguide.pdf" >mentions that one can get page width figures through the use of the >"figure*" or "table* environments, but despite considerable searching >through the mail archives and reading Frank Harrell's discussion of >"Using Latex Figure Environments for Plots" until my eyes went on >strike, I am nowhere near a solution. Would anyone be kind enough to >point me to the Idiot's Guide to Latex Figure Environments? > >JimJim, You need a good book on Latex. I like this one: http://www.amazon.com/Guide-LaTeX-4th-Helmut-Kopka/dp/0321173856/ref=sr_1_4?ie=UTF8&s=books&qid=1269833347&sr=8-4 The width of the figure is controlled by the \includegraphics statement, not any particular part of the environment specification. That assumes you have loaded the graphicx package. For example, \begin{figure}[!th] \begin{center} \includegraphics[width=\textwidth]{myfig.eps}\\ \end{center} \end{figure}% HTH, Mike
On 03/29/2010 02:34 PM, Mike Prager wrote:> ... > \begin{figure}[!th] > \begin{center} > \includegraphics[width=\textwidth]{myfig.eps}\\ > \end{center} > \end{figure}% >Hi Mike, I wrote too soon, for there was one combination that I had not tried: \begin{figure*}[!th] \includegraphics[width=\textwidth]{hypertens.pdf} \caption{\label{figure:hypertens} Reported hypertension by age, sex and alcohol consumption} \end{figure*} did exactly what I wanted. Thanks. Jim