Does anyone know of existing LaTeX macros or packages for drawing Magnetic Resonance Imaging pulse sequences? I didn't find anything online. This is an example of pulse sequence:

pulse sequence http://lapmal.epfl.ch/files/content/sites/lapmal/files/shared/proj/ed_mri/pulse_sequence.jpg

Thank you so much for your help!

  • 1
    Welcome to LaTeX! Welcome to TeX.SX! It would be helpful if you described what MRI pulse sequences are, and perhaps provided an example of what it usually looks like. – JP-Ellis May 5 '16 at 14:44
  • @JP-Ellis MRI pulse sequence are diagrams used in magnetic resonance imaging. I didn't explained it because I think that who knows how to draw them also knows what they are. I'm sorry for not having described it well. I edited the question adding an image as example. – Marta May 5 '16 at 14:55
  • 1
    Such diagrams are definitely possible in LaTeX. If you have the data already in a file of the plots, then you can produce these using PGFPlots. You could also use TikZ do draw them manually. Also, since the plots are fairly simple, it wouldn't be too hard to create a few macros and/or styles to automate a few steps at once. Have a go at using these packages, and if you encounter further issues feel free to ask again here. Unfortunately, some people here don't really like "draw this for me" questions. – JP-Ellis May 5 '16 at 15:01
  • @JP-Ellis I didn't want anyone to draw it for me, sorry for giving that feeling. I only needed some suggestions because it's my first time with diagrams in LaTeX and I was wondering if any specific package for MRI exists. I will try TikZ. Thank you for your help! – Marta May 5 '16 at 15:06
  • 2
    Did you have a look at this blog? It explains a method to generate Pulse Sequence Diagrams using metapost (but most of its links are dead…). – Clément May 5 '16 at 15:21

I was looking for a solution to draw MR pulse sequences and came across the following website:


Unfortunately, it seems like the project died out.

I then came across this question and saw the suggestion in the comments linking to a blog using MetaPost to draw sequences. For those who are interested, I've dug up the dead links on the Internet Archive, fixed some font issues, and put the code up on Github (with proper credits to the original author, of course), so that others can profit from it as well. I've used it successfully and found it to be a useful and quick for drawing publication quality sequences.

Here's an example EPI sequence: EPI with blipped-CAIPI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.