تبلیغات در اینترنت

تبلیغات در اینترنتگیفت کارت گوگل پلی
صفحه 1 از 2 12 آخرینآخرین
نمایش نتایج: از 1 به 10 از 18

موضوع: vLaTeX - Math parsing with LaTeX - هک قرار دادن کارکترهای ریاضی در پست

    1. توضیحات vLaTeX - Math parsing with LaTeX - هک قرار دادن کارکترهای ریاضی در پست »»

      vLaTeX - Math parsing with LaTeX - هک قرار دادن کارکترهای ریاضی در پست

      نگارش: ، توسط (پاسخگو و راهنما)

      آخرین زمان حضور: Nov 2016 پرینت این صفحه / حالت نمایش بصورت پرینت شده ارسال این صفحه به ایمیل یک دوست یا خودتان
      نگارش: تمامی ورژن ها امتیاز:  نصب شده: 0 بار
      زمان انتشار: 2015/10/22 بروزرسانی: هرگز دریافت شده: 10 بار
      پشتیبانی نمی شود تغییرات دیتابیس سیستم هک و پلاگین تغییرات اتوماتیک در قالب
      فایل های اضافی مجوز ترجمه

      کد:
      vLaTeX allows your users to include mathematical equations written in LaTeX into their posts, rendered in high quality graphic files (either png or gif). Such ability is instrumental in scientific or educational oriented forums. When I started in vb two years ago, there ware a number of solutions available, but none of them suited my needs completely, so I developed my own integration between (a modified version of) Benjamin Zeiss' LatexRender and vBulletin. With the new vBulletin 4.0, I decided to improve some of the features of this product, and to release it with the hope that it turns out to be useful to any of you.
      
      
      What is LaTeX?
      
      LaTeX is a set of macros for the TeX typesetting system. It is the defacto standard of communication within the scientific and mathematical community. It works pretty much like a programing language: you write a text source file, and the latex executable compiles it in a DeVice Independent file (DVI), which can be later converted to the desired format (postscript, pdf, etc.).
      
      This mod (thanks to a modified version of the LatexRender class) does all this work in the background. It takes the formula code, inserts it in a source file, compiles it and converts the output in a high quality image file (png or gif, depends on your settings) to show in the post.
      
      
      Requirements
      
      This mod relies on your server having available the following external programs. They are pretty standard in most Linux distributions, so hosts can install them easily (if they want to, some don't). Please, check your server meets this requirements (or ask your host to install the programs) before trying to use vLaTeX:
      
      - latex: the LaTeX compiler. Check the TeX live distribution (TeX Live - TeX Users Group).
      
      - dvips: converts the DVI file to PS. Usually included in all latex distributions.
      
      - convert: as it name suggests, converts between a large number of graphic files. Belongs to the ImageMagick package. Needs ghostscript.
      
      - identify: among other things, measures the size of image files. Also belongs to ImageMagick
      
      - Ghostscript: PostScript and PDF language interpreter and previewer. Is called by convert in order to handle ps files.
      
      
      Features
      
      Creates a new BBcode, usually [TEX] (thought the tag name is configurable via the admin cp), which contents are processed thought LaTeX to generate image files. There are four calling modes:
      
      - [TEX]E= mc^2[/TEX] in-line mode. The image is included in the middle of the text, without line breaks. It tries to adjust the baseline of the formula by adjusting the vertical-align CSS property; the results aren't always perfect, but it does its best.
      
      - [TEX=null]E = m c^2[/TEX] displayed mode: The formula is displayed (usually centered) between two paragraphs.
      
      - [TEX=*]E = m c^2[/TEX] auto-numbering mode: The formula is displayed (usually centered), and numbered.
      NOTE: The auto-numbering depends on the CSS counter system, so some old browsers (most notably ie 7 and older) will show these equations untagged, like [TEX=null]. Don't blame me, blame non-standard compilant browsers.
      
      - [TEX=tag]E = m c^2[/TEX] displayed with tag: The formula is displayed (usually centered) between two paragraphs, and tagged with the specific tag.
      
      In the last two modes, the tags are displayed at the right (left if you use RTL) between brackets, in a (configurable) color. 
      
      The formulas are compiled by creating a small tex file and running the native LaTeX program throughout it. You can choose to wrap the formula with the standard dollar ($ ... $), the align or gather amsTeX environments. The standard dollar is recommended since the baseline hack works better with it, but the gather environment allows to create multiline equations using the \\ separator.
      
      This mod also introduces a second BBcode, [EQREF]tag[/EQREF], which outputs (tag), with the same style of the equation tags. It's useful to let users make reference their formulas.
      
      A double click on the image of a generated image will open a pop-up displaying the LaTeX source code used to generate the formula.
      
      Menu with Common used LaTeX commands can be shown below the advanced mode editor. The admin can customize the commands of the menu thought the admin control panel.
      
      
      Admin features
      
      Image files are cached, so every unique formula is only processed once.
      
      Fully configurable via Style Variables and templates. It is also fully phrased.
      
      It doesn't change any vb default template, so upgrading should be easy.
      
      Includes a list of blacklisted latex commands for security (configurable in the admin cp).
      
      The admin can customize the preamble of the latex file in the admin cp. This is useful to define new commands that your community uses often, or to include packages.
      
      Error messages can be customized in the phrase system.
      
      Memory usage of ImageMagick commands (convert and identify) can be limited in the admin control panel.
      
      
      Installation / Upgrade
      
      1.- Unzip the mod files.
      
      2.- Upload the vLaTeX directory to your forum root. The generated folder structure should look like this:
      
      vLaTeX/
      vLaTeX/index.htm
      vLaTeX/class_vlatex.php
      vLaTeX/functions_vlatex.php
      vLaTeX/vlatex.js
      vLaTeX/pics/
      vLaTeX/pics/index.htm
      vLaTeX/temp/
      vLaTeX/temp/index.htm
      
      3.- Change the permissions of the pics and temp folders so the web server can write on them.
      
      4.- Import the product XML in your admin control panel. If you're upgrading, set "Allow Overwrite" to yes.
      
      5.- Go to Admin CP > Settings > Options > vLaTeX - Math Parsing
      
      6.- Make sure the path to latex, dvips, convert and identify executables is correct. Those settings default to the most common values in most linux distributions, but every host is a different world.
      If you have shell access, you can check the location of the executables with the following commands:
      which latex
      which dvips
      which convert
      which identify
      
      7.- Make sure the path to the Images and Temporal directory are correct. You can change them if you don't like the default value, but the directories must exist and the server must have permissions to write on them.
      For extra safety, you could move the temp folder out of the public accessible directory three, thought it should not be needed, since files are deleted in matter of milliseconds.
      
      8.- Set the rest of options as you wish.
      
      9.- Test the product in some posts.
      
      10.- If you wish to add a button in the advanced editor tool-bar for this mod, you can add it using the admin cp section Custom BB Codes (write anything you want in Replacement, this mod will overwrite it). You can use any tex icon, for instanceTex icon | Icon search engine
      
      
      Error messages
      
      The LaTeX parsing can fail for a number of reasons. In such case, an error message is displayed instead of the formula. Here's a list of all possible error messages and their meaning:
      
      - "Image too big {1}, max {2}x{3}", The resulting image is bigger than the allowed dimensions.
      
      - "Blacklisted command", The user attempted to compile a formula with a forbidden command.
      
      - "Can't move image", Image formula could be created, but I could not be moved to the destination folder. Check that the directory exists and has write permissions.
      
      - "Convert failed", Formula could be compiled, but could not be converted to png/gif. Check the convert program path.
      
      - "Compile failed", The formula could not be compiled. Check that the temporal directory has write permissions and that the latex path is correct.
      
      - "Code too long, max. {1} characters", The formula code was too long. The maximum length can be configured in the admincp.
      
      - "Formula not found", The compilation and convert process appeared to not raise any error, but the image was not found on the destination folder. Check for permissions in the destination folder and/or IO errors.
      
      - "Pictures directory unwritable", The destination folder does not exist, or has no write permissions.
      
      - "Temp. dir unwritable", The temporal folder does not exist, or has no write permissions.
      
      - "Unknown error", Any other error condition.
      
      
      Disclaimer
      
      This mod is in beta phase, if you find bugs, please tell me how to reproduce them so I can improve it. It is distributed as is, with the hope that it is useful for someone, but without any warranty. Nor will I accept any responsibility or liability if it doesn't work as expected, or even if it breaks something.
      This mod is mainly developed for personal usage. I will listen to good ideas, but I can't guaranty that I will be implemented requested features.
      
      
      License
      
      This mod is distributed under the LGPL.(http://www.gnu.org/copyleft/lesser.html). As is, you can freely distribute it or any derivative work provided that: 1) you acknowledge the work of the previous coders (like myself and Zeiss), 2) you release it under the same license (or GPL).
      
      
      
      Acknowledgments
      
      This mod (in particular, the class_vlatex.php file) is strongly based on the LatexRender class by Benjamin Zeiss (http://www.mayer.dial.pipex.com/tex.htm).
      
      The baseline hack by the work of Maarten Sneep (http://mactextoolbox.sourceforge.net.../baseline.html).
      
      
      Compatibility
      
      The last version of this mod (0.5.1) requires vb4.2.0 or higher. It should work on previous CKEditor versions, but it was not tested.
      
      If you wish to use it in a pre-CKEditor vb installation, you can use the previous vLaTeX version (0.4.1). If you want to use it in an older vb4.0.x release, you can download version 0.3 (which is compatible with vb4.0.1 or higher). Take into account that old versions of this hack have less features and might have some issues fixed in later versions.
      
      Support will be given only for the last version of this mod. 
      
      
      
      History
      
      2009 / 12 / 19 - First (beta) release
      
      2009 / 12 / 20 - version 0.2
      Fixed baseline problem of in-line formulas in CMS articles.
      Improved error handling.
      Included Spanish translation
      
      2010 / 1 / 24 - version 0.3 (requires vb4.0.1)
      Fixed extra space after in-line equations.
      Won't break down if vb's CSS is stored as files.
      New pop-up showing the formula source code upon double-click.
      
      2010 / 7 / 23 - version 0.4 (requires vb4.0.4)
      Improved support for CSS stored as files.
      Fixed bug of js file not being loaded on certain servers.
      Menu with common LaTeX commands under vb's advanced editors.
      Equations will no longer be break by preview in blogs or CMS articles.
      
      2010 / 4 / 24 - version 0.4.1 (requires vb4.0.4) 
      Improved compatibility of the Common Commands quick-menu with IE browser.
      
      2012 / 12 / 07 - version 0.5.1 (requires vb4.2.0)
      CKEditor support.
      Memory limit for imagemagick commands.
      Code pop-up now can overflow postbit boundary.
      
      2012 / 12 / 17 - version 0.5.2 (requires vb4.2.0)
      Introduced Formula Wrapper option.
      شات:


      دانلود رایگان vLaTeX - Math parsing with LaTeX - هک قرار دادن کارکترهای ریاضی در پست از وی بی ایران


      تصاویر مطلب

      • نوع فایل: png Image2.png (81.0 کیلو بایت, 3 نمایش)
      • نوع فایل: png Image4.png (74.8 کیلو بایت, 3 نمایش)
      • نوع فایل: png Image5.png (89.7 کیلو بایت, 5 نمایش)


      پشتیبانی شما از نویسنده ( تشکر ، اعلام نصب ، رعایت کپی رایت و پسورد )




  1. گیفت کارت آیتونز

  2. Top | #2
    کاربر سایت

    تاریخ عضویت
    Jan 2015
    ورژن ویبولتین
    5
    نوشته ها
    170
    مورد پسند
    25 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    19

    پیش فرض

    مرسی . این فایل هایی که باید آپلود بشن درون هاست رو کجای هاست آپلود کنم ؟ توی روت هاست یا توی پوشه خاصی باید اپلود بشن

  3. Top | #3
    پاسخگو و راهنمای سایت

    تاریخ عضویت
    Apr 2014
    ورژن ویبولتین
    :|:
    سن
    20
    نوشته ها
    3,340
    مورد پسند
    2,159 بار
    نوشته های وبلاگ
    3
    اطلاعات
    Windows 7/Server 2008 R2 Chrome 45.0.2454.93
    میزان امتیاز
    380

    پیش فرض

    نقل قول نوشته اصلی توسط drtrabit نمایش پست ها
    مرسی . این فایل هایی که باید آپلود بشن درون هاست رو کجای هاست آپلود کنم ؟ توی روت هاست یا توی پوشه خاصی باید اپلود بشن
    پوشه vLaTeXباید توی روت آپلود باشه
    پاسخ با نقل قول پاسخ با نقل قول توسعه دهنده

  4. Top | #4
    کاربر سایت

    تاریخ عضویت
    Aug 2011
    ورژن ویبولتین
    4
    نوشته ها
    438
    مورد پسند
    91 بار
    نوشته های وبلاگ
    1
    اطلاعات
    Windows NT 10.0 Chrome 48.0.2540.0
    میزان امتیاز
    50

    پیش فرض

    نقل قول نوشته اصلی توسط drtrabit نمایش پست ها
    مرسی . این فایل هایی که باید آپلود بشن درون هاست رو کجای هاست آپلود کنم ؟ توی روت هاست یا توی پوشه خاصی باید اپلود بشن
    در پوشه ای که وی بولتین نصب شده برای مثال
    public_html/forum

    انجمن آرشیو
    چی فایلی رو میخوایی 1 مگ هست یا 100 گیگ یا بیشتر لینک مستقیم تو همه بخش ها تحویل بگیرید با یک درخواست به ما

    انحمن آرشیو

    دانلود از یوتیوب به راحتی

    پرتال آرشیو


  5. Top | #5
    کاربر سایت

    تاریخ عضویت
    Jan 2015
    ورژن ویبولتین
    5
    نوشته ها
    170
    مورد پسند
    25 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    19

    پیش فرض

    توی روت آپلود کردم. اون هک رو هم نصب کردم اما به این صورت برای نمایش میده

    Capture.PNG

    من vlatex-0.4.1 نصب کردم

  6. Top | #6
    پاسخگو و راهنمای سایت

    تاریخ عضویت
    Apr 2014
    ورژن ویبولتین
    :|:
    سن
    20
    نوشته ها
    3,340
    مورد پسند
    2,159 بار
    نوشته های وبلاگ
    3
    اطلاعات
    Windows 7/Server 2008 R2 Chrome 45.0.2454.93
    میزان امتیاز
    380

    پیش فرض

    نقل قول نوشته اصلی توسط drtrabit نمایش پست ها
    توی روت آپلود کردم. اون هک رو هم نصب کردم اما به این صورت برای نمایش میده



    من vlatex-0.4.1 نصب کردم
    خب چرا اخرین ورژن رو نصب نکردین؟
    مراحل نصب رو کامل انجام بدین(اگه انگیلیسیتون مثل من زیاد خوب نیست از گوگل ترزلیت استفاده کنید متوجه میشید)

    Installation / Upgrade
    1.- Unzip the mod files.

    2.- Upload the vLaTeX directory to your forum root. The generated folder structure should look like this:

    vLaTeX/
    vLaTeX/index.htm
    vLaTeX/class_vlatex.php
    vLaTeX/functions_vlatex.php
    vLaTeX/vlatex.js
    vLaTeX/pics/
    vLaTeX/pics/index.htm
    vLaTeX/temp/
    vLaTeX/temp/index.htm

    3.- Change the permissions of the pics and temp folders so the web server can write on them.

    4.- Import the product XML in your admin control panel. If you're upgrading, set "Allow Overwrite" to yes.

    5.- Go to Admin CP > Settings > Options > vLaTeX - Math Parsing

    6.- Make sure the path to latex, dvips, convert and identify executables is correct. Those settings default to the most common values in most linux distributions, but every host is a different world.
    If you have shell access, you can check the location of the executables with the following commands:
    which latex
    which dvips
    which convert
    which identify

    7.- Make sure the path to the Images and Temporal directory are correct. You can change them if you don't like the default value, but the directories must exist and the server must have permissions to write on them.
    For extra safety, you could move the temp folder out of the public accessible directory three, thought it should not be needed, since files are deleted in matter of milliseconds.

    8.- Set the rest of options as you wish.

    9.- Test the product in some posts.

    10.- If you wish to add a button in the advanced editor tool-bar for this mod, you can add it using the admin cp section Custom BB Codes (write anything you want in Replacement, this mod will overwrite it). You can use any tex icon, for instanceTex icon | Icon search engine
    پاسخ با نقل قول پاسخ با نقل قول توسعه دهنده

  7. Top | #7
    کاربر سایت

    تاریخ عضویت
    Jan 2015
    ورژن ویبولتین
    5
    نوشته ها
    170
    مورد پسند
    25 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    19

    پیش فرض

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

  8. Top | #8
    کاربر سایت

    تاریخ عضویت
    Jan 2015
    ورژن ویبولتین
    5
    نوشته ها
    170
    مورد پسند
    25 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    19

    پیش فرض

    کسی نبود کمک کنه؟

  9. Top | #9
    کاربر سایت

    تاریخ عضویت
    Jul 2014
    ورژن ویبولتین
    4.2.2
    نوشته ها
    131
    مورد پسند
    26 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    16

    پیش فرض

    نقل قول نوشته اصلی توسط drtrabit نمایش پست ها
    کسی نیست اینو برای من نصب کنه ؟ خدا خیرش بده خیلی لازمش دارم
    آدرس انجمنتون لطفا

    پلاگینو تست میکنم خبر میدم
    ...better than yesterday



  10. Top | #10
    کاربر سایت

    تاریخ عضویت
    Jan 2015
    ورژن ویبولتین
    5
    نوشته ها
    170
    مورد پسند
    25 بار
    اطلاعات
    Windows 7/Server 2008 R2 Firefox 41.0
    میزان امتیاز
    19

    پیش فرض

    نقل قول نوشته اصلی توسط j.ali.li نمایش پست ها
    آدرس انجمنتون لطفا
    انجمن بزرگ یادگیری 24

صفحه 1 از 2 12 آخرینآخرین

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. مشکل این قسمت Defer parsing of JavaScript درسایت GtmetriX
    توسط par30iran در انجمن پرسش و پاسخ
    پاسخ: 19
    آخرين نوشته: 2014/05/03, 07:57 PM
  2. درست کردن خاصیت Defer parsing of JavaScript در سایت GtmetriX
    توسط PerSiaNOFFliNe در انجمن پرسش و پاسخ
    پاسخ: 3
    آخرين نوشته: 2013/11/22, 04:32 PM
  3. پاسخ: 30
    آخرين نوشته: 2012/04/18, 01:44 PM
  4. پاسخ: 5
    آخرين نوشته: 2012/03/17, 11:19 AM
  5. پاسخ: 7
    آخرين نوشته: 2011/10/10, 05:50 PM

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •