Code: Select all
Code, edit and compile here:
\makeatletter\def\color@gray#1#2{%\c@lor@arg{#2}%\edef#1{gray #2}}\makeatother
Code: Select all
\makeatletter\def\color@gray#1#2{%\c@lor@arg{#2}%\edef#1{gray #2}}\makeatother
NEW: TikZ book now 40% off at Amazon.com for a short time.
If you like to complicate things more than necessary, use graphicx and tinker. If you tend to pragmatism, use the environments of rotating.frabjous wrote:Why do you need both? What can you do with rotating that you can't do with \rotatebox (and similar) from graphicx?
Code: Select all
\documentclass[11pt,a4paper,english]{report}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{babel}\usepackage[centering,includeheadfoot,margin=2cm]{geometry}\usepackage[font=small,labelfont=bf,tableposition=top]{caption}\usepackage{booktabs,textcomp}\usepackage{rotating}\usepackage{graphicx}\usepackage{blindtext}\begin{document}\blinddocument\begin{sidewaystable}\caption{Trigonometric functions}\label{tab:trigfunc}\centering%\footnotesize\begin{tabular}{@{}l*{17}{c}@{}}\toprule& 0 & $\frac{1}{6}\,\pi$ & $\frac{1}{4}\,\pi$ & $\frac{1}{3}\,\pi$ & $\frac{1}{2}\,\pi$ & $\frac{2}{3}\,\pi$ & $\frac{3}{4}\,\pi$ & $\frac{5}{6}\,\pi$ & $\pi$ & $\frac{7}{6}\,\pi$ & $\frac{5}{4}\,\pi$ & $\frac{4}{3}\,\pi$ & $\frac{3}{2}\,\pi$ & $\frac{5}{3}\,\pi$ & $\frac{7}{4}\,\pi$ & $\frac{11}{6}\,\pi$ & $2\pi$ \\ \cmidrule{2-18}& 0\textdegree & 30\textdegree & 45\textdegree & 60\textdegree & 90\textdegree & 120\textdegree & 135\textdegree & 150\textdegree & 180\textdegree & 210\textdegree & 225\textdegree & 240\textdegree & 270\textdegree & 300\textdegree & 315\textdegree & 330\textdegree & 360\textdegree \\ \midrule[1pt]$\sin x$ & $\frac{\sqrt{0}}{2}$ & $\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{2}}{2}$ & $\frac{\sqrt{3}}{2}$ & $\frac{\sqrt{4}}{2}$ & $\frac{\sqrt{3}}{2}$ & $\frac{\sqrt{2}}{2}$ & $\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{0}}{2}$ & $-\frac{\sqrt{1}}{2}$ & $-\frac{\sqrt{2}}{2}$ & $-\frac{\sqrt{3}}{2}$ & $-\frac{\sqrt{4}}{2}$ & $-\frac{\sqrt{3}}{2}$ & $-\frac{\sqrt{2}}{2}$ & $-\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{0}}{2}$ \\ \addlinespace$\cos x$ & $\frac{\sqrt{4}}{2}$ & $\frac{\sqrt{3}}{2}$ & $\frac{\sqrt{2}}{2}$ & $\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{0}}{2}$ & $-\frac{\sqrt{1}}{2}$ & $-\frac{\sqrt{2}}{2}$ & $-\frac{\sqrt{3}}{2}$ & $-\frac{\sqrt{4}}{2}$ & $-\frac{\sqrt{3}}{2}$ & $-\frac{\sqrt{2}}{2}$ & $-\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{0}}{2}$ & $\frac{\sqrt{1}}{2}$ & $\frac{\sqrt{2}}{2}$ & $\frac{\sqrt{3}}{2}$ & $\frac{\sqrt{4}}{2}$ \\ \addlinespace$\tan x$ & 0 & $\frac{\sqrt{3}}{3}$ & 1 & $\sqrt{3}$ & $\pm\infty$ & $-\sqrt{3}$ & $-1$ & $-\frac{\sqrt{3}}{3}$ & 0 & $\frac{\sqrt{3}}{3}$ & 1 & $\sqrt{3}$ & $\pm\infty$ & $-\sqrt{3}$ & $-1$ & $-\frac{\sqrt{3}}{3}$ & 0 \\ \addlinespace$\cot x$ & $\pm\infty$ & $\sqrt{3}$ & 1 & $\frac{\sqrt{3}}{3}$ & 0 & $-\frac{\sqrt{3}}{3}$ & $-1$ & $-\sqrt{3}$ & $\pm\infty$ & $\sqrt{3}$ & 1 & $\frac{\sqrt{3}}{3}$ & 0 & $-\frac{\sqrt{3}}{3}$ & $-1$ & $-\sqrt{3}$ & $\pm\infty$ \\ \bottomrule\end{tabular}\end{sidewaystable}\blinddocument\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.