Difference between revisions of "Tips for Xmgrace"

From LPTMS Wiki
Jump to: navigation, search
m
(Typography)
Line 18: Line 18:
  
 
== Typography ==
 
== Typography ==
 +
 +
* when typing in a text , you can invoke the ''Font-Tool'' application by pressing
 +
Ctrl-e
 +
and then choose your token and press ''Apply''. It will insert the chosen token in your current text line.
  
 
* More general shortcuts for \f{Police} (''have to check this'')
 
* More general shortcuts for \f{Police} (''have to check this'')
 
  \0  Times-Roman
 
  \0  Times-Roman
  \1  bold
+
  \1  Times-Italic
  \2  italic
+
  \2  Time-Bold
  \3  bold-italic
+
  \3  Time-BoldItalic
 
  \4  Helvetica
 
  \4  Helvetica
  \5  Helvetica - bold
+
  \5  Helvetica-Oblique
  \6  Helvetica - italic
+
  \6  Helvetica-Bold
  \7  Helvetica - bold-italic
+
  \7  Helvetica-BoldOblique
  \8  greek
+
  \x Symbol (in particular Greek letters)
\9 symbol (or \x )
 
 
* Shortcuts for text manipulation
 
* Shortcuts for text manipulation
 
  \+  increase size
 
  \+  increase size
Line 43: Line 46:
 
  \n  newline
 
  \n  newline
 
  \f{} get back to original  
 
  \f{} get back to original  
  \u underline text
+
  \o begin overline
  \overline text
+
  \O end overline
  
Examples:
+
Useful examples:
  
* writing <math>\hbar</math>
+
{| cellpadding="10"
h\v{0.65}\h{-0.5}\z{0.6}_\v{}\h{}\z{}
+
| <math>\hbar</math> || <pre>h\v{0.65}\h{-0.5}\z{0.6}_\v{}\h{}\z{}</pre>
 +
|-
 +
| <math>\dot{x}</math> || <pre>\1x\h{-0.2}\v{0.7}.\v{}\h{}</pre>
 +
|-
 +
| <math>\infty</math> || <pre>\x¥</pre>
 +
|}

Revision as of 12:01, 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

  • when typing in a text , you can invoke the Font-Tool application by pressing
Ctrl-e

and then choose your token and press Apply. It will insert the chosen token in your current text line.

  • More general shortcuts for \f{Police} (have to check this)
\0  Times-Roman
\1  Times-Italic
\2  Time-Bold
\3  Time-BoldItalic
\4  Helvetica
\5  Helvetica-Oblique
\6  Helvetica-Bold
\7  Helvetica-BoldOblique
\x  Symbol (in particular Greek letters)
  • 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 
\o  begin overline
\O end overline

Useful examples:

\hbar
h\v{0.65}\h{-0.5}\z{0.6}_\v{}\h{}\z{}
{\dot  {x}}
\1x\h{-0.2}\v{0.7}.\v{}\h{}
\infty
\x¥