Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Hot answers tagged

27

You can use \draw plot for plotting functions. For the noise, you can use the rand function. In general, plotting is more comfortable using the PGFPlots package, which builds on PGF/TikZ: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[samples=200, domain=0:5*360] \begin{axis}[ width=10cm, height=...


11

This is a derived example from the »PGF/TikZ« user guide. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ excitation(\t,\w) = sin(\t*\w); noise = rnd - 0.5; source(\t) = excitation(\t,20) + noise; filter(\t) = 1 - abs(sin(mod(\t, 50))); speech(\t) = 1 + source(\t)*filter(...


11

With PSTricks. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \psset{plotpoints=200,linejoin=1} \pstVerb{realtime srand} \begin{document} \psLoop{10}{% \begin{pspicture}[showgrid=false](-4,-2)(4.5,2.5) \psaxes[labels=none,ticks=none,linecolor=gray]{->}(0,0)(-4,-2)(4,2)[$t$,0][$v$,90] \psplot[linecolor=red]{-3.8}{...


11

There is a deactivate option with media9 inclusion command \includemedia. Default setting of deactivate is pageclose to unload the media player upon page change. If set to onclick, the media keeps playing in the background. To automatically start playing, the activate command option must be set to either pageopen or pagevisible and the autoPlay Flash ...


6

You are using package media9 and its APlayer.swf app. It offers a number of ways to play/pause/stop playback (see Pg. 20 of the documentation): Pause: press mouse button over the widget and move the mouse out while keeping the button pressed press the Space bar on the keyboard Stop: (=pause+rewind) press the Home / Pos1 key on the keyboard Play: click ...


5

Requires Adobe Reader 9+ on Win or OSX: \documentclass{article} \usepackage{media9,graphicx} \begin{document} Sound sample: \includemedia[ addresource=sound_sample.mp3, transparent, flashvars={ source=sound_sample.mp3 &autoPlay=true }, ]{\includegraphics[height=1.44ex]{speaker.png}}{APlayer.swf} \end{document}


5

The following example defines \embedaudio. It implements the same specification for embedded media as the media9 LaTeX package. Audio files in the MP3 format are played back within the player component APlayer.swf shipping with media9. MP3 files specified as URL are first downloaded before embedding. Adobe Reader on the Windows or OSX platforms is required ...


3

There are two problems with your MWE. The first is that it looks like you're using the wrong encoding for the non-ASCII characters. Change \usepackage[latin1]{inputenc} to \usepackage[utf8]{inputenc} xstring should not have problems anymore. The second is that there's a problem of expansion. The following should work. But you can get around this ...


2

\documentclass[10pt,oneside]{article} \usepackage[draft]{media9} \let\oldincludemedia\includemedia \renewcommand\includemedia[3][]{% \leavevmode\phantom{\oldincludemedia[#1]{#2}{#3}}} \begin{document} aaa\includemedia[ width=0.3cm, height=0.3cm, activate=onclick, addresource=11.mp3, transparent=false, flashvars={source=11.mp3} ]{}{APlayer.swf}bbb \end{...


2

Version 2014/06/25 of media9 has updated players APlayer.swf and VPlayer.swf. The play and pause methods of their programming interface now accept optional arguments which are time offsets, measured in seconds, into the media file. Thus, a properly configured \mediabutton lets the embedded player play a portion of the media file. A generic sound example ...


1

If you want just the noise part without any sinusoidal excitation, you can customize the Donig's code by just removing the sinusoidal excitation. In addition, you can shift the noise location by just adding the xshift and yshift commands, as \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[ ...


Only top voted, non community-wiki answers of a minimum length are eligible