jueves, 4 de septiembre de 2014

Crear un contador particular en Latex

http://www.troubleshooters.com/linux/lyx/ownlists.htm



\documentclass{report}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\newcounter{qcounter}
\begin{document}
\begin{center}
{\huge{\textbf{Borrador}}}
\end{center}
\begin{list}{\textbf{Artículo \arabic{qcounter}}:~}{\usecounter{qcounter}}
\item Definiciones:\\
aaaaaaaa
\item YYY\\
ffffffff
\end{list}
\end{document}

jueves, 17 de octubre de 2013

Graficos de Pie En Latex

\documentclass{article}
 
\usepackage{datapie}

\begin{filecontents}{test.csv}
Name,Quantity
"Apples",30
"Pears",25
"Lemons,Limes",40.5
\end{filecontents}

\DTLloaddb{fruit}{test.csv}

\begin{document}

\begin{figure}[htbp]
\centering
\DTLpiechart{variable=\quantity,outerlabel=\name}{fruit}{\name=Name,\quantity=Quantity}
\caption{A pie chart}
\end{figure}

miércoles, 1 de mayo de 2013

Latex citar fuente en tablas y figuras

\usepackage{caption}

\begin{document}

\begin{figure}[!ht]
  \centering
  \rule{4cm}{3cm
}% to simulate an actual figure
  \caption{a test figure}
  \label{tab:test}
  \captionsetup{font={footnotesize,bf,it}}
  \caption*{the source of the figure}
\end{figure}

sábado, 20 de abril de 2013

Latex: Numerar párrafos



Tomado de:
http://stackoverflow.com/questions/543208/how-can-one-number-paragraphs-in-latex


\newcounter{parnum}
\newcommand{\N}{%
   \noindent\refstepcounter{parnum}%
    \makebox[\parindent][l]{\textbf{\arabic{parnum}.}}}
% Use a generous paragraph indent so numbers can be fit inside the
% indentation space.
\setlength{\parindent}{2em}

se pone antes del párrafo \N

LATEX: tabla de contenido con puntos



Tomado de http://garoth.com/?p=48


\makeatletter
\renewcommand\l@section[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty\@secpenalty
    \addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #1\nobreak\ 
      \leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}
     \hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
    \endgroup
  \fi}
\makeatother

jueves, 26 de julio de 2012

Latex: How to continue an enumeration?


\begin{enumerate}
    \item This is an item.
    \item This is another item. We will now stop the enumeration.
    \newcounter{enumTemp}
    \setcounter{enumTemp}{\theenumi}
  \end{enumerate}
  \texttt{enumTemp} is now \theenumTemp. We can continue the enumeration like so:
  \begin{enumerate}
    \setcounter{enumi}{\theenumTemp}
    \item The list goes on
    \item and on.
  \end{enumerate}