What is the Best Template for Using RevTex in Physics Review B Assignments?

  • Thread starter Thread starter ognik
  • Start date Start date
  • Tags Tags
    Physics Review
Click For Summary
A user is seeking a basic template for RevTeX to format assignments for Physics Review B, expressing a desire to learn the software while preparing their work. They encountered issues with compiling due to EPS file errors, which were resolved by adding the epstopdf package. The discussion includes guidance on modifying the document class options to prevent unwanted highlighting in the author section and on figure placement. Suggestions were made to use the table environment for better control over table formatting and to avoid issues with spaces in filenames. The user also inquired about creating anchor links in citations, with advice to include the hyperref package for that functionality.
ognik
Messages
626
Reaction score
2
Hi - doing a physics honors degree by distance learning, and will need to submit some assignments in the reference style used by the journal Physics review B (PRB). I have looked into this and have downloaded MikTex (which includes RevTex that PRB specifies), plus Winedt 9. So far so good. What I am looking for is a basic template that I can use for my first effort at putting an assignment into RevTex - I have most of the assignment material ready, but that is hard enough without muddying the actual assignment with trying to learn RevTex and winedt. The template can be empty or have info in it already that I would need to overwrite with mine - so if you can give me a link to such a template(s) it would make it easier for me to start using RevTex (which is not part of the assignment - I could submit the assignment using Word and Mathtype which I already know, but I think it is better with an eye on the future, to make this an opportunity to learn RevTex). Sorry this is a bit long winded, and tThanks :-)
 
Physics news on Phys.org
http://arxiv.org/e-print/1301.0184v1 is a randomly selected eprint that uses the prb option for RevTeX4. It is a gzipped, tar file, so you might need something like WinRAR to open it.
 
Thanks (used 7-zip). Just to clarify, I found a bunch of eps files and 'paper.tex' which must be the template, the eps files I assume are inclusions?
However when I run PDFTexify from Winedt, I get 2 errors which stop the compilation at that point - "! LaTeX Error: Unknown graphics extension: .eps." Sorry to be a nuisance, but any idea what I'm missing in my installation?
 
ognik said:
Thanks (used 7-zip). Just to clarify, I found a bunch of eps files and 'paper.tex' which must be the template, the eps files I assume are inclusions?
However when I run PDFTexify from Winedt, I get 2 errors which stop the compilation at that point - "! LaTeX Error: Unknown graphics extension: .eps." Sorry to be a nuisance, but any idea what I'm missing in my installation?

Try adding \usepackage{epstopdf} before \begin{document}.
 
  • Like
Likes ognik
Thanks fzero, got the pdf compiled :-) I know you haven't signed up to be revtex support, but please correct me if I'm wrong - once I have edited my content in, running PDFtexify is adequate and such a pdf could be submitted to prb?
 
ognik said:
Thanks fzero, got the pdf compiled :-) I know you haven't signed up to be revtex support, but please correct me if I'm wrong - once I have edited my content in, running PDFtexify is adequate and such a pdf could be submitted to prb?

For submission to a journal, it's best to submit the source tex file, along with any figures, exactly the way that bundle was submitted to the arxiv. Once a paper is accepted, they have some assistant editor that will go through the file looking to correct typos and other things, so they will want the source file. I think PRB would also wave page charges if they get the REVTeX file, but not for a PDF.
 
  • Like
Likes ognik
Thanks fzero. I have found this guide - http://www.physics.csbsju.edu/370/papers/Journal_Style_Manuals/auguide4-1.pdf for helping me through the syntax etc., do you know of anything better?
... because I have a couple of questions I couldn't figure out (see below). After the \usepackages I have:
-------------------------------------
\begin{document}
\title{HMPHY80: Assignment task 02. Case study on research methods}
\author{Alan Smith (465-884-1) }
\affiliation{Department of Physics, UNISA,ZA}
\email{4658841@mylife.unisa.ac.za}

\pacs{not used}

\date{\today}

\begin{abstract}
Literature search and evaluation assignment, using the Physics Review B journal reference style
\end{abstract}

\maketitle

\section{Introduction}
Blah, blah ...

\section{Method}
Blah, blah ...

\begin{figure}
\begin{center}
\includegraphics[width=1.0\linewidth]{Table of Database Findings.png}
\caption[system]{\label{fig1} Very basic table, merely to illustrate the thinking that preceded the actual search }
\end{center}
\end{figure}
----------------------------
How can I have (465-884-1) in \author - without it being highlighted as a reference?
Ditto Department of Physics in next line?
I wanted the png I included to be in \section{Method}, but it insists on putting it bottom of column? Also it leaves out the word'Table'?

Thanks again
 
ognik said:
----------------------------
How can I have (465-884-1) in \author - without it being highlighted as a reference?
Ditto Department of Physics in next line?

This behavior is caused by the superscriptaddress option to REVTeX, i.e., change

\documentclass[twocolumn,prb,showpacs,superscriptaddress]{revtex4}

to

\documentclass[twocolumn,prb,showpacs]{revtex4}
I wanted the png I included to be in \section{Method}, but it insists on putting it bottom of column? Also it leaves out the word'Table'?

The LaTeX figure object floats, that is, it by default left to TeX to figure out where in the document to make room for the figure. However, you can specify a placement option by using

\begin{figure}[placement specifier]

where typical values are

Code:
\begin{figure}[h]
(put the figure as close as possible to here)
Code:
\begin{figure}[t]
(put the figure at the top of this page)
Code:
\begin{figure}[b]
(put the figure at the bottom of this page)

I am not getting good results with the twocolumn REVTeX option, so you might want to remove it:

\documentclass[prb,showpacs]{revtex4}

If you want the object to be labeled as a table, maybe you can use the "table" object:

Code:
\begin{table}[h] 
\begin{center} 
\includegraphics[width=1.0\linewidth]{Table of Database Findings.png} 
\caption[system]{\label{fig1} Very basic table, merely to illustrate the thinking that preceded the actual search } 
\end{center} 
\end{table}

BTW, if you're not using the PACS codes, you can cut showpacs, so

\documentclass[prb]{revtex4}
 
  • Like
Likes ognik
Awesome thanks, everything immediately useful. I did find the object placement, but the guides seem a little cryptic to me, so I was trying {figure[h]} - real nice to have a little help :-)
 
  • #10
Nearly forgot - for an object I have: \includegraphics[width=1.0\linewidth]{Table of Database Findings.png} , but it puts the text "of Database Findings.png" above the object, is there a way to leave out that text? (and why does it drop the "Table" part?).

Finally for today, Thanks again is there a way to \cite in [prb] so that there is an anchor link to the reference in the bibliography? Thanks again.
 
Last edited:
  • #11
ognik said:
Nearly forgot - for an object I have: \includegraphics[width=1.0\linewidth]{Table of Database Findings.png} , but it puts the text "of Database Findings.png" above the object, is there a way to leave out that text? (and why does it drop the "Table" part?).

TeX was originally developed on Unix systems when spaces in filenames were forbidden, so I'd assume that this behavior is related to those spaces. Change the name to something without spaces (or replace with _) and I would guess the problem will go away.

Finally for today, Thanks again is there a way to \cite in [prb] so that there is an anchor link to the reference in the bibliography? Thanks again.

I don't know if this is possible in REVTeX alone. I would try including the hyperref package, which I think does what you want.
 
  • Like
Likes ognik
  • #12
Again spot on, thanks - you have saved me a heap of time :-)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
14K
  • · Replies 52 ·
2
Replies
52
Views
2K
Replies
12
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
802
  • · Replies 2 ·
Replies
2
Views
1K