# do not forget to do "mktexlsr" from the command line after installing a new .sty file.
In some cases, extractBB does not work, but shows an error message.
extractbb:warning: Streams with DecodeParms not supported.
extractbb:warning: Cannot parse cross-reference stream.
extractbb:warning: Error while parsing PDF file.
extractbb:warning: ./Diamond111.pdf does not look like a PDF file...
This happens at least with the PDF files converted from VESTA-output JPG files using "Convert to Adobe PDF" function which appears after right-clicking on the file.
This problem is solved by a software "PDFtk" , a free software you can freely download from the following site.
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
After download and install it, you have better restart the computer once to reload the registry ( to set the path).
Then, on the command window, and at the directory where the file to convert exist, execute the following command.
pdftk original.pdf cat 1 output converted.pdf
The source of this information is from the following site. (TeX wiki organized by Prof. H. Okumura.)
http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=923
wrapfig.sty produces figures which text can flow around.
The style file is available at
http://www.ctan.org/tex-archive/macros/latex/contrib/wrapfig
the style file should be stored in an appropriate folder such as
C:\texlive\texmf-local\tex\latex\misc
In the preamble of the tex file, write
\usepackage{wrapfig}
At the place you want to insert the figure, use
\begin{wrapfigure}[]{r}[0pt]{70mm}
\begin{center}
\includegraphics[width=70mm]{./diamond.pdf}
\caption{Diamond lattice}
\label{fig:diamond}
\end{center}
\end{wrapfigure}
The text after this figure environment wrap the figure.
In preamble, insert the following charm words. (ref.: http://oku.edu.mie-u.ac.jp/tex/mod/forum/discuss.php?d=981)
\makeatletter
% from: jsarticle.cls
\long\def\@makecaption#1#2{{\small
\advance\leftskip .0628\linewidth
\advance\rightskip .0628\linewidth
\vskip\abovecaptionskip
\let\save@footnotemark\footnotemark % <-- added
\renewcommand{\footnotemark}[1][]{} % <-- added
\sbox\@tempboxa{#1\hskip1zw\relax #2}%
\let\footnotemark\save@footnotemark % <-- added
\ifdim \wd\@tempboxa <\hsize \centering \fi
#1\hskip1zw\relax #2\par
\vskip\belowcaptionskip}}
\makeatother
In the figure caption, use
\caption{ Brillouin zone of Diamond type structure.\protect\footnotemark }
and after the figure environment, ie.\end{figure}, input
\footnotetext{This figure was reproduced from Wikipedia. (https://en.wikipedia.org/wiki/Brillouin\_zone\#/media/File:Face-Centered\_Cubic\_Lattice\_\%28Brillouin\_zone\%29.png) }
In \documentclass[uplatex,dvipdfmx,ja=standard]{bxjsarticle}, omit of the above charm words in preamble results in the footnote with only odd numbers such as 1,3,5,7.....
\mbox{}を用いる。
例えば、
\begin{eqnarray*}
(m-m_1-m_2)\hbar<j_1m_1|j_2m_2> = 0 \\
\mbox{もし}m-(m_1+m_2)\neq 0 \mbox{なら}
<j_1m_1|j_2m_2> = 0
\end{eqnarray*}
(from http://osksn2.hep.sci.osaka-u.ac.jp/~naga/miscellaneous/tex/tex-tips2.html#Anchor-2.-4219)
In the default setting, (jarticle.cls), the margins of figure caption is set to \abovecaptionskip=10p@, \belowcaptionskip=0p@. To reduce them, set as follows in the preamble region.
\abovecaptionskip=-5pt
\belowcaptionskip=-10pt
Use cancel.sty
http://www.ctan.org/tex-archive/macros/latex/contrib/cancel
how to use it is described here.
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/cancel.html
\cancel{equation}
\bcancel{equation}
\xcancel{value}{equation} : cancel by cross line
\cancelto{value}{equation}
A way to count the letter number in tex is described in the following site.(Thank you so much!)
http://eomole.hatenablog.com/entry/2013/12/19/170520
\makeatletter
\def\WordCount#1{% \@tempcnta\z@ \@tfor \@tempa:=#1\do{\advance\@tempcnta\@ne}% \begin{quote}#1\end{quote} \the\@tempcnta 文字 } \makeatother
Put the above description in the preamble(?), and put \WordCount{} around the sentences you want to check.
The result appears in the compiled document.