Friday 1 November 2019

MathJax Support

Inisialisasi 


<script>
window.MathJax = {
  loader: {
  load: [
  'input/tex-full', 
  '[tex]/ams',
  '[tex]/amscd',
  '[tex]/mhchem',
  '[tex]/physics',
  '[tex]/newcommand', 
  '[tex]/noundefined',
  '[tex]/require',
  '[tex]/autoload',
  '[tex]/configmacros',
  '[tex]/action',
  '[tex]/noerrors',
  'output/chtml',
  'a11y/explorer'
  ]
  },
  tex: {
    inlineMath: [ ['[latex]','[/latex]']],
displayMath: [ ['[latex]','[/latex]']],
processEscapes: true,
packages: {
  '[+]': ['ams','amscd','mhchem','amssymbols','physics','noerrors','noundefined','action']
},
macros: {
   minormal: ["\{\\mathrm #1\}", 1],
   sb: ["\{\_ \{#1\}\}", 1],
   mn: ["\{\\mathrm #1\}", 1],
   textellipsis: ["\{\\dots #1\}", 1],
}
  },
  svg: {
    fontCache: 'global'
  }
};
</script>

Konten Dinamis via Ajax 

Setelah konten via ajax selesai diload, jalankan script berikut :

MathJax.texReset();
MathJax.typesetClear();
MathJax.typesetPromise().then(() => {
// modify the DOM here
MathJax.typesetPromise();
}).catch((err) => console.log(err.message));

Ukuran Huruf 

Untuk mengubah ukuran huruf MathJax, dapat menggunakan CSS :

.MathJax {
  font-size: 1.3em;
}

Referensi

  1. MathJax, http://docs.mathjax.org/en/v3.0-latest/
  2. LaTeX Tabular environment, https://github.com/mathjax/mathjax-docs/wiki/LaTeX-Tabular-environment
  3. coexist character MathJax - Latex, http://tancro.e-central.tv/grandmaster/textex/coexist-character.html

Instalasi : Pemeriksaan Kemiripan Persamaan Matematika

MIaS

MIaS merupakan subsistem yang digunakan untuk memeriksa kemiripan persamaan baik itu matematika, kimia ataupun fisika.

Berikut adalah langkah langkah untuk menginstall MIaS.

cd mias/
./install.sh

Kemudian beberapa konfigurasi berikut di edit application/config.php

$config['webmias_url']                               = $config['site_protocol']."://".$config['site_domain'].":8080/WebMIaS-1.6.6-4.10.4-SNAPS$
$config['cli_mias_url']                              = $config['site_protocol']."://".$config['site_domain']."/indexing/cliMias";
$config['latex2mathml_url']                          = $config['site_protocol']."://".$config['site_domain']."/indexing/latex2MathML";
$config['indexed_formula_course_arr']                = [4] ;// [4,7,9,14,37]; //MAD, MAA, Fisika, Numerik
$config['tampilkan_kemiripan_di_kumpulan_soal']      = 0 ;

Latex2MathML

cd application/bin/Latex2MathML/
mvn clean install

Saturday 26 October 2019

Item Banking

...

Referensi


  1. Item banking, https://www.slideshare.net/rawezhibrahim/item-banking-rawezh-april-282014
  2. Developments in Item Banking, https://www.rasch.org/memo76.pdf
  3. Item Banking With Rasch Measurement: an Example for Primary Mathematics in Thailand, https://ro.ecu.edu.au/cgi/viewcontent.cgi?article=1007&context=ceducom
  4. Item Banking for State and Local Test Development and Use: Specific Guidelines for Local Practitioners., https://eric.ed.gov/?id=ED242763
  5. Using automatic item generation to create multiple-choice test items, https://www.researchgate.net/publication/229158837_Using_automatic_item_generation_to_create_multiple-choice_test_items
  6. The effectiveness of automatic item generation for the development of cognitive ability tests, https://www.repository.cam.ac.uk/handle/1810/289990
  7. The Role of Item Models in Automatic Item Generation, https://www.researchgate.net/publication/239794821_The_Role_of_Item_Models_in_Automatic_Item_Generation
  8. Evaluation of Automatic Item Generation Utilities in Formative Assessment Application for Korean High School Students, https://files.eric.ed.gov/fulltext/EJ1174470.pdf
  9. Automatic Item Generation: Theory and Practice, https://books.google.com.sg/books/about/Automatic_Item_Generation.html?id=vJic_ov2gEQC&redir_esc=y
  10. Computerized Adaptive Testing with R: Recent Updates of the Package catR, https://www.jstatsoft.org/article/view/v076c01

Friday 1 February 2019

Instalasi : Supervisor

Mac


/usr/local/etc/supervisord.ini


/usr/local/etc/supervisor.d/elasticsearch.ini

/usr/local/etc/supervisor.d/searchapi.ini

/usr/local/etc/supervisor.d/indexer.ini

Saturday 5 January 2019

Instalasi : Mac OS

Status : Draft


brew install --cask mactex

Jika koneksi lambat, disarankan mendownload paket MacTex melalui torrent.

brew install python3
brew install --cask  phantomjs
brew install imagemagick
brew install cairo
brew install p7zip
sudo easy_install pip

cd banksoal/
pip install -r requirements.txt
pip3 install -r requirements.txt


install PIL 1.1.7 [2]
install pdftk [3]
install pgAdmin [4]

pecl install imagick-3.4.4 [5]


PHP-FPM

Jika Anda mendaptkan error, seperti berikut ketika proses konversi Latex ke Image di browser :

convert: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r360x360' '-sOutputFile=/var/tmp/magick-424wzOPTYa4oUUs%d' '-f/var/tmp/magick-424b_MRRkTxfwQT' '-f/var/tmp/magick-4247LVcZCDEEICo'' (1) @ error/pdf.c/InvokePDFDelegate/290.

Maka tambahkan konfigurasi berikut di /usr/local/etc/php/7.1/php-fpm.d/www.conf (sesuaikan dengan versi PHP yang And gunakan) :

env[PATH] = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Elasticsearch


Untuk memastikan konfigurasi Elasticsearch sudah benar, jalankan perintah berikut :

supervisord -c  /usr/local/etc/supervisord.ini

Referensi 


  1. MacTex, http://www.tug.org/mactex/mactex-download.html
  2. PIL 1.1.7, http://www.pythonware.com/products/pil/#pil117
  3. pdftk, https://www.pdflabs.com/tools/pdftk-server/
  4. pgAdmin, https://www.pgadmin.org/download/
  5. Fix `ld: library not found for -lgomp` when installing Imagick 3.5 via PHP pecl on Mac, https://dev.to/andreaolivato/fix-ld-library-not-found-for-lgomp-when-installing-imagick-3-5-via-php-pecl-on-mac-488n