Graphics, Figures & Tablesrotating | Turn Page with rotated Table in Viewer

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
safwatonline
Posts: 13
Joined: Tue Jun 29, 2010 6:46 pm

rotating | Turn Page with rotated Table in Viewer

Post by safwatonline »

Hello everyone,

I am using the sidewaystable envirionment for a wide table, and everything is working fine. However, I was wondering if there is an option to make the resulting PDF page (containing the table) appear rotated 90 degrees for better readability. I tried the landscape environment however it messed up the sidewaystable.

Added:
The output is as expected if I used "LaTeX => PS => PDF" instead of "LaTeX => PDF". Any idea how to fix it for "LaTeX => PDF"?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

rotating | Turn Page with rotated Table in Viewer

Post by cgnieder »

This is hard to answer without a Infominimal working example but how about using only the landscape environment without the sidewaystable:

Code: Select all

\documentclass{article}
\usepackage{tabularx}% let the table span the textwidth
\usepackage{pdflscape}
\usepackage{lipsum}% for dummy text
\begin{document}

\lipsum[1-5]

\begin{landscape}
\begin{table}
 \begin{tabularx}{\linewidth}{XXXXXXXXX}
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry \\
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry \\
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry \\
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry \\
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry \\
  some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry & some entry
 \end{tabularx}
 \caption{Some arbitrary caption}
\end{table}
\end{landscape}

\lipsum[1-5]

\end{document}
If this isn't what you're looking for please add a Infominimal working example.

Regards
site moderator & package author
safwatonline
Posts: 13
Joined: Tue Jun 29, 2010 6:46 pm

rotating | Turn Page with rotated Table in Viewer

Post by safwatonline »

Hello cgnieder,
Please find attached an example, i just want page 2 to be rotated by 90 degree without any change in its formatting.

Code: Select all

    \documentclass{article}
    \usepackage{lipsum}% for dummy text
 		\usepackage{mathenv}\usepackage[lmargin=3.0cm, rmargin=1.0cm,tmargin=2.50cm,bmargin=2.50cm]{geometry}

		
	
% The following 2 lines are added to permit variable coloumn width in tables
\usepackage{array}
\usepackage{varwidth}


\usepackage{multirow}
\renewcommand{\multirowsetup}{\centering}

\usepackage{paralist}

%% table settings
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[figuresright]{rotating} 					% SidewaysTable

\usepackage{pdflscape}					% LandScape page
\sloppy				% prevents margin overruns

    
    
    
    
    \begin{document}

    \lipsum[1-5]
\begin{sidewaystable}
%\begin{table*}
\label{tab3:ADCcompare}
\caption[ADC Comparison Matrix]{ADC Comparison Matrix\cite{Maxim}}
	\centering

\scalebox{0.8}{

\begin{tabular}{>{\raggedright}m{.15\textwidth}||>{\centering}m{0.2\textwidth}|>{\centering}m{0.2\textwidth}|>{\centering}m{0.2\textwidth}|>{\centering}m{0.2\textwidth}|>{\centering}m{0.2\textwidth}}

%\begin{tabular}{r||c|c|c|c|c}

\hline\hline
    {\bf } & {\bf FLASH (Parallel)} &  {\bf SAR} & {\bf DUAL SLOPE (Integrating ADC)} & {\bf PIPELINE} & {\bf SIGMA DELTA} \\
\hline
{\bf Application fields} & Ultra-High Speed when power consumption not primary concern? & Medium to high resolution ($8 to 16bit$), 5Msps and under, low power, small size. & Monitoring DC signals, high resolution, low power consumption, good noise performance. & High speeds, few $Msps to 100+ Msps$, 8 bits to 16 bits, lower power consumption than flash. & High resolution, low to medium speed, no precision external components,
 simultaneous 50/60Hz rejection, digital filter reduces anti-aliasing requirements. \\
\hline
{\bf Conversion Method} & $N$ bits - $2^N -1$ Comparators Caps increase by a factor of 2 for each bit. & Binary search algorithm, internal circuitry runs higher speed. & Unknown input voltage is integrated and value compared against known reference value. & Small parallel structure, each stage works on one to a few bits. & Oversampling ADC, $5-Hz - 60Hz$ rejection programmable data output. \\
\hline
{\bf Encoding Method} & Thermometer Code Encoding & Successive Approximation & Analog Integration & Digital Correction Logic & Over-Sampling Modulator, Digital Decimation Filter \\
\hline
{\bf Disadvantages} & Sparkle codes / metastability, high power consumption, large size, expensive. & Speed limited to $~5Msps$. May require anti-aliasing filter. & Slow Conversion rate. High precision external components required to achieve accuracy. & Parallelism increases throughput at the expense of power and latency. & Higher order (4th order or higher) - multibit ADC and multibit feedback DAC. \\
\hline
{\bf Conversion Time} & Conversion Time does not change with increased resolution. & Increases linearly with increased resolution. & Conversion time doubles with every bit increase in resolution. & Increases linearly with increased resolution. & Trade off between data output rate and noise free resolution. \\
\hline
{\bf Resolution} & Component matching typically limits resolution to 8 bits. & Component matching requirements double with every bit increase in resolution. & Component matching does not increase with increase in resolution. & Component matching requirements double with every bit increase in resolution. & Component matching requirements double with every bit increase in resolution. \\
\hline
{\bf Size} & $2^N-1$ comparators, Die size and power increases exponentially with resolution. & Die increases linearly with increase in resolution. & Core die size will not materially change with increase in resolution. & Die increases linearly with increase in resolution. & Core die size will not materially change with increase in resolution. \\
\hline
\end{tabular} 
}
\end{sidewaystable} 

    \lipsum[1-5]

    \end{document}
thanks,
Safwat
Attachments
Example_table2.tex
(3.83 KiB) Downloaded 377 times
Example_table2.pdf
(71.99 KiB) Downloaded 284 times
Post Reply