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

Discussion Overview

The discussion revolves around finding and using a template for the REVTeX document class specifically for assignments to be submitted to the journal Physics Review B (PRB). Participants share experiences and seek assistance with technical issues related to LaTeX compilation, formatting, and submission requirements.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant seeks a basic REVTeX template for assignments, expressing a desire to learn the software while preparing their work.
  • A link to an eprint using the PRB option for REVTeX is provided, which contains relevant files for the participant's use.
  • Technical errors encountered during compilation are discussed, specifically regarding unknown graphics extensions and how to resolve them by adding a package.
  • Clarifications are sought about submission practices, including whether a PDF or source files should be submitted to PRB.
  • Participants discuss how to format author information and affiliations without them being interpreted as references due to the superscriptaddress option in REVTeX.
  • Questions arise about figure placement within sections and how to ensure figures are labeled correctly, with suggestions provided on using placement specifiers.
  • Concerns are raised about unwanted text appearing above figures due to spaces in filenames, with advice given to rename files to avoid this issue.
  • Participants inquire about creating anchor links in citations within the bibliography, with a suggestion to include the hyperref package to achieve this functionality.

Areas of Agreement / Disagreement

Participants generally agree on the need for specific formatting and submission practices, but there are multiple competing views on the best approaches to resolve technical issues and formatting challenges. The discussion remains unresolved regarding some specific technical questions.

Contextual Notes

Limitations include potential dependencies on specific LaTeX packages and configurations, as well as unresolved issues related to file naming conventions and citation formatting.

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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: ognik
  • #12
Again spot on, thanks - you have saved me a heap of time :-)
 

Similar threads

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