Math & Scienceproblem with closed volume integral in latex

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
abrarn17
Posts: 2
Joined: Tue Jun 22, 2021 10:32 am

problem with closed volume integral in latex

Post by abrarn17 »

Hello everyone

I am having problem with closed volume integral in latex
i used \oiint for surface integral its working perfectly but \oiiint is not working in my compilation.

my latex syntax is

Code: Select all

\begin{equation}
\frac{\partial}{\partial t}\iiintop_{\forall} \rho d\forall 
+\oiintop_S \rho \vec{V}.\vec{dS}=0
\end{equation}
What i am getting is
I am getting this
I am getting this
z1.png (25 KiB) Viewed 8187 times
what i expect
I expect this to come
I expect this to come
z2.png (12.63 KiB) Viewed 8187 times
Thanks
Last edited by Stefan Kottwitz on Wed Jun 23, 2021 8:51 am, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

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

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

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

problem with closed volume integral in latex

Post by Ijon Tichy »

What do you mean with: “\oiiint is not working”? Have you loaded one of the packages, that provide \oiiint (→ symbols-a4)?

Can you please show a Infominimal working example to make your problem reproducible? And can you please use code tags to mark code? Otherwise the online editor/compiler provided by latex.org would not be activated.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
abrarn17
Posts: 2
Joined: Tue Jun 22, 2021 10:32 am

problem with closed volume integral in latex

Post by abrarn17 »

Hi Ijon Tichy

here is my sample tex script

Code: Select all

\documentclass[a4paper,12pt,twoside]{book}
%\documentclass[12pt,a4paper]{exam}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\pagestyle{headings}
\usepackage{enumitem}
\usepackage[dvipsnames]{xcolor}
\usepackage{graphicx}
\usepackage{amsmath,amssymb}
\usepackage{wasysym}
\usepackage{amsmath,esint}
\usepackage[supplier-typeface]{mathdesign}
\makeatletter
\newcommand{\mathleft}{\@fleqntrue\@mathmargin0pt}
\newcommand{\mathcenter}{\@fleqnfalse}
\makeatother
\usepackage[makeroom]{cancel}

\usepackage{xcolor}
\colorlet{RED}{red}
\protected\def\myred{\color{red}}
\usepackage[dvipsnames]{xcolor}
\usepackage[skins,theorems]{tcolorbox}
\usepackage[export]{adjustbox}
\usepackage[margin=0.875in]{geometry}
\usepackage{amssymb,amsfonts,bm}
\usepackage{subfigure,float,multirow}

\begin{document}

\begin{equation}
 %\oiintop_S  p \vec{dS} = \iiint_V \nabla p d{\forall}
 \oiintop_S  p \vec{dS} = \oiiint_V \nabla p d{\forall}
\end{equation}

\end{document}
Last edited by Stefan Kottwitz on Thu Jun 24, 2021 7:00 pm, edited 1 time in total.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

problem with closed volume integral in latex

Post by Ijon Tichy »

This is far from being minimal. However, it seems you are not loading one of the packages, that provide \oiiint. See the linked document in my previous posting for more information about the alternatives of those packages.

BTW: subfigure is deprecated for decades and should not be used any longer. See the link for alternatives.

And you should not load packages more than once. It is not a fault, but it often results in an fault, e.g., if options are changed at one loading but not at the other.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
vaman
Posts: 17
Joined: Wed Oct 09, 2019 5:51 am

problem with closed volume integral in latex

Post by vaman »

I think this will be a useful to generate the integral you want. I ran it and it worked.
I can not paste the image as it is in pdf format. Here is my answer.

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{shapes}
\newcommand*\oiint{%
	\tikz \node[draw, ellipse, inner xsep=-3pt, inner ysep=-9pt] {$\displaystyle\iint$};%
}
\newcommand*\oiiint{%
	\tikz \node[draw, ellipse, inner xsep=-4pt, inner ysep=-9pt] {$\displaystyle\iiint$};%
}
\begin{document}
\begin{eqnarray}
\frac{\partial}{\partial t} {\underset {V} {\oiiint}} \rho dv+ {\underset{S} {\oiint}} \rho \vec{V} \cdot \vec{ds}\\
  V \;\;\;\;\;\;\;\;\;\;\;\;\;\; S\;\;\;\;\;\;\;\;\;\;\;\;\;\ \nonumber
\end{eqnarray}
\end{document}
Here the position of V and S can be suitably adjusted. I hope it works for you.
Last edited by Stefan Kottwitz on Mon Aug 16, 2021 1:51 pm, edited 1 time in total.
Reason: code marked
Post Reply