LaTeX: Difference between revisions

From LPTMS Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
* one can give the path for the directory containing the figures using
* one can give the path for the directory containing the figures using
  \graphicspath{{../Figures/},{../plots/}}
  \graphicspath{{../Figures/},{../plots/}}
== Bibliography ==
The best strategy with ''revtex'' is to use a ''references.bib'' file containing all references (see [[managing bibliography]]) and to include them using the ''apsrev4-1'' bibliography style that will format correctly the bibitems:
\bibliographystyle{apsrev4-1}
\bibliography{references}
Then, the compilation creates a .bbl file with the correctly ordered references. If you want to merge some bibitems, you can include by hand the .bbl file at the place of the bibliography and reshape your bibitems (and corresponding \cite{}) at will.

Revision as of 22:55, 14 October 2011

Tips for LaTeX

  • do not forget the use of {} to remove unwanted blanks in equations. For instance, there is a difference between <math>\vert{\uparrow\downarrow}\rangle</math> and <math>\vert\uparrow\downarrow\rangle</math>.
\vert{\uparrow\downarrow}\rangle and not \vert\uparrow\downarrow\rangle
  • one can give the path for the directory containing the figures using
\graphicspath{{../Figures/},{../plots/}}

Bibliography

The best strategy with revtex is to use a references.bib file containing all references (see managing bibliography) and to include them using the apsrev4-1 bibliography style that will format correctly the bibitems:

\bibliographystyle{apsrev4-1}
\bibliography{references}

Then, the compilation creates a .bbl file with the correctly ordered references. If you want to merge some bibitems, you can include by hand the .bbl file at the place of the bibliography and reshape your bibitems (and corresponding \cite{}) at will.