Texmaker and TeXstudioConcatenating compilations

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
afullo
Posts: 3
Joined: Wed Feb 11, 2015 3:21 pm

Concatenating compilations

Post by afullo »

Is there a way to concatenate different compilations, in order to recall them in the correct order with a single key?

For instance, I want to do the steps 'tex' -> 'dvi' -> 'ps' -> 'pdf' (F2, F4, F8) without pressing three different keys.

Thanks in advance. ;)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Re: Concatenating compilations

Post by Stefan Kottwitz »

Welcome to the forum!

Texmaker has quick-build commands and keyboard shortcuts for them. Go to the Texmaker configuration, to "Quick-build", choose "User" to create a custom profile. Before that, look at the existing profiles. One may already work for you, or you can see how they are built.

Stefan
LaTeX.org admin
afullo
Posts: 3
Joined: Wed Feb 11, 2015 3:21 pm

Concatenating compilations

Post by afullo »

Stefan_K wrote:Welcome to the forum!

Texmaker has quick-build commands and keyboard shortcuts for them. Go to the Texmaker configuration, to "Quick-build", choose "User" to create a custom profile. Before that, look at the existing profiles. One may already work for you, or you can see how they are built.

Stefan
It works, thanks for the solution and thanks also for the welcome! :)
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Concatenating compilations

Post by Johannes_B »

Hi and welcome,

arara might also be of interest to you. You set the programs to run in the preamble of the document, call arara and arara does the work for you.

Code: Select all

% arara: latex
% arara: biber
% arara: latex
% arara: pdflatex
\documentclass{article}
\usepackage{blindtext}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\blindtext
\cite{companion}

\blindtext
\printbibliography
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
afullo
Posts: 3
Joined: Wed Feb 11, 2015 3:21 pm

Concatenating compilations

Post by afullo »

Johannes_B wrote:Hi and welcome,

arara might also be of interest to you. You set the programs to run in the preamble of the document, call arara and arara does the work for you.

Code: Select all

% arara: latex
% arara: biber
% arara: latex
% arara: pdflatex
\documentclass{article}
\usepackage{blindtext}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\blindtext
\cite{companion}

\blindtext
\printbibliography
\end{document}
Thanks. So by varying options in there, compilations are automatically done in the desired format(s) ?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Concatenating compilations

Post by Johannes_B »

Yep, you decide on the programs and the order in which they should be called, arara does the rest. If you comment out the biber line, biber will not be run. Could be a bit faster then maintaining different profiles.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply