File: test-various-packages.tex

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (93 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
\documentclass{beamer}
\usepackage{subfile}
\usepackage{includegraphics}
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{testx} " Package does not exist - test try catch block
\usepackage{csquotes}
\usepackage{varioref}
\usepackage{dot2texi}
\usepackage{luacode}
\usepackage{gnuplottex}

\begin{document}

\section{General}
\todostuff \todocommand \todo{content}

This text is \emph{emphasized}, \textit{italized}, \textbf{bolded}.

\def\A{A}
\def\B{\V{B}}

\newenvironment{example}[1][]{Start #1}{Stop}
\renewenvironment{example}[1][]{Start #1}{Stop}
\newenvironment{nestedexample}[1][]{%
  \renewenvironment{nested}[1][0]{%
    Outerarg #1}{%
    Innerarg ##1
  }%
  \begin{nested}{title}}{%
  \end{nested}%
}

\newcommand{\testA}[1]{Test #1}
\renewcommand{\testA}[1]{Test #1}
\newcommand{\mycommand}[1]{%
  \renewcommand{\myothercommand}[1]{%
    \dosomethingwithouterarg{#1}%
    \dosomethingwithinnerarg{##1}%
  }%
}

\section{Documentclass: beamer}
\begin{frame}[asd]
  \includegraphics[height=0.5062\linewidth]{test.png}
  \includegraphics<2>[height=0.5062\linewidth]{test.png}

  \only{asd}
  \only<2>{asd}

  \item asdasd
  \item<1-3> asdasd
\end{frame}

\section{Package: minor stuff}
% subfile
\subfile{test-syntax.tex}

% pdfpages
\includepdf{test.pdf}

\section{Package: varioref}
\Vref{sec_one} does what you need. Still \vref{sec_one} works.

\section{Package: dot2texi}
\begin{dot2tex}
  graph graphname {
    a -- b;
    b -- c;
    b -- d;
    d -- a;
  }
\end{dot2tex}

\section{Package: luacode}
\directlua{
  if pdf.getminorversion() \string~= 7 then
    print "pfd version 1.7"
  end
}

\begin{luacode}
  if pdf.getminorversion() \string~= 7 then
    print "pfd version 1.7"
  end
\end{luacode}

\section{Package: gnuplottex}
\begin{gnuplot}[terminal=..., terminaloptions=...]
    plot file using 1:2 with lines
\end{gnuplot}

\end{document}