Showing posts with label Figures. Show all posts
Showing posts with label Figures. Show all posts

Tuesday, January 8, 2013

Landscape in LaTeX - Good for large figures and/or tables

http://texblog.org/2007/11/10/landscape-in-latex/

To change whole document to landscape use the command:

\usepackage[landscape]{geometry}

To change the page content but not the page layout use:

\documentclass[landscape, 12pt]{report}

To change a section (for printing):

\usepackage{lscape}

To change a section (for screen viewing):

\usepackage{pdflscape}

where sections are wrapped in the environment

\begin{landscape}
...
\end{landscape}

Friday, March 16, 2012

Beamer class (presentation mode) in LaTeX - an example of subfloats

I'd thought I'd post an example of a subfloat (a subfigure, but subfig is the package and subfloat the command; the subfigure package and command are older, see http://www.faqoverflow.com/tex/1966.html and http://texblog.org/tag/subfigure/) in Beamer, a presentation class for LaTeX.

\begin{frame}

  \begin{figure}[t]
   \centering
   \captionsetup[subfloat]{labelformat=empty}
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Sentinel_Bradford_et_al_07.png}} 
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Hyperion_(3)_Olds_et_al_99.png}}\\
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Stargazer_Olds_et_al_99.png}}
   \subfloat[]{\label{} \includegraphics[scale = 0.15]{Quicksat_(2)_Bradford_et_al_04.png}}
%    \captionsetup{labelsep=period, labelfont=sc} %\caption{} \label{fig:}
  \end{figure}

\end{frame}

Screenshot:


These are some concept hypersonic vehicles.  I just used this as an ending slide for my MS defense presentation.

Clockwise beginning at top-right:

Sentinel:
Bradford, J. E., Olds, J. R., & Wallace, J. G. (2007). Concept Assessment of a Hydrocarbon Fueled RBCC-Powered Military Spaceplane. 54th Joint Army-NavyNASA-Air Force (JANNAF) Propulsion Meeting (JPM) and 5th Modeling and Simulation / 3rd Liquid Propulsion / 2nd Spacecraft Propulsion Joint Subcommittee Meeting. Denver, Colorado.

Hyperion:
Olds, J. R., Bradford, J. E., Charania, A. C., Ledsinger, L., McCormick, D. J., & Sorensen, K. L. (1999). Hyperion: An SSTO Vision Vehicle Concept Utilizing Rocket-Based Combined Cycle Propulsion. 9th International Space Planes and Hypersonic Systems and Technologies Conference and 3rd Weakly Ionized Gases Workshop. Norfolk, VA.


Quicksat:
Bradford, J. E., Charania, A., Wallace, J., & Eklund, D. R. (2004). Quicksat: A Two-Stage to Orbit Reusable Launch Vehicle Utilizing Air-Breathing Propulsion for Responsive Space Access. Space 2004 Conference and Exhibit. San Diego, California.


Stargazer:
Olds, J. R., Ledsinger, L., Bradford, J. E., Charania, A., McCormick, D., & Komar, D. R. (1999). Stargazer: A TSTO Bantam-X Vehicle Concept Utilizing Rocket-Based Combined Cycle Propulsion. 9th International Space Planes and Hypersonic Systems and Technologies Conference and 3rd Weakly Ionized Gases Workshop. Norfolk, VA.

Saturday, November 26, 2011

Editing caption options in LaTeX using the caption package

So I am submitting some of my work to a journal, and the journal has certain stipulations for their format style.  On example is the caption labels had to have subfloat lables left justified instead of the default centered and the caption label needs to be FIGURE 1. instead of Figure 1:

First initialize the caption package in the preamble:

\usepackage{caption}

See the CTAN link for the pdf and more information on the caption package.

http://ctan.org/tex-archive/macros/latex/contrib/caption/

In order to left justify the subfloat label "a)" use the command:

singlelinecheck=false

(I forgot where I found this).

In order to use this per figure, place the following command in the float like:

\captionsetup[subfloat]{singlelinecheck=false}

In order to change the colon to a period use:

labelsep=period

and in order to change to the small caps format use:

labelfont=sc

and within the figure place:

\captionsetup{labelsep=period, labelfont=sc}

You can also place the options in the preamble so that all figures take the changes:

\usepackage[labelsep=period, labelfont=sc]{caption}

Although I don't know how to implement the subfloat changes like this in the preamble.

Here is the code and image examples:


\begin{figure}
\centering
\subfloat[]{\label{fig:fig_10a_axial_velocity_for_alpha_30_at_4_z_loc_w_1_over_1} \includegraphics[scale = 0.8]{fig_10a_axial_velocity_for_alpha_30_at_4_z_loc_w_1_over_1.png}}
\subfloat[]{\label{fig:fig_10b_axial_velocity_for_alpha_45_at_4_z_loc_w_1_over_1} \includegraphics[scale = 0.8]{fig_10b_axial_velocity_for_alpha_45_at_4_z_loc_w_1_over_1.png}}
\caption{Axial velocity distribution shown at several axial positions and divergence angles of (a) $ 30^{\circ} $ and (b) $ 45^{\circ} $.} \label{fig:fig_10_axial_vel}
\end{figure}




\begin{figure}

\centering

\captionsetup[subfloat]{singlelinecheck=false}

\subfloat[]{\label{fig:fig_10a_axial_velocity_for_alpha_30_at_4_z_loc_w_1_over_1} \includegraphics[scale = 0.8]{fig_10a_axial_velocity_for_alpha_30_at_4_z_loc_w_1_over_1.png}}

\subfloat[]{\label{fig:fig_10b_axial_velocity_for_alpha_45_at_4_z_loc_w_1_over_1} \includegraphics[scale = 0.8]{fig_10b_axial_velocity_for_alpha_45_at_4_z_loc_w_1_over_1.png}}

\captionsetup{labelsep=period, labelfont=sc}

\caption{Axial velocity distribution shown at several axial positions and divergence angles of (a) $ 30^{\circ} $ and (b) $ 45^{\circ} $.} \label{fig:fig_10_axial_vel}

\end{figure}