LoginSignup
0
0

More than 3 years have passed since last update.

natbib, supplement for pyhsical review

Last updated at Posted at 2020-06-19

Physical reviewに久しぶりに投稿しようとrevtexを入れたら,natbibを使いなさいって.あんまり馴染みがなくて,変に誤解していたので,installや使い方のまとめ.

あまりに短いんで,もう一つsupplementでいいsolutionがあったので,そいつもメモがわりに同じところへおかしてもらいます.

natbib

platex

でかくなってよね.しかも全部入れるのが普通って.
- natbib
をctanからダウンロードして,local directoryに入れようとしたが,natbib.styがないって.

 $ platex natbib.ins

で展開.

原稿

natbibはstyと言いながらちょと違う.

\usepackage{natbib}%
...
\bibliographystyle{apsrev4-1}

などとするべし.

どうも最初から入っていたようです.
usepackageが入ってなくて,ズーーとエラーが出てた.

supplement material

英語校正の人がsupplementにすべきだっていうんで,やり始めたが意外と面倒そうに見えて...
でも解決して見るとめちゃ便利.要は一つの論文として扱う.supplementはappendixみたいなものって.内容考える時もこの考え方便利.

main.org + supple.org > 
main.tex + supple.tex >
revhead.tex + main.tex[0..-1] + supplehead.tex + supple.tex + "\end{document}

ここで作ったsupple_head.texです.

%%%%%%%%%% Merge with supplemental materials %%%%%%%%%%
\widetext
\clearpage
\begin{center}
  \textbf{\large
#+title
  }
\end{center}
%%%%%%%%%% Merge with supplemental materials %%%%%%%%%%
%%%%%%%%%% Prefix a "S" to all equations, figures, tables and reset the counter %%%%%%%%%%
\setcounter{section}{0}
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{page}{1}
\makeatletter
\renewcommand{\thesection}{S-\Roman{section}}
\renewcommand{\theequation}{S\arabic{equation}}
\renewcommand{\thefigure}{S\arabic{figure}}
\renewcommand{\thetable}{S\arabic{table}}
\renewcommand{\bibnumfmt}[1]{[S#1]}
\renewcommand{\citenumfont}[1]{S#1}
%%%%%%%%%% Prefix a "S" to all equations, figures, tables and reset the counter %%%%%%%%%%

sectionは私のコメント.bibtexがおかしいのはな.PRはもともとsupplementだけの参照文献を認めてないようなので..,そのまま放置.

non-breaking tilde

Fig.のあとはspaceを入れるんですが,これを普通のspaceでやると変に間が空きます.そこで,ページブレークが入らないスペースということで'~'をlatexで入れます.ところが,org-modeでやるとおかしくなる.正解は

 Fig.\nbsp{}1

とやるそうです.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0