InLaTeXbot icon indicating copy to clipboard operation
InLaTeXbot copied to clipboard

Is it possible to ask the bot to use xelatex/lualatex?

Open ice1000 opened this issue 4 years ago • 10 comments

Sometimes we want to typo CJK or emojis

ice1000 avatar Nov 15 '21 20:11 ice1000

No, sorry, right now there is no such option.

I think I could do that in principle (just replaced pdflatex with xelatex): image But that will require more work from me and debug, and I don't know when I will have free time. By the way, I couldn't find an easy way to include emoji, maybe you can recommend anything?

vdrhtc avatar Nov 16 '21 12:11 vdrhtc

I don't know. I was just googling and they said you need luatex😭

ice1000 avatar Nov 16 '21 16:11 ice1000

Thanks for creating the bot! It's lovely

ice1000 avatar Nov 16 '21 16:11 ice1000

Maybe this will help? I modified and implemented InXeLaTeXbot on the basis of this repository, and now it is also available on Telegram: @InXeLaTeXbot. It may be a bit slow due to server performance though, you can also clone the repository and build it on your own device.

For CJK text, @InXeLaTeXbot has built-in fonts such as Source Han, you only need to add text like this in the preamble to use:

\documentclass[fontset=none, UTF8]{ctexart}
\usepackage{xeCJK} % CJK font
  \setCJKmainfont{Source Han Serif} % or `Source Han Serif TC` for Traditional Chinese, etc
  \setCJKsansfont{Source Han Sans}
  \setCJKmonofont{Source Han Sans HW}

Frederisk avatar Nov 08 '22 16:11 Frederisk

Thank you very much for testing! Maybe you could run it for some time and if there are no issues, I then may replace pdflatex by xelatex? And if you have time, may be you could test lualatex as well?

vdrhtc avatar Nov 08 '22 17:11 vdrhtc

I've been using it for a few months, and everything seems to be working fine. In fact, I've been using it for quite some time, I've only recently sorted it out and made it public. I've recently been trying to write some scripts to make this bot easier to deploy, and some of them have been pulled into my fork.

As for your bot, I think it might also be a good idea to keep using pdflatex until switching is provided? In this case, users will now have pdflatex and xelatex to choose from (There are some rendering behavior differences between pdflatex and xelatex, such as tikzpicture). I'm also planning to add the toggle feature myself, but it's been slow due to being busy.

For lualatex, I have simply tested it before, and it seems to work as well. But since I'm mainly using xelatex instead of lualatex, the testing may not be very adequate.

Frederisk avatar Nov 08 '22 18:11 Frederisk

Maybe this will help? I modified and implemented InXeLaTeXbot on the basis of this repository, and now it is also available on Telegram: @InXeLaTeXbot. It may be a bit slow due to server performance though, you can also clone the repository and build it on your own device.

For CJK text, @InXeLaTeXbot has built-in fonts such as Source Han, you only need to add text like this in the preamble to use:

\documentclass[fontset=none, UTF8]{ctexart}
\usepackage{xeCJK} % CJK font
  \setCJKmainfont{Source Han Serif} % or `Source Han Serif TC` for Traditional Chinese, etc
  \setCJKsansfont{Source Han Sans}
  \setCJKmonofont{Source Han Sans HW}

Great work, man! I was wondering how you did manage to find the built-in fonts of @InLaTeXbot, 'cause I am desperately in need of a Persian-supported font like Arial for using the XePersian package...

amireza007 avatar Jan 24 '23 01:01 amireza007

@amireza007, I believe that @Frederisk should be able to install some Persian fonts on his machine so that they become available to XeLaTeX. But that is on his good will...

vdrhtc avatar Jan 24 '23 10:01 vdrhtc

Hmm, yes, InXeLaTeXbot runs on my own device, so I can install the fonts I need myself.

Frederisk avatar Jan 24 '23 18:01 Frederisk

@Frederisk Yes yes, I thought there are some fonts(like the one you mentioned) included in the original bot, not the one you forked. My bad!

amireza007 avatar Jan 24 '23 18:01 amireza007