Sfoglia il codice sorgente

added bordered boxes to gallery images

Martin Thoma 13 anni fa
parent
commit
38425809fc
1 ha cambiato i file con 13 aggiunte e 6 eliminazioni
  1. 13 6
      documents/gallery/gallery.tex

+ 13 - 6
documents/gallery/gallery.tex

@@ -5,6 +5,11 @@
 \usepackage[ngerman]{babel} % this is needed for umlauts
 \usepackage[ngerman]{babel} % this is needed for umlauts
 \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf
 \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf
 
 
+\usepackage{adjustbox}
+\usepackage{xcolor}
+\definecolor{myLightGray}{HTML}{F9F9F9}
+\definecolor{borderColor}{HTML}{CCCCCC}
+
 \usepackage{tikz} % needed for includestandalone
 \usepackage{tikz} % needed for includestandalone
 \usetikzlibrary{arrows,positioning, calc}
 \usetikzlibrary{arrows,positioning, calc}
 
 
@@ -31,13 +36,15 @@ voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum 
 Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum 
 dolor sit amet.   
 dolor sit amet.   
 
 
+%Before \adjustbox{padding=1ex 2ex 3ex 4ex,frame,margin=1ex 2ex 3ex 4ex}{Text} After
+
 \begin{gallery}
 \begin{gallery}
-    \includestandalone{dot-product-1}
-    \includestandalone{dot-product-2}
-    \includestandalone{dot-product-3-1}
-    \includestandalone{dot-product-6}
-    \includestandalone{equilateral-triangle}
-    \includestandalone{equilateral-triangle-heights}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-1}}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-2}}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-3-1}}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{dot-product-6}}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle}}
+    \adjustbox{max width=150px,max height=150px,bgcolor=myLightGray,cfbox=borderColor 1px 0px 2px}{\includestandalone{equilateral-triangle-heights}}
 \end{gallery}
 \end{gallery}
  
  
 Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse 
 Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse