37

Solution to use Texstudio and output the build (temporary) files into a seperate folder using biber: Put a new Folder with YourName into the same directory as your main .tex file. Options -> Configure -> Commands -> PdfLaTeX for MiKTeX add -aux-directory=YourName. If you use TeX Live use -output-directory YourName. Result looks something like this: ...


25

How does LaTeX implement UTF-8? The Unicode character é is encoded as two byte in UTF-8, precisely <C3><A9> (I'll use throughout this to denote bytes, also when they are character tokens for TeX). When \usepackage[utf8]{inputenc} is loaded, the byte <C3> is made active and defined to look for the following byte, because <C3> in UTF-8 ...


25

Without a minimal working example (MWE) this is just guessing, but if your document has defined acronyms or glossary entries within the document environment and you upgraded to version 4.0, an extra write is required. The reason for this is as follows: Version 3.07¹ and below wrote the name, description and symbol fields to the external glossary files (in ...


22

It depends on how paranoid your settings in texmf.cnf are. Mine (default texlive 2014) says: % Allow TeX \openin, \openout, or \input on filenames starting with `.' % (e.g., .rhosts) or outside the current tree (e.g., /etc/passwd)? % a (any) : any file can be opened. % r (restricted) : disallow opening "dotfiles". % p (paranoid) : as `r' and ...


21

With the help of When is the aux file read and written? and Barbara Beetons kind assistance I was able to determine what goes wrong and how to prevent it. This is the problem: Normally I then don't work with the TeX engine on the console, but simply correct my error and restart. This is what I should have done on the console: Type ?+Return to get an ...


21

There are certainly several ways to implement a data transport mechanism between runs. The LaTeX one attempts to be rather economically with resources. There are a number of tasks that it caters for: TOC-type files are only generated if the document asks for a TOC. This only becomes clear somewhere within the document (i.e., not automatically available at \...


18

Some further extension you might encounter depending on what packages you are using: .soc - package changes .fdb_latexmk - compile tool latexmk .fls - running latex with $ latex -recorder .spl - documentclass elsarticle (Elsevier journals) .auxlock - tikzlibrary external .xwm - package xwatermark .tdo - package todonotes


18

You can use the draft mode: -draftmode Sets \pdfdraftmode so pdfTeX doesn't write a PDF and doesn't read any included images, thus speeding up execution. Arara also supports it, here's an example for TeXworks: % arara: pdflatex: { draft : yes } I use the following snippet to compile a large document with hundreds of pages and ...


18

I have the same problem. According to the bug report, it seems to be related to a change in the way TeXstudio saves a file. What can you do? Two options: a) Give up the cloud ... and simply work outside your Dropbox, as the OP suggested. You can still manually copy files into the Dropbox to back them up or share them. b) Downgrade TeXstudio and keep the ...


17

Adding to the nice answer by Christian, I'd like to mention some subtler aspects of writing in the .aux file. LaTeX defines a file handle for this, which is \@auxout, and provides the function \protected@write for “safe” writing in files. This function differs from ordinary \write in three main aspects: robust commands or \protected ones are written out ...


17

The main .tex file. \documentclass{standalone} \usepackage{tikz} \begin{document} \input{fig_TikZ_graph_extensions} \end{document} The file fig_TikZ_graph_extensions \begin{tikzpicture} [every path/.style={thick}] \usetikzlibrary{arrows.meta} % ---------- Language dependent texts \newcommand{\infoto}{info to}; %p/ compilar \newcommand{\compile}{compile}; % ...


16

Although there is already an answer to this question, I think it is wrong. TeXShop users are always complaining about this problem and hardly any other people are complaining. I've been a TeXShop fan almost since the first edition but this is its most annoying feature. It happens to me all the time in TeXShop and almost never in any other program I use, ...


16

First of all, an interesting remark: it's quite surprising and amusing that this fact went unnoticed for virtually every single release of arara. I blame Nicola, of course: once she found this major issue, apparently the universe captured an unbalanced force and decided to go ballistic. :) As retaliation, Nicola is now part of the official arara team. ♥ ...


16

As mentioned in the comments, you should run biber to compile your bib file as you have used biber as the backend. \usepackage[style=authoryear,backend=biber]{biblatex} Here are the commands to compile your myFile.tex and your .bib files: pdflatex myFile biber myFile pdflatex myFile


16

LaTeX has always done that (and it's not really documented why) however I think it has two purposes. As egreg mentioned in comments it means that if the operating system does not allow file writing at that point you get an error at the start of the document not at some unpredictable place later where latex needs the aux file. By writing something you ensure ...


15

There is @paulo's awesome arara (The cool TeX automation tool) without which I can't imagine working anymore. It has a predefined clean directive that allows to specify which files should be seleted after compilation. The following file called test.tex would be compiled twice and then the aux and the toc file would be removed: % arara: pdflatex % arara: ...


13

This is a working but basic answer; it's somewhat involved. Also, I am not a programmer by any definition, nor an Os X expert. Surely there are better ways to achieve the same effect. At the end of the answer, there's a link where you can download a copy of the app described in the post. Background In Os X, any directory with an extension can be a "...


13

I'd use a different strategy: use a wrapper command, rather than directly defining macros. \documentclass{article} \makeatletter \newcommand{\usevalue}[1]{% \ifcsname usevalue@#1\endcsname \csname usevalue@#1\endcsname \else ??% \fi } \newcommand{\definevalue}[2]{% \write\@auxout{% \unexpanded{\global\@namedef{usevalue@#1}{#2}}% } } \...


12

This is a nice example of what I term "impossible document", i.e., a document those content any layout specifications do not have a valid representation. This kind of problem can happen whenever content presentation depends on content placement. This particular case the placement of the figure resulted in a reference string of different length (which when ...


12

As said by others, it's not really a great idea to (automatically) remove .aux, .log and similar files. Some of them provide important info in case things go wrong (for example .log), others are needed for things to actually work when you compile your document multiple times (.aux, .toc etc.). Deleting them can break things. However, if this is related to a ...


12

Update for Overleaf version 2: the menu has changed. If you need any additional files, you can find them in the compiler panel under "Logs and output files" and "other logs & files".


12

No, the .fls file should not be version controlled because it is a build artefact. That file is automatically generated when running LaTeX with the -recorder option and contains the full filesystem paths of all included files. That also means that the contents of this file depend on the installation directory of your TeX distribution and is therefore ...


11

ConTeXt MkIV related files: User-Input Files .tex: For content and typesetting instructions. .cld: For ConTeXt Lua Documents .xml: For XML data (related: .xhtml) Macro package files .mkiv: Code for MkIV .mkvi: Code for MkIV written with named variables \def\macro#{val1}#{val2} rather than \def\macro#1#2, etc.) .lua: Lua code for MkIV .lfg: Goodies for ...


11

morewrites – Always room for a new write stream The pack­age aims to solve the er­ror “No room for a new \write”, which oc­curs when the user or when the user’s pack­ages have ’al­lo­cated too many streams us­ing \newwrite (TeX has a fixed max­i­mum num­ber – 16 – [of] such streams built-in to its code). The pack­age hooks into TeX prim­i­tive ...


11

\documentclass[12pt]{article} \usepackage{etoolbox} \makeatletter % This macro will contain all the tracked commands: \def\@mycommands{} % These macros enable and disable tracking the commands: \def\starttrackingnewcommands{% \let\old@@newcommand\@newcommand \def\@newcommand##1{% \expandafter\def\expandafter\@mycommands\expandafter{\@...


10

You can use environment variable TEXMFOUTPUT to specify output directory for bibtex files. In your case, you can create makefile like: all: mkdir out -p pdflatex -output-directory out parent.tex TEXMFOUTPUT="out:" bibtex out/parent pdflatex -output-directory out parent.tex pdflatex -output-directory out parent.tex Consider more ...


10

Only a subset of the TeX language is available, if text is written to a file. The expandable machinery is working, but assignments and other unexpandable stuff is not. In this case \plural can be made expandable: \documentclass{article} \immediate\newwrite\txtfile \immediate\openout\txtfile=\jobname.txt \makeatletter \newcommand*{\plural}[1]{% \ifnum#1=...


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