minoki / cluttex Goto Github PK
View Code? Open in Web Editor NEWProcess LaTeX documents without cluttering your working directory
License: GNU General Public License v3.0
Process LaTeX documents without cluttering your working directory
License: GNU General Public License v3.0
I got a warning when I, with the latest TeX Live, ran
$ cluttex --engine=pdflatex
against a LaTeX file that has:
\usepackage{xparse}
The error message said
[DIAG] The driver option for expl3 is missing or wrong.
[DIAG] Consider setting 'driver=pdfmode' option when loading expl3.
However this warning is no longer valid since l3backend has received its updates and we have l3backend-pdftex.def
, l3backend-luatex.def
, and l3backend-xetex.def
instead of l3backend-pdfmode.def
and l3backend-xdvipdfmx.def
. A pull request that will fix this will follow.
最新のTeX Live で expl3
を読み込む LaTex file を clpdflatex
すると expl3 のドライバミスマッチエラーがでます.これは l3backend
のドライバ名が pdfmode
-> pdftex
, luatex
および
xdvipdfmx
-> xetex
と変わったためだと思われます.PR投げて修正しますが,Luaは不慣れなのでお助けいただけるとありがたいです.
I often make mistake that specifies the wrong engine for my LaTeX files.
So I want to specify the engine in the head of the LaTeX file.
Is there any support for such function?
Hi,
I've read that setting -output-directory
for latex engines breaks many packages. So I thought of using cd
instead of setting output-directory
(in effect this should be similar to cd <dir> && <latex-engine> ... && cp <output-file> ../
instead of <latex-engine> -output-directory <dir> && cp <dir>/<output-file> ./
).
Is this possible with the current set of options?
If not can one avoid that cluttex
sets output-directory
at all (so that cd
etc can be handled by a Makefile on my own)?
The latexmk command used to be the uniformly accepted "make" command for TeX. It does not seem to support makeglossaries
, and still keeps all the files in the same directory.
Are these the only differences? Would it be possible to document how exactly cluttex improves over latemk?
現在のClutTeXの--bibtex
オプションでは、BibTeXが再実行されるかはauxファイルが更新されたかどうか(?)で決まっているようです。
そのため、bibファイルのエントリの中身を変えるだけではBibTeXは再実行されず、古いbblが使われてしまいます。
なのでbibファイルのエントリを更新したときもBibTeXを再実行する機能が欲しいです。
BibTeXが再実行されるべきなのは、「LaTeXソースで使われているBibTeXエントリ」の中身が「書き変わった場合」ですが、これは大変なので、使われているbibファイルたちの更新日時とbblファイルの更新日時を比べてbblファイルが古ければBibTeXを再実行する、のが現実的な気がします。
ClutTeXの実装を見てみましたが、extract_bibtex_from_aux_file
でbibdataの中をパースしてbibファイル名を取り出してごにょごにょするのかなと思います。が、BIBINPUTSやbiberのことも考えると難しそうです...
Hi,
I'm currently writing some sort of benchmarking feature which enables the user to see which sections take long time to compile (it is open what to do with that information, but I find it interesting to know which parts take a long time (except for the preamble parsing/loading which hardly can be measured) the overall compilation time is high).
For that purpose, one would need to add this snippet to the preamble
\usepackage{l3benchmark}
\newwrite\benchmarkOutput
\immediate\openout\benchmarkOutput=\jobname.time
\ExplSyntaxOn
\AddToHook{cmd/section/before}{\benchmark_toc:\immediate\write\myoutput{\thesection \g_benchmark_time_fp}\benchmark_tic:}
\benchmark_tic:
\ExplSyntaxOff
(see l3benchmark.pdf for reference)
This creates a new file which holds the benchmarking results and the corresponding section number (which can be resolved by the use of the .aux
file to the section name (this is done with a simple lua function called in the end which just parses the files)).
Does someone have an idea how to inject this into the input tex file? (I think the alternative would be to display information to the user what to add to the preamble if the time
file is too old or not present)
PS: Sorry for asking the question as an issue, but I didn't found another way to get in touch.
--makeglossaries
doesn't work with other extensions than .glo
/.glg
/.gls
. Therefore, it can't be used for acronyms or other glossaries.
I'd work on this, but not right now. Just wanted to file this "bug/feature".
I'd have to read the glossaries documentation more carefully if there are some common extensions (I think so). Then maybe we should activate these by default and allow the user to add more extensions to it.
こんにちは。最近ClutTeXを知って使ってみました。
使っていて気になったのですが、エスケープシーケンスによるカラー出力で、[EXEC]のメッセージと[ERROR]のメッセージはどちらも全く同じ色(赤)で出力されるようです。
別の色にした方がわかりやすいと思うのですが、どうでしょうか?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.