#Pharmacology diagrams redrawn with CeTZ

53 messages · Page 1 of 1 (latest)

polar cipher
#

Thought I'd use CeTZ to redraw a group of diagrams originally made with TikZ 3 months ago for a school term paper about opioids. The original had links to glossary entries within each diagram as a touch of superiority, but it seems the teacher didn't notice.
Despite the time it took to remake all of this, I believe the process ultimately offered useful insight into as well as experience with the repertoire of CeTZ. The main complications/inconveniences I encountered were the absence of a rounded corners option for line as a replacement for bezier curves, the tedium of fitting content in a CeTZ shape and inexistent placement options for strokes relative to a shape's border (which afaik is an issue on Typst's part). If you think you can put up with the mess that is my ad-hoc code with that in mind, here's the project.

rose mauve
#

These look really great!

small crater
#

Consider me impressed

#

I personally have no idea how to do it and gone back to biomedical drawing programs for this

polar cipher
#

Admittedly spent more time making these (the TikZ version) than writing the actual paper

fallen rose
#

what's your process of drawing things like this?
do you have snippets for common things or do you just know a lot by heart and build step by step?

polar cipher
#

Let's say I got most of the inspiration from the figures of other sources, excluding the concept/mind map

#

In terms of positioning things the process was mostly based on trial and error iirc

#

which was a pain in LaTeX

small crater
#

Very reminiscent of how I did Tikz when I don't have a tikz code generator

#

I was very grateful the exact figure I needed was on stackexchange that I used in a home work assignment

small crater
#

I find myself only using data based graphics like a diagram or doing a purely visual design with a real graphics program.

A friend motivated me to learn figma to make beautiful visualisations.

#

I haven't known you can do this at all without writing like 20 pages worth of code

#

like sure, you can do it, but does it actually pay off?

#

Studierst du Pharmakologie oder was?

polar cipher
#

oh Figma looks pretty cool

#

Almost done with my Abitur (oral exam next month)

#

might study medicine depending on my grades

small crater
#

Often overlooked fact: Metamizol (Novalgin) acts as a opioid in the spinal chord and as a cannabinoid in the brain. It actually stops opioid withdrawal syndrome in mice

polar cipher
#

o I could've considered that in the term paper of the 12th grade

small crater
#

Die Pharmakolische Zeitung is talking shit that metamizole is benign. It's very much liked as a CoX 1, 2 and 3 inhibitor and little side effects, but not much fever combating or something. The leucocytosis alone was enough for Metamizole to be banned in all other 1st world medical countries.

I am currently writing on a little report showing it causes lasting concentration and memory deficits when taken too long (after 3 weeks it seems) and too much (almost maximum dosage). My study with 37 people is small, but the data is clear.

polar cipher
#

ah yes when the embed would've been useful it doesn't appear

small crater
polar cipher
#

Danke

small crater
#

I promise, Figma is much easier ^^

polar cipher
#

will look into it the next time I get to make figures

small crater
#

If you go on with medicine, please promise me to stay scientific and not get the doctor habitus (thinking oneself is better than non doctors, always adhering to hospital hierarchy etc)

polar cipher
#

time will probably be more important by then

small crater
#

Yeah, study times are brutal, but you knowing latex and typst will give you a gigantic headstart. i recommend using a template to fill the paperwork in.

Mostly, they are not expecting you to be able to make that figures, just draw by hand

polar cipher
#

My plan was getting into clinical/preclinical research

#

obviously a long path

small crater
#

Even Math and Computer Science in the first semesters is largely done on paper or in a drawing program

small crater
#

I am just below

#

translative medicine

#

also, a few dips into clinical psych things

polar cipher
#

I honestly haven't checked to what extent I get to do research on a molecular level (I do like biochemistry) as a medicine graduate

small crater
#

i am gonna be honest

#

If you choose Medicine and don't interact with patients, in the scientific community, you are very low esteemed as the study doesn't teach much kf worth, but at least you don't need someone with an approbation to sign off what you are doing.

If you can imagine dealing with patients, you will find yourself that jt is much much easier and the clinical community basically only values things coming from other doctors

#

If you wanna treat or deal with patients, I would recommend getting into medicine and if you can parallel, if you can't, take on additional courses that give you a Dr. rer. nat. or Dr. rer. medic. At the WWU you can study experimental medicine aside which is pretty much it

#

And ffs please do a decent job at your thesis and not something that just gives you the title if you wanna stay in researching.

Any paper will be looked at and starting strong with a decent thesis will be good, so they know you want it

polar cipher
#

Sounds good, ty for the advice

delicate trail
#

Can I ask why you would prefer to do this rather than use inkscape/illustrator and export to svg?

polar cipher
#

I don't, I was looking for an excuse to learn CeTZ/TikZ

#

I think if eval in svg becomes a thing even links to document elements should be possible

#

although I do like the precision of CeTZ

frigid jetty
#

Would love a gui for cetz

#

Second thing on my wishlist is the ability to externalise the images too to hasten recompiles

kind ocean
frigid jetty
#

potentially, though it is certainly wasted processing power begging to be recovered. Perhaps a section could be marked as "standalone", and an serialization of the content it produces is saved in a ".typst" directory, keyed by the hash of the code within the scope.