اولین بار است که به اینجا می‌آیید؟ راهنمای سایت را بخوانید!
Close Sidebar
وب‌سایت پرسش و پاسخ پارسی‌لاتک جایی برای پرسش و پاسخ درباره سیستم حروف‌چینی لاتک و بسته زی‌پرشین است. در اینجا می‌توانید سوال‌های خود را بپرسید و به سوال‌های دیگران پاسخ دهید.

محبوب‌ترین برچسب‌ها

رفع خطا جدول مراجع xepersian ریاضی‌نویسی شکل فونت فهرست مطالب شماره‌گذاری منابع bidi پانویس بیب‌تک tikz تک‌لایو parsilatex بیمر اسلاید زی‌پرشین پاورقی سربرگ bibtex نماد فرمول‌نویسی رسم شکل قالب ارجاع‌دهی biditexmaker هدر ویرایشگر beamer واژه‌نامه اندازه فونت texstudio عنوان فصل ماتریس اعمال نشدن تغییرات در پی‌دی‌اف رسم جدول bidipresentation شماره صفحه حاشیه رنگ عنوان شکل اسلاید فارسی محیط قضیه گراف مکان شکل tikzpicture حروف‌چینی کد شماره فصل enumerate tabriz_thesis نمایه align زیرنویس شکل کادر itemize listings الگوریتم عدم اجرا نیم‌فاصله متن لاتین و فارسی فهرست اشکال بسته فاصله بین خطوط قالب پایان‌نامه فرمول نصب تک‌لایو فارسی‌تک hyperref شماره فرمول glossaries کپشن نمودار حروف‌چینی چندستونی فونت فارسی و انگلیسی ماکرونویسی خروجی biditools شماره پاورقی پیوست‌ فاصله‌گذاری فرمول چندضابطه‌ای لاتک سوال امتحانی subfigure extrafootnotefeatures header texmaker pdf tex biditufte-book تصویر شمارنده texlive2015 longtable زیرنویس خطا رسم نمودار شماره‌گذاری صفحات پایان نامه دیاگرام فهرست جداول میک‌تک texlive2016 تنظیم جدول kashida texworks caption اندیس lollipop iust-thesis multicol فصل‌نویسی شعر سوال چهارگزینه‌ای بولد تورفتگی آکولاد اعداد فارسی فاصله عمودی xindy چپ‌چینی اوبونتو میکروسافت ورد قاب geometry fancyhdr تک لایو 2015 عنوان بخش به‌روزرسانی بسته aimc46 صفر توخالی فرمول طولانی بیرون‌زدگی texlive کاما وسط‌چینی پوستر شماره گذاری فاصله سطرها نوشتافت شکست خط tex-programming فونت اعداد pgfplots قرآن tabriz-thesis ایتالیک winedt جستجوی معکوس xelatex فلش جایابی تصویر tcolorbox قالب کتاب پاراگراف‌بندی بازیابی اطلاعات هایپرلینک فهرست نمادها شمارنده فصل محیط ریاضی رسم کادر جداکننده جدول طولانی فهرست تصاویر شماره‌گذاری فرمول algorithm2e font فونت بولد proof equation bidipoem eps جدول افقی عکس به‌روزرسانی پانویس چندستونی کمک مالی فاصله خطوط حروف‌چینی شعر زیرشکل minipage قلم پانویس پاراگرافی ltrfootnote پیوست computeautoilg متن فارسی و انگلیسی فرمول چندخطی neveshtuft غلط‌گیری املایی تک‌پارسی پیکان لاتکس tabular baselineskip شماره قسمت قسمت عنوان جدول
7 نفر آنلاین
0 عضو و 7 مهمان در سایت حاضرند
بازدید امروز: 3805
بازدید دیروز: 12293
بازدید کل: 20633442

کدهایی که با برنامه متلب نوشتم را هنوز نتونستم مرتب و تمیز تایپ کنم؟

0 رای
358 بازدید

سلام.می‌خام یه برنامه که به زبان متلب نوشتم را در تک میکر تایپ کنم. دستورهایی که در جواب سوالم بود را تایپ کردم ولی درست اجرا نمیشه. البته این را بدانید که این برنامه را میخام در پایان نانه ام تایپ کنم.دستورهارو توی thesis01 نوشتم و برنامه را توی chapter07. خواهش میکنم جوابمو بدین.

فایل‌های پیوست
سوال شده تیر 9, 1394 توسط رویا جفائی (41 امتیاز)
ویرایش شده تیر 11, 1394 توسط رویا جفائی
بهتره نگین توی تک‌میکر تایپ می‌کنین. بهتره بگین در لاتک یا زی‌پرشین.
تک‌میکر یک ادیتور برای استفاده از لاتک یا زی‌پرشین هست.

