Difference between revisions of "Tips for Xmgrace"

From LPTMS Wiki
Jump to: navigation, search
m (Typography)
m
Line 4: Line 4:
 
* copy-paste within different boxes does not seem to be possible, one can open a terminal for temporary paste.
 
* copy-paste within different boxes does not seem to be possible, one can open a terminal for temporary paste.
  
==Typography==
+
== Useful inline commands and aliases ==
 +
 
 +
* grabbing data from pipe
 +
:> ./program_printing_data | xmgrace -pipe
 +
 
 +
* Some bash aliases (or command lines) for defining axis and data type
 +
alias xmlog='xmgrace -log xy'
 +
alias xmlogy='xmgrace -log y'
 +
alias xmlogx='xmgrace -log x'
 +
alias xmbar='xmgrace -settype xydy'
 +
alias xmlogbar='xmgrace -log xy -settype xydy'
 +
alias xmlogybar='xmgrace -log y -settype xydy'
 +
 
 +
== Typography ==
  
 
* More general shortcuts for \f{Police} (''have to check this'')
 
* More general shortcuts for \f{Police} (''have to check this'')

Revision as of 10:15, 14 October 2011

Editing

  • Beware: there is no Undo option but Reverse to saved so it is better to often save your working document.
  • copy-paste within different boxes does not seem to be possible, one can open a terminal for temporary paste.

Useful inline commands and aliases

  • grabbing data from pipe
:> ./program_printing_data | xmgrace -pipe
  • Some bash aliases (or command lines) for defining axis and data type
alias xmlog='xmgrace -log xy'
alias xmlogy='xmgrace -log y'
alias xmlogx='xmgrace -log x'
alias xmbar='xmgrace -settype xydy'
alias xmlogbar='xmgrace -log xy -settype xydy'
alias xmlogybar='xmgrace -log y -settype xydy'

Typography

  • More general shortcuts for \f{Police} (have to check this)
\0  Times-Roman
\1  bold
\2  italic
\3  bold-italic
\4  Helvetica
\5  Helvetica - bold
\6  Helvetica - italic
\7  Helvetica - bold-italic
\8  greek
\9  symbol (or \x )
  • Shortcuts for text manipulation
\+  increase size
\-  decrease size
\b  backspace (size of previous character)
\c  begin using upper 128 characters of set
\C  stop  using upper 128 characters of set
\u  begin underline
\U  stop underline
\s  subscript
\S  superscript
\N  normal
\n  newline
\f{} get back to original 
\u  underline text
\o  overline text

Examples:

  • writing \hbar
h\v{0.65}\h{-0.5}\z{0.6}_\v{}\h{}\z{}