باختصار
تقرير مدرسي في الكيمياء من أربع صفحات عن فحص الخل. يبيّن كيف تُكتب الصيغ الكيميائية والوحدات بأرقام صغيرة مرفوعة ومنخفضة، مع بضع معادلات كاملة.
ما الذي ستنضده
ثلاثة طلاب في الصف الثاني عشر يعايرون خل التفاح بهيدروكسيد الصوديوم ليعرفوا كم يحتوي من حمض الأسيتيك، ويكتبون العمل بوصفه التجربة العملية 4 في مقرر الكيمياء. يقع التقرير في أربع صفحات A4 مطبوعة على وجه واحد. في هامشه الأيسر البالغ 55 مم أرقام الأقسام، فيبدأ كل عنوان وكل فقرة على الحافة نفسها. السحاحة ورأس الجدول بلون رمادي أردوازي، واللون الوحيد هو وردي الفينولفثالين، فاتحًا لشريط رأس التقرير ولنطاق الكاشف على المنحنى، وداكنًا لأرقام الأقسام وقراءات الأس الهيدروجيني. الصيغ والوحدات في النص الجاري منضّدة بخط النص بأحرف سفلية وعلوية؛ ويُنضّد TeX التفاعل وثلاث معادلات معروضة. ويُحسب الجدول 1 ومنحنى الشكل 1 كلاهما من مصفوفة واحدة لقراءات السحاحة في المثال.
تجيب هذه الوصفة عن
- كيف أكتب الأرقام العلوية والسفلية والصيغ الكيميائية من دون محرّك الرياضيات الكامل؟
- كيف أنضد الرياضيات (مضمّنة، ومعروضة، ومعادلات) وأبقيها متجهية في ملف PDF؟
- كيف أرقّم العناوين (1، 1.1، 1.1.1) وأنسّق كل مستوى بطريقة مختلفة؟
- كيف أضيف شكلًا بتعليق مرقّم وأحيل إليه في النص («انظر الشكل 3.2»)؟
- كيف أصنع جدولًا فيه صفوف رأس، وخلايا مدمجة، وعروض أعمدة، ومحاذاة لكل خلية؟
- كيف أحصل على تسميتي «شكل» و«جدول» بلغة مستندي؟
- كيف أنضد قائمة مراجع أو مسردًا (مسافة بادئة معلّقة، حرف أصغر)؟
الجواب المختصر
// In the Markdown, ~…~ lowers a run and ^…^ raises it, in the text's own face at 58 % of
// its size: CH~3~COOH, OH^−^ (the minus is U+2212), 25,0 cm^3^, 0,100 mol·dm^−3^, p*K*~a~.
// The marks also work in captions and table cells, which keep their own face ($…$ there
// brings the maths face): the column heads this file writes, each a quantity over its unit:
const units = { cm3: 'cm^3^', conc: 'mol·dm^−3^' }; // the dot keeps a unit one word
const heads = t({ es: ['Valoración', 'V~inicial~', 'V~final~', 'V~b~ gastado'],
en: ['Titration', 'V~initial~', 'V~final~', 'V~b~ used'] })
.map((head, i) => (i ? `${head} / ${units.cm3}` : head)); // 'V~b~ gastado / cm^3^'
// Between $$ and $$ is TeX, set by MathJax as vector paths: the reaction, with mhchem's
// \ce{…} (it lowers the 3 of CH3COOH by itself), and the equations. initMathEngine() loads
// MathJax; a build that starts before it resolves prints grey boxes (gotcha: math-bundle).
await initMathEngine();
// A formula's x-height is TeX's 0.442 em of the type size and Inria Serif's is 0.495 em, so
// math.fontSizeScale lifts the formulas' lowercase to the height of the text's.
const MATH_SCALE = 0.495 / 0.442; // about 1.12
المكونات
- الميزات
- النص المرتفع والمنخفضالرياضياتصفحات افتتاح مصمَّمةالعناوين المرقّمةتثبيت عناصر التصميمسمات العنوانفصول بلا أرقامأنماط العناويناستشهادات تضع الأشكالتعليقات مرقّمةجداول من البياناتنمط الجدول«شكل» و«جدول» بلغتكنمط التعليقأشكال في هذا الموضع بالضبطقوائم المراجع ومسارد المصطلحاتإطارات التنبيهتقسيم الكلمات ولغة المستندالنصوص والخطوط والمربعات في تصاميم الصفحةالتصدير إلى PDF
- تستخدم أيضًا
- الترويسات بحسب دور الصفحةأنماط الفقراتالخطوط المضمَّنة في PDFأنواع موارد مخصّصةالأشكال والجداول بوصفها موارد
- الخطوط
- Inria Serif, Inria Sans, Sometype Mono (SIL OFL 1.1)
- الأصول
- لا شيء: كل صورة مرسومة بالشيفرة
طريقة التحضير
#1 · اكتب الصيغ نصًّا واحتفظ بـ TeX للمعادلات
الشيفرة في الجواب المختصر أعلاه. تضع ~…~ و^…^ المقطع بنسبة 58 % من حجم النص بخط النص نفسه، فتحتفظ CH~3~COOH وOH^−^ (علامة الطرح فيها U+2212) وcm^3^ بوزن الجملة المحيطة ولونها. وتعمل هذه العلامات أيضًا في التعليقات وخلايا الجداول، بخط التعليق أو الخلية نفسه؛ وتُنضَّد صيغ $…$ داخل السطر هناك أيضًا، بخط الصيغ. أما التفاعل، المكتوب بـ\ce{…} من mhchem، والمعادلات فهي TeX بين $$. وتشغّل await initMathEngine() محرّك الرياضيات قبل التنضيد، وهي تُستورد من المصدر نفسه الذي تُستورد منه بقية الرموز. وتُضبط math.fontSizeScale على 0.495 / 0.442، أي نحو 1.12: ارتفاع الحرف x في الصيغة هو ارتفاعه في خط TeX، أي 0.442 em من حجم الخط، وارتفاع x في Inria Serif يبلغ 0.495 em، فتأتي بهذا المعامل الحروف الصغيرة في الصيغة والنص بالارتفاع نفسه.
#2 · علّق أرقام الأقسام في الهامش
const face = (size, extra) => ({ fontFamily: SANS, fontWeight: 700, fontSize: pt(size),
lineHeight: 1.1, align: 'left', overflow: 'wrap', ...extra });
// The title starts on the text edge; the number hangs off its left side ('left-of') in a box
// of fixed width, set right. An auto width is clamped to the room the column leaves on that
// side, which is none: the box shrinks to 0 mm, the number wraps a character to a line and
// the heads grow by one to three lines (gotcha: negative-offsets).
const hang = (id, content, size, color, extra) => ({ kind: 'text', id, content,
...face(size, extra), color: col(color), align: 'right',
placement: { ...at('#title', 'left-of', -GAP), size: { width: mm(HANG) } } });
const hung = (size, color) => ({ enabled: true, slot: { elements: [
{ kind: 'text', id: 'title', content: '{titleText}', ...face(size), color: col('ink'),
placement: at('container', 'top-left') },
hang('number', '{number}', size, color),
] } });
const levels = [
{ level: 1, breakBefore: { enabled: true, parity: 'any' } }, // the next page, either side
// One grid line per head: the design sets the type, the level's size and leading the flow.
{ level: 2, numberingTemplate: '{2}', fontSize: pt(13), lineHeight: pt(LEAD),
marginTop: pt(LEAD), marginBottom: pt(0), advancedDesign: hung(13, 'phenol') }, // 5
{ level: 3, numberingTemplate: '{2}.{3}', fontSize: pt(BODY), lineHeight: pt(LEAD),
marginTop: pt(LEAD), marginBottom: pt(0), advancedDesign: hung(BODY, 'muted') }, // 5.1
];
تصميم كل مستوى عنوان خانة فيها عنصران: العنوان على حافة النص، و{number} مربوطًا left-of العنوان، على بعد 4 مم، في إطار عرضه 33 مم محاذى إلى اليمين. يحتاج الإطار إلى عرض ثابت. فالعرض التلقائي يُقيَّد بالمساحة التي يتركها العمود على يساره، وهو لا يترك شيئًا، فينكمش الإطار إلى 0 مم ويزيد كل عنوان من سطر إلى ثلاثة أسطر. لا يضبط fontSize وlineHeight في المستوى إلا المساحة التي يشغلها العنوان في التدفق، سطرًا واحدًا من 15 نقطة. أما التصميم فيحدد الحروف: الأقسام مرقّمة {2} بالوردي بحجم 13 نقطة، والأقسام الفرعية {2}.{3} بالرمادي بحجم النص.
#3 · ارسم رأس التقرير من عنوان H1
const BAND = 104; // mm from the top of the page to the band's foot, where the flask stands
// The byline: values from the H1's attributes and the frontmatter, one per line, each
// with its label hung in the margin like a section number.
const byline = [['{attr.authors}', t({ es: 'Autores', en: 'Authors' })],
['{attr.group}', t({ es: 'Grupo', en: 'Class' })],
['{attr.teacher}', t({ es: 'Profesora', en: 'Teacher' })],
['{publishDate}', t({ es: 'Fecha', en: 'Date' })]].flatMap(([content, label], i) => [
{ kind: 'text', id: `value${i}`, content, fontFamily: SERIF, fontSize: pt(10), align: 'left',
color: col('ink'), overflow: 'clip', placement: at('#title', 'below', 0, 7 + 4.6 * i) },
{ kind: 'text', id: `label${i}`, content: label, fontFamily: MONO, fontWeight: 500,
fontSize: pt(7.5), letterSpacing: pt(1.2), textTransform: 'uppercase', color: col('ink'),
align: 'right', overflow: 'clip',
placement: { ...at(`#value${i}`, 'left-of', -GAP, 0.7), size: { width: mm(HANG) } } },
]);
const report = { id: 'report', numbered: false, advancedDesign: { enabled: true,
// The band is a box, and boxes count towards the height a head reserves, so the text
// would start below its foot at 104 mm (where the burette ends too). minHeight sets a floor
// 8 mm lower, which the H1's bottom margin and the 15 pt grid round up to 15 mm.
minHeight: mm(BAND + 8 - TOP), slot: { elements: [
{ kind: 'box', id: 'band', style: { backgroundColor: col('blush') },
placement: { ...at('bleed', 'top-left'), size: { width: 'fill', height: mm(BAND) } } },
{ kind: 'image', id: 'burette', resourceId: 'burette', // its stand 12 mm into the margin
placement: { ...at('page', 'top-right', 12 - RIGHT), size: { width: mm(34) } } },
{ kind: 'text', id: 'course', content: '{attr.course}', fontFamily: MONO, fontWeight: 600,
fontSize: pt(7.5), letterSpacing: pt(1.2), textTransform: 'uppercase',
color: col('phenol'), overflow: 'clip', placement: at('container', 'top-left', 0, 2) },
{ kind: 'text', id: 'title', content: '{titleText}', ...face(27, { lineHeight: 1.06 }),
color: col('ink'), placement: { ...at('#course', 'below', 0, 5), size: { width: mm(96) } } },
hang('practice', '{attr.practice}', 27, 'phenol', { lineHeight: 1.06 }), // as a section's
...byline,
] } } };
const back = { id: 'back', numbered: false, advancedDesign: hung(13, 'phenol') }; // no number
يأخذ عنوان H1 الوحيد في التقرير نمط العنوان report، الذي يستبدل به رأسًا مرسومًا: شريط وردي عبر أعلى الصفحة، والسحاحة، وسطر المقرر، والعنوان مع رقم التجربة معلّقًا مثل رقم القسم، وسطر المؤلفين. تأتي قيم سطر المؤلفين من سمات العنوان ومن publishDate في البيانات التمهيدية (frontmatter). الشريط صندوق، والصناديق تُحتسب ضمن الارتفاع الذي يحجزه العنوان، لذا كان النص سيبدأ تحت أسفل الشريط حتى من دون minHeight، على بعد 104 مم من أعلى الصفحة. تضع minHeight حدًّا أدنى على بعد 8 مم تحت الشريط؛ ومع الهامش السفلي لعنوان H1 وشبكة 15 نقطة يبقى 15 مم من البياض فوق الملخص بدلًا من 4.7 مم.
#4 · سمِّ الجدول والشكل بلغة التقرير
// The built-in types follow the locale; defaultResourceTypes(LANG) hands them over so one can
// change. Their '{h1}.{n}' prints a plain 1: the H1 is unnumbered, and an empty {h1} drops out
// with its dot.
const resourceTypes = defaultResourceTypes(LANG).map((type) => (type.id === 'table'
? { ...type, captionStyle: { position: 'above' } } : type)); // a table's caption goes on top
const tableStyle = { rules: 'horizontal', borderColor: col('rule'), borderWidth: pt(0.5),
headerBackground: col('slate'), headerColor: col('paper'), headerFontFamily: SANS,
headerFontSize: pt(8.5), bodyFontFamily: MONO, bodyFontSize: pt(8.8), bodyColor: col('ink'),
cellPadding: mm(1.5) }; // figures in a monospace face, so the decimal separators line up
const captionStyle = { fontFamily: SANS, fontSize: pt(8.8), color: col('ink'), gap: mm(2.5),
labelColor: col('phenol'), note: { fontFamily: SANS, fontSize: pt(7.4), color: col('muted') } };
تتبع الأنواع المضمّنة locale المستند، فتكتب الطبعة الإسبانية Tabla وFigura بلا أي إعداد. وتعيد defaultResourceTypes(LANG) هذه الأنواع لتغيّر الوصفة واحدًا منها. ويطبع قالبهما {h1}.{n} الرقم 1 مجردًا هنا، لأن عنوان H1 في التقرير غير مرقّم، و{h1} الفارغ يسقط مع نقطته. يوضع تعليق الجدول فوقه، كما تفعل التقارير. ويستشهد النص بالجدول والشكل بـ:ref{id="lecturas" style="full"}، بلون الكلمات المحيطة ووزنها.
#5 · احسب الجدول والمنحنى من القراءات نفسها
const READINGS = [[0.00, 21.30], [0.40, 21.25], [1.10, 22.00], [0.25, 21.10]]; // cm³: synthetic
const titres = READINGS.map(([from, to]) => to - from); // the first is the rough titration
const fair = titres.slice(1);
const mean = fair.reduce((a, b) => a + b) / fair.length; // 20.87 cm³
const sd = Math.sqrt(fair.reduce((s, v) => s + (v - mean) ** 2, 0) / (fair.length - 1)); // 0.03
const num = (x) => x.toFixed(2).replace('.', t({ es: ',', en: '.' })); // the decimal comma
const cell = (content, align = 'right') => ({ content, align }); // figures set right
const label = (es, en) => cell(t({ es, en }), 'left');
// A summary row: its label set right, against its value, and two cells for the merge to cover.
const total = (es, en, x) => [cell(t({ es, en })), cell(''), cell(''), cell(num(x))];
const rows = [heads.map((head, i) => ({ ...cell(head, i ? 'right' : 'left'), isHeader: true })),
...READINGS.map(([from, to], i) => [i ? cell(String(i), 'left') : label('Orientativa', 'Rough'),
cell(num(from)), cell(num(to)), cell(num(titres[i]))]),
total('Media de 1–3', 'Mean of 1–3', mean), total('Desviación típica', 'Standard deviation', sd)];
// The last two labels span the first three columns. The cells a merge covers stay in the
// row, marked hiddenBy, which mergeCells writes (gotcha: merged-cells-hiddenby).
const table = [rows.length - 2, rows.length - 1].reduce((model, row) => mergeCells(model,
{ start: { row, col: 0 }, end: { row, col: 2 } }), { headerRowCount: 1, rows,
columnWidths: [1.8, 1, 1, 1.15] }); // relative: the first column holds the longest labels
من أزواج قراءات السحاحة الأربعة تأتي كل خلايا الجدول 1، والمتوسط والانحراف المعياري، ويحدد متوسط الحجم نقطة التكافؤ في نموذج الأس الهيدروجيني الذي يرسمه الشكل 1. الصف الأول هو الرأس (headerRowCount: 1)، ويمنح columnWidths عمود التسميات 1.8 حصة من العرض. لكل خلية align الخاص بها، ويمدّ mergeCells تسميتي المتوسط والانحراف عبر الأعمدة الثلاثة الأولى، محاذاتين إلى اليمين مقابل قيمتيهما. الأرقام بخط Sometype Mono، فتصطف فواصلها العشرية. ورؤوس الأعمدة كميات فوق وحدات، مثل V~b~ used / cm^3^، مُعلَّمة كما يُعلَّم النص.
#6 · اختم بمراجع بإزاحة معلّقة
const paragraphStyles = [
{ id: 'references', fontSize: pt(9), lineHeight: pt(12.5), textAlign: 'left',
hangingIndent: mm(6), spaceBetween: pt(4) }, // ragged, so never hyphenated
{ id: 'colophon', fontFamily: SANS, fontSize: pt(7.4), lineHeight: pt(10), color: col('muted'),
textAlign: 'left', firstLineIndent: pt(0), marginTop: pt(LEAD) },
];
تطبّق الكتلة :::paragraphs{style="references"} نمط الفقرة على كل مرجع: 9 على 12.5 نقطة، بحافة حرّة، مع إزاحة معلّقة 6 مم و4 نقاط بين المداخل. لا تُقسَّم الكلمات بالواصلة في الفقرات غير المضبوطة ما لم يطلب bodyText.hyphenation.ragged ذلك، لذا لا ينكسر عنوان طويل مثل Fundamentals of Analytical Chemistry إلا بين الكلمات. ولبيانات الطبع نمط خاص بها، Inria Sans بحجم 7.4 نقطة، مع سطر واحد من 15 نقطة فوقه.
الوصفة كاملة
// ═══ Postext Cookbook · Nº 028 · Lab report: formulas, subscripts and a titration curve ═══
// https://postext.dev/en/cookbook/lab-report-formulas
// Code: MIT · Text: original (CC BY 4.0) · Figures: drawn in code (CC BY 4.0)
// Fonts: Inria Serif, Inria Sans, Sometype Mono (SIL OFL 1.1) · Needs postext ≥ 1.57.0
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage, defaultResourceTypes,
initMathEngine, renderMath, mergeCells,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
const LANG = 'es'; // @lang: the language of the sample document ('es' | 'en')
const RECIPE = 'lab-report-formulas';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { // white paper and phenolphthalein: pale at the end point, deep past it
ink: '#1d2126', // text: a blue-black
phenol: '#ad2c5f', // the accent: numbers, kickers, stripes, the flask's liquid (6.4:1)
blush: '#f6d5e2', // the end-point pink: the head's band, the indicator's range on the curve
slate: '#5b6b7a', // the burette's steel, the table head
rule: '#cfd4da', // hairlines
muted: '#626a73', // running heads, notes (5.5:1)
paper: '#ffffff',
};
// col() links a colour to its palette entry; the hex is the value the entry holds.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
// 'main-color' as well: the engine's defaults are linked to it, so any left over turn pink.
const colorPalette = Object.entries({ ...palette, 'main-color': palette.phenol })
.map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
const [SERIF, SANS, MONO] = ['Inria Serif', 'Inria Sans', 'Sometype Mono'];
const [BODY, LEAD] = [10.5, 15]; // pt: text size and leading
// mm: A4, printed on one side, so not mirrored; the wide left margin holds the numbers
const [TRIM_W, TRIM_H, TOP, BOTTOM, LEFT, RIGHT] = [210, 297, 24, 22, 55, 31];
const MEASURE = TRIM_W - LEFT - RIGHT; // mm: 124, about 74 characters of Inria Serif
const GAP = 4; // mm between a hanging number and the text edge
const HANG = LEFT - GAP - 18; // mm: the number column, 18 mm clear of the trim
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });
// #region answer: formulas and units in the text face; TeX for the reaction and equations
// In the Markdown, ~…~ lowers a run and ^…^ raises it, in the text's own face at 58 % of
// its size: CH~3~COOH, OH^−^ (the minus is U+2212), 25,0 cm^3^, 0,100 mol·dm^−3^, p*K*~a~.
// The marks also work in captions and table cells, which keep their own face ($…$ there
// brings the maths face): the column heads this file writes, each a quantity over its unit:
const units = { cm3: 'cm^3^', conc: 'mol·dm^−3^' }; // the dot keeps a unit one word
const heads = t({ es: ['Valoración', 'V~inicial~', 'V~final~', 'V~b~ gastado'],
en: ['Titration', 'V~initial~', 'V~final~', 'V~b~ used'] })
.map((head, i) => (i ? `${head} / ${units.cm3}` : head)); // 'V~b~ gastado / cm^3^'
// Between $$ and $$ is TeX, set by MathJax as vector paths: the reaction, with mhchem's
// \ce{…} (it lowers the 3 of CH3COOH by itself), and the equations. initMathEngine() loads
يعمل ملف script.js المجمّع كما هو: الصقه في سكربت الوحدة (module) لأي صفحة، أو افتح الوصفة على CodePen. مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)
تنويعات
#لوّن ملاحظة السلامة بدلًا من تأطيرها
تعبئة بوردي نقطة النهاية تحل محل الحدّ، فيبقى للإطار عنصر تمييز واحد.
box('safety', t({ es: 'Seguridad', en: 'Safety' }), {
- border: { enabled: true, color: col('phenol'), width: pt(0.75) },
+ backgroundEnabled: true, background: col('blush'),#رقّم الجداول والأشكال حسب القسم
تصبح النتائج Table 5.1 وFigure 5.1، ويُعاد العدّ من جديد في كل قسم.
-const resourceTypes = defaultResourceTypes(LANG).map((type) => (type.id === 'table'
- ? { ...type, captionStyle: { position: 'above' } } : type)); // a table's caption goes on top
+const resourceTypes = defaultResourceTypes(LANG).map((type) => ({ ...type,
+ numberingTemplate: '{h2}.{n}', resetOn: 'h2',
+ ...(type.id === 'table' && { captionStyle: { position: 'above' } }) }));أخطاء شائعة
خطأ شائع
الرياضيات تحتاج إلى await initMathEngine() قبل البناء الأول
الصيغ التي تُنضَّد قبل أن يعمل محرّك الرياضيات مربعات رمادية نائبة. استورد initMathEngine من https://esm.sh/postext مع سائر الرموز وانتظرها بـ await قبل البناء الأول؛ والمستند الذي فيه رياضيات ويُبنى من دونها يطبع تحذيرًا واحدًا في وحدة التحكم. ومنذ postext 1.5 يأتي MathJax داخل حزمة postext وحدةً واحدة تجلبها initMathEngine، فالاستيراد العادي يعمل من CDN ولا حاجة إلى ?bundle (حتى 1.4 كان يجب أن يأتي كل رمز من https://esm.sh/postext?bundle). استورد من عنوان URL واحد فقط: عنوانان يحمّلان محرّكين. الرياضيات →
خطأ شائع
الإزاحات السالبة نسبةً إلى الحاوية لا ترسم شيئًا
يُقيَّد نص التصميم ذو العرض التلقائي بحاويته، فالإزاحة السالبة عن الحاوية تدفعه خارجها فلا يُرسَم شيء. ثبّت هذه العناصر على الصفحة أو على النزف بإزاحات صريحة بالمليمتر، أو أعطها عرضًا ثابتًا. تثبيت عناصر التصميم →
فحص Sandbox · invalidMath
صيغة LaTeX غير صالحة
السبب. لم يتمكن MathJax من تحليل صيغة، فطُبع بدلها عنصر نائب أحمر.
الحل. صحّح شيفرة TeX، أو اكتب \$ مكان علامة دولار لم تُقصد بها الرياضيات. التوثيق →
تحذير Markdown · unclosedMath
محدِّد صيغة رياضية غير مغلق
السبب. علامة $ تفتح صيغة داخل السطر لا تُغلق أبدًا، وعادةً لأنها جزء من سعر.
الحل. اكتب \$ لعلامة دولار حرفية، أو أغلق الصيغة في السطر نفسه. التوثيق →
- لا تبقى الصيغة المعروضة افتراضيًّا مع السطر الذي يمهّد لها، فقد تختم جملةٌ تمهيدية تنتهي بكلمة «so» صفحةً وتأتي معادلتها في الصفحة التالية؛ ومع
math.keepWithLeadIn: trueينتقل ذلك السطر مع الصيغة إلى الصفحة التالية. وتفعّل الوصفة هذا الخيار، فتبقى معادلة [OH⁻] مع جملتها مهما طال النص أو قصر. - رموز TeX هي رموز MathJax نفسها، لا رموز Inria Serif، لذا تبدو المعادلة أخف قليلًا من النص حولها. أبقِ الصيغ داخل الجمل علامات
~و^، واحتفظ بـTeX للأسطر التي تحتاج إليه. - تسميات تدريجات المنحنى وعناوين محوريه مخططات MathJax، بالرموز نفسها التي تستخدمها المعادلات، وتبقى متجهية في PDF: تطلب
tex()منrenderMathمسارات كل تسمية وتضعها في SVG. ولا يمكن رسمها إلا بعد اكتمالinitMathEngine().
الحقوق
- الوصفة
- Ignacio Ferro
- النص
- نص أصلي, CC BY 4.0
- الخطوط
- Inria Serif (SIL OFL 1.1) · Inria Sans (SIL OFL 1.1) · Sometype Mono (SIL OFL 1.1)
- الشيفرة
- MIT، مثل Postext
حرّر هذا الشرح ↗ (يفتح في تبويب جديد)مجلد الوصفة على GitHub ↗ (يفتح في تبويب جديد)