2 پاسخ

0 رای
 
بهترین پاسخ

همان طور که آقای ابوالفضل دیانت گفتن با مراجعه به
http://www.parsilatex.com/wiki/%D8%B1%D8%A7%D9%87%D9%86%D9%85%D8%A7%DB%8C_%D9%88%D8%A7%D8%B1%D8%AF_%DA%A9%D8%B1%D8%AF%D9%86_%DA%A9%D8%AF_%D8%AF%D8%B1_%D9%85%D8%AA%D9%86
مشکل حل می شود.

پاسخ داده شده مرداد 8, 1394 توسط رویا جفائی (41 امتیاز)
+1 رای

خود شما می‌گید کد بعد از محیط align استفاده می‌کنید؟ کد را باید در محیط‌های verbatim مانند بنویسید. نمونه زیر قسمتی از پروژه درس ENGG100 من در دانشگاه Wollongong هست که در آن از بسته listings برای حروف‌چینی کد MatLab استفاده کرده‌ام:

\documentclass{article}
\usepackage{color}
\usepackage{listings}
\definecolor{hellgelb}{rgb}{1,1,0.85}
\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,0.5,0}
\definecolor{colString}{rgb}{1,0,0}
\lstset{%
    language=matlab,
    float=hbp,
    basicstyle=\ttfamily\small,
    identifierstyle=\color{colIdentifier},
    keywordstyle=\color{colKeys},
    stringstyle=\color{colString},
    commentstyle=\color{colComments},
    backgroundcolor=\color{hellgelb},
    columns=flexible,
    tabsize=4,
    extendedchars=true,
    showspaces=false,
    showstringspaces=false,
    numbers=left,
    numbersep=2em,
    numberstyle=\tiny, %
    frame=single,
    captionpos=b,
    xleftmargin=1em,
    breaklines=true,
    breakautoindent=false,
    breakindent=0pt,
    firstnumber=last,
    morekeywords={importdata,ImportTrackData,ComputeAcceleration,
                              ComputeDistance,Computetheta,ComputeCartesianCoordinates,
                              transpose}%
}
\begin{document}
\begin{lstlisting}[firstnumber=1]
% The ImportTrackData function written by VAFA KHALIGHI

% Define the function with one input which is the name of the track
% data file (InputFile) and outputs time (t), speed in m/s (v), 
% longitudinal G-force (FGt),latitudinal G-force (FGn), 
% tangential acceleartion (at), and  normal acceleration (an)

function [t,v,FGt,FGn,at,an] = ImportTrackData(InputFile)
%
% When we look at the file 'Track-P11-GroupA.txt', we see that it has
% the following formats:
%
% Time (Seconds): 0.00
% Ground Speed (km/h): 135.0286190
% G Force Long (G): 0.27
% G Force Lat (G): 0.1632125
%
% Time (Seconds): 0.02
% Ground Speed (km/h): 135.2315170
% G Force Long (G): 0.27
% G Force Lat (G): 0.1642262
%
% ...
% From this, we can see that : separates strings and numbers in each line
% and we should have four columns. So the importdata function, is the
% perfect choice
%
% Let's first make a variable which is the number of columns of our track
% data:
nocols=4; 
%
% Next, we use the importdata function to separate the columns and then
% automatically create a cell array of strings and a numeric array with
% all the data:
%
TrackDATA=importdata(InputFile,':');
%
% The TrackDATA.data now holds the numeric array; so we first reshape the 
% numeric array into four rows and automatic number of columns using the
% reshape function and then we take the transpose of the reshaped numeric
% array so that we would have automatic number of rows and four columns:
%
TrackMatrix=transpose(reshape(TrackDATA.data,nocols,[]));
%
% t is the first column of this matrix:
%
t=TrackMatrix(:,1);
%
% FGt isthethirdcolumnofthematrix:
% 
FGt=TrackMatrix(:,3);
%
% FGn is thefourthcolumnofthematrix:
%
FGn=TrackMatrix(:,4);
% 
% The second column of the matrix is speed in km/h but we want to have
% speed in m/s so we need to multiply the second column of the matrix
% by 1000/3600=1/3.6:
%
v=TrackMatrix(:,2)/3.6;
% 
% The tangential acceleartion is obtained by multiplying longitudinal
% G-force by 9.8:
%
at=9.8*FGt;
%
% The normal acceleartion is obtained by mutiplying latitudinal G-force
% by 9.8:
%
an=9.8*FGn;
%
% End the definition of the function
end
\end{lstlisting}

\end{document}
پاسخ داده شده تیر 9, 1394 توسط وفا (24,380 امتیاز)
...