Sign up to create your own snipts, or login.

Public snipts » tex The latest public tex snipts.

showing 1-4 of 4 snipts for tex
  • Join pdf files in one file
    # glue a bunch of pdf files in one file
    # tip from fmeyer
    texexec --pdfarrange --result all.pdf `ls *.pdf`
    

    copy | embed

    0 comments - tagged in  posted by muanis on Sep 11, 2009 at 12:53 p.m. EDT
  • snippet LaTeX para snipMate
    # \begin{}...\end{}
    snippet begin
    	\begin{${1:env}}
    		${2}
    	\end{$1}
    # Tabular
    snippet tab
    	\begin{table}[htb]
    	 \begin{center}
    	  \caption{${1:Legenda}}
    	  \label{tb:${2:nome}}
    	  \newcommand{\mc}[3]{\multicolumn{#1}{#2}{#3}}
    	  \newcommand{\mr}[3]{\multirow{#1}{#2}{#3}}
    	  \begin{tabular}{${2:ll}}
    	    \hline
    	     ${3} &  \\ \cline{2-3}
    	          &  \\ \hline
    	          &  \\
    	          &  \\ \hline
    	  \end{tabular}
    	 \end{center}
    	\end{table} 
    	${4}
    # Subfigure : uma sobre a outra
    snippet subfig
    	\begin{figure}[htp]
    	  \begin{center}
    	    \subfigure[]{\label{fig:${1:nomea}}
    	     \includegraphics[width=${2:12cm}]{${3:fig/arquivo}}} ${4:\\}
    	    \subfigure[]{\label{fig:${5:nomeb}}
    	     \includegraphics[width=${6:12cm}]{${7:fig/arquivo}}}
    	   \end{center}
    	    \caption{${8:Legenda}}
    	  \label{fig:${9:nome}}
    	\end{figure}
    	${10}
    # More one subfig
    snippet sfigadd
    	    \subfigure[]{\label{fig:${1:nomea}}
    	     \includegraphics[width=${2:12cm}]{${3:fig/arquivo}}} ${4:\\}
    # Figure
    snippet fig
    	\begin{figure}[htp]
    	  \centering
    	  \includegraphics[width=${1:12cm}]{${2:fig/arquivo}}}
    	  \caption{${3:Legenda}}
    	  \label{fig:${4:nome}}
    	\end{figure}
    	${5}
    # Equation
    snippet eqn
    	\begin{equation}
    	  ${1}
    	  \label{eq:}
    	\end{equation}
    snippet eqa
    	\begin{eqnarray}
    	  ${1} &=& ${2}
    	  \label{eq:}
    	\end{eqnarray}
    # Unnumbered Equation
    snippet eqd
    	$ ${1} $
    # Enumerate
    snippet enum
    	\begin{enumerate}
    		\item ${1}
    	\end{enumerate}
    # Itemize
    snippet itemize
    	\begin{itemize}
    		\item ${1}
    	\end{itemize}
    # Quote
    snippet quote
    	\begin{quote}
    	  ${1}
    	\end{quote}
    # Description
    snippet desc
    	\begin{description}
    		\item[${1}] ${2}
    	\end{description}
    # Chapter
    snippet cha
    	\chapter{${1:chapter name}}
    	\label{ch:${2}}
    	${3}
    # Section
    snippet sec
    	\section{${1:section name}} % bsec
    	\label{sec:${2}}
    	${3}
    	% endsec
    # Sub Section
    snippet sub
    	\subsection{${1:subsection name}}
    	\label{sub:${2}}
    	${3}
    # Sub Sub Section
    snippet subs
    	\subsubsection{${1:subsubsection name}}
    	\label{subsub:${2}}
    	${3}
    # Paragraph
    snippet par
    	\paragraph{${1:paragraph name}}
    	\label{par:${2:$1}}
    	${3}
    # Sub Paragraph
    snippet subp
    	\subparagraph{${1:subparagraph name}}
    	\label{subpar:${2}}
    	${3}
    # Item
    snippet itd
    	\item${1:[description]} ${2}
    # For references, pt-br
    snippet refcha
    	capítulo~\ref{${1:fig:}} ${2}
    snippet reffig
    	figura~\ref{${1:fig:}} ${2}
    snippet reftab
    	tabela~\ref{${1:tab:}} ${2}
    snippet refsec
    	seção~\ref{${1:sec:}} ${2}
    snippet refpag
    	página~\pageref{${1}} ${2}
    # For references, en
    snippet refchaen
    	chapter~\ref{${1:fig:}} ${2}
    snippet reffigen
    	figure~\ref{${1:fig:}} ${2}
    snippet reftaben
    	table~\ref{${1:tab:}} ${2}
    snippet refsecen
    	section~\ref{${1:sec:}} ${2}
    snippet refpagen
    	page~\pageref{${1}} ${2}
    # For bib
    snippet citen
    	${1:nome}~\cite{${2}} ${3}
    snippet cite
    	~\cite{${1}} ${2}
    # Verbartim
    snippet verbatim
    	\begin{verbartim}
    	  ${1}
    	\end{verbartim}
    	${2}
    snippet verb
    	\verb|${1}| ${2}
    snippet lrp
    	\left(${1} \right) 
    snippet lrc
    	\left[${1} \right] 
    snippet lrb
    	\left\lbrace ${1}\right\rbrace 
    snippet lra
    	\left\langle ${1} \right\rangle 
    snippet ldot
    	\left. 
    snippet rdot
    	\right.
    

    copy | embed

    0 comments - tagged in  posted by jfmitre on May 27, 2009 at 11:02 p.m. EDT
  • snippets for latex
    # \begin{}...\end{}
    snippet begin
    	\begin{${1:env}}
    		${2}
    	\end{$1}
    snippet tabela
    	\begin{table}[htb]\begin{center} \begin{tabular}{ll} \hline
    		 \verb|${1:comando}| & ${2:descricao} \\
    	\hline \end{tabular}\end{center}\end{table}
    # Tabular
    snippet tab
    	\begin{${1:tabular}}{${2:c}}
    	${3}
    	\end{$1}
    # Align(ed)
    snippet ali
    	\begin{align${1:ed}}
    		${2}
    	\end{align$1}
    # Gather(ed)
    snippet gat
    	\begin{gather${1:ed}}
    		${2}
    	\end{gather$1}
    # Equation
    snippet eq
    	\begin{equation}
    		${1}
    	\end{equation}
    # Unnumbered Equation
    snippet \
    	\\[
    		${1}
    	\\]
    # Enumerate
    snippet enum
    	\begin{enumerate}
    		\item ${1}
    	\end{enumerate}
    # Itemize
    snippet item
    	\begin{itemize}
    		\item ${1}
    	\end{itemize}
    # Description
    snippet desc
    	\begin{description}
    		\item[${1}] ${2}
    	\end{description}
    # Matrix
    snippet mat
    	\begin{${1:p/b/v/V/B/small}matrix}
    		${2}
    	\end{$1matrix}
    # Cases
    snippet cas
    	\begin{cases}
    		${1:equation}, &\text{ if }${2:case}\\
    		${3}
    	\end{cases}
    # Split
    snippet spl
    	\begin{split}
    		${1}
    	\end{split}
    # Part
    snippet part
    	\part{${1:part name}} % (fold)
    	\label{prt:${2:$1}}
    	${3}
    	% part $2 (end)
    # Chapter
    snippet cha
    	\chapter{${1:chapter name}} % (fold)
    	\label{cha:${2:$1}}
    	${3}
    	% chapter $2 (end)
    # Section
    snippet sec
    	\section{${1:section name}} % (fold)
    	\label{sec:${2:$1}}
    	${3}
    	% section $2 (end)
    # Sub Section
    snippet sub
    	\subsection{${1:subsection name}} % (fold)
    	\label{sub:${2:$1}}
    	${3}
    	% subsection $2 (end)
    # Sub Sub Section
    snippet subs
    	\subsubsection{${1:subsubsection name}} % (fold)
    	\label{ssub:${2:$1}}
    	${3}
    	% subsubsection $2 (end)
    # Paragraph
    snippet par
    	\paragraph{${1:paragraph name}} % (fold)
    	\label{par:${2:$1}}
    	${3}
    	% paragraph $2 (end)
    # Sub Paragraph
    snippet subp
    	\subparagraph{${1:subparagraph name}} % (fold)
    	\label{subp:${2:$1}}
    	${3}
    	% subparagraph $2 (end)
    snippet vb
    	\begin{verbatim}
    		${1}
    	\end{verbatim}
    snippet itd
    	\item[${1:description}] ${2:item}
    snippet figure
    	${1:Figure}~\ref{${2:fig:}}${3}
    snippet table
    	${1:Table}~\ref{${2:tab:}}${3}
    snippet listing
    	${1:Listing}~\ref{${2:list}}${3}
    snippet section
    	${1:Section}~\ref{${2:sec:}}${3}
    snippet page
    	${1:page}~\pageref{${2}}${3}
    snippet tt
    	{\tt ${1:texto}}
    snippet dica
    	{\Large {\ding{45}}} 
    

    copy | embed

    0 comments - tagged in  posted by voyeg3r on May 20, 2009 at 8:24 a.m. EDT
  • Logic commands in tex
    Allquantor = \forall
    Existencequantor = \exists
    OR = \vee
    AND = \wedge
    NOT = \neg
    Implies = \Rightarrow
    

    copy | embed

    0 comments - tagged in  posted by mrtazz on Feb 03, 2009 at 7:18 p.m. EST
Sign up to create your own snipts, or login.