باختصار
مقالة عن الطريقة التي صارت بها المدن البريطانية تعتمد توقيت لندن. كل مصدر يستشهد به الكاتب يصير حاشية مرقّمة أسفل الصفحة، وتأتي قائمة المؤلفات في النهاية.
ما الذي ستنضده
مستلّة من سلسلة تاريخ التقنية في مجلة علمية: مقالة من نحو 1,100 كلمة عن تخلّي المدن البريطانية عن ظهرها المحلي لصالح ظهر لندن بين 1840 و1880. الصفحة 156 × 234 mm بهوامش متناظرة، بخط Crimson Pro بحجم 11/14 pt، وعلى النصف الأعلى من الصفحة الأولى شريط بأخضر السكك الحديدية. يكتب المؤلف كل مصدر مفتاحًا، [@howse1980, 87]، فينضّد Postext كلًّا منها حاشية مرقّمة أسفل الصفحة بأسلوب شيكاغو للحواشي وقائمة المراجع. الحاشية الأولى لعمل ما تذكر المؤلف والعنوان والناشر؛ وكل حاشية بعدها تذكر الصيغة المختصرة. حواشي المؤلف الاستطرادية تأخذ أرقامها من التسلسل نفسه، وقائمة المراجع تختم المقالة.
تجيب هذه الوصفة عن
- كيف أنضد الاستشهادات حواشي سفلية، بأسلوب Chicago، مع صيغ مختصرة للاستشهادات اللاحقة؟
- كيف أستشهد بالأعمال وأبني قائمة المراجع بأسلوب APA أو IEEE أو أسلوب استشهاد آخر؟
الجواب المختصر
// The text cites with [@howse1980, 87]; a note style turns every citation into a
// footnote. The first note for a work gives it in full, later ones in the short form
// (author, short title, page), and the bibliography lists the works by author.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
notes: 'footnote', // each citation in a note at the foot of the page
link: true, // a note's citation jumps to its bibliography entry
bibliography: { fontSize: em(0.92), lineHeight: pt(13), hangingIndent: em(1.8),
entrySpacing: pt(3) },
};
// The citation notes share the numbering and the look of the author's own [^notes].
const footnotes = {
placement: 'column', numbering: 'chapter',
fontSize: pt(8.5), lineHeight: pt(10.75), spaceBetween: pt(2),
textAlign: 'left', // ragged: the gap after a note's number stays the same in every note
separator: { width: 0.3, lineWidth: pt(0.5), color: col('rule') },
};
المكونات
- الميزات
- الاستشهادات في الحواشيالاستشهادات بأسلوب توثيققائمة المراجع من البيانات المرجعيةالحواشي السفليةصفحات افتتاح مصمَّمةسمات العنوانالترويسات وأرقام الصفحاتهوامش متناظرةأنماط الفقراتلوحة ألوان دلاليةالتصدير إلى PDF
- الخطوط
- Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1)
- الأصول
- لا شيء: كل صورة مرسومة بالشيفرة
طريقة التحضير
#1 · حاشية لكل استشهاد
الشيفرة في الجواب المختصر أعلاه. chicago-notes-bibliography أسلوب حواشٍ، فالاستشهاد في النص يترك رقمًا مرفوعًا، وتذهب كلماته إلى حاشية سفلية مرقّمة مع حواشي المؤلف [^notes]؛ وnotes: 'footnote' يصرّح بذلك. يتتبّع citeproc-js المؤلفات التي سبق الاستشهاد بها، فتقرأ الحاشية 3 Derek Howse, Greenwich Time and the Discovery of the Longitude (Oxford University Press, 1980), 87، وتقرأ الحاشية 4، التي تستشهد بالكتاب نفسه مرة أخرى، Howse, Greenwich Time and the Discovery of the Longitude, 90–91. الأسلوب المضمَّن هو الطبعة الثامنة عشرة من دليل شيكاغو، وهي تُسقط Ibid. وتكرّر الصيغة المختصرة، لذلك تطبع الحاشيتان 11 و12 الصيغة المختصرة مرتين.
#2 · حواشي المؤلف تستشهد هي أيضًا
الاستشهاد داخل [^note] يبقى في تلك الحاشية ويُنضَّد داخل السطر، كاملًا إن كان أول ظهور للعمل: الحاشية 1 جملة المؤلف تتبعها الإحالة الكاملة إلى Schivelbusch. كل استشهاد ينتهي بنقطة الأسلوب، فالحاشية التي تُختم باستشهاد لا تحتاج إلى نقطة خاصة بها في ملف Markdown.
#3 · السوابق واللواحق ومحدِّدات المواضع
يضع [see @simmons1991, 346–47; and @bartky2000, chap. 9] الكلمة see قبل العمل الأول، ويفصل بين العملين بفاصلة منقوطة، ويحتفظ لكل عمل بمحدِّد موضعه. الرقم المجرد صفحة؛ وchap. وcap. تدلّان على فصل في كلتا اللغتين. والنص الذي يلي محدِّد الموضع لاحقة: [@howse1980, 82–84, on the mail-coach timepieces] يطبع العبارة بعد الصفحات.
#4 · الافتتاح داخل شريط
const BAND = 122; // mm from the trim's top
const opener = {
enabled: true,
minHeight: mm(BAND - MARGIN.top + 9), // the text starts 9 mm under the band
slot: { elements: [
{ kind: 'box', id: 'band', style: { backgroundColor: col('green') },
placement: { ...at('page', 'top-left'), size: { width: 'fill', height: mm(BAND) } } },
{ kind: 'text', id: 'kicker', content: '{attr.kicker}', fontFamily: LABEL, fontWeight: 600,
fontSize: pt(7.5), letterSpacing: pt(1.4), textTransform: 'uppercase', color: col('tint'),
align: 'left', placement: at('container', 'top-left', 0, 4) },
{ kind: 'text', id: 'years', content: '{attr.years}', fontFamily: TEXT, fontWeight: 300,
fontSize: pt(54), lineHeight: 1, color: col('tint'), align: 'left',
placement: at('container', 'top-left', -1, 16) },
{ kind: 'text', id: 'title', content: '{titleText}', fontFamily: TEXT, fontWeight: 600,
fontSize: pt(25), lineHeight: 1.08, color: col('paper'), align: 'left', overflow: 'wrap',
placement: { ...at('container', 'top-left', 0, 47),
size: { width: mm(112), height: 'auto' } } },
{ kind: 'text', id: 'byline', content: '{attr.byline}', fontFamily: LABEL, fontWeight: 600,
fontSize: pt(9), letterSpacing: pt(0.6), color: col('tint'), align: 'left',
placement: at('container', 'top-left', 0, 92) },
] },
};
يمتد الشريط 122 mm نزولًا من حدّ القص، ويبدأ النص على بعد 9 mm تحته. التاريخان يأتيان من سمة في العنوان، years="1840–1880"، منضّدة بخط Crimson Pro Light بحجم 54 pt، فتعرض البطاقة رقمًا بحجم العنوان؛ وسمة اسم المؤلف تغذّي أيضًا الترويسة في الصفحات الزوجية.
const palette = {
ink: '#211d1a', green: '#24493d', tint: '#dfe8e2', rule: '#b7b0a4', muted: '#6a645b',
paper: '#fbf9f4',
};
// col() links a colour to its palette entry; the hex is the value the entry holds today.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.green })
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
الوصفة كاملة
// ═══ Postext Cookbook · Nº 089 · A history essay with Chicago notes ═══════════════
// https://postext.dev/en/cookbook/history-essay-chicago-notes
// Code: MIT · Text: original (CC BY 4.0) · Pictures: none
// Fonts: Crimson Pro, IBM Plex Sans Condensed (SIL OFL 1.1) · Needs postext ≥ 1.25.0
import {
buildDocumentWithFonts, renderPageToCanvas, registerCitationEngine,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
import { createCiteprocEngine, STYLES, LOCALES } from 'https://esm.sh/postext-citeproc';
const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'history-essay-chicago-notes';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: a railway green for the opener band, ink and warm paper for the rest
const palette = {
ink: '#211d1a', green: '#24493d', tint: '#dfe8e2', rule: '#b7b0a4', muted: '#6a645b',
paper: '#fbf9f4',
};
// col() links a colour to its palette entry; the hex is the value the entry holds today.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
const colorPalette = Object.entries({ ...palette, 'main-color': palette.green })
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
// #endregion
const TEXT = 'Crimson Pro', LABEL = 'IBM Plex Sans Condensed';
const TRIM = { width: 156, height: 234 }; // a journal offprint, trimmed like a trade book
const MARGIN = { top: 22, bottom: 22, inner: 20, outer: 17 };
const LEAD = 14; // pt
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
// #region answer: Chicago notes and bibliography, one note per citation
// The text cites with [@howse1980, 87]; a note style turns every citation into a
// footnote. The first note for a work gives it in full, later ones in the short form
// (author, short title, page), and the bibliography lists the works by author.
registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
const citations = {
style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
notes: 'footnote', // each citation in a note at the foot of the page
link: true, // a note's citation jumps to its bibliography entry
bibliography: { fontSize: em(0.92), lineHeight: pt(13), hangingIndent: em(1.8),
entrySpacing: pt(3) },
};
// The citation notes share the numbering and the look of the author's own [^notes].
const footnotes = {
placement: 'column', numbering: 'chapter',
fontSize: pt(8.5), lineHeight: pt(10.75), spaceBetween: pt(2),
textAlign: 'left', // ragged: the gap after a note's number stays the same in every note
separator: { width: 0.3, lineWidth: pt(0.5), color: col('rule') },
يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)
تنويعات
#ضع الحواشي في النهاية
بعض المجلات تجمع الحواشي بعد المقالة؛ وتحتفظ الاستشهادات بصيغتيها الكاملة والمختصرة.
- placement: 'column', numbering: 'chapter',
+ placement: 'chapterEnd', numbering: 'chapter',#اكتب Ibid. من جديد
الطبعة السابعة عشرة من أسلوب شيكاغو تطبع Ibid. في الحاشية التي تكرّر العمل السابق. الصق ملف .csl لذلك الأسلوب، من مستودع أساليب Zotero، في سلسلة نصية واستعمله أسلوبًا مخصصًا.
- style: 'chicago-notes-bibliography', // CMOS 18th edition, notes and bibliography
+ style: 'custom', customStyle: CHICAGO_17TH_CSL, // the XML of the .csl fileأخطاء شائعة
- لا تختم الحاشية بنقطة بعد الاستشهاد: الأسلوب يختم الاستشهاد بنقطة أصلًا، وPostext لا يدمج النقطتين، فتنتهي الحاشية بنقطتين.
- في أسلوب الحواشي، يترك
@howse1980بلا أقواس رقم الحاشية وحده في الجملة، As ¹ says، بلا اسم المؤلف. اكتب الاسم بنفسك واستشهد بين أقواس:As Howse says,[@howse1980].
الحقوق
- الوصفة
- Ignacio Ferro
- النص
- نص أصلي, CC BY 4.0
- الخطوط
- Crimson Pro (SIL OFL 1.1) · IBM Plex Sans Condensed (SIL OFL 1.1)
- الشيفرة
- MIT، مثل Postext
حرّر هذا الشرح ↗ (يفتح في تبويب جديد)مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)


