在TeX.SE上,帮助中心表示,主题如下:
Formats like LaTeX, ConTeXt and plain TeX
Engines like pdfTeX, LuaTeX and XeTeX
Distributions like TeX Live, MiKTeX, and MacTeX
Related software and tools, BibTeX, MakeIndex, Lyx, etc.我想让您编写一个程序来告诉我,我的TeX是否属于TeX的主题类型。
有效的特克斯-S的明确名单如下:
TeX -> True/1/<match>
pTeX -> False/0/<not-match>
ConTeXt -> True/1/<match>
context -> False/0/<not-match>
MetaFun -> False/0/<not-match>
MetaFUN -> True/1/<match>P.S.关于主题TeX答案的加分!
发布于 2023-01-24 20:05:29
"MetaPost|PostScript|MetaFUN|?|La?|LuaLa?|Lua?|ConTeXt|Bib?|pdf?|Lyx|MakeIndex|? Live|XeLa?|Xe?|Mac?|MiK?"'?"TeX"AR'|ZisAq"..."'?"TeX"AR'|ZisAq # Implicit input
"..." # Push the string
AR # Replace...
'? # ...the character '?'...
"TeX" # ...with the string "TeX"
Zi # Split the resulting string...
'| # By the character '|'
sAq # Is the input in this list?
# Implicit outputhttps://codegolf.stackexchange.com/questions/84380
复制相似问题