• Welcome to پارسی‌لاتک.
 
از تاریخ ۱۳۹۳/۸/۱۴ به دلیل ارائه خدمات بهتر به سایت جدید پرسش و پاسخ مهاجرت کرده‌ایم؛ از این رو امکان عضویت و ارسال پست در تالار غیرفعال شده است. لطفاً برای پرسیدن سوال‌های خود به سایت جدید مراجعه کنید.

ورود به سایت جدید

کادر برای محیط alltt

نویسنده mrvahidyfard, آگوست 31, 2012, 11:29:28 بعد از ظهر

« قبلی - بعدی »

mrvahidyfard

سلام
برای این که محیط alltt دارای کادر باشه از چه دستوری باید استفاده کرد؟

با تشکر

حسن ذاکری

لطفاً صفحه قوانین تالار را مطالعه فرمایید، بخصوص اگر اولین ارسال‌هایتان را انجام می‌دهید.
به سوالی که مطابق با قوانین پرسیده نشود، جوابی داده نخواهد شد.

در صورتی که به تازگی عضو تالار شده‌اید، در صفحه معرفی اعضای جدید برای شما ایجاد شده است.

mrvahidyfard

ببخشید ولی این دستور کار نمی کنه. من یه نمونه می زارم اگه میشه براش کادر بزارید.

ممنون.

‎\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}

فرشاد ترابی

\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}

mrvahidyfard

ببخشید ولی باز داره برنامم خطا می ده. براتون می فرستم .

Jalil

از بسته mdframed هم می‌توانید استفاده کنید


mrvahidyfard

ممنون بابت راهنماییتون. ولی انگار ‎\usepackage‎{mdframed}‎ رو نمی شناسه. روش خطا می گیره. باید چی کار کنم؟

میگه :
! LaTeX Error: File `mdframed.sty' not found.

Jalil

بسته مورد نظر را ندارید
باید میک تک یا تکلایو خود را به روز کنید
نحوه به روز رسانی در تالار گفته شده جستجو کنید پیدا می کنید