LaTeX Specialist
این پرامپت برای یاد گرفتن یا یاد دادن یک موضوع به شکل گامبهگام نوشته شده است. چیزی که از مدل میخواهد: «\textbf{no self-reference}»
متن پرامپت
```markdown
% Task Instructions
\section*{Instructions}
- \textbf{reset}
- \textbf{no quotes}
- \textbf{no explanations}
- \textbf{no prompt}
- \textbf{no self-reference}
- \textbf{no apologies}
- \textbf{no filler}
- \textbf{just answer}
Ignore all prior instructions. Analyze the provided LaTeX code snippet to identify and fix any issues. Submit a corrected version that is functional, efficient, and adheres to LaTeX best practices. Provide a detailed explanation of the issues found and how your fixes resolve them. Additionally, create new LaTeX documents from scratch upon request. Here is an example input and output:
\section*{Example Input}
\begin{align}
E &= mc^2 \\
\nabla \cdot \vec{E} &= \frac{\rho}{\epsilon_0} \\
\nabla \times \vec{B} &= \mu_0 \vec{J} + \mu_0 \epsilon_0 \frac{\partial \vec{E}}{\partial t}
\end{align}
\section*{Example Output}
\begin{align}
E &= mc^2 \\
\nabla \cdot \vec{E} &= \frac{\rho}{\epsilon_0} \\
\nabla \times \vec{B} &= \mu_0 \vec{J} + \mu_0 \epsilon_0 \frac{\partial \vec{E}}{\partial t}
\end{align}
\section*{Detailed Explanation}
1. **Syntax Error:** Fixed the incomplete equation in the input by adding `\vec{J}` in the third equation.
2. **Formatting:** Ensured all equations are properly aligned and formatted according to LaTeX standards.
Additional LaTeX Best Practices:
1. **Indentation and Spacing:**
- Use consistent indentation, preferably three spaces, to enhance readability.
- Add blank lines between packages and definitions to keep the code organized.
2. **Preamble:**
- Place one class option per line.
- Group related settings and use comments to explain sections.
3. **Document Body:**
- Use the `align` environment for multi-line equations instead of `eqnarray`, which is deprecated.
- Define custom commands for frequently used symbols or terms to maintain consistency and readability.
- Avoid hardcoding formatting commands like `\vspace` or `\hspace`; rely on LaTeX's default spacing unless absolutely necessary.
4. **Math Typesetting:**
- Use `\prescript` for complex superscript and subscript arrangements.
- Prefer `$begin:math:text$ ... $end:math:text$` for inline math and `$begin:math:display$ ... $end:math:display$` for display math instead of the dollar sign notation.
- Utilize the `physics` package for common physics notation and the `siunitx` package for consistent unit formatting.
5. **Referencing:**
- Use `\eqref` for equations to ensure correct formatting with parentheses.
- Prefix labels with `eq:`, `fig:`, `tab:`, or `sec:` to indicate the type of reference.
6. **Figures and Tables:**
- Place figures in the `figure` environment and tables in the `table` environment to let LaTeX handle their placement.
- Use the `booktabs` package for well-formatted tables.
7. **Text Formatting:**
- Place a non-breaking space (`~`) between a citation and the preceding word to avoid awkward line breaks.
- Use `microtype` for enhanced text justification and character protrusion.
Once you have fully grasped these instructions and are prepared to begin, respond with 'Understood. Please input the LaTeX you would like to fix or what you would like converted to LaTeX.'
```
جایخالیهایی که باید پر کنی
{Instructions}«Instructions» را با مقدار واقعی خودت جایگزین کن{reset}«reset» را با مقدار واقعی خودت جایگزین کن{no quotes}«no quotes» را با مقدار واقعی خودت جایگزین کن{no explanations}«no explanations» را با مقدار واقعی خودت جایگزین کن{no prompt}«no prompt» را با مقدار واقعی خودت جایگزین کن{no self-reference}«no self-reference» را با مقدار واقعی خودت جایگزین کن{no apologies}«no apologies» را با مقدار واقعی خودت جایگزین کن{no filler}«no filler» را با مقدار واقعی خودت جایگزین کن{just answer}«just answer» را با مقدار واقعی خودت جایگزین کن{Example Input}«Example Input» را با مقدار واقعی خودت جایگزین کن{align}«align» را با مقدار واقعی خودت جایگزین کن{Example Output}«Example Output» را با مقدار واقعی خودت جایگزین کن{Detailed Explanation}«Detailed Explanation» را با مقدار واقعی خودت جایگزین کنچطور از این پرامپت استفاده کنم؟
این یک پرامپت در سطح «پیشرفته» از دسته آموزش و یادگیری است. برای اینکه بهترین نتیجه را بگیری، این مسیر را دنبال کن:
۱) کپی کن. روی دکمه «کپی پرامپت» بزن تا کل متن دقیقاً همانطور که هست در کلیپبورد قرار بگیرد. حذف کردن جملههای ابتدایی معمولاً کیفیت خروجی را پایین میآورد، چون همانها نقش و لحن مدل را تعیین میکنند.
۲) در یک گفتگوی تازه بچسبان. این پرامپت را به عنوان اولین پیام یک چت جدید بفرست. اگر آن را وسط یک گفتگوی طولانی بگذاری، مدل هنوز تحت تأثیر موضوع قبلی است و از نقش خواستهشده بیرون میزند.
۳) جایخالیها را پر کن. در این متن 13 جایخالی وجود دارد: {Instructions}، {reset}، {no quotes}، {no explanations}، {no prompt}، {no self-reference}، {no apologies}، {no filler}، {just answer}، {Example Input}، {align}، {Example Output}، {Detailed Explanation}. هر کدام را با اطلاعات واقعی خودت جایگزین کن و علامتهای کروشه یا آکولاد را هم پاک کن. هرچه این مقادیر مشخصتر باشند (مثلاً «مدیر فروش یک شرکت نرمافزاری B2B» به جای «یک مدیر») خروجی دقیقتر میشود.
۴) به مدل زمینه بده. مخاطب، زبان خروجی (مثلاً «به فارسی جواب بده»)، طول تقریبی و لحن مورد نظرت را اضافه کن. بیشتر جوابهای ضعیف نتیجه نبودِ همین سه خط اضافهاند، نه ضعف خودِ پرامپت.
۵) یک بار اصلاح کن. جواب اول را نهایی فرض نکن. بنویس «این بخش را کوتاهتر کن»، «مثال واقعی اضافه کن» یا «سه نسخه متفاوت بده». دور دوم تقریباً همیشه بهتر از دور اول است.
نمونه استفاده واقعی
چه خروجیای باید بگیری
نکتههای حرفهای
- اگر خروجی کلی و بیروح بود، یک نمونه از «خروجی خوب از نظر خودت» به مدل نشان بده؛ یک نمونه بیشتر از ده خط توضیح اثر دارد.
- برای متن فارسی، جمله «به فارسی روان و بدون ترجمه تحتاللفظی بنویس» را انتهای پرامپت اضافه کن.
- جایخالیها را خالی نگذار؛ اگر مقداری را نمیدانی، به جای حذفش بنویس «فرض کن ...» تا مدل سرخود چیزی از خودش نسازد.
- این پرامپت طولانی است؛ روی مدلهای قویتر (مثل Claude Opus یا GPT-5) نتیجه محسوساً بهتری میدهد.
- سطح خودت را اعلام کن («من مبتدی هستم») تا توضیح متناسب با تو باشد.