adding some stuff needed for the theory block

This commit is contained in:
nemu 2009-03-22 10:11:04 +00:00
parent 094002948e
commit c34679e350
28 changed files with 500 additions and 12 deletions

View File

@ -184,14 +184,6 @@ THEORY
</property>
</widget>
<widget class="QComboBox">
<item>
<property name="text">
<string>Static Gauss KT</string>
</property>
<property name="pixmap">
<pixmap>image1</pixmap>
</property>
</item>
<property name="name">
<cstring>fTheoryFunction_comboBox</cstring>
</property>
@ -238,10 +230,7 @@ simplExpo 7</string>
</widget>
<images>
<image name="image0">
<data format="PNG" length="270">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000000d549444154388db594510e84200c44a78653d1f34faf853fd66d2a2aa8fb1222697068cb80d0884cadda7c6e46392c1860c9010da2bd8d4629f1670140a3200869d536ad8a2d63cfc805bc7c338ac766b33eb4c279dadb5be1b72c5ab5c5d2f3028fcda6bff042f40dd2f3f119355477c7708fdd15a3eef8ecf0f2868f847bb733332c1c9d43a344f15e9bca51e25a3cde52493736d3e2d85cb27ff36861d0081ad18b15607b783a785cabb67d4da7bf5e890070f34eb5c245cee2c4cfebc533ca593e211ee2652bdef0bfd7ed4bb1e8f5a947688615932a98c849f587290000000049454e44ae426082</data>
</image>
<image name="image1">
<data format="XPM.GZ" length="5109">789ced984973b2481880eff91556b8a5a6fa0304223535075470c1c4ac9f265373689a6689411391903835ff7d7a43518931c961bec3bcc6e581b79ba757a8fc38a98d2fce6a273f8ed2055cc4a8862238af9df85992bcfdf9d71f7f1f1d2bba51538d9a21d794e3df8e8e2f6ba826c90dfaa2f85320e258a7a8c88aa6c81415860dfaa2a809441ccf29aa327d51bc16a871bc6768aa0dd5a478251071d429d695ba5c67561702358e2a43b3dea8b3e43b8188a3475153345963c903811ac75b86506b6890e28d40c47148515775595729ca02758e7d86503775963ca268a88662b0b373813ac736436898064b3e13e8735c503cad9f2aa7758a8f02758ecf0cbd53f3d4a30805fa1c11c5469df43a4b7e11a8737c62e835cc064b7e15e8737ca3686aa6626a14b1409da3cf1099a689287604fa1ca714a10615c89243813a4787218210b2e4ae40cc31a3e8699eeab1e49e408363ccd0f7a0e7537405628e1245a42315e9149b020d8e13863e828825cf04628e16455ff7559f252f051a1c6d86d8873ea6f82010731c53c40656b14131116870cc19620c314b8e04628e29c5c008d48025b7041a1c03864100838022101808041204bf68303fe8fdda7e00fdeff7c5d8f6f3717040a930faf485e2874f170113beb6ca7e8fc901e5a607356233a2f01dc159f957f0f43c5f1f4c93c5b6df21039dcd3ece299b3dc1907c052f9567a578659763a20416141078856f54e72b7ee172cfc93c2f93452f9c8166fc5ed5ada7d295c95f30cd5811d29afcadf083ed365c670160570cdf8333d9f24bd22abd4e6bc3af4b1452d09bbce797f8a40bfb8f7df771f0021ea6c1fce58ca746acace8bf75903376f77cf7ca5d6c0d9fcb7e49f7c2aab85ebbd4b78e44ea236fe0ba60c72f823466c42f401119d988f456fa0a2c6b29a6c2d201d57ef9ec72e5e7140bb59d82e82a29f945b3eb0abfc94d096e7bfc80e4daee8e9f08e297e3a09d019c74a81f0b4ce6c832047eb51f003f577eb8984d7df2e3fca1e407c055859f1f32cb388e27513c7472d01ae5c9082e9a1b7ead582a7e926e0b3acf6461f82861234a0391f708d25575b01f89de504cadcef85dbf3b369c59789559a97f2f91debfc976ea92cea4acb76ad17a430b10ffb6c3b50e7b1e6231def64bc8c145463ef86ac96f9ac2532c39e117f1e2525af85964860fc88275303db2f66b75f8bed4ea3bf1cbca2a98ae64e2b168ffbabdcc2f66616ffb8dc9c133877c703fb91893277bc32fe7c5e3a8f09bbb20f5c8821df436fd8024f3ee51d6c3fb511c3ebe648b7079a393e756d96f23a89fe70287982ceff2895df62b66977d4e7aedc01b64e5fab52e9b45f7affcc2fbe1d013fdcfd6476a5d77c73bf561b22984f34c26c52c55226aadd16a248bf5d11a4dade96ed13d7e3984c5b645f73fc7718a3bd8caaf470e161b34f31b9303cd9dfa26b7e443725829896e2a9341b9e93c52c739504ff891095d0fb62ae161b776cbecbdbfcdb7ce2177d7ef13c1fd3400f46abfcad8e7976cdedfd84de0db7ea4cbfb9fa864eff341b2f180567ed2f9861fbc2db6c46ffbedb9d657ca14ebb7d8060ea9c40eab66e54731ee7c9cb313627f26f3583c9cdcc2031e8ded41fe71d256e4fea78b0017f2ff6fb81bebec970a36be1e84e8bf1679278efff9fde85ff6152716</data>
<data format="PNG" length="411">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000016249444154388d95544dae86200c9c1a169e471217707e5890d4f3b830e95b687d15e51349889982fd19a6252e0c6c001cb06e2b4637629abde0584b61aacf7bf0b06eebc5e88d5360b74fc18b9ed7f75bd82908210a01e0c204e33c8628029c99e8fd373ca853009023c3a530290d1a619abdf464aa7818dd682b3f232f8569ddd6cb594fa6578eab9f2f0f5105ede57888214ace692f3d33d591951602be719c72a2d18dc839512b93737de0989e74dcc2d3eca557d7371db7b0364daf3a865eceded41142949b8e7b38b32b86288fe7371d77bcb66d1ace4ceadcce9669f6a2f79dcdf0edbb1426752200c874ec8da6c37e6e2e0cfbadb798cd99c18571b11546ca090ed807cf85db23b2da6388a27ab7034a39d54a08403afc383c7514dab8a5e3a530a5431d4b667200e0c37f16e968efa70adede40a7e414bc3875663b4833d44a6adc548f59832dd3ce865fb8a9fbdaf1178e7f656ea724a59cba75fce5fb0774073f42f0dd40cc0000000049454e44ae426082</data>
</image>
</images>
<connections>

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\exp\left[ -(\sigma/\gamma)^2 \left( e^{-\gamma t} - 1 + \gamma t\right) \right]
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
A
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
j_0(2\pi\nu t + \phi \pi/180)
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
1/3 \left[ 1 + 2\, \left\{ 1 - (\sigma t)^2 - \lambda t\right\}\right]\, e^{-(\sigma t)^2/2 - \lambda t}
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\exp\left[-(\lambda t)^\beta\right]
\end{displaymath}
\end{document}

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\exp(-\lambda t)
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\alpha j_0\left(2\pi\nu t + \phi\pi/180\right) \exp(-\lambda_{\rm T} t) + (1-\alpha) exp(-\lambda_{\rm L} t)
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\alpha \cos\left(2\pi\nu t + \phi\pi/180\right) \exp(-\lambda_{\rm T} t) + (1-\alpha) exp(-\lambda_{\rm L} t)
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\sum_{k=0}^n a_k (t-t_0)^k
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\exp(-\lambda t)
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\exp\left[-1/2(\sigma t)^2\right]
\end{displaymath}
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
1/3 \left[ 1 + 2\, \left\{ 1 - (\sigma t)^2 \right\}\right]\, e^{-(\sigma t)^2/2}~
\end{displaymath}
\end{document}

233
src/musrgui/latex_images/textogif Executable file
View File

@ -0,0 +1,233 @@
#! /usr/bin/perl
#
# T E X T O G I F
#
# by John Walker
# http://www.fourmilab.ch/
#
$version = '1.1 (2003-11-07)';
#
#
# Converts a LaTeX file containing equations(s) into a GIF file for
# embedding into an HTML document. The black and white image of the
# equation is created at high resolution and then resampled to the
# target resolution to antialias what would otherwise be jagged
# edges.
#
# Online documentation with sample output is available on the Web
# at http://www.fourmilab.ch/webtools/textogif/
#
# Write your equation (or anything else you can typeset with LaTeX)
# in a file like:
#
# \documentclass[12pt]{article}
# \pagestyle{empty}
# \begin{document}
#
# \begin{displaymath}
# \bf % Compiled formulae often look better in boldface
# \int H(x,x')\psi(x')dx' = -\frac{\hbar2}{2m}\frac{d2}{dx2}
# \psi(x)+V(x)\psi(x)
# \end{displaymath}
#
# \end{document}
#
# The "\pagestyle{empty}" is required to avoid generating a huge
# image with a page number at the bottom.
#
# Then (assuming you have all the software described below installed
# properly), you can simply say:
#
# textogif [options] filename ...
#
# to compile filename.tex to filename.gif, an interlaced,
# transparent background GIF file ready to use an an inline image.
# You can specify the base name, for example, "schrod", rather than
# the full name of the TeX file ("schrod.tex"). TeX requires the
# input file to have an extension of ".tex". The command line
# options are described in the help text at the end of this program
# and in the "Default Configuration" section below.
#
# A sample IMG tag, including the image width and height is printed
# on standard error, for example:
#
# <img src="schrod.gif" width=508 height=56>
#
# Required Software
#
# This script requires the following software to be installed
# in the standard manner. Version numbers are those used in the
# development and testing of the script.
#
# Perl 5.8.0 (anything later than 4.036 should work)
# TeX 3.14159 (Web2C 7.3.1)
# LaTeX2e <2000/06/01>
# dvips dvipsk 5.86
# Ghostscript 6.52 (2001-10-20)
# Netpbm 9.24
#
#
# Default Configuration
#
# The following settings are the defaults used if the -dpi and
# -res options are not specified on the command line.
#
# The parameter $dpi controls how large the equation will appear
# with respect to other inline images and the surrounding text.
# The parameter is expressed in "dots per inch" in the PostScript
# sense. Unfortunately, since there's no standard text size in
# Web browsers (and most allow the user to change fonts and
# point sizes), there's no "right" value for this setting. The
# default of 150 seems about right for most documents. A setting
# of 75 generates equations at half the normal size, while 300
# doubles the size of equations. The setting of $dpi can always be
# overridden by specifying the "-dpi" command line option.
#
$dpi = 150;
#
# The parameter $res specifies the oversampling as the ratio
# of the final image size to the initial black and white image.
# Smaller values produce smoothing with more levels of grey but
# require (much) more memory and intermediate file space to create
# the image. If you run out of memory or disc space with the
# default value of 0.5, try changing it to 0.75. A $res setting of
# 1.0 disables antialiasing entirely. The setting of $res can
# always be overridden by specifying the "res" command line option.
#
$res = 0.5;
#
# The $background parameter supplies a command, which may be
# void, to be inserted in the image processing pipeline to
# adjust the original black-on-white image so that its background
# agrees with that of the document in which it is to be inserted.
# For a document with the default grey background used by Mosaic
# and old versions of Netscape, use:
#
# $background = "ppmdim 0.7 |"; $transparent = "b2/b2/b2";
#
# If your document uses a white background, the void specification:
#
# $background = ""; $transparent = "ff/ff/ff";
#
# should be used. For colour or pattern backgrounds, you'll have
# to hack the code. The reason for adjusting the background is to
# ensure that when the image is resampled and then output with a
# transparent background the edges of the characters will fade
# smoothly into the page background. Otherwise you'll get a
# distracting "halo" around each character. You can override this
# default specification with the -grey command line option.
#
$background = ""; $transparent = "ff/ff/ff";
#
# Image generation and decoding commands for GIF and PNG output.
#
$cmdGIF = 'ppmtogif';
$cmdGIFdecode = 'giftopnm';
$cmdPNG = 'pnmtopng';
$cmdPNGdecode = 'pngtopnm';
#
# Default image creation modes
#
$imageCmd = $cmdGIF;
$imageCmdD = $cmdGIFdecode;
$imageExt = 'gif';
#
# Command line option processing
#
while ($ARGV[0] =~ m/^-/) {
$_ = shift(@ARGV);
s/^--/-/; # Allow GNU-style -- options
if (m/^-d/) { # -dpi nnn
$dpi = shift(@ARGV);
} elsif (m/^-gi/) { # -gif
$imageCmd = $cmdGIF;
$imageCmdD = $cmdGIFdecode;
$imageExt = 'gif';
} elsif (m/^-gr/) { # -grey n
$grey = shift(@ARGV);
$background = "ppmdim $grey | ";
$greylev = int(255 * $grey);
$transparent = sprintf("%02x/%02x/%02x", $greylev, $greylev, $greylev);
} elsif (m/^-h/) { # -help
&help();
exit(0);
} elsif (m/^-p/) { # -png
$imageCmd = $cmdPNG;
$imageCmdD = $cmdPNGdecode;
$imageExt = 'png';
} elsif (m/^-r/) { # -res nnn
$res = shift(@ARGV);
} elsif (m/^-v/) { # -version
print("Version $version\n");
exit(0);
}
}
#
# Main file processing loop
#
foreach $f (@ARGV) {
$f =~ s/(.*)\.tex$/$1/;
&syscmd("echo x | latex $f \n");
&syscmd("dvips -f $f >_temp_$$.ps\n");
# Assemble and execute the command pipeline which generates the image.
# Start by invoking Ghostscript with the pbmraw output device and
# output file set to standard output ("-") and the requested resolution.
# The -q (Quiet) option is required; otherwise Ghostscript will send
# processing information to standard output and corrupt transmission
# of the bitmap to the next component in the pipeline.
$cmd = "echo quit | gs -q -dNOPAUSE -r" . int($dpi / $res). "x". int($dpi / $res) .
" -sOutputFile=- -sDEVICE=pbmraw _temp_$$.ps | " .
# Next we crop white space surrounding the generated text, promote
# the monochrome bitmap to a grey scale image with 8 bits per pixel,
# apply whatever background adjustment transform is requested, and
# scale the image to the desired size.
"pnmcrop -white | pnmdepth 255 | $background pnmscale " .
$res . " | " .
# Finally, convert the image to the desired output format and write
# the output file.
"$imageCmd -interlace -transparent rgb:$transparent >$f.$imageExt";
&syscmd($cmd);
# Sweep up debris left around by the various intermediate steps
&syscmd("rm $f.dvi $f.aux $f.log _temp_$$.ps");
# Print the reference to include this figure, including width and height,
# to standard error.
$r = `$imageCmdD $f.$imageExt | pnmfile`;
$r =~ m/(\d+) by (\d+)/;
print(STDERR "<img src=\"$f.$imageExt\" width=\"$1\" height=\"$2\">\n");
}
# Echo and execute a system command
sub syscmd {
local ($cmd) = @_;
print(STDERR "$cmd\n");
system($cmd) == 0 || die("Error processing command:\n\t$cmd\n\t");
}
# Print help text
sub help {
print <<"EOD"
usage: textogif [ options ] texfile...
Options:
-dpi n Set rendering dots per inch to n (default 150)
-gif Generate GIF image (default)
-grey Grey scale background level: 0 = black, 1 = white (default)
-help Print this message
-png Generate PNG image
-res n Set oversampling ratio, smaller = finer (default 0.5)
-version Print version number
For documentation and the latest version of this program
please visit the Web page:
http://www.fourmilab.ch/webtools/textogif/
EOD
;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

View File

@ -0,0 +1,9 @@
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
\begin{displaymath}
\cos\left(2\pi\nu t + \phi\pi/180\right)
\end{displaymath}
\end{document}

View File

@ -21,5 +21,154 @@
Starting with &gt;= Qt4.2 this will be linked automatically but until then ...; sorry ;-)
</help_main>
</help_section>
<theory_functions>
<func>
<name>asymmetry</name>
<comment></comment>
<label> : Asymmetry</label>
<pixmap>latex_images/asymmetry.png</pixmap>
<params>1</params>
</func>
<func>
<name>simplExpo</name>
<comment>(rate)</comment>
<label> : simple Exp</label>
<pixmap>latex_images/simpleExp.png</pixmap>
<params>1</params>
</func>
<func>
<name>generExpo</name>
<comment>(rate exponent)</comment>
<label> : general Exp</label>
<pixmap>latex_images/generalExp.png</pixmap>
<params>2</params>
</func>
<func>
<name>simplGss</name>
<comment>(rate)</comment>
<label> : simple Gauss</label>
<pixmap>latex_images/simpleGauss.png</pixmap>
<params>1</params>
</func>
<func>
<name>statGssKT</name>
<comment>(rate)</comment>
<label> : static Gauss KT</label>
<pixmap>latex_images/statGssKT.png</pixmap>
<params>1</params>
</func>
<func>
<name>statGssKTLF</name>
<comment>(frequency damping)</comment>
<label> : static Gauss KT LF</label>
<pixmap></pixmap>
<params>2</params>
</func>
<func>
<name>dynGssKTLF</name>
<comment>(frequency damping hopping-rate)</comment>
<label> : dynamic Gauss KT LF</label>
<pixmap></pixmap>
<params>3</params>
</func>
<func>
<name>statExpKT</name>
<comment>(rate)</comment>
<label> : static Lorentz KT</label>
<pixmap>latex_images/statExpKT.png</pixmap>
<params>1</params>
</func>
<func>
<name>statExpKTLF</name>
<comment>(frequency damping)</comment>
<label> : static Gauss KT LF</label>
<pixmap></pixmap>
<params>2</params>
</func>
<func>
<name>dynExpKTLF</name>
<comment>(frequency damping hopping-rate)</comment>
<label> : static Lorentz KT LF</label>
<pixmap></pixmap>
<params>3</params>
</func>
<func>
<name>combiLGKT</name>
<comment>(LorentzRate GaussRate)</comment>
<label> : combined Lorentz-Gauss KT</label>
<pixmap>latex_images/combiLGKT.png</pixmap>
<params>2</params>
</func>
<func>
<name>spinGlass</name>
<comment>(rate hopping-rate order)</comment>
<label> : zero field spin glass function</label>
<pixmap></pixmap>
<params>3</params>
</func>
<func>
<name>rdAnisoHf</name>
<comment>(frequency rate)</comment>
<label> : random anisotropic hyperfine function</label>
<pixmap></pixmap>
<params>2</params>
</func>
<func>
<name>abragam</name>
<comment>(rate hopping-rate)</comment>
<label> : Abragam</label>
<pixmap>latex_images/abragam.png</pixmap>
<params>2</params>
</func>
<func>
<name>internFld</name>
<comment>(phase frequency Trate Lrate)</comment>
<label> : internal Lorentz field</label>
<pixmap>latex_images/internalField.png</pixmap>
<params>4</params>
</func>
<func>
<name>TFieldCos</name>
<comment>(phase frequency)</comment>
<label> : TF cos</label>
<pixmap>latex_images/tfCos.png</pixmap>
<params>2</params>
</func>
<func>
<name>bessel</name>
<comment>(phase frequency)</comment>
<label> : spherical Bessel 0th order</label>
<pixmap>latex_images/bessel.png</pixmap>
<params>2</params>
</func>
<func>
<name>internBsl</name>
<comment>(fraction phase frequency Trate Lrate)</comment>
<label> : static internal Bessel</label>
<pixmap>latex_images/internalBessel.png</pixmap>
<params>5</params>
</func>
<func>
<name>skewedGss</name>
<comment>(phase frequency rate_m rate_p)</comment>
<label> : skewed Gaussian</label>
<pixmap></pixmap>
<params>4</params>
</func>
<func>
<name>polynom</name>
<comment>(tshift p0 p1 ... pn)</comment>
<label> : polynom</label>
<pixmap>latex_images/polynom.png</pixmap>
<params>4</params>
</func>
<func>
<name>userFcn</name>
<comment></comment>
<label> : user function</label>
<pixmap></pixmap>
<params>0</params>
</func>
</theory_function>
</musrgui_startup>