That time after I finishing my blog, I become more lazy, and hesitated to learn new thing like latex. After working on 2captcha, I bravely make new user for focusing on learning late with vim. After wandering around reading documentation on vimtex and also reading good blog that explain about how to use vimtex and UltiSnip for Latex writing on Vim. I more focused interested in vimtex. I read in that documentation that
This plugin using python runtime.
After reading of all engine that supported by this plugin. I am suddenly interested in plugin that written in C
and Rust
programming language. The name of the engine is tectonic-typesettings. This is pretty new latex engine that can suddenly download the package needed by the document.
Reading Tectonic Documentation
Well, I took a long time reading documentation about how to build this program. Even though, I just download the binary, Somehow I am interested by how this program is build. I know then in Rust, you can make outer dependency then turn it into single binary. That is how pretty useful this programming language is. After that, I know that this program is having two version that is v2
and v1
. What more make me interested is feature about watch
. I think that this feature is pretty useful for live reload. Somehow I know then that tectonic is very well developed in this two year. More importantly the feature like shell-escape
that considered to be dangerous but used by many package in latex is included in this engine. I try to more understanding about how latex work then because this is my first time for me to learning latex.
First time I download such a template from overleaf about thesis, and try compile it with this engine it show error forbiden. This warning is showed that you can use input
command on latex file that still doesn’t exist. After changing that line into commnent, then I try to compile it again. Right now, the error showing that package Times New Roman
is not found. So the solution is installing the package that contain times new roman
font or installing font on my local machine. I am still don’t how to download package manually using this engine, because if you using texlive
, the command is pretty simple using tlmgr
. So I choose option to install font manually on my local machine. This is how you can do it :
mkdir ~/.local/share/fonts
# Put the font on the directory .local/share/fonts/<Your-font-name>
# Replcae the <Your-font-name> with the name of your font.
fc-cache -f -v ~/.local/share/fonts/<Your-font-name>
So, I succeed compile the latex document even though I also must make comment on input-figure
command. Then I opened the document on zathura, yeah the pdf is fully rendered, I got to know how tectonic works then. After that I also exploring some template on overleaf. It show many template not only thesis only. So, because knowing that I can make free account on that platform, So I try it, and it really awesome, even you can change the engine. I also really like it so much then it can also show some directory, with picture and other latex hidden document that normally you can’t see as guest account.
Trying ftdetect
directory on neovim
One of the feature that on vim or neovim is file type detection, It means that you can also make your own type of file. This is pretty awesome though, knowing that I try to set my file type in for file type named bomark that useful for bookmark browser. The command is pretty simple, here is how you can do that :
au BufNewFile,BufRead *.bomark set filetype=bookmark
It just normally detect file type bomark
if it is added or opened in vim. You can also add it in init.vim
file, so I think that this feature is useless, but considering how complex neovim or vim file type detection algorithm is, so it is really worth it to make directory that just focused on file type detection on the runtime. Well, add another file to that directory is also to make it clear that new type of file is exist, so we can doing something with that file. In more addition making file on ftplugin/bomark.vim
make it more easier to make the command that only loaded when those file can be read.
Daily Routine
My daily routine is as usual. I just working on 2captcha and reading konosuba light novel especially on explosion spin off is really good story, and then many more my misunderstanding on main story got cleared by this story. There isn’t anymore interesting event happen after that. If one of event that make me laugh is the event when the bolang-baling
, javanese food with sweet flavor is detected as tahu
, javanese food with salty flavor is got cooked so what happen after that, yeah you really know what I mean right.
My Future Plan
Actually I got this idea after reading megumin resolution to meet the onee-chan who taught him about explosion spell. So I want to make picture dictionary that contain language in Javanese, Indonesian, and English. I think I will make picture as ascii or using Incscape to make the colored one. After that I will make android app, that you can easily browse with picture and you can make voice in arabic with it. This dictionary is focused on for the word that exist in Al-quran only instead of normal arabic language. Well, yeah I focused on the word first before I can interpreted the whole Al-quran thing with my language. So that, how it is, I also planning on making the book version that maybe will sell on local store. I made the book version using latex, that has been approved having capability to handle very much letter on big document at once. The graphic also must be good, so I think it is fine if I am using tectonic engine.
That is for today, hope you can learn something new, or if you interested in the tectonic latex engine, don’t hesitate to ask on its forum, it’s pretty active with notable user like PHPirates around there, it maybe really took time for learning this engine, but I think this engine is pretty awesome though. I decided to use v2 of this engine to make some document there