Tag Info

Hot answers tagged

23

The main difference is that Java is a language with a fixed grammar and a compiler separate from execution. TeX has neither of those things, there is no fixed grammar, even the lexical analysis and tokenisation depends on the run time behaviour. So a Java editor can use a java compiler, or (more likely) its own inbuilt implementation of the Java syntax ...


5

Use TeX-command-list for this job :) (add-to-list 'TeX-command-list '("DVI to PDF" "dvipdf %d" TeX-run-command nil ; ask for confirmation t ; active in all modes :help "Convert DVI->PDF")) To add a command to view the PDF, use (add-to-list 'TeX-command-list '("View ...


5

The biggest culprit (seems to me) would be a large (file size) image, such as a graph with way too many data points or a bitmap with much higher resolution than you need. (I have a friend back in the day generate a Matlab graph of a several second signal from raw data sampled at 40 kHz; the resulting EPS was hundreds of kilobytes and caused similar ...


5

You can process in a box register so the aux data gets written, then only use the box depending on your flag: \documentclass[a4paper,10pt]{article} \usepackage{vhistory} \usepackage{ifthen} \newbox\vhbox \newboolean{IncludeVersionHistory} \setboolean{IncludeVersionHistory}{true} \begin{document} \vhCurrentVersion \setbox\vhbox\vbox{% ...


5

Looks like a job for shell escape (\write18): \documentclass{article} \begin{filecontents*}{\jobname2.tex} \documentclass{article} \usepackage{blindtext} \begin{document} \blindtext[2] \end{document} \end{filecontents*} \usepackage{pdfpages} \immediate\write18{pdflatex \jobname2} \begin{document} \includepdf{\jobname2.pdf} \end{document} I've used the ...


4

Perhaps this is what you want: Use bashful package, which allows the execution of shell commands or external programs (I can test this only on Linux right now) The external program(s)/commands must be 'enclosed' in a \bash ... \END pair. Note: The compilation of the 2nd file is done each time when the outer wrapper document is compiled. tex1.tex ...


3

If PythonTeX gives ?? PythonTeX ?? or ??, that's an indication that it hasn't run, so no content has been generated. Your .latexmkrc didn't work for me under Windows. I had to change the line return system("pythontex.py \"$_[0]\"") ; to return system("pythontex \"$_[0]\"") ; given my system configuration. After that, it worked. If you are on Windows, ...


2

miktex is a distribution of many related programs. It includes tex, latex, context, luatex, ... and pdflatex. They want you to use pdflatex.


1

You cannot use the external tikzlibrary with chemfig because its \tikzexternal@laTeX@collect@until@end@tikzpicture macro, when it executes \begin{tikzpicture}, collects everything until it finds \end{tikzpicture}. There is an issue when external tikzlibrary is used with chemfig because: there is no \end{tikzpicture} but a \endtikpicture; the ...


1

In build --> define outputfiles --> command line argument to pass to: just delete line command and put instead -interaction=nonstopmode "%pm" when you use latex=>pdf. I think it works !


1

I know this is an old question, but here is an alternative approach, based on an idea from Automatically create two PDF output files from one tex file [duplicate] The idea is to write at begin of each chapter some commands (including the page numbers where to split the pdf) in a batch-file and after LaTex has finished, run the script to split the pdf into ...


1

In case someone has the same problem again in the future. For me it worked when I used \usepackage[dvips]{graphicx} instead of \usepackage[pdftex]{graphicx} I was using TeXShop 3.51 on a Mac. What I also did was in TeXShop -> Preferences to go to Tab 'Typesetting' and Where it says 'Default Script' to select the radio button 'TeX+DVI' and then in the tab ...


1

It is possible, in fact a few seconds searching brought up one example. Disclaimer: I have not used that plugin. The first thing to ask is: what is Eclipse, exactly? What does it provide? Eclipse is an IDE. It provides frameworks which can be leveraged by plugins which run in the IDE. It is best-known for being a Java IDE, and the Java plugin is one of ...


1

One solution you might want to consider is compiling your own format that includes all the packages you are using and keeping this special compiled format with your latex file. In this case, when packages get updated, you will still maintain the same state that you have now. You can read about compiling styles here: Using mylatexformat with this how to, ...


1

Tags might come in handy for this use case and luckily there is a LaTeX package (now, v1.0 is from August 2011) called tagging for that. Check out the following mini example. main.tex: \documentclass{article} \usepackage{tagging} \begin{document} \tagged{programmers}{Include programmers section} \tagged{riskanalyst}{Include riskanalyst section} ...


1

Use the extended syntax ?... for filename formatting, i.e. in your case: pdflatex -synctex=1 -interaction=nonstopmode "?me" See also the explaination on special chars below the command configurations (needs to have advanced options enabled to see all the details):



Only top voted, non community-wiki answers of a minimum length are eligible