Initial Commit
This commit is contained in:
commit
199c6cf5c5
260
.gitignore
vendored
Normal file
260
.gitignore
vendored
Normal file
@ -0,0 +1,260 @@
|
|||||||
|
mat/
|
||||||
|
figures/
|
||||||
|
ltximg/
|
||||||
|
slprj/
|
||||||
|
matlab/slprj/
|
||||||
|
*.slxc
|
||||||
|
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# ============================================================
|
||||||
|
# LATEX
|
||||||
|
# ============================================================
|
||||||
|
# ============================================================
|
||||||
|
|
||||||
|
## Core latex/pdflatex auxiliary files:
|
||||||
|
*.aux
|
||||||
|
*.lof
|
||||||
|
*.log
|
||||||
|
*.lot
|
||||||
|
*.fls
|
||||||
|
*.out
|
||||||
|
*.toc
|
||||||
|
*.fmt
|
||||||
|
*.fot
|
||||||
|
*.cb
|
||||||
|
*.cb2
|
||||||
|
.*.lb
|
||||||
|
|
||||||
|
## Intermediate documents:
|
||||||
|
*.dvi
|
||||||
|
*.xdv
|
||||||
|
*-converted-to.*
|
||||||
|
# these rules might exclude image files for figures etc.
|
||||||
|
# *.ps
|
||||||
|
# *.eps
|
||||||
|
# *.pdf
|
||||||
|
|
||||||
|
## Generated if empty string is given at "Please type another file name for output:"
|
||||||
|
.pdf
|
||||||
|
|
||||||
|
## Bibliography auxiliary files (bibtex/biblatex/biber):
|
||||||
|
*.bbl
|
||||||
|
*.bcf
|
||||||
|
*.blg
|
||||||
|
*-blx.aux
|
||||||
|
*-blx.bib
|
||||||
|
*.run.xml
|
||||||
|
|
||||||
|
## Build tool auxiliary files:
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.synctex
|
||||||
|
*.synctex(busy)
|
||||||
|
*.synctex.gz
|
||||||
|
*.synctex.gz(busy)
|
||||||
|
*.pdfsync
|
||||||
|
|
||||||
|
## Build tool directories for auxiliary files
|
||||||
|
# latexrun
|
||||||
|
latex.out/
|
||||||
|
|
||||||
|
## Auxiliary and intermediate files from other packages:
|
||||||
|
# algorithms
|
||||||
|
*.alg
|
||||||
|
*.loa
|
||||||
|
|
||||||
|
# achemso
|
||||||
|
acs-*.bib
|
||||||
|
|
||||||
|
# amsthm
|
||||||
|
*.thm
|
||||||
|
|
||||||
|
# beamer
|
||||||
|
*.nav
|
||||||
|
*.pre
|
||||||
|
*.snm
|
||||||
|
*.vrb
|
||||||
|
|
||||||
|
# changes
|
||||||
|
*.soc
|
||||||
|
|
||||||
|
# cprotect
|
||||||
|
*.cpt
|
||||||
|
|
||||||
|
# elsarticle (documentclass of Elsevier journals)
|
||||||
|
*.spl
|
||||||
|
|
||||||
|
# endnotes
|
||||||
|
*.ent
|
||||||
|
|
||||||
|
# fixme
|
||||||
|
*.lox
|
||||||
|
|
||||||
|
# feynmf/feynmp
|
||||||
|
*.mf
|
||||||
|
*.mp
|
||||||
|
*.t[1-9]
|
||||||
|
*.t[1-9][0-9]
|
||||||
|
*.tfm
|
||||||
|
|
||||||
|
#(r)(e)ledmac/(r)(e)ledpar
|
||||||
|
*.end
|
||||||
|
*.?end
|
||||||
|
*.[1-9]
|
||||||
|
*.[1-9][0-9]
|
||||||
|
*.[1-9][0-9][0-9]
|
||||||
|
*.[1-9]R
|
||||||
|
*.[1-9][0-9]R
|
||||||
|
*.[1-9][0-9][0-9]R
|
||||||
|
*.eledsec[1-9]
|
||||||
|
*.eledsec[1-9]R
|
||||||
|
*.eledsec[1-9][0-9]
|
||||||
|
*.eledsec[1-9][0-9]R
|
||||||
|
*.eledsec[1-9][0-9][0-9]
|
||||||
|
*.eledsec[1-9][0-9][0-9]R
|
||||||
|
|
||||||
|
# glossaries
|
||||||
|
*.acn
|
||||||
|
*.acr
|
||||||
|
*.glg
|
||||||
|
*.glo
|
||||||
|
*.gls
|
||||||
|
*.glsdefs
|
||||||
|
|
||||||
|
# gnuplottex
|
||||||
|
*-gnuplottex-*
|
||||||
|
|
||||||
|
# gregoriotex
|
||||||
|
*.gaux
|
||||||
|
*.gtex
|
||||||
|
|
||||||
|
# htlatex
|
||||||
|
*.4ct
|
||||||
|
*.4tc
|
||||||
|
*.idv
|
||||||
|
*.lg
|
||||||
|
*.trc
|
||||||
|
*.xref
|
||||||
|
|
||||||
|
# hyperref
|
||||||
|
*.brf
|
||||||
|
|
||||||
|
# knitr
|
||||||
|
*-concordance.tex
|
||||||
|
# TODO Comment the next line if you want to keep your tikz graphics files
|
||||||
|
*.tikz
|
||||||
|
*-tikzDictionary
|
||||||
|
|
||||||
|
# listings
|
||||||
|
*.lol
|
||||||
|
|
||||||
|
# makeidx
|
||||||
|
*.idx
|
||||||
|
*.ilg
|
||||||
|
*.ind
|
||||||
|
*.ist
|
||||||
|
|
||||||
|
# minitoc
|
||||||
|
*.maf
|
||||||
|
*.mlf
|
||||||
|
*.mlt
|
||||||
|
*.mtc[0-9]*
|
||||||
|
*.slf[0-9]*
|
||||||
|
*.slt[0-9]*
|
||||||
|
*.stc[0-9]*
|
||||||
|
|
||||||
|
# minted
|
||||||
|
_minted*
|
||||||
|
*.pyg
|
||||||
|
|
||||||
|
# morewrites
|
||||||
|
*.mw
|
||||||
|
|
||||||
|
# nomencl
|
||||||
|
*.nlg
|
||||||
|
*.nlo
|
||||||
|
*.nls
|
||||||
|
|
||||||
|
# pax
|
||||||
|
*.pax
|
||||||
|
|
||||||
|
# pdfpcnotes
|
||||||
|
*.pdfpc
|
||||||
|
|
||||||
|
# sagetex
|
||||||
|
*.sagetex.sage
|
||||||
|
*.sagetex.py
|
||||||
|
*.sagetex.scmd
|
||||||
|
|
||||||
|
# scrwfile
|
||||||
|
*.wrt
|
||||||
|
|
||||||
|
# sympy
|
||||||
|
*.sout
|
||||||
|
*.sympy
|
||||||
|
sympy-plots-for-*.tex/
|
||||||
|
|
||||||
|
# pdfcomment
|
||||||
|
*.upa
|
||||||
|
*.upb
|
||||||
|
|
||||||
|
# pythontex
|
||||||
|
*.pytxcode
|
||||||
|
pythontex-files-*/
|
||||||
|
|
||||||
|
# thmtools
|
||||||
|
*.loe
|
||||||
|
|
||||||
|
# TikZ & PGF
|
||||||
|
*.dpth
|
||||||
|
*.md5
|
||||||
|
*.auxlock
|
||||||
|
|
||||||
|
# todonotes
|
||||||
|
*.tdo
|
||||||
|
|
||||||
|
# easy-todo
|
||||||
|
*.lod
|
||||||
|
|
||||||
|
# xmpincl
|
||||||
|
*.xmpi
|
||||||
|
|
||||||
|
# xindy
|
||||||
|
*.xdy
|
||||||
|
|
||||||
|
# xypic precompiled matrices
|
||||||
|
*.xyc
|
||||||
|
|
||||||
|
# endfloat
|
||||||
|
*.ttt
|
||||||
|
*.fff
|
||||||
|
|
||||||
|
# Latexian
|
||||||
|
TSWLatexianTemp*
|
||||||
|
|
||||||
|
## Editors:
|
||||||
|
# WinEdt
|
||||||
|
*.bak
|
||||||
|
*.sav
|
||||||
|
|
||||||
|
# Texpad
|
||||||
|
.texpadtmp
|
||||||
|
|
||||||
|
# LyX
|
||||||
|
*.lyx~
|
||||||
|
|
||||||
|
# Kile
|
||||||
|
*.backup
|
||||||
|
|
||||||
|
# KBibTeX
|
||||||
|
*~[0-9]*
|
||||||
|
|
||||||
|
# auto folder when using emacs and auctex
|
||||||
|
./auto/*
|
||||||
|
*.el
|
||||||
|
|
||||||
|
# expex forward references with \gathertags
|
||||||
|
*-tags.tex
|
||||||
|
|
||||||
|
# standalone packages
|
||||||
|
*.sta
|
111
.latexmkrc
Normal file
111
.latexmkrc
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
#!/bin/env perl
|
||||||
|
|
||||||
|
# Shebang is only to get syntax highlighting right across GitLab, GitHub and IDEs.
|
||||||
|
# This file is not meant to be run, but read by `latexmk`.
|
||||||
|
|
||||||
|
# ======================================================================================
|
||||||
|
# Perl `latexmk` configuration file
|
||||||
|
# ======================================================================================
|
||||||
|
|
||||||
|
# ======================================================================================
|
||||||
|
# PDF Generation/Building/Compilation
|
||||||
|
# ======================================================================================
|
||||||
|
|
||||||
|
@default_files=('test-bench-struts.tex');
|
||||||
|
|
||||||
|
# PDF-generating modes are:
|
||||||
|
# 1: pdflatex, as specified by $pdflatex variable (still largely in use)
|
||||||
|
# 2: postscript conversion, as specified by the $ps2pdf variable (useless)
|
||||||
|
# 3: dvi conversion, as specified by the $dvipdf variable (useless)
|
||||||
|
# 4: lualatex, as specified by the $lualatex variable (best)
|
||||||
|
# 5: xelatex, as specified by the $xelatex variable (second best)
|
||||||
|
$pdf_mode = 1;
|
||||||
|
|
||||||
|
# Treat undefined references and citations as well as multiply defined references as
|
||||||
|
# ERRORS instead of WARNINGS.
|
||||||
|
# This is only checked in the *last* run, since naturally, there are undefined references
|
||||||
|
# in initial runs.
|
||||||
|
# This setting is potentially annoying when debugging/editing, but highly desirable
|
||||||
|
# in the CI pipeline, where such a warning should result in a failed pipeline, since the
|
||||||
|
# final document is incomplete/corrupted.
|
||||||
|
#
|
||||||
|
# However, I could not eradicate all warnings, so that `latexmk` currently fails with
|
||||||
|
# this option enabled.
|
||||||
|
# Specifically, `microtype` fails together with `fontawesome`/`fontawesome5`, see:
|
||||||
|
# https://tex.stackexchange.com/a/547514/120853
|
||||||
|
# The fix in that answer did not help.
|
||||||
|
# Setting `verbose=silent` to mute `microtype` warnings did not work.
|
||||||
|
# Switching between `fontawesome` and `fontawesome5` did not help.
|
||||||
|
$warnings_as_errors = 0;
|
||||||
|
|
||||||
|
# Show used CPU time. Looks like: https://tex.stackexchange.com/a/312224/120853
|
||||||
|
$show_time = 1;
|
||||||
|
|
||||||
|
# Default is 5; we seem to need more owed to the complexity of the document.
|
||||||
|
# Actual documents probably don't need this many since they won't use all features,
|
||||||
|
# plus won't be compiling from cold each time.
|
||||||
|
$max_repeat=7;
|
||||||
|
|
||||||
|
# --shell-escape option (execution of code outside of latex) is required for the
|
||||||
|
#'svg' package.
|
||||||
|
# It converts raw SVG files to the PDF+PDF_TEX combo using InkScape.
|
||||||
|
#
|
||||||
|
# SyncTeX allows to jump between source (code) and output (PDF) in IDEs with support
|
||||||
|
# (many have it). A value of `1` is enabled (gzipped), `-1` is enabled but uncompressed,
|
||||||
|
# `0` is off.
|
||||||
|
# Testing in VSCode w/ LaTeX Workshop only worked for the compressed version.
|
||||||
|
# Adjust this as needed. Of course, only relevant for local use, no effect on a remote
|
||||||
|
# CI pipeline (except for slower compilation, probably).
|
||||||
|
#
|
||||||
|
# %O and %S will forward Options and the Source file, respectively, given to latexmk.
|
||||||
|
#
|
||||||
|
# `set_tex_cmds` applies to all *latex commands (latex, xelatex, lualatex, ...), so
|
||||||
|
# no need to specify these each. This allows to simply change `$pdf_mode` to get a
|
||||||
|
# different engine. Check if this works with `latexmk --commands`.
|
||||||
|
set_tex_cmds("--shell-escape -interaction=nonstopmode --synctex=1 %O %S");
|
||||||
|
|
||||||
|
# Use default pdf viewer
|
||||||
|
$pdf_previewer = 'zathura';
|
||||||
|
|
||||||
|
# option 2 is same as 1 (run biber when necessary), but also deletes the
|
||||||
|
# regeneratable bbl-file in a clenaup (`latexmk -c`). Do not use if original
|
||||||
|
# bib file is not available!
|
||||||
|
$bibtex_use = 2; # default: 1
|
||||||
|
|
||||||
|
# Change default `biber` call, help catch errors faster/clearer. See
|
||||||
|
# https://web.archive.org/web/20200526101657/https://www.semipol.de/2018/06/12/latex-best-practices.html#database-entries
|
||||||
|
$biber = "biber --validate-datamodel %O %S";
|
||||||
|
|
||||||
|
# Glossaries
|
||||||
|
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
|
||||||
|
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
|
||||||
|
|
||||||
|
sub run_makeglossaries {
|
||||||
|
if ( $silent ) {
|
||||||
|
system "makeglossaries -q -s '$_[0].ist' '$_[0]'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
system "makeglossaries -s '$_[0].ist' '$_[0]'";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
# ======================================================================================
|
||||||
|
# Auxiliary Files
|
||||||
|
# ======================================================================================
|
||||||
|
|
||||||
|
# Let latexmk know about generated files, so they can be used to detect if a
|
||||||
|
# rerun is required, or be deleted in a cleanup.
|
||||||
|
# loe: List of Examples (KOMAScript)
|
||||||
|
# lol: List of Listings (`listings` and `minted` packages)
|
||||||
|
# run.xml: biber runs
|
||||||
|
# glg: glossaries log
|
||||||
|
# glstex: generated from glossaries-extra
|
||||||
|
push @generated_exts, 'loe', 'lol', 'run.xml', 'glstex', 'glo', 'gls', 'glg', 'acn', 'acr', 'alg';
|
||||||
|
|
||||||
|
# Also delete the *.glstex files from package glossaries-extra. Problem is,
|
||||||
|
# that that package generates files of the form "basename-digit.glstex" if
|
||||||
|
# multiple glossaries are present. Latexmk looks for "basename.glstex" and so
|
||||||
|
# does not find those. For that purpose, use wildcard.
|
||||||
|
# Also delete files generated by gnuplot/pgfplots contour plots
|
||||||
|
# (.dat, .script, .table).
|
||||||
|
$clean_ext = "%R-*.glstex %R_contourtmp*.*";
|
137
preamble.tex
Normal file
137
preamble.tex
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
\usepackage{float}
|
||||||
|
|
||||||
|
\usepackage{caption,tabularx,booktabs}
|
||||||
|
\usepackage{bm}
|
||||||
|
|
||||||
|
\usepackage{xpatch} % Recommanded for biblatex
|
||||||
|
\usepackage[ % use biblatex for bibliography
|
||||||
|
backend=biber, % use biber backend (bibtex replacement) or bibtex
|
||||||
|
style=ieee, % bib style
|
||||||
|
hyperref=true, % activate hyperref support
|
||||||
|
backref=true, % activate backrefs
|
||||||
|
isbn=false, % don't show isbn tags
|
||||||
|
url=false, % don't show url tags
|
||||||
|
doi=false, % don't show doi tags
|
||||||
|
urldate=long, % display type for dates
|
||||||
|
maxnames=3, %
|
||||||
|
minnames=1, %
|
||||||
|
maxbibnames=5, %
|
||||||
|
minbibnames=3, %
|
||||||
|
maxcitenames=2, %
|
||||||
|
mincitenames=1 %
|
||||||
|
]{biblatex}
|
||||||
|
|
||||||
|
\setlength\bibitemsep{1.1\itemsep}
|
||||||
|
|
||||||
|
% \renewcommand*{\bibfont}{\footnotesize}
|
||||||
|
|
||||||
|
\usepackage{fontawesome}
|
||||||
|
|
||||||
|
\usepackage{caption}
|
||||||
|
\usepackage{subcaption}
|
||||||
|
|
||||||
|
\captionsetup[figure]{labelfont=bf}
|
||||||
|
\captionsetup[subfigure]{labelfont=bf}
|
||||||
|
\captionsetup[listing]{labelfont=bf}
|
||||||
|
\captionsetup[table]{labelfont=bf}
|
||||||
|
|
||||||
|
\usepackage{xcolor}
|
||||||
|
|
||||||
|
\definecolor{my-blue}{HTML}{6b7adb}
|
||||||
|
\definecolor{my-pale-blue}{HTML}{e6e9f9}
|
||||||
|
\definecolor{my-red}{HTML}{db6b6b}
|
||||||
|
\definecolor{my-pale-red}{HTML}{f9e6e6}
|
||||||
|
\definecolor{my-green}{HTML}{6bdbb6}
|
||||||
|
\definecolor{my-pale-green}{HTML}{e6f9f3}
|
||||||
|
\definecolor{my-yellow}{HTML}{dbd26b}
|
||||||
|
\definecolor{my-pale-yellow}{HTML}{f9f7e6}
|
||||||
|
\definecolor{my-orange}{HTML}{dba76b}
|
||||||
|
\definecolor{my-pale-orange}{HTML}{f9f0e6}
|
||||||
|
\definecolor{my-grey}{HTML}{a3a3a3}
|
||||||
|
\definecolor{my-pale-grey}{HTML}{f0f0f0}
|
||||||
|
\definecolor{my-turq}{HTML}{6bc7db}
|
||||||
|
\definecolor{my-pale-turq}{HTML}{e6f6f9}
|
||||||
|
|
||||||
|
\usepackage{inconsolata}
|
||||||
|
|
||||||
|
\usepackage[newfloat=true, chapter]{minted}
|
||||||
|
\usemintedstyle{autumn}
|
||||||
|
|
||||||
|
\setminted{frame=lines,breaklines=true,tabsize=4,fontsize=\scriptsize,autogobble=true,labelposition=topline,bgcolor=my-pale-grey}
|
||||||
|
\setminted[matlab]{label=Matlab}
|
||||||
|
\setminted[latex]{label=LaTeX}
|
||||||
|
\setminted[bash]{label=Bash}
|
||||||
|
\setminted[python]{label=Python}
|
||||||
|
\setminted[text]{label=Results}
|
||||||
|
\setminted[md]{label=Org Mode}
|
||||||
|
|
||||||
|
\setmintedinline{fontsize=\normalsize,bgcolor=my-pale-grey}
|
||||||
|
|
||||||
|
\usepackage[most]{tcolorbox}
|
||||||
|
|
||||||
|
\tcbuselibrary{minted}
|
||||||
|
|
||||||
|
\newtcolorbox{seealso}{ enhanced,breakable,colback=my-pale-grey,colframe=my-grey,fonttitle=\bfseries,title=See Also}
|
||||||
|
\newtcolorbox{hint}{ enhanced,breakable,colback=my-pale-grey,colframe=my-grey,fonttitle=\bfseries,title=Hint}
|
||||||
|
\newtcolorbox{definition}{enhanced,breakable,colback=my-pale-red, colframe=my-red, fonttitle=\bfseries,title=Definition}
|
||||||
|
\newtcolorbox{important}{ enhanced,breakable,colback=my-pale-red, colframe=my-red, fonttitle=\bfseries,title=Important}
|
||||||
|
\newtcolorbox{exampl}[1][]{ enhanced,breakable,colback=my-pale-green,colframe=my-green,fonttitle=\bfseries,title=Example,#1}
|
||||||
|
\newtcolorbox{exercice}{ enhanced,breakable,colback=my-pale-yellow,colframe=my-yellow,fonttitle=\bfseries,title=Exercice}
|
||||||
|
\newtcolorbox{question}{ enhanced,breakable,colback=my-pale-yellow,colframe=my-yellow,fonttitle=\bfseries,title=Question}
|
||||||
|
\newtcolorbox{answer}{ enhanced,breakable,colback=my-pale-turq,colframe=my-turq,fonttitle=\bfseries,title=Answer}
|
||||||
|
\newtcolorbox{summary}{ enhanced,breakable,colback=my-pale-blue,colframe=my-blue,fonttitle=\bfseries,title=Summary}
|
||||||
|
\newtcolorbox{note}{ enhanced,breakable,colback=my-pale-blue,colframe=my-blue,fonttitle=\bfseries,title=Note}
|
||||||
|
\newtcolorbox{caution}{ enhanced,breakable,colback=my-pale-orange,colframe=my-orange,fonttitle=\bfseries,title=Caution}
|
||||||
|
\newtcolorbox{warning}{ enhanced,breakable,colback=my-pale-orange,colframe=my-orange,fonttitle=\bfseries,title=Warning}
|
||||||
|
|
||||||
|
\newtcolorbox{my-quote}[1]{%
|
||||||
|
colback=my-pale-grey,
|
||||||
|
grow to right by=-10mm,
|
||||||
|
grow to left by=-10mm,
|
||||||
|
boxrule=0pt,
|
||||||
|
boxsep=0pt,
|
||||||
|
breakable,
|
||||||
|
enhanced jigsaw,
|
||||||
|
borderline west={4pt}{0pt}{my-grey}}
|
||||||
|
|
||||||
|
\renewenvironment{quote}{\begin{my-quote}}{\end{my-quote}}
|
||||||
|
|
||||||
|
\newtcolorbox{my-verse}[1]{%
|
||||||
|
colback=my-pale-grey,
|
||||||
|
grow to right by=-10mm,
|
||||||
|
grow to left by=-10mm,
|
||||||
|
boxrule=0pt,
|
||||||
|
boxsep=0pt,
|
||||||
|
breakable,
|
||||||
|
enhanced jigsaw,
|
||||||
|
borderline west={4pt}{0pt}{my-grey}}
|
||||||
|
|
||||||
|
\renewenvironment{verse}{\begin{my-verse}}{\end{my-verse}}
|
||||||
|
|
||||||
|
\usepackage{environ}% http://ctan.org/pkg/environ
|
||||||
|
\NewEnviron{aside}{%
|
||||||
|
\marginpar{\BODY}
|
||||||
|
}
|
||||||
|
|
||||||
|
\renewenvironment{verbatim}{\VerbatimEnvironment\begin{minted}[]{text}}{\end{minted}}
|
||||||
|
|
||||||
|
\usepackage{soul}
|
||||||
|
\sethlcolor{my-pale-grey}
|
||||||
|
|
||||||
|
\let\OldTexttt\texttt
|
||||||
|
\renewcommand{\texttt}[1]{{\ttfamily\hl{\mbox{\,#1\,}}}}
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\preto\Gin@extensions{png,}
|
||||||
|
\DeclareGraphicsRule{.png}{pdf}{.pdf}{\noexpand\Gin@base.pdf}
|
||||||
|
\preto\Gin@extensions{gif,}
|
||||||
|
\DeclareGraphicsRule{.gif}{png}{.png}{\noexpand\Gin@base.png}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
\usepackage{hyperref}
|
||||||
|
\hypersetup{
|
||||||
|
colorlinks = true,
|
||||||
|
allcolors = my-blue
|
||||||
|
}
|
||||||
|
|
||||||
|
\usepackage{hypcap}
|
0
test-bench-struts.bib
Normal file
0
test-bench-struts.bib
Normal file
167
test-bench-struts.org
Normal file
167
test-bench-struts.org
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
#+TITLE: Test Bench - Nano-Hexapod Struts
|
||||||
|
:DRAWER:
|
||||||
|
#+LANGUAGE: en
|
||||||
|
#+EMAIL: dehaeze.thomas@gmail.com
|
||||||
|
#+AUTHOR: Dehaeze Thomas
|
||||||
|
|
||||||
|
#+HTML_LINK_HOME: ../index.html
|
||||||
|
#+HTML_LINK_UP: ../index.html
|
||||||
|
|
||||||
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://research.tdehaeze.xyz/css/style.css"/>
|
||||||
|
#+HTML_HEAD: <script type="text/javascript" src="https://research.tdehaeze.xyz/js/script.js"></script>
|
||||||
|
|
||||||
|
#+BIND: org-latex-image-default-option "scale=1"
|
||||||
|
#+BIND: org-latex-image-default-width ""
|
||||||
|
|
||||||
|
#+LaTeX_CLASS: scrreprt
|
||||||
|
#+LaTeX_CLASS_OPTIONS: [a4paper, 10pt, DIV=12, parskip=full, bibliography=totoc]
|
||||||
|
#+LaTeX_HEADER_EXTRA: \input{preamble.tex}
|
||||||
|
#+LATEX_HEADER_EXTRA: \bibliography{test-bench-struts.bib}
|
||||||
|
|
||||||
|
#+BIND: org-latex-bib-compiler "biber"
|
||||||
|
|
||||||
|
#+PROPERTY: header-args:matlab :session *MATLAB*
|
||||||
|
#+PROPERTY: header-args:matlab+ :comments org
|
||||||
|
#+PROPERTY: header-args:matlab+ :exports none
|
||||||
|
#+PROPERTY: header-args:matlab+ :results none
|
||||||
|
#+PROPERTY: header-args:matlab+ :eval no-export
|
||||||
|
#+PROPERTY: header-args:matlab+ :noweb yes
|
||||||
|
#+PROPERTY: header-args:matlab+ :mkdirp yes
|
||||||
|
#+PROPERTY: header-args:matlab+ :output-dir figs
|
||||||
|
#+PROPERTY: header-args:matlab+ :tangle no
|
||||||
|
|
||||||
|
#+PROPERTY: header-args:latex :headers '("\\usepackage{tikz}" "\\usepackage{import}" "\\import{$HOME/Cloud/tikz/org/}{config.tex}")
|
||||||
|
#+PROPERTY: header-args:latex+ :imagemagick t :fit yes
|
||||||
|
#+PROPERTY: header-args:latex+ :iminoptions -scale 100% -density 150
|
||||||
|
#+PROPERTY: header-args:latex+ :imoutoptions -quality 100
|
||||||
|
#+PROPERTY: header-args:latex+ :results file raw replace
|
||||||
|
#+PROPERTY: header-args:latex+ :buffer no
|
||||||
|
#+PROPERTY: header-args:latex+ :tangle no
|
||||||
|
#+PROPERTY: header-args:latex+ :eval no-export
|
||||||
|
#+PROPERTY: header-args:latex+ :exports results
|
||||||
|
#+PROPERTY: header-args:latex+ :mkdirp yes
|
||||||
|
#+PROPERTY: header-args:latex+ :output-dir figs
|
||||||
|
#+PROPERTY: header-args:latex+ :post pdf2svg(file=*this*, ext="png")
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_export html
|
||||||
|
<hr>
|
||||||
|
<p>This report is also available as a <a href="./test-bench-struts.pdf">pdf</a>.</p>
|
||||||
|
<hr>
|
||||||
|
#+end_export
|
||||||
|
|
||||||
|
#+latex: \clearpage
|
||||||
|
|
||||||
|
* Build :noexport:
|
||||||
|
#+NAME: startblock
|
||||||
|
#+BEGIN_SRC emacs-lisp :results none :tangle no
|
||||||
|
(add-to-list 'org-latex-classes
|
||||||
|
'("scrreprt"
|
||||||
|
"\\documentclass{scrreprt}"
|
||||||
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
||||||
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
;; Remove automatic org heading labels
|
||||||
|
(defun my-latex-filter-removeOrgAutoLabels (text backend info)
|
||||||
|
"Org-mode automatically generates labels for headings despite explicit use of `#+LABEL`. This filter forcibly removes all automatically generated org-labels in headings."
|
||||||
|
(when (org-export-derived-backend-p backend 'latex)
|
||||||
|
(replace-regexp-in-string "\\\\label{sec:org[a-f0-9]+}\n" "" text)))
|
||||||
|
(add-to-list 'org-export-filter-headline-functions
|
||||||
|
'my-latex-filter-removeOrgAutoLabels)
|
||||||
|
|
||||||
|
;; Remove all org comments in the output LaTeX file
|
||||||
|
(defun delete-org-comments (backend)
|
||||||
|
(loop for comment in (reverse (org-element-map (org-element-parse-buffer)
|
||||||
|
'comment 'identity))
|
||||||
|
do
|
||||||
|
(setf (buffer-substring (org-element-property :begin comment)
|
||||||
|
(org-element-property :end comment))
|
||||||
|
"")))
|
||||||
|
(add-hook 'org-export-before-processing-hook 'delete-org-comments)
|
||||||
|
|
||||||
|
;; Use no package by default
|
||||||
|
(setq org-latex-packages-alist nil)
|
||||||
|
(setq org-latex-default-packages-alist nil)
|
||||||
|
|
||||||
|
;; Do not include the subtitle inside the title
|
||||||
|
(setq org-latex-subtitle-separate t)
|
||||||
|
(setq org-latex-subtitle-format "\\subtitle{%s}")
|
||||||
|
|
||||||
|
(setq org-export-before-parsing-hook '(org-ref-glossary-before-parsing
|
||||||
|
org-ref-acronyms-before-parsing))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
* Notes :noexport:
|
||||||
|
|
||||||
|
- [[file:~/Cloud/work-projects/ID31-NASS/matlab/test-bench-strut-mounting/test-bench-strut-mounting.org][test-bench-strut-mounting]]
|
||||||
|
- [[file:~/Cloud/work-projects/ID31-NASS/matlab/test-bench-apa300ml/test-bench-apa300ml.org][test-bench-apa300ml]]
|
||||||
|
|
||||||
|
* Introduction :ignore:
|
||||||
|
|
||||||
|
#+name: tab:test_bench_struts_section_matlab_code
|
||||||
|
#+caption: Report sections and corresponding Matlab files
|
||||||
|
#+attr_latex: :environment tabularx :width 0.6\linewidth :align lX
|
||||||
|
#+attr_latex: :center t :booktabs t
|
||||||
|
| *Sections* | *Matlab File* |
|
||||||
|
|----------------------------------+------------------------|
|
||||||
|
| Section ref:sec:test_bench_struts_ | =test_bench_struts_1_.m= |
|
||||||
|
|
||||||
|
* Section 1
|
||||||
|
:PROPERTIES:
|
||||||
|
:HEADER-ARGS:matlab+: :tangle matlab/test_bench_struts_1_.m
|
||||||
|
:END:
|
||||||
|
<<sec:test_bench_struts>>
|
||||||
|
** Introduction :ignore:
|
||||||
|
|
||||||
|
** Matlab Init :noexport:ignore:
|
||||||
|
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
||||||
|
<<matlab-dir>>
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src matlab :exports none :results silent :noweb yes
|
||||||
|
<<matlab-init>>
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src matlab :tangle no :noweb yes
|
||||||
|
<<m-init-path>>
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src matlab :eval no :noweb yes
|
||||||
|
<<m-init-path-tangle>>
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
#+begin_src matlab :noweb yes
|
||||||
|
<<m-init-other>>
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
* Conclusion
|
||||||
|
<<sec:test_bench_struts_conclusion>>
|
||||||
|
|
||||||
|
* Bibliography :ignore:
|
||||||
|
#+latex: \printbibliography[heading=bibintoc,title={Bibliography}]
|
||||||
|
|
||||||
|
* Helping Functions :noexport:
|
||||||
|
** Initialize Path
|
||||||
|
#+NAME: m-init-path
|
||||||
|
#+BEGIN_SRC matlab
|
||||||
|
%% Path for functions, data and scripts
|
||||||
|
addpath('./matlab/mat/'); % Path for data
|
||||||
|
addpath('./matlab/'); % Path for scripts
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
#+NAME: m-init-path-tangle
|
||||||
|
#+BEGIN_SRC matlab
|
||||||
|
%% Path for functions, data and scripts
|
||||||
|
addpath('./mat/'); % Path for data
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Initialize other elements
|
||||||
|
#+NAME: m-init-other
|
||||||
|
#+BEGIN_SRC matlab
|
||||||
|
%% Colors for the figures
|
||||||
|
colors = colororder;
|
||||||
|
#+END_SRC
|
BIN
test-bench-struts.pdf
Normal file
BIN
test-bench-struts.pdf
Normal file
Binary file not shown.
41
test-bench-struts.tex
Normal file
41
test-bench-struts.tex
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
% Created 2024-03-19 Tue 11:15
|
||||||
|
% Intended LaTeX compiler: pdflatex
|
||||||
|
\documentclass[a4paper, 10pt, DIV=12, parskip=full, bibliography=totoc]{scrreprt}
|
||||||
|
|
||||||
|
\input{preamble.tex}
|
||||||
|
\bibliography{test-bench-struts.bib}
|
||||||
|
\author{Dehaeze Thomas}
|
||||||
|
\date{\today}
|
||||||
|
\title{Test Bench - Nano-Hexapod Struts}
|
||||||
|
\hypersetup{
|
||||||
|
pdfauthor={Dehaeze Thomas},
|
||||||
|
pdftitle={Test Bench - Nano-Hexapod Struts},
|
||||||
|
pdfkeywords={},
|
||||||
|
pdfsubject={},
|
||||||
|
pdfcreator={Emacs 29.2 (Org mode 9.7)},
|
||||||
|
pdflang={English}}
|
||||||
|
\usepackage{biblatex}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
\tableofcontents
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
\begin{table}[htbp]
|
||||||
|
\caption{\label{tab:test_bench_struts_section_matlab_code}Report sections and corresponding Matlab files}
|
||||||
|
\centering
|
||||||
|
\begin{tabularx}{0.6\linewidth}{lX}
|
||||||
|
\toprule
|
||||||
|
\textbf{Sections} & \textbf{Matlab File}\\
|
||||||
|
\midrule
|
||||||
|
Section \ref{sec:test_bench_struts}\_ & \texttt{test\_bench\_struts\_1\_.m}\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
\end{table}
|
||||||
|
\chapter{Section 1}
|
||||||
|
\label{sec:test_bench_struts}
|
||||||
|
\chapter{Conclusion}
|
||||||
|
\label{sec:test_bench_struts_conclusion}
|
||||||
|
\printbibliography[heading=bibintoc,title={Bibliography}]
|
||||||
|
\end{document}
|
Loading…
Reference in New Issue
Block a user