Graphics, Figures & TablesTruncated equations in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
thetasaurus
Posts: 1
Joined: Sat Sep 01, 2012 6:57 am

Truncated equations in table

Post by thetasaurus »

Hello,

I'm trying to make a reference sheet of integrals, but I can't format them in a table without the symbols being truncated (as if I coded them within text).

I'm sort of new to LaTex in general, but here is the current code. Within the table are the truncated integrals, and after the table are more integrals that are formatted to look how I want them to, just not in a table.

Code: Select all

\documentclass[20pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{array}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\title{Circular Integrals}
\author{Some Name}
%\date{}                                           % Activate to display a given date or no date

\begin{document}
\maketitle
%\section{}
%\subsection{}


\begin{tabular}{l r}
$\int \sin udu= -\cos u + C \quad \quad$ & $\int \cos udu= \sin u +C$ \\
$\int \tan udu= \ln \left|\sec u \right| + C \quad \quad$ & $\int \cot udu= \ln |\sin u | + C$ \\
$\int \csc udu= \ln |\csc u - \cot u | + C \quad \quad$ & $\int \sec udu= \ln |\sec u + \tan u | + C$ \\
$\int \sec^2 udu= \tan u + C \quad \quad$ & $\int \csc^2 udu= -\cot u = C$ \\
$\int \sec u \tan udu= \sec u + C \quad \quad$ & $\int \csc u \cot udu= -\csc u + C$ \\
\end{tabular}
\\
\\
\\
$$\int \frac{1}{\sqrt{1-u^2}}du=\sin^{-1}u + C \quad \quad \int \frac{1}{u^2+1}du=\tan^{-1}u + C$$
$$\int \frac{1}{|u|\sqrt{u^2-1}}du=\sec^{-1}u + C$$
\\
$$\int \sin^{-1} udu = \sqrt{1-u^2} + u\sin^{-1} u + C \quad \quad \int \cos^{-1} udu = u \cos^{-1}u - \sqrt{1-u^2} + C$$
$$\int \tan^{-1} udu = u \tan^{-1}u - \frac{1}{2}\ln{\left(u^2+1\right)} + C  \quad \quad \int \cot^{-1} udu = u\cot^{-1}u + \frac{1}{2}\ln{\left(u^2+1\right)} + C$$
$$\int \csc^{-1} udu = -u\csc^{-1}u-\ln\left(\sqrt{u^2-1}-|u|\right) + C \quad \quad \int \sec^{-1} udu = u\sec^{-1}u + \ln\left(\sqrt{u^2-1}-|u|\right) + C$$


\end{document}  
Does anyone know how I can organize the integrals into rows and columns, but still display them at full size?

Thanks.
Last edited by cgnieder on Fri Aug 28, 2015 5:37 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Truncated equations in table

Post by localghost »

At first, some thoughts about your code.
  • The font size option 20pt for the document class is invalid. See the log file for a corresponding warning. Allowed options are 10pt (default), 11pt or 12pt.
  • Replace the {tabular} environment with an {array} in (in-line) math mode. Think about using the alignat* environment from amsmath instead.
  • Do not use $$…$$ to introduce unnumbered displayed formulas. Use \[…\] or the starred versions of common display math environments instead.
  • Do not use the amsart class if you are not bounded to certain formatting demands
  • Prepare a proper minimal example next time and drop code that is not necessary to reproduce the problem.
Regarding the problem, just add \everymath={\displaystyle} to the preamble of your document.


Further reading:

Best regards and welcome to the board
Thorsten
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Truncated equations in table

Post by cgnieder »

Thorsten already gave you the very good advice (which you should follow!) to use one of amsmath's aligning environments. Just for completeness' sake here's a version with tabular (but don't do this, use amsmath's features!):

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{array}% (not only) provides \newcolumntype

% define new table columns that use displaymath for their entries
\newcolumntype{L}{>{\(\displaystyle}l<{\)}}
\newcolumntype{R}{>{\(\displaystyle}r<{\)}}

\begin{document}

\begin{tabular}{LR}
  \int \sin udu= -\cos u + C \quad \quad & \int \cos udu= \sin u +C \\
  \int \tan udu= \ln \left|\sec u \right| + C \quad \quad & \int \cot udu= \ln |\sin u | + C \\
  \int \csc udu= \ln |\csc u - \cot u | + C \quad \quad & \int \sec udu= \ln |\sec u + \tan u | + C \\
  \int \sec^2 udu= \tan u + C \quad \quad & \int \csc^2 udu= -\cot u = C \\
  \int \sec u \tan udu= \sec u + C \quad \quad & \int \csc u \cot udu= -\csc u + C \\
\end{tabular}

\end{document}
Regards
site moderator & package author
Post Reply