LaTeX is a typesetting system in which you write plain text marked with instructions about structure, and a compiler turns that into a formatted document. It is not a word processor with more features; it works on a different principle, and understanding the principle is what makes it learnable.
That principle is the separation of content from appearance. In a word processor you make a heading look like a heading. In LaTeX you declare that something is a section, and a style file decides what sections look like. The consequence is that formatting is consistent by construction, that changing the style of every heading in a three-hundred-page document is one edit, and that the content survives independently of how it is displayed.
The trade-off is real and should be stated plainly. LaTeX takes a week to become usable and a month to become comfortable, and it fails in ways that are opaque to a beginner. It is worth that cost for a long, heavily cross-referenced document, and it is not worth it for a fifteen-page report due on Friday. This framework will help you decide rather than assume the decision.
It covers what LaTeX is and how a document is built, when the investment pays and when it does not, the structure of a thesis project, bibliographies through a reference manager, Overleaf as a way to avoid installing anything, and the errors beginners meet. It is my own synthesis, written in my own words and grounded in recognized scholarship.
لاتكس نظامُ تنضيد تكتب فيه نصًا عاديًا معلَّمًا بتعليمات عن البنية، ويحوّل مترجمٌ ذلك إلى وثيقة منسَّقة. وهو ليس معالج نصوص بمزايا أكثر؛ بل يعمل على مبدأ مختلف، وفهمُ المبدأ هو ما يجعله قابلًا للتعلّم.
وذلك المبدأ هو فصل المحتوى عن المظهر. ففي معالج النصوص تجعل عنوانًا يبدو عنوانًا. وفي لاتكس تعلن أن شيئًا هو قسم، وملفُ أسلوب يقرر كيف تبدو الأقسام. والنتيجة أن التنسيق متسق بالبناء، وأن تغيير أسلوب كل عنوان في وثيقة من ثلاثمئة صفحة تحريرٌ واحد، وأن المحتوى ينجو مستقلًا عن كيفية عرضه.
والمقايضة حقيقية وينبغي ذكرها بوضوح. فلاتكس يستغرق أسبوعًا ليصير صالحًا للاستعمال وشهرًا ليصير مريحًا، ويخفق بطرق غامضة على المبتدئ. وهو يستحق تلك الكلفة لوثيقة طويلة كثيفة الإحالات، ولا يستحقها لتقرير من خمس عشرة صفحة يُسلَّم الجمعة. وسيساعدك هذا الإطار على التقرير لا على افتراض القرار.
وهو يغطي ما لاتكس وكيف تُبنى وثيقة، ومتى يُسدَّد الاستثمار ومتى لا، وبنية مشروع أطروحة، والببليوغرافيات عبر مدير مراجع، وأوفرليف طريقةً لتجنّب تثبيت أي شيء، والأخطاء التي يصادفها المبتدئون. وقد أعددتُ هذا الإطار بنفسي وكتبتُه بأسلوبي، معتمدًا على المراجع العلمية المعتمدة.
A LaTeX document is a text file plus a compilation step. Understanding those two things explains most of what beginners find strange.
You write in a source file containing your text and commands marking structure: a command declaring a chapter, another declaring a section, another marking a word as emphasised. You then compile, and the system produces a document, usually a PDF. The formatting is decided by a document class and any style files you load, not by anything visible in your text.
Three consequences follow and they are the reasons to use it. Consistency is automatic. Every section heading looks the same because the same rule generates all of them, so the drift that accumulates in a manually formatted document cannot occur. Cross-references are live. You label a table and refer to the label, and the number is filled in at compile time, so inserting a new table renumbers everything correctly and updates every reference to it.
The source is plain text. It works with version control, it can be diffed to see exactly what changed between drafts, it does not corrupt, and it will open in fifty years. For a document representing three years of work, that durability is not a minor consideration.
The costs are equally concrete. You cannot see the output while writing, which most people adjust to within a week but which some never like. Errors are opaque: a missing brace produces a message that does not name the problem, and finding it is a skill you develop rather than one you can look up. And collaboration is harder with people who do not use it, since there is no tracked-changes equivalent that a word processor user will accept.
Note also that mathematics is where LaTeX is unmatched, and that most business research contains very little of it. If your thesis has three equations, that advantage does not apply to you, and the case for LaTeX rests entirely on structure, cross-referencing, and durability.
وثيقة لاتكس ملفُ نص مع خطوة ترجمة. وفهمُ هذين الشيئين يفسّر معظم ما يجده المبتدئون غريبًا.
فأنت تكتب في ملف مصدر يحوي نصك وأوامر تعلّم البنية: أمرٌ يعلن فصلًا، وآخر يعلن قسمًا، وآخر يعلّم كلمة بأنها مشدَّدة. ثم تترجم، وينتج النظام وثيقةً، ملف PDF عادةً. والتنسيق يقرره صنف وثيقة وأي ملفات أسلوب تحمّلها، لا أي شيء مرئي في نصك.
وثلاث نتائج تتبع وهي أسباب استخدامه. الاتساق تلقائي. فكل عنوان قسم يبدو نفسه لأن القاعدة نفسها تولّدها كلها، فالانجراف المتراكم في وثيقة منسَّقة يدويًا لا يمكن أن يقع. والإحالات المتقاطعة حيّة. فتُوسم جدولًا وتشير إلى الوسم، ويُملأ الرقم عند الترجمة، فإدراجُ جدول جديد يعيد ترقيم كل شيء صحيحًا ويحدّث كل إحالة إليه.
والمصدر نص عادي. فهو يعمل مع التحكم بالإصدارات، ويمكن مقارنته لرؤية ما تغيّر بالضبط بين المسودات، ولا يتلف، وسيُفتَح بعد خمسين سنة. ولوثيقة تمثّل ثلاث سنوات من العمل، تلك المتانة ليست اعتبارًا ثانويًا.
والكلف محسوسة بالقدر نفسه. لا تستطيع رؤية المخرَج أثناء الكتابة، وهذا يتكيّف معه معظم الناس في أسبوع لكن بعضهم لا يحبه أبدًا. والأخطاء غامضة: فقوسٌ مفقود يُنتج رسالةً لا تسمّي المشكلة، وإيجاده مهارةٌ تنمّيها لا مهارةٌ تبحث عنها. والتعاون أصعب مع من لا يستخدمونه، إذ لا مكافئ للتغييرات المتعقَّبة يقبله مستخدم معالج نصوص.
ولاحظ أيضًا أن الرياضيات حيث لا يُضاهى لاتكس، وأن معظم بحوث الأعمال تحوي قليلًا جدًا منها. فإن كان في أطروحتك ثلاث معادلات، فتلك الميزة لا تنطبق عليك، وحجةُ لاتكس تقوم كليًا على البنية والإحالات والمتانة.
The decision is practical, not ideological. Four factors settle it, and the last one usually dominates.
Document length and structure. The benefits scale with size. A three-hundred-page thesis with forty tables, thirty figures, six appendices, and hundreds of cross-references is where LaTeX earns its cost. A twenty-page report is where it does not.
Mathematical content. If your thesis contains substantial mathematical notation, LaTeX is close to the only reasonable option and the decision is made for you. Most business theses do not, so this factor rarely decides.
Publisher or institutional templates. Many journals in economics, finance, information systems, and operations supply LaTeX templates and expect submissions in that form. If you intend to publish in those outlets, learning it has value beyond the thesis. Management and organizational behaviour journals typically expect a word processor.
Who else touches the file. This is the factor that decides in practice. If your supervisor reads drafts with tracked changes and comments in a word processor, and your institution supplies a word processor template, then using LaTeX means exporting for every review and reconciling comments by hand. That friction, repeated over three years, usually exceeds the formatting benefit.
A middle position is available and is often the right answer: write in a word processor and use LaTeX for what it is uniquely good at. Produce complex tables or equations in LaTeX and import them as images, or write papers for LaTeX-expecting journals in LaTeX while keeping the thesis in a word processor. The tools are not exclusive.
Two cautions if you do choose LaTeX. Do not switch mid-project. Converting a partially written thesis is a multi-day task with a high error rate, and the time comes out of writing. And do not let it become the project. Time spent perfecting a custom style file is time not spent on the argument, and no examiner has ever commented on a thesis's kerning.
القرار عملي لا أيديولوجي. وأربعة عوامل تحسمه، والأخير يهيمن عادةً.
طول الوثيقة وبنيتها. فالفوائد تتناسب مع الحجم. فأطروحةٌ من ثلاثمئة صفحة بأربعين جدولًا وثلاثين شكلًا وستة ملاحق ومئات الإحالات هي حيث يكسب لاتكس كلفته. وتقريرٌ من عشرين صفحة حيث لا يكسبها.
المحتوى الرياضي. فإن حوت أطروحتك ترميزًا رياضيًا كبيرًا، فلاتكس شبه الخيار المعقول الوحيد والقرار مُتَّخذ لك. ومعظم أطروحات الأعمال لا تحويه، فنادرًا ما يحسم هذا العامل.
قوالب الناشرين أو المؤسسات. فمجلات كثيرة في الاقتصاد والتمويل ونظم المعلومات والعمليات تزوّد قوالب لاتكس وتتوقع التقديم بتلك الصيغة. فإن كنت تعتزم النشر في تلك المنافذ، فلتعلّمه قيمة تتجاوز الأطروحة. أما مجلات الإدارة والسلوك التنظيمي فتتوقع معالج نصوص عادةً.
من غيرك يلمس الملف. وهذا العامل الذي يحسم عمليًا. فإن كان مشرفك يقرأ المسودات بتغييرات متعقَّبة ويعلّق في معالج نصوص، وكانت مؤسستك تزوّد قالب معالج نصوص، فاستخدام لاتكس يعني التصدير لكل مراجعة وتوفيق التعليقات يدويًا. وذلك الاحتكاك، مكررًا عبر ثلاث سنوات، يتجاوز فائدة التنسيق عادةً.
وموقف وسط متاح وهو الإجابة الصحيحة غالبًا: اكتب في معالج نصوص واستخدم لاتكس لما يجيده حصريًا. أنتج الجداول المعقدة أو المعادلات في لاتكس واستوردها صورًا، أو اكتب الأوراق للمجلات التي تتوقع لاتكس بلاتكس مع إبقاء الأطروحة في معالج نصوص. فالأداتان ليستا حصريتين.
وتحذيران إن اخترت لاتكس. لا تبدّل في منتصف المشروع. فتحويلُ أطروحة مكتوبة جزئيًا مهمةٌ من عدة أيام بمعدل خطأ عالٍ، والوقت يخرج من الكتابة. ولا تدعه يصير المشروع. فالوقت المنفَق على إتقان ملف أسلوب مخصص وقتٌ لم يُنفَق على الحجة، ولم يعلّق ممتحن قط على تباعد حروف أطروحة.
A thesis is not one file. Splitting it correctly is what keeps compilation fast and errors findable.
| File | What it holds |
|---|---|
| main.tex | The class, the packages, the settings, and the list of included chapters |
| preamble.tex | Package loading and custom commands, kept separate for readability |
| chapters/ one file per chapter | Chapter text only, with no preamble material |
| figures/ | Image files, referenced by name from the chapters |
| tables/ | Large tables as separate files, included where needed |
| references.bib | The bibliography, exported from your reference manager |
The main file includes the chapters rather than containing them, which has two benefits. Compilation can be limited to one chapter while you work on it, which matters because compiling a full thesis takes noticeably longer than compiling ten pages. And errors are localised: a mistake in chapter four does not prevent chapter two from compiling, which is what makes debugging tractable.
Four practices support a long project. Use version control, since the source is plain text and this is where the format's advantages are largest: you can see exactly what changed between drafts and recover any earlier state. Compile often, because an error introduced in the last twenty lines is far easier to find than one introduced somewhere in the last three hundred.
Keep the preamble tidy and comment it, because a package you added for one purpose in month three will be a mystery in month thirty. And use a template if your institution supplies one, because it encodes the formatting requirements and saves you discovering them one at a time at submission.
On bibliographies: the standard workflow is that your reference manager exports a bib file, LaTeX cites entries from it by key, and a bibliography processor formats the list according to a style file. The critical practice is that the bib file is exported rather than edited: fix errors in the reference manager and re-export, since edits made directly in the bib file are lost at the next export.
Choose the bibliography processor deliberately. The modern option handles author names, non-Latin scripts, and complex styles far better than the older one, and business researchers working with regional sources or non-English names should use it. Whichever you choose, use it from the start, since switching requires changing the style setup and reformatting the entire list.
الأطروحة ليست ملفًا واحدًا. وتقسيمها صحيحًا هو ما يُبقي الترجمة سريعة والأخطاء قابلة للإيجاد.
| الملف | ما يحمله |
|---|---|
| main.tex | الصنف والحزم والإعدادات وقائمة الفصول المُدرَجة |
| preamble.tex | تحميل الحزم والأوامر المخصصة، منفصلًا للقابلية للقراءة |
| chapters/ ملف لكل فصل | نص الفصل فقط، بلا مادة تمهيدية |
| figures/ | ملفات الصور، مُشارًا إليها بالاسم من الفصول |
| tables/ | الجداول الكبيرة ملفات منفصلة، تُدرَج حيث تلزم |
| references.bib | الببليوغرافيا، مصدَّرة من مدير مراجعك |
والملف الرئيس يُدرج الفصول لا يحويها، ولهذا فائدتان. الترجمة يمكن قصرها على فصل واحد وأنت تعمل عليه، وهذا يهم لأن ترجمة أطروحة كاملة تستغرق أطول بوضوح من ترجمة عشر صفحات. والأخطاء موضعية: فغلطٌ في الفصل الرابع لا يمنع الفصل الثاني من الترجمة، وهذا ما يجعل التنقيح قابلًا للمعالجة.
وأربع ممارسات تسند مشروعًا طويلًا. استخدم التحكم بالإصدارات، فالمصدر نص عادي وهنا تكون مزايا الصيغة أكبر ما تكون: فتستطيع رؤية ما تغيّر بالضبط بين المسودات واسترجاع أي حالة سابقة. وترجم كثيرًا، لأن خطأً أُدخل في العشرين سطرًا الأخيرة أسهل إيجادًا بكثير من خطأ أُدخل في مكان ما من الثلاثمئة الأخيرة.
وأبقِ التمهيد مرتبًا وعلّق عليه، لأن حزمةً أضفتها لغرض في الشهر الثالث ستكون لغزًا في الشهر الثلاثين. واستخدم قالبًا إن زوّدت مؤسستك واحدًا، لأنه يرمّز متطلبات التنسيق ويوفّر عليك اكتشافها واحدًا واحدًا عند التسليم.
وعن الببليوغرافيات: سير العمل المعياري أن يصدّر مدير مراجعك ملف bib، ويستشهد لاتكس بمداخل منه بالمفتاح، ويُنسّق معالجُ ببليوغرافيا القائمةَ بحسب ملف أسلوب. والممارسة الحاسمة أن ملف bib يُصدَّر لا يُحرَّر: أصلح الأخطاء في مدير المراجع وأعد التصدير، لأن التحريرات المُجراة مباشرةً في ملف bib تضيع عند التصدير التالي.
واختر معالج الببليوغرافيا عن قصد. فالخيار الحديث يعالج أسماء المؤلفين والخطوط غير اللاتينية والأساليب المعقدة أفضل بكثير من الأقدم، وباحثو الأعمال العاملون بمصادر إقليمية أو أسماء غير إنجليزية ينبغي أن يستخدموه. وأيًّا كان اختيارك، فاستخدمه من البداية، لأن التبديل يتطلب تغيير إعداد الأسلوب وإعادة تنسيق القائمة كلها.
Overleaf removes the two hardest parts of starting with LaTeX: installing it and configuring it. For a doctoral student it is usually the right way in.
It is a browser-based editor with the whole system already installed and configured. You open a project, write, and see the compiled output beside the source. Four features matter for thesis work. Nothing to install, and no version differences between your machines. Collaboration, so a supervisor can open the project and comment or edit directly, which removes the main practical objection to LaTeX in a supervised project.
Version history, which keeps every state of the document and lets you recover any of them. And templates, including many institutional thesis templates and most journal templates, which saves the setup that otherwise consumes the first week.
Three limitations are worth knowing. Compilation time is limited on free accounts and a long thesis can exceed it, which is the most common reason people move to a local installation late in a project. Working offline requires a paid tier or a local copy. And a project stored in one service is a dependency, so download the source regularly and keep a copy under your own control.
Four errors account for most beginner difficulty, and each has a fixed diagnosis. The missing brace or dollar sign produces a message far from the actual line, and the technique is to comment out half the chapter, compile, and repeat, which locates the error in about four steps. The undefined control sequence means a command you used needs a package you have not loaded, and the message names the command, so a search on the command name finds the package.
Undefined references or question marks in place of numbers mean the document needs compiling again, because cross-references require two passes and bibliographies three. Most editors handle this automatically; when they do not, compile twice more. And a figure or table drifting to a different page is LaTeX doing what it was designed to do, since it places floating elements where the typesetting works, and fighting it is usually the wrong response. Refer to figures by number rather than by position and the problem disappears.
One final piece of advice about learning it. Do not read a manual. Start from a working template, change one thing, compile, and see what happened. Every experienced user learned this way, the reference documentation is for looking things up rather than for reading, and a week of small changes to a working document teaches more than a month of study.
أوفرليف يزيل أصعب جزأين في البدء بلاتكس: تثبيته وتهيئته. ولطالب دكتوراه هو عادةً الطريق الصحيح للدخول.
وهو محرّر يعمل في المتصفح بالنظام كله مثبَّتًا ومهيَّأً سلفًا. تفتح مشروعًا، وتكتب، وترى المخرَج المترجَم بجوار المصدر. وأربع مزايا تهم لعمل الأطروحة. لا شيء يُثبَّت، ولا فروق إصدارات بين أجهزتك. والتعاون، فيستطيع مشرف فتح المشروع والتعليق أو التحرير مباشرةً، وهذا يزيل الاعتراض العملي الرئيس على لاتكس في مشروع مُشرَف عليه.
وتاريخ الإصدارات، الذي يحفظ كل حالة للوثيقة ويتيح استرجاع أي منها. والقوالب، بما فيها قوالب أطروحات مؤسسية كثيرة ومعظم قوالب المجلات، وهذا يوفّر الإعداد الذي يستهلك الأسبوع الأول لولاه.
وثلاثة حدود تستحق المعرفة. فزمن الترجمة محدود في الحسابات المجانية وقد تتجاوزه أطروحةٌ طويلة، وهذا أشيع سبب لانتقال الناس إلى تثبيت محلي متأخرًا في مشروع. والعمل دون اتصال يتطلب طبقةً مدفوعة أو نسخة محلية. والمشروع المخزَّن في خدمة واحدة تبعيةٌ، فـنزّل المصدر بانتظام واحتفظ بنسخة تحت سيطرتك.
وأربعة أخطاء تفسّر معظم صعوبة المبتدئين، ولكلٍّ تشخيصٌ ثابت. القوس أو علامة الدولار المفقودة تُنتج رسالة بعيدة عن السطر الفعلي، والتقنية تعليقُ نصف الفصل والترجمةُ والتكرار، وهذا يحدد موقع الخطأ في نحو أربع خطوات. وتسلسل التحكم غير المعرَّف يعني أن أمرًا استخدمته يحتاج حزمة لم تحمّلها، والرسالة تسمّي الأمر، فبحثٌ باسم الأمر يجد الحزمة.
والإحالات غير المعرَّفة أو علامات الاستفهام بدل الأرقام تعني أن الوثيقة تحتاج ترجمةً أخرى، لأن الإحالات المتقاطعة تتطلب مرورين والببليوغرافيات ثلاثة. ومعظم المحرّرات تتولى هذا آليًا؛ وحين لا تفعل، فترجم مرتين أخريين. وانجراف شكل أو جدول إلى صفحة أخرى هو لاتكس يفعل ما صُمِّم له، لأنه يضع العناصر العائمة حيث ينجح التنضيد، ومقاومتُه عادةً الاستجابة الخاطئة. أشِر إلى الأشكال بالرقم لا بالموضع فتختفي المشكلة.
ونصيحة أخيرة عن تعلّمه. لا تقرأ دليلًا. ابدأ من قالب عامل، وغيّر شيئًا واحدًا، وترجم، وانظر ماذا حدث. فكل مستخدم خبير تعلّم هكذا، والتوثيق المرجعي للبحث عن الأشياء لا للقراءة، وأسبوعٌ من تغييرات صغيرة على وثيقة عاملة يعلّم أكثر من شهر دراسة.