paper_json = json.dumps({
"title": "Outcome of Non-Operative Management of Splenic Blunt Trauma",
"author_list": ["Dhurgham Jabbar Hassoon"],
"keyword_list": ["Splenic trauma", "Non-operative management", "Blunt trauma", "Spleen"],
"abstract": "This study explores the thrilling roller-coaster ride of treating splenic blunt trauma without surgical intervention. We delve into the fates of 78 brave souls whose spleens were put to the test, challenging the norms of 'cut first, ask questions later.'",
"paragraphs": [
"The spleen, often overlooked in favor of more glamorous organs like the heart and brain, plays a crucial role in immune function and blood filtration. Yet, it is not immune to trauma, especially blunt trauma, which is as common as a plot twist in a daytime soap opera. Non-operative management (NOM) of splenic blunt trauma has emerged as a heroic alternative to the scalpel, offering patients a chance to keep their spleen and live to tell the tale.",
"Our study involved 78 patients who presented with splenic blunt trauma. Instead of whisking them off to the operating room, we opted for a more conservative approach, involving close monitoring, bed rest, and a hefty dose of optimism. The results were surprisingly good – like finding out your favorite TV show isn't getting canceled after all. Only a handful of patients required surgery after initial NOM, and the overall success rate was a resounding 'spleendid' (pun very much intended)."
]
})
import json
from pylatex import Document, Section, Subsection, Command, Package
from pylatex.utils import italic, NoEscape
def create_document():
paper = json.loads(paper_json)
paper_json = json.dumps({ "title": "Outcome of Non-Operative Management of Splenic Blunt Trauma", "author_list": ["Dhurgham Jabbar Hassoon"], "keyword_list": ["Splenic trauma", "Non-operative management", "Blunt trauma", "Spleen"], "abstract": "This study explores the thrilling roller-coaster ride of treating splenic blunt trauma without surgical intervention. We delve into the fates of 78 brave souls whose spleens were put to the test, challenging the norms of 'cut first, ask questions later.'", "paragraphs": [ "The spleen, often overlooked in favor of more glamorous organs like the heart and brain, plays a crucial role in immune function and blood filtration. Yet, it is not immune to trauma, especially blunt trauma, which is as common as a plot twist in a daytime soap opera. Non-operative management (NOM) of splenic blunt trauma has emerged as a heroic alternative to the scalpel, offering patients a chance to keep their spleen and live to tell the tale.", "Our study involved 78 patients who presented with splenic blunt trauma. Instead of whisking them off to the operating room, we opted for a more conservative approach, involving close monitoring, bed rest, and a hefty dose of optimism. The results were surprisingly good – like finding out your favorite TV show isn't getting canceled after all. Only a handful of patients required surgery after initial NOM, and the overall success rate was a resounding 'spleendid' (pun very much intended)." ] })
import json from pylatex import Document, Section, Subsection, Command, Package from pylatex.utils import italic, NoEscape
def create_document(): paper = json.loads(paper_json)
tex_filename = create_document() print('Created LaTeX document: {}'.format(tex_filename))