Commit 1dc893d5 authored by Alija Sabic's avatar Alija Sabic
Browse files

Add example for crossrefernces, move content to be executed only once to...

Add example for crossrefernces, move content to be executed only once to preamble (acronyms, etc.; note: \input)
parent cfc95a43
......@@ -2,6 +2,8 @@
# latexmkrc
$builddir = $ENV{'BUILDDIR'};
$depsfile = $ENV{'DEPSFILE'};
$bibdirs = $ENV{'BIBDIRS'};
$viewer = $ENV{'VIEWER'};
$recorder = 1;
$pdf_mode = 1;
......@@ -12,9 +14,9 @@ $silence_logfile_warnings = 0;
$use_make_for_missing_files = 1;
$out_dir = $builddir;
$deps_file = "$out_dir/$depsfile.deps";
@BIBINPUTS = ('.',$ENV{'BIBDIRS'});
@BIBINPUTS = ('.',$bibdirs);
$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 -file-line-error %S';
$pdf_previewer = $ENV{'VIEWER'};
$pdf_previewer = $viewer;
push @generated_exts, 'lol', 'sta', 'synctex.gz';
\ No newline at end of file
......@@ -18,10 +18,10 @@ LATEXMK_COND = @export DEPSFILE=$(notdir $(basename $(TARGET))) &&
$(if $(strip $(TARGET)), \
$(call LATEXMK, $(basename $(TARGET).tex )$1), \
$(call LATEXMK, $(BASENAME)$1) \
&& echo $(INSTRUCTIONS))
&& echo '\e[1A' && echo $(INSTRUCTIONS))
LATEXMK_ERRS = $(if $(strip $1), \
$(call LOG, $(BUILDDIR)/$(basename $1).log), \
$(call LOG, $(BUILDDIR)/$(notdir $(basename $1)).log), \
$(call LOG, $(BUILDDIR)/$(basename $(BASENAME)).log) \
)
......
No preview for this file type
......@@ -62,7 +62,6 @@
% ----------------------------------------------------------------------------------------------------------------------------
% Miscellaneous
% ----------------------------------------------------------------------------------------------------------------------------
\RequirePackage{blindtext}
\RequirePackage{fhtw}
\RequirePackage{graphicx}
\RequirePackage{textcomp}
......
\documentclass{standalone}
\usepackage{booktabs,tabu,multirow,multicol,xfrac}
\usepackage[binary-units]{siunitx}
\sisetup{quotient-mode=fraction,fraction-function=\sfrac,product-units=single,exponent-product=\times}
\usepackage{preamble}
\begin{document}
......
\documentclass{standalone}
\usepackage{booktabs,tabu,multirow,multicol,xfrac}
\usepackage[binary-units]{siunitx}
\sisetup{quotient-mode=fraction,fraction-function=\sfrac,product-units=single,exponent-product=\times}
\usepackage{acro}
\onlyifstandalone{\input{acronyms}}
\usepackage{preamble}
\begin{document}
......
\documentclass[class=book,crop=false]{standalone}
\usepackage{blindtext}
\usepackage{preamble}
\usepackage{blindtext}
\onlyifstandalone{
\usepackage{xr}
\externaldocument{chapter02}
}
\begin{document}
\chapter{Introduction}
Example crossreference to Chapter \ref{ch:content} showing how to crossreference
content between chapters when compiling individually (cf. \texttt{\textbackslash onlyifstandalone\{\}}).
\newline
\blindtext
\section{First}
......
......@@ -3,10 +3,11 @@
\usepackage[subpreambles,sort]{standalone}
\usepackage{preamble}
\usepackage[graphicx]{realboxes}
\usepackage{blindtext}
\begin{document}
\chapter{Content}\label{content}
\chapter{Content}\label{ch:content}
This chapter provides examples on
......@@ -152,22 +153,21 @@
\section{Tables}\label{sec:tables}
See simple table (Table \ref{tab:table1}, and more advanced, rotated example table (Table
\ref{tab:table2})).
See simple table (Table \ref{tab:bandgab}, and more advanced, rotated example table (Table
\ref{tab:siunits})).
\begin{table}
\centering
% \resizebox {\textwidth} {!} {\input{bandgab}}
\input{bandgab}
\caption{The bandgab of some semiconductors.}
\label{tab:table1}
\label{tab:bandgab}
\end{table}
\begin{table}
\centering
\Rotatebox{90}{\resizebox {1.5\textwidth} {!} {\input{siunits}}}
\caption{\acs{SI} base units}
\label{tab:table2}
\label{tab:siunits}
\end{table}
\cleardoublepage
......
\documentclass[class=book,crop=false]{standalone}
\usepackage{blindtext}
\usepackage{preamble}
\usepackage{blindtext}
\begin{document}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment