Skip to content
Snippets Groups Projects
Commit c5906bbf authored by Tarik Graba's avatar Tarik Graba :scream_cat:
Browse files

Add rules to to deal with graphics made using libre/openoffice draw

parent bd2eb8bd
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,10 @@ FIGS_PDF_T = $(patsubst %.fig,%.pdftex_t,$(FIGS)) ...@@ -7,7 +7,10 @@ FIGS_PDF_T = $(patsubst %.fig,%.pdftex_t,$(FIGS))
SVGS = $(wildcard svgs/*.svg) SVGS = $(wildcard svgs/*.svg)
SVGS_PDF = $(patsubst %.svg,%.pdf,$(SVGS)) SVGS_PDF = $(patsubst %.svg,%.pdf,$(SVGS))
NEEDED = $(FIGS_PDF) $(FIGS_PDF_T) $(SVGS_PDF) ODGS = $(wildcard odgs/*.odg)
ODGS_PDF = $(patsubst %.odg,%.pdf,$(ODGS))
NEEDED = $(FIGS_PDF) $(FIGS_PDF_T) $(SVGS_PDF) $(ODGS_PDF)
TOP_NAME = $(patsubst %.pdf,%,$(TOP)) TOP_NAME = $(patsubst %.pdf,%,$(TOP))
EXT = pdf log aux out bbl blg toc snm nav fdb_latexmk EXT = pdf log aux out bbl blg toc snm nav fdb_latexmk
...@@ -56,3 +59,7 @@ clean: ...@@ -56,3 +59,7 @@ clean:
%.pdf:%.svg %.pdf:%.svg
inkscape -f $< --export-pdf=$@ inkscape -f $< --export-pdf=$@
%.pdf:%.odg
libreoffice --headless --convert-to pdf $< --outdir odgs
pdfcrop --margins 1 $@ $@
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
\usepackage{figlatex} \usepackage{figlatex}
% où se trouvent les images % où se trouvent les images
\graphicspath{{images/}{pdfs/}{figs/}{svgs/}} \graphicspath{{images/}{pdfs/}{figs/}{svgs/}{odgs/}}
% pour ne pas mettre l'extension des images % pour ne pas mettre l'extension des images
\DeclareGraphicsExtensions{.fig,.pdf,.png,.jpg} \DeclareGraphicsExtensions{.fig,.pdf,.png,.jpg}
...@@ -103,6 +103,15 @@ ...@@ -103,6 +103,15 @@
\includegraphics[width=\textwidth]{cycii_PLL} \includegraphics[width=\textwidth]{cycii_PLL}
\end{center} \end{center}
\end{frame}
%------------------------------------------------------------------------------
\begin{frame}
\frametitle{an other Frame from an \texttt{odg}}
\begin{center}
\includegraphics[height=.8\textheight,width=\textwidth,keepaspectratio]{diag}
\end{center}
\end{frame} \end{frame}
%------------------------------------------------------------------------------ %------------------------------------------------------------------------------
\begin{frame} \begin{frame}
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment