Online Academic Paper Structure Guide

Academic Paper Structure Guide

A guide to the standard IMRaD (Introduction, Methods, Results, and Discussion) format.

${itemData.purpose}

`; if (itemData.questions.length > 0) { contentHTML += `

Key Questions to Answer

    ${itemData.questions.map(q => `
  • ${q}
  • `).join('')}
`; } if (itemData.phrases.length > 0) { contentHTML += `

Common Phrases

    ${itemData.phrases.map(p => `
  • ${p}
  • `).join('')}
`; } content.innerHTML = contentHTML; button.addEventListener('click', () => { const isOpen = button.classList.toggle('open'); content.classList.toggle('open', isOpen); button.querySelector('svg').style.transform = isOpen ? 'rotate(180deg)' : 'rotate(0deg)'; }); itemWrapper.appendChild(button); itemWrapper.appendChild(content); accordionContainer.appendChild(itemWrapper); }; const downloadPdf = () => { const { jsPDF } = window.jspdf; const doc = new jsPDF(); doc.setProperties({ title: 'Academic Paper Structure Guide' }); doc.setFontSize(20); doc.text('Academic Paper Structure Guide', 105, 20, { align: 'center' }); let finalY = 30; guideData.forEach(section => { if (finalY > 260) { // Add new page if content gets too long doc.addPage(); finalY = 20; } doc.setFontSize(16); doc.setFont(undefined, 'bold'); doc.text(section.title, 14, finalY); finalY += 8; doc.setFontSize(12); doc.setFont(undefined, 'normal'); doc.setFont(undefined, 'bolditalic'); doc.text('Purpose:', 14, finalY); doc.setFont(undefined, 'normal'); let purposeLines = doc.splitTextToSize(section.purpose, 170); doc.text(purposeLines, 35, finalY); finalY += (purposeLines.length * 5) + 5; if (section.questions.length > 0) { doc.setFont(undefined, 'bolditalic'); doc.text('Key Questions:', 14, finalY); finalY += 5; doc.setFont(undefined, 'normal'); section.questions.forEach(q => { doc.text(`• ${q}`, 20, finalY, {maxWidth: 160}); finalY += 6; }); finalY += 2; } if (section.phrases.length > 0) { doc.setFont(undefined, 'bolditalic'); doc.text('Common Phrases:', 14, finalY); finalY += 5; doc.setFont(undefined, 'normal'); section.phrases.forEach(p => { doc.text(`• ${p}`, 20, finalY, {maxWidth: 160}); finalY += 6; }); finalY += 2; } finalY += 5; // Extra space between sections }); doc.save('academic-paper-guide.pdf'); }; // --- INITIALIZATION --- guideData.forEach(createAccordionItem); pdfDownloadBtn.addEventListener('click', downloadPdf); });
Scroll to Top