Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Template for Physics review B

  1. Jun 11, 2015 #1
    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 :-)
     
  2. jcsd
  3. Jun 11, 2015 #2

    fzero

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
     
  4. Jun 11, 2015 #3
    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?
     
  5. Jun 11, 2015 #4

    fzero

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    Try adding \usepackage{epstopdf} before \begin{document}.
     
  6. Jun 12, 2015 #5
    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?
     
  7. Jun 12, 2015 #6

    fzero

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
     
  8. Jun 12, 2015 #7
    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
     
  9. Jun 12, 2015 #8

    fzero

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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}



    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 (Text):
    \begin{figure}[h]
    (put the figure as close as possible to here)
    Code (Text):
    \begin{figure}[t]
    (put the figure at the top of this page)
    Code (Text):
    \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 (Text):
     
    \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}
     
  10. Jun 13, 2015 #9
    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 :-)
     
  11. Jun 13, 2015 #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: Jun 13, 2015
  12. Jun 13, 2015 #11

    fzero

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.

    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.
     
  13. Jun 13, 2015 #12
    Again spot on, thanks - you have saved me a heap of time :-)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Template for Physics review B
  1. MikTex template (Replies: 1)

  2. Jhep latex template (Replies: 1)

Loading...