تالار گفتگوی پارسی‌لاتک

لاتک LATEX => عمومی => نويسنده: mrvahidyfard در اوت 31, 2012, 11:29:28 pm

عنوان: کادر برای محیط alltt
رسال شده توسط: mrvahidyfard در اوت 31, 2012, 11:29:28 pm
سلام
برای این که محیط alltt دارای کادر باشه از چه دستوری باید استفاده کرد؟

با تشکر
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: حسن ذاکری در سپتامبر 01, 2012, 12:19:11 am
\fbox
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: mrvahidyfard در سپتامبر 07, 2012, 10:15:04 am
ببخشید ولی این دستور کار نمی کنه. من یه نمونه می زارم اگه میشه براش کادر بزارید.

ممنون.

‎\begin{LTR}‎
‎\begin{alltt}‎‎‎
‎algorithm ‎network ‎simplex;‎
‎begin‎
      ‎determine ‎an ‎initial ‎feasible ‎tree ‎structure ‎(T,‎L‎,U);‎
      let x‎ ‎be ‎the ‎flow ‎and ‎\(‎\pi\) ‎be ‎the ‎node ‎petentials ‎‎
         ‎associated ‎with ‎this ‎tree ‎‎‎structure;‎‎
      while ‎some ‎nontree ‎arc ‎violetes ‎the ‎optimality ‎conditions ‎do ‎‎
      begin‎
             ‎select ‎an ‎entering ‎arc(k,l) ‎violating ‎its ‎optimality ‎‎
             ‎ ‎‎‎conditions;‎
             add‎ arc(k,‎l) ‎to ‎the ‎tree ‎and ‎determine ‎the ‎leaving‎‎
              arc(p,q);‎
             perform a tree update and update the solutions‎
              x and ‎\(‎\pi\);‎
      end;‎
end;              ‎
\end{alltt}‎‎
\end{LTR}
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: فرشاد ترابی در سپتامبر 07, 2012, 12:08:09 pm
\begin{LTR}‎
‎\fbox{
\begin{alltt}‎‎‎
‎algorithm ‎network ‎simplex;‎
‎begin‎
      ‎determine ‎an ‎initial ‎feasible ‎tree ‎structure ‎(T,‎L‎,U);‎
      let x‎ ‎be ‎the ‎flow ‎and ‎\(‎\pi\) ‎be ‎the ‎node ‎petentials ‎‎
         ‎associated ‎with ‎this ‎tree ‎‎‎structure;‎‎
      while ‎some ‎nontree ‎arc ‎violetes ‎the ‎optimality ‎conditions ‎do ‎‎
      begin‎
             ‎select ‎an ‎entering ‎arc(k,l) ‎violating ‎its ‎optimality ‎‎
             ‎ ‎‎‎conditions;‎
             add‎ arc(k,‎l) ‎to ‎the ‎tree ‎and ‎determine ‎the ‎leaving‎‎
              arc(p,q);‎
             perform a tree update and update the solutions‎
              x and ‎\(‎\pi\);‎
      end;‎
end;              ‎
\end{alltt}‎‎
}
\end{LTR}
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: mrvahidyfard در سپتامبر 07, 2012, 12:54:53 pm
ببخشید ولی باز داره برنامم خطا می ده. براتون می فرستم .
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: Jalil در سپتامبر 07, 2012, 10:18:33 pm
از بسته mdframed هم می‌توانید استفاده کنید

عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: mrvahidyfard در سپتامبر 08, 2012, 06:49:33 pm
ممنون بابت راهنماییتون. ولی انگار ‎\usepackage‎{mdframed}‎ رو نمی شناسه. روش خطا می گیره. باید چی کار کنم؟

میگه :
! LaTeX Error: File `mdframed.sty' not found.
عنوان: پاسخ : کادر برای محیط alltt
رسال شده توسط: Jalil در سپتامبر 08, 2012, 07:09:34 pm
بسته مورد نظر را ندارید
باید میک تک یا تکلایو خود را به روز کنید
نحوه به روز رسانی در تالار گفته شده جستجو کنید پیدا می کنید