Browse Source

added an example on how to use \pic

master
Kjistóf 2 years ago
parent
commit
145abe9c09
3 changed files with 6 additions and 3 deletions
  1. BIN
      cat.jpg
  2. +5
    -2
      example.tex
  3. +1
    -1
      latexplate.sty

BIN
cat.jpg

Before After
Width: 456  |  Height: 363  |  Size: 26 KiB

+ 5
- 2
example.tex

@ -1,8 +1,8 @@
\documentclass{article}
\usepackage{latexplate}
\usepackage[english]{babel}
\usepackage{lipsum}
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
@ -40,7 +40,10 @@
\section{Code highlighting}
This is just some \code{inline code}.
\section{Inserting pictures}
\pic[width=0.5\textwidth]{cat.jpg}{It is this easy}
\section{Lorem Ipsum}
\lipsum[1-2]
\lipsum[1]
\end{document}

+ 1
- 1
latexplate.sty

@ -20,7 +20,7 @@
\sethlcolor{andigray}
\newcommand{\code}[1]{\hl{\mbox{#1}}}
\newcommand{\pic}[3]
\newcommand{\pic}[3][width=\textwidth]
{
\begin{figure}[H]
\centering

Loading…
Cancel
Save