Tag Info

New answers tagged

2

tcolorbox provides command \tcbinputlisting which does all the work for you. Let's supose that you have the file Lipsum.tex (taken from JLDiaz answer) already compiled. If you want to include into another document the code and the result, use \tcbinputlisting with options listing file=Lipsum and listing and comment. listing includes tex source and comment ...


2

Here is a MATLAB script which uses Kurt's answer to split a PDF into two files, one colour and one grayscale. The original file is preserved. It does not handle double-sided printing. It is not bullet-proof and might need some debugging, but hopefully it will work out of the box. You will need: Ghostscript (version 9.05 and later) MATLAB function ...


2

Try Gummi, the lightweight and very efficient alternative to Texmaker. It can do the automatic compilation as described. If you are on Ubuntu, Gummi is included in the official repository, so just do apt-get install gummi. Another option is to use the online (and collaborative) editor Overleaf, which can also do auto compilation but a bit slower.


4

\documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{graphs, graphdrawing} \usegdlibrary{force} \begin{document} \tikz [rounded corners] \graph [spring layout, node distance=2cm] { 1 -- 2, 1 -- 3, 1 -- 31, 1 -- 32, 1 -- 33, 2 -- 3, 32 -- 33, 33 -- 31 }; \end{document} Needs to be compiled with LuaLaTeX. More details on PGF manual, ...


1

\formlabel (i.e. \value{lexemeCounter}}) does not expand to something useful as a name for the \TextField command, so it's ignored and does show nothing. Using \number\value{lexemeCounter} however works. The value must be explicitly changed to a literal number representation for a string label (i.e. a text field name) \documentclass{scrartcl} ...


3

You should use \foreach after doing \usepackage{pgffor} (or \usepackage{tikz}). However there's a problem with \foreach: each cycle is performed in a group, so you'd be including the files in a group, which might have undesired consequences. Also \i would be interpreted incorrectly if used in one of the files. Solution: \newtoks\listoffilestoinput ...


4

Some remarks: \ForEach might be defined by some package, but the syntax looks like pgf's \foreach. TeX/LaTeX is case sensitive. At least package pgffor should then be loaded unless TikZ or pgf is used anyway. \i is a quite bad name for including text files, because \i might be used in some languages, it usually generates a "i" without dot: ı. The ...



Top 50 recent answers are included