diff options
Diffstat (limited to 'info/latexcheat')
23 files changed, 4577 insertions, 0 deletions
diff --git a/info/latexcheat/README b/info/latexcheat/README new file mode 100644 index 0000000000..902108a843 --- /dev/null +++ b/info/latexcheat/README @@ -0,0 +1,2 @@ +This directory contains a cheat-sheet for LaTeX-- a one-sheet list of +commonly used commands. The original is in English, by Winston Chang.
\ No newline at end of file diff --git a/info/latexcheat/latexcheat-de/README b/info/latexcheat/latexcheat-de/README new file mode 100644 index 0000000000..22cb58b902 --- /dev/null +++ b/info/latexcheat/latexcheat-de/README @@ -0,0 +1,8 @@ +Deutsche LaTeX Befehlsuebersicht +Version 1.13, 2008/05/29 im englischen Original von Winston Chang +Deutsche Uebersetzung und Anpassung Tammo Schwindt +2014/11/29 + +Diese LaTeX Befehlsuebersicht gibt eine allgemeine Uebersicht zu LaTeX Befehlen ohne einen bestimmten Fokus zu setzen. Sie basiert auf dem englischen Original von Winston Chang. Sie beinhaltet allerdings spezielle Anpassungen zur Erstellung deutscher Dokumente mit z.B. KOMA-Klassen und direkter Eingabe von Umlauten. Auch die Mathematikbefehle und Pakete wurden speziell fuer die Erstellung von deutschen technischen Dokumentationen erweitert. Aktuelle Aenderungen sind vor allem unter GitHub zu finden unter https://github.com/tammon/Deutsches-LaTeX-Cheat-Sheet worueber auch Kontakt und Vorschlaege laufen. + +Lizenz: LaTeX Project Public License diff --git a/info/latexcheat/latexcheat-de/latexsheet-de.pdf b/info/latexcheat/latexcheat-de/latexsheet-de.pdf Binary files differnew file mode 100644 index 0000000000..eb5a8a89ad --- /dev/null +++ b/info/latexcheat/latexcheat-de/latexsheet-de.pdf diff --git a/info/latexcheat/latexcheat-de/latexsheet-de.tex b/info/latexcheat/latexcheat-de/latexsheet-de.tex new file mode 100644 index 0000000000..7fb692e813 --- /dev/null +++ b/info/latexcheat/latexcheat-de/latexsheet-de.tex @@ -0,0 +1,793 @@ +%% latexsheet.tex + %% Copyright 2014 Tammo Schwindt + % + % This work may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.3 + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.3 or later is part of all distributions of LaTeX + % version 2005/12/01 or later. + % + % This work has the LPPL maintenance status `maintained'. + % + % The Current Maintainer of this work is Tammo Schwindt dev@tammon.de + % + % This work consists of the file latexsheet.tex + % It is based on the english work of Winston Chang +\documentclass[10pt,landscape]{article} +\usepackage{multicol} +\usepackage{calc} +\usepackage{ifthen} +\usepackage[landscape]{geometry} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} +\usepackage{amssymb} +\usepackage{url} + +% To make this come out properly in landscape mode, do one of the following +% 1. +% pdflatex latexsheet.tex +% +% 2. +% latex latexsheet.tex +% dvips -P pdf -t landscape latexsheet.dvi +% ps2pdf latexsheet.ps + + +% If you're reading this, be prepared for confusion. Making this was +% a learning experience for me, and it shows. Much of the placement +% was hacked in; if you make it better, let me know... + + +% 2008-04 +% Changed page margin code to use the geometry package. Also added code for +% conditional page margins, depending on paper size. Thanks to Uwe Ziegenhagen +% for the suggestions. + +% 2006-08 +% Made changes based on suggestions from Gene Cooperman. <gene at ccs.neu.edu> + + +% To Do: +% \listoffigures \listoftables +% \setcounter{secnumdepth}{0} + + +% This sets page margins to .5 inch if using letter paper, and to 1cm +% if using A4 paper. (This probably isn't strictly necessary.) +% If using another size paper, use default 1cm margins. +\ifthenelse{\lengthtest { \paperwidth = 11in}} + { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } + {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + } + +% Turn off header and footer +\pagestyle{empty} + + +% Redefine section commands to use less space +\makeatletter +\renewcommand{\section}{\@startsection{section}{1}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {0.5ex plus .2ex}%x + {\normalfont\large\bfseries}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + {-1explus -.5ex minus -.2ex}% + {0.5ex plus .2ex}% + {\normalfont\normalsize\bfseries}} +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {1ex plus .2ex}% + {\normalfont\small\bfseries}} +\makeatother + +% Define BibTeX command +\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} + +% Don't print section numbers +\setcounter{secnumdepth}{0} + + +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 0.5ex} + + +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +\footnotesize +\begin{multicols}{3} + + +% multicol parameters +% These lengths are set only within the two main columns +%\setlength{\columnseprule}{0.25pt} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\begin{center} + \Large{\textbf{\LaTeXe\ Befehlsübersicht}} \\ +\end{center} + +\section{KOMA-Dokumentklassen} +Optimiert für deutsche Dokumente\\ +\begin{tabular}{@{}ll@{}} +\verb!scrbook! & Standard Doppelseitig \\ +\verb!scrreprt! & Kein \verb!\part! \\ +\verb!scrartcl! & Kein \verb!\part! oder \verb!\chapter! +\end{tabular} + +Ein Dokument beginnt immer mit +\verb!\documentclass{!\textit{klasse}\verb!}! Inhalt zwischen +\verb!\begin{document}! und \verb!\end{document}! + + +\subsection{Wichtige \texttt{documentclass} Optionen} +\newlength{\MyLen} +\settowidth{\MyLen}{\texttt{letterpaper}/\texttt{a4paper} \ } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\texttt{10pt}/\texttt{11pt}/\texttt{12pt} & Schriftgröße \\ +\texttt{letterpaper}/\texttt{a4paper} & Papierformat \\ +\texttt{twocolumn} & Zweispaltiges Dokument \\ +\texttt{twoside} & Seitenränder für Doppelseiten \\ +\texttt{landscape} & Querformat. Dazu muss + \texttt{dvips -t landscape} genutzt werden \\ +%\texttt{draft} & Double-space lines. +\texttt{parskip} & Freizeile statt Einzug +\end{tabular} + +Benutzung: +\verb!\documentclass[!\textit{opt,opt}\verb!]{!\textit{Klasse}\verb!}! + + +\subsection{Wichtige Pakete} +\settowidth{\MyLen}{\texttt{multicol} } +\begin{tabular}{@{}p{1.7cm}% + @{}p{\linewidth-1.7cm}@{}} +%\begin{tabular}{@{}ll@{}} +\texttt{inputenc} & Für direkte Eingabe von Umlauten mit \texttt{[utf8]} \\ +\texttt{fontenc} & Darstellung von Umlauten mit \texttt{[T1]} \\ +\texttt{babel} & Neue dt. Rechtschreibung mit \texttt{[ngerman]} \\ +\texttt{multicol} & Verwende $n$ Spalten: \verb!\begin{multicols}{!$n$\verb!}! \\ +\texttt{amsmath} & Erweiterung für \LaTeX{}-Mathe \\ +\texttt{amssymb} & Zusätzliche Mathesymbole (bsp. $\mathbb{R}$)\\ +\texttt{graphicx} & Bilder einbinden:\verb!\includegraphics[width=!% + \textit{x}\verb!]{!% + \textit{bild}\verb!}! \\ +\texttt{url} & URLs einfügen: \verb!\url{!% + \textit{http://\ldots}% + \verb!}!\\ +\texttt{textcomp} & Zusätzliche Symbole z.B. \verb!\textmu!\\ % +\texttt{upgreek} & Aufrechte griechische Symbole\\ +\texttt{wrapfig} & Textumflossene Abbildungen\\ +\texttt{subcaption} & Teilabbildungen in \verb!\begin{figure}! mit \verb!\begin{subfigure}[b]{!\textit{weite}\verb!}! und \verb!\hfill!\\ +\texttt{pdfpages} & Einbinden von externen PDFs mit \verb!\includepdf[!\textit{pages=1-2}\verb!]{!\textit{Anhang.pdf}\verb!}!\\ +\texttt{hyperref} & PDF Verlinkungen im Inhaltsverzeichnis +\end{tabular} + +Vor \verb!\begin{document}! einbinden mit +\verb!\usepackage{!\textit{paket}\verb!}! + + +\subsection{Titel} +\settowidth{\MyLen}{\texttt{.author.text.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\author{!\textit{text}\verb!}! & Autor des Dokuments \\ +\verb!\title{!\textit{text}\verb!}! & Titel des Dokuments \\ +\verb!\date{!\textit{text}\verb!}! & Datum \\ +\end{tabular} + +Diese Befehle stehen vor \verb!\begin{document}!. Mit +\verb!\maketitle! am Anfang des Dokuments kann die Titelseite erzeugt werden. + +\subsection{Verzeichnisse} +\settowidth{\MyLen}{\texttt{tableofcontentsund} \ } +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\tableofcontents! & Inhaltsverzeichnis \\ +\verb!\listoffigures! & Abbildungsverzeichnis \\ +\verb!\listoftables! & Tabellenverzeichnis +\end{tabular} + + +%\subsection{Sonstiges} +%\settowidth{\MyLen}{\texttt{.pagestyle.empty.} } +%\begin{tabular}{@{}p{\the\MyLen}% +% @{}p{\linewidth-\the\MyLen}@{}} +%\verb!\pagestyle{empty}! & Keine Kopf-,Fusszeile und Seitennummer. \\ +% +%\end{tabular} + + + +\section{Dokumentstruktur} +\begin{multicols}{2} +\verb!\part{!\textit{titel}\verb!}! \\ +\verb!\chapter{!\textit{titel}\verb!}! \\ +\verb!\section{!\textit{titel}\verb!}! \\ +\verb!\subsection{!\textit{titel}\verb!}! \\ +\verb!\subsubsection{!\textit{titel}\verb!}! \\ +\verb!\paragraph{!\textit{titel}\verb!}! \\ +\verb!\subparagraph{!\textit{titel}\verb!}! +\end{multicols} +{\raggedright +Überschriften mit einem \texttt{*} am Ende, wie +\verb!\section*{!\textit{titel}\verb!}!, tragen keine Nummerierung. \verb!\setcounter{secnumdepth}{!$x$\verb!}! unterdrückt Nummerierung ab Tiefe $>x$, gezählt von \verb!chapter! mit Tiefe 0. +} + +\subsection{Textumgebungen} +\settowidth{\MyLen}{\texttt{.begin.quotation.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{comment}! & Kommentar (wird nicht im Text angezeigt) \\ +\verb!\begin{quote}! & Eingerückter Zitatblock \\ +\verb!\begin{verse}! & Zitat für Verse +\end{tabular} + +\subsection{Listen} +\settowidth{\MyLen}{\texttt{.begin.description.u}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{enumerate}! & Nummerierte Liste \\ +\verb!\begin{itemize}! & Gepunktete Liste \\ +\verb!\begin{description}! & Beschreibungsliste \\ +\verb!\item! \textit{text} & Listenelement \\ +\verb!\item[!\textit{x}\verb!]! \textit{text} + & \textit{x} anstatt der Nummer oder des Punktes verwenden. Pflicht für \verb!description! \\ +\end{tabular} + + + + +\subsection{Querverweis} +\settowidth{\MyLen}{\texttt{.pageref.marker..}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\label{!\textit{name}\verb!}! & Setze Markierung für Querverweis, + oft in der Form \verb!\label{sec:item}! \\ +\verb!\ref{!\textit{name}\verb!}! & Gibt die Nummer am Markierer \\ +\verb!\eqref{!\textit{name}\verb!}! & Gibt die Formelnummer in Klammern (1.1) \\ +\verb!\pageref{!\textit{name}\verb!}! & Gibt die Seite am Markierer \\ +\verb!\footnote{!\textit{text}\verb!}! & Gibt eine Fußnote aus \\ +\end{tabular} + + +\subsection{Fließumgebungen} +\settowidth{\MyLen}{\texttt{.begin.equation..place.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{table}[!\textit{ort}\verb!]! & Nummerierte Tabelle \\ +\verb!\begin{figure}[!\textit{ort}\verb!]! & Nummerierte Abbildung \\ +\verb!\begin{equation}[!\textit{ort}\verb!]! & Nummerierte Formel \\ +\verb!\caption{!\textit{text}\verb!}! & Unterschrift hinzufügen \\ +\end{tabular} + +Der \textit{ort} bestimmt die Position der Umgebung: \texttt{t}=oben, +\texttt{h}=hier, \texttt{b}=unten, \texttt{p}=separate Seite, \texttt{!}=Platzierung erzwingen. \verb!\caption! und \verb!\label! müssen nacheinander in die Umgebung. + +%--------------------------------------------------------------------------- + +\section{Text Eigenschaften} + +\subsection{Schriftart} +\newcommand{\FontCmd}[3]{\PBS\verb!\#1{!\textit{text}\verb!}! \> % + \verb!{\#2 !\textit{text}\verb!}! \> % + \#1{#3}} +\begin{tabular}{@{}l@{}l@{}l@{}} +\textit{Befehl} & \textit{Deklaration} & \textit{Effekt} \\ +\verb!\textrm{!\textit{text}\verb!}! & % + \verb!{\rmfamily !\textit{text}\verb!}! & % + \textrm{Roman family} \\ +\verb!\textsf{!\textit{text}\verb!}! & % + \verb!{\sffamily !\textit{text}\verb!}! & % + \textsf{Sans serif family} \\ +\verb!\texttt{!\textit{text}\verb!}! & % + \verb!{\ttfamily !\textit{text}\verb!}! & % + \texttt{Typewriter family} \\ +\verb!\textmd{!\textit{text}\verb!}! & % + \verb!{\mdseries !\textit{text}\verb!}! & % + \textmd{Medium series} \\ +\verb!\textbf{!\textit{text}\verb!}! & % + \verb!{\bfseries !\textit{text}\verb!}! & % + \textbf{Bold series} \\ +\verb!\textup{!\textit{text}\verb!}! & % + \verb!{\upshape !\textit{text}\verb!}! & % + \textup{Upright shape} \\ +\verb!\textit{!\textit{text}\verb!}! & % + \verb!{\itshape !\textit{text}\verb!}! & % + \textit{Italic shape} \\ +\verb!\textsl{!\textit{text}\verb!}! & % + \verb!{\slshape !\textit{text}\verb!}! & % + \textsl{Slanted shape} \\ +\verb!\textsc{!\textit{text}\verb!}! & % + \verb!{\scshape !\textit{text}\verb!}! & % + \textsc{Small Caps shape} \\ +\verb!\emph{!\textit{text}\verb!}! & % + \verb!{\em !\textit{text}\verb!}! & % + \emph{Emphasized} \\ +\verb!\textnormal{!\textit{text}\verb!}! & % + \verb!{\normalfont !\textit{text}\verb!}! & % + \textnormal{Standardschrift} \\ +\verb!\underline{!\textit{text}\verb!}! & % + & % + \underline{Underline} +\end{tabular} + +Die Befehle (Beispiel: t\textit{tt}t) produzieren die besseren Abstände als die Deklarationen (Beispiel: t{\itshape tt}t). + +\subsection{Schriftgröße} +\setlength{\columnsep}{14pt} % Need to move columns apart a little +\begin{multicols}{2} +\begin{tabbing} +\verb!\footnotesize! \= \kill +\verb!\tiny! \> \tiny{tiny} \\ +\verb!\scriptsize! \> \scriptsize{scriptsize} \\ +\verb!\footnotesize! \> \footnotesize{footnotesize} \\ +\verb!\small! \> \small{small} \\ +\verb!\normalsize! \> \normalsize{normalsize} \\ +\verb!\large! \> \large{large} \\ +\verb!\Large! \= \Large{Large} \\ % Tab hack for new column +\verb!\LARGE! \> \LARGE{LARGE} \\ +\verb!\huge! \> \huge{huge} \\ +\verb!\Huge! \> \Huge{Huge} +\end{tabbing} +\end{multicols} +\setlength{\columnsep}{1pt} % Set column separation back + +Diese Deklarationen sollten in der Form +\verb!{\small! \ldots\verb!}! genutzt werden. Ohne Klammern wirken sie im ganzen Dokument. + + +\subsection{Befehlausblendung} + +\settowidth{\MyLen}{\texttt{.begin.verbatim..} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb@\begin{verbatim}@ & Alles wird als reiner Text gesehen \\ +\verb@\begin{verbatim*}@ & Zeigt Leerzeichen als \verb*@ @\\ +\verb@\verb!text!@ & Wie \verb!verbatim! zwischen den Begrenzungszeichen (in diesem Fall % + `\texttt{!}') +\end{tabular} + + +\subsection{Ausrichtung} +\begin{tabular}{@{}ll@{}} +\textit{Umgebung} & \textit{Deklaration} \\ +\verb!\begin{center}! & \verb!\centering! \\ +\verb!\begin{flushleft}! & \verb!\raggedright! \\ +\verb!\begin{flushright}! & \verb!\raggedleft! \\ +\end{tabular} + +\subsection{Sonstiges} +\verb!\linespread{!$x$\verb!}! multipliziert den Zeilenabstand mit $x$. + + + + + +\section{Textmodus Symbole} + +\subsection{Symbole} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +\& & \verb!\&! & +\_ & \verb!\_! & +\ldots & \verb!\ldots! & +\textbullet & \verb!\textbullet! \\ +\$ & \verb!\$! & +\^{} & \verb!\^{}! & +\textbar & \verb!\textbar! & +\textbackslash & \verb!\textbackslash! \\ +\% & \verb!\%! & +\~{} & \verb!\~{}! & +\# & \verb!\#! & +\S & \verb!\S! \\ +\end{tabular} + +\subsection{Akzente} +\begin{tabular}{@{}l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l@{}} +\`o & \verb!\`o! & +\'o & \verb!\'o! & +\^o & \verb!\^o! & +\~o & \verb!\~o! & +\=o & \verb!\=o! \\ +\.o & \verb!\.o! & +\"o & \verb!\"o! & +\c o & \verb!\c o! & +\v o & \verb!\v o! & +\H o & \verb!\H o! \\ +\c c & \verb!\c c! & +\d o & \verb!\d o! & +\b o & \verb!\b o! & +\t oo & \verb!\t oo! & +\oe & \verb!\oe! \\ +\OE & \verb!\OE! & +\ae & \verb!\ae! & +\AE & \verb!\AE! & +\aa & \verb!\aa! & +\AA & \verb!\AA! \\ +\o & \verb!\o! & +\O & \verb!\O! & +\l & \verb!\l! & +\L & \verb!\L! & +\i & \verb!\i! \\ +\j & \verb!\j! & +!` & \verb!~`! & +?` & \verb!?`! & +\end{tabular} + + +\subsection{Trennzeichen} +\begin{tabular}{@{}l@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }l@{}} +` & \verb!`! & +`` & \verb!``! & +\{ & \verb!\{! & +\lbrack & \verb![! & +( & \verb!(! & +\textless & \verb!\textless! \\ +' & \verb!'! & +'' & \verb!''! & +\} & \verb!\}! & +\rbrack & \verb!]! & +) & \verb!)! & +\textgreater & \verb!\textgreater! \\ +\end{tabular} + +\subsection{Striche} +\begin{tabular}{@{}llll@{}} +\textit{Name} & \textit{Code} & \textit{Beispiel} & \textit{Verwendung} \\ +Bindestrich & \verb!-! & Anna-Lisa & In Worten \\ +Halbgeviertstrich & \verb!--! & 1--5 & Zwischen Zahlen \\ +Geviertstrich & \verb!---! & Ja---oder nein? & Interpunktion +\end{tabular} + + +\subsection{Zeilen- und Seitenumbrüche} +\settowidth{\MyLen}{\texttt{.pagebreak} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\\! & Manueller Zeilenumbruch \\ +\verb!\\*! & Verhindert Seiten- nach Zeilenumbruch \\ +\verb!\kill! & Aktuelle Zeile nicht ausgeben \\ +\verb!\pagebreak! & Manueller Seitenumbruch \\ +\verb!\noindent! & Neue Zeile nicht einrücken +\end{tabular} + + +\subsection{Sonstiges} +\settowidth{\MyLen}{\texttt{.rule.w..h.u} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\today! & \today{} (aktuelles Datum). \\ +\verb!$\sim$! & Gibt $\sim$ statt \~{} (Code: \verb!\~{}!) aus \\ +\verb!~! & Leerzeichen ohne Zeilenumbruch (\verb!W.J.~Clinton!) \\ +\verb!\hspace{!$l$\verb!}! & Horizontaler Abstand mit Länge $l$ + ($l=\mathtt{20pt}$) \\ +\verb!\vspace{!$l$\verb!}! & Vertikaler Abstand $l$ \\ +\verb!\rule{!$w$\verb!}{!$h$\verb!}! & Linie mit Weiter $w$ und Höhe $h$ \\ +\end{tabular} + + + +\section{Tabellenumgebungen} + +\subsection{\texttt{tabbing} Umgebung} +\begin{tabular}{@{}l@{\hspace{1.5ex}}l@{\hspace{10ex}}l@{\hspace{1.5ex}}l@{}} +\verb!\=! & Setze Tabulator & +\verb!\>! & Gehe zu Tabulator \\ +\verb!\\! & Zeilenumbruch & +\verb!\kill! & Zeile nicht ausgeben +\end{tabular} + +\subsection{\texttt{tabular} Umgebung} +\verb!\begin{array}[!\textit{pos}\verb!]{!\textit{spalten}\verb!}! \\ +\verb!\begin{tabular}[!\textit{pos}\verb!]{!\textit{spalten}\verb!}! \\ +\verb!\begin{tabular*}{!\textit{weite}\verb!}[!\textit{pos}\verb!]{!\textit{spalten}\verb!}! + + +\subsubsection{\texttt{tabular} Spalten Eigenschaften} +\settowidth{\MyLen}{\texttt{p}\{\textit{width}\} \ } +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\texttt{l} & Linksbündige Spalte \\ +\texttt{c} & Zentrierte Spalte \\ +\texttt{r} & Rechtsbündige Spalte \\ +\verb!p{!\textit{width}\verb!}! & Genau wie % + \verb!\parbox[t]{!\textit{weite}\verb!}! \\ +\verb!@{!\textit{decl}\verb!}! & Fügt \textit{decl} zwischen die Spalten ein \\ +\verb!|! & Fügt eine Linie zwischen die Spalten ein +\end{tabular} + + +\subsubsection{\texttt{tabular} Elemente} +\settowidth{\MyLen}{\texttt{.cline.x-y..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\hline! & Horizontale Linie zwischen Reihen. \\ +\verb!\cline{!$x$\verb!-!$y$\verb!}! & + Horizontale Linie von Spalte $x$ bis $y$. \\ +%\verb!\multicolumn{!\textit{n}\verb!}{!\textit{cols}\verb!}{!\textit{text}\verb!}! \\ +% & Teilt eine Zelle in \textit{n} Spalten, mit den Spalteneigenschaften \textit{cols}. +\end{tabular} + + +\section{Mathematikmodus} +Formeln im Fließtext mit \texttt{\$formel\$}. Abgesetzte Formeln mit +\verb!\begin{equation}! oder anderer Matheumgebung. + + + +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +Hoch$^{x}$ & +\verb!^{x}! & +Tief$_{x}$ & +\verb!_{x}! \\ +$\sqrt[n]{x}$ & +\verb!\sqrt[n]{x}! & +$\frac{x}{y}$ & +\verb!\frac{x}{y}! \\ +$\sum_{k=1}^n$ & +\verb!\sum_{k=1}^n! & +$\sum\limits_{k=1}^n$ & +\verb!\sum\limits_{k=1}^n! \\ +$\int_{a}^b$ & +\verb!\int_a^b! & +$\int\limits_{a}^b$ & +\verb!\int\limits_a^b! \\ +\end{tabular} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}} +$\left( \frac{X}{Y} \right)$ & +\verb!\left( \frac{X}{Y} \right)! +\end{tabular} + +\subsection{Mathematikmodus Symbole} + +% The ordering of these symbols is slightly odd. This is because I had to put all the +% long pieces of text in the same column (the right) for it all to fit properly. +% Otherwise, it wouldn't be possible to fit four columns of symbols here. + +\begin{tabular}{@{}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}} l@{\hspace{1em}}l@{\hspace{1ex}}l@{}} +$\leq$ & \verb!\leq! & +$\geq$ & \verb!\geq! & +$\neq$ & \verb!\neq! & +$\approx$ & \verb!\approx! \\ +$\times$ & \verb!\times! & +$\div$ & \verb!\div! & +$\pm$ & \verb!\pm! & +$\cdot$ & \verb!\cdot! \\ +$^{\circ}$ & \verb!^{\circ}! & +$\circ$ & \verb!\circ! & +$\prime$ & \verb!\prime! & +$\cdots$ & \verb!\cdots! \\ +$\infty$ & \verb!\infty! & +$\neg$ & \verb!\neg! & +$\wedge$ & \verb!\wedge! & +$\vee$ & \verb!\vee! \\ +$\supset$ & \verb!\supset! & +$\forall$ & \verb!\forall! & +$\in$ & \verb!\in! & +$\rightarrow$ & \verb!\rightarrow! \\ +$\subset$ & \verb!\subset! & +$\exists$ & \verb!\exists! & +$\notin$ & \verb!\notin! & +$\Rightarrow$ & \verb!\Rightarrow! \\ +$\cup$ & \verb!\cup! & +$\cap$ & \verb!\cap! & +$\mid$ & \verb!\mid! & +$\Leftrightarrow$ & \verb!\Leftrightarrow! \\ +$\dot a$ & \verb!\dot a! & +$\hat a$ & \verb!\hat a! & +$\bar a$ & \verb!\bar a! & +$\tilde a$ & \verb!\tilde a! \\ + +$\alpha$ & \verb!\alpha! & +$\beta$ & \verb!\beta! & +$\gamma$ & \verb!\gamma! & +$\delta$ & \verb!\delta! \\ +$\epsilon$ & \verb!\epsilon! & +$\zeta$ & \verb!\zeta! & +$\eta$ & \verb!\eta! & +$\varepsilon$ & \verb!\varepsilon! \\ +$\theta$ & \verb!\theta! & +$\iota$ & \verb!\iota! & +$\kappa$ & \verb!\kappa! & +$\vartheta$ & \verb!\vartheta! \\ +$\lambda$ & \verb!\lambda! & +$\mu$ & \verb!\mu! & +$\nu$ & \verb!\nu! & +$\xi$ & \verb!\xi! \\ +$\pi$ & \verb!\pi! & +$\rho$ & \verb!\rho! & +$\sigma$ & \verb!\sigma! & +$\tau$ & \verb!\tau! \\ +$\upsilon$ & \verb!\upsilon! & +$\phi$ & \verb!\phi! & +$\chi$ & \verb!\chi! & +$\psi$ & \verb!\psi! \\ +$\omega$ & \verb!\omega! & +$\Gamma$ & \verb!\Gamma! & +$\Delta$ & \verb!\Delta! & +$\Theta$ & \verb!\Theta! \\ +$\Lambda$ & \verb!\Lambda! & +$\Xi$ & \verb!\Xi! & +$\Pi$ & \verb!\Pi! & +$\Sigma$ & \verb!\Sigma! \\ +$\Upsilon$ & \verb!\Upsilon! & +$\Phi$ & \verb!\Phi! & +$\Psi$ & \verb!\Psi! & +$\Omega$ & \verb!\Omega! +\end{tabular} +\footnotesize + +%\subsection{Special symbols} +%\begin{tabular}{@{}ll@{}} +%$^{\circ}$ & \verb!^{\circ}! Ex: $22^{\circ}\mathrm{C}$: \verb!$22^{\circ}\mathrm{C}$!. +%\end{tabular} + +\subsection{Mathematik Umgebungen} +\settowidth{\MyLen}{\texttt{.begin.quotation.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{equation}! & Normale nummerierte Formel \\ +\verb!\begin{align}! & Ausgerichtete nummerierte Formeln \\ +\verb!\begin{multline}! & Eine mehrzeilige Formel +\end{tabular} + +Nummerierung unterdrücken mit einem \verb!*! nach der Umgebung. + +\section{Literaturverzeichnis und Zitate} +Wenn \BibTeX verwendet wird muss folgendermaßen kompiliert werden: \texttt{latex}$\rightarrow$\texttt{bibtex}$\rightarrow$\texttt{latex}$\rightarrow$\texttt{latex} + +\subsection{Zitieren} +\settowidth{\MyLen}{\texttt{.shortciteN.key..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\cite{!\textit{key}\verb!}! & + Alle Autoren und Jahr: (Watson and Crick 1953) \\ +\verb!\citeA{!\textit{key}\verb!}! & + Alle Autoren: (Watson and Crick) \\ +\verb!\citeN{!\textit{key}\verb!}! & + Alle Autoren und Jahr: Watson and Crick (1953) \\ +\verb!\citeyear{!\textit{key}\verb!}! & + Nur Jahr zitieren: (1953) \\ +\end{tabular} + +Für \BibTeX{} nur mit \verb!\cite{!\textit{key}\verb!}! zitieren. + +\subsection{\BibTeX\ Eintragsstruktur} +\settowidth{\MyLen}{\texttt{.mastersthesis.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!@article! & Journal- oder Magazinartikel \\ +\verb!@book! & Buch mit Verleger \\ +\verb!@booklet! & Buch ohne Verleger \\ +\verb!@conference! & Artikel in Konferenzprotokoll \\ +\verb!@inbook! & Teil oder Ausschnitte eines Buches \\ +\verb!@incollection! & Ausschnitt eines Buches mit eigenem Titel \\ +%\verb!@manual! & Technical documentation. \\ +%\verb!@mastersthesis! & Master's thesis. \\ +\verb!@misc! & Wenn sonst nichts passt \\ +\verb!@phdthesis! & Dissertation \\ +\verb!@proceedings! & Konferenzprotokoll \\ +\verb!@techreport! & Technischer Bericht \\ +\verb!@unpublished! & Unveröffentlicht \\ +\end{tabular} + +\subsection{\BibTeX\ Felder} +\settowidth{\MyLen}{\texttt{organization.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!address! & Adresse des Verlages. Nicht bei großen Verlagen \\ +\verb!author! & Name des Autors \\ +\verb!booktitle! & Titel eines teilzitierten Buches \\ +\verb!chapter! & Kapitel- oder Abschnittsnummer \\ +\verb!edition! & Auflage des Buches \\ +\verb!editor! & Name des Redakteurs \\ +\verb!institution! & Sponsor des tech.\ Berichtes \\ +\verb!journal! & Journal Name \\ +\verb!key! & Manueller Zitatschlüssel \\ +\verb!month! & Veröffentlichungsmonat. 3-Zeichenabkürzung \\ +\verb!note! & Zusätzliche Informationen \\ +\verb!number! & Magazin- oder Journalnummer \\ +\verb!organization! & Konferenzsponsor \\ +\verb!pages! & Seiten (\verb!2,6,9--12!) \\ +\verb!publisher! & Verlagsname \\ +\verb!school! & Hochschulname (Dissertation, etc.) \\ +\verb!series! & Buchserie \\ +\verb!title! & Titel \\ +\verb!type! & Art des tech. Berichtes, bsp. ``Research Note'' \\ +\verb!volume! & Band des Journals oder Buches \\ +\verb!year! & Publikationsjahr \\ +\end{tabular} +Nicht alle Felder werden benötigt (siehe Beispiel). + +\subsection{Gängige \BibTeX\ Stile} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{3em}}l@{\hspace{1em}}l@{}} +\verb!abbrv! & Standard & +\verb!abstract! & \texttt{alpha} mit Auszug \\ +\verb!alpha! & Standard & +\verb!apa! & APA \\ +\verb!plain! & Standard & +\verb!unsrt! & Unsortiert \\ +\end{tabular} + +Das \LaTeX\ Dokument sollte die folgenden zwei Befehl vor +\verb!\end{document}! stehen haben. \verb!bibfile.bib! ist der Name der +\BibTeX\-Datei. Das Verzeichnis erscheint bei der Einbindung. +\begin{verbatim} +\bibliographystyle{plain} +\bibliography{bibfile} +\end{verbatim} + +\section{\BibTeX\ Beispiel} +Die \BibTeX\ Datenbank ist in der Datei +\textit{file}\texttt{.bib} abgespeichtert, sie wird mit dem Befehl \verb!bibtex file! verarbeitet. +\begin{verbatim} +@String{N = {Na\-ture}} +@Article{WC:1953, + author = {James Watson and Francis Crick}, + title = {A structure for Deoxyribose Nucleic Acid}, + journal = N, + volume = {171}, + pages = {737}, + year = 1953 +} +\end{verbatim} + + +\section{Beispiel für deutsches \LaTeX\ Dokument} +\begin{verbatim} +\documentclass[12pt,a4paper,parskip]{scrreprt} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[ngerman]{babel} + +\title{Vorlage} +\author{Name} + +\begin{document} +\maketitle + +\section{Überschrift} +\subsection*{Überschrift ohne Nummer} +text \textbf{bold text} text. Hier eine Formel: $2+2=5$ +\subsection{Überschrift} +text \emph{hervorgehoben} text. \cite{WC:1953} +entdeckte die Struktur von DNA + +Eine Tabelle: +\begin{table}[!ht] +\begin{tabular}{|l|c|r|} +\hline +Daten & erste & Reihe \\ +Daten & zweite & Reihe \\ +\hline +\end{tabular} +\caption{Tabellenunterschrift} +\label{ex:table} +\end{table} + +Eine nummerierte Tabelle \ref{ex:table}. +\end{document} +\end{verbatim} + + + +\rule{0.3\linewidth}{0.25pt} +\scriptsize + +Copyright \copyright\ 2006 Winston Chang\\ + +Deutsche Überarbeitung \copyright\ 2014 Tammo Schwindt, \texttt{DHBW Mosbach} + +% Should change this to be date of file, not current date. +\verb!$Revision: 1.13 $, $Date: 2014/11/29$.! + +Englisches Original: http://www.stdout.org/$\sim$winston/latex/ + +\end{multicols} +\end{document} diff --git a/info/latexcheat/latexcheat-esmx/README b/info/latexcheat/latexcheat-esmx/README new file mode 100644 index 0000000000..b4a2381ffa --- /dev/null +++ b/info/latexcheat/latexcheat-esmx/README @@ -0,0 +1,23 @@ +Latex cheat sheet +Version 2.00, 2015/04/13 +Traducci'on Castellana, 2009-2015 + +Traducci'on del sumario de bolsillo de Winston Chang. + +Se han hecho algunas adiciones para ilustrar el uso del castellano. +De hecho, el "acorde'on" es el nombre mexicano de la "cheat-sheet" +(lo doblas y desdoblas a medida que lo necesitas, para "acordarte"), +y recuerda una met'afora de David Kastrup en comp.text.tex, +comparando a TeX con una concertina. + +Hereda la licencia LPPL (LaTeX Project Public License). + +Comentarios? Escriba a jlrn77 at gmail punto com + +Cambios +======= +2.00 +* Se sustituy'o la secci'on sobre BibTeX de Chang, pues BibTeX est'a en + obsolescencia, y se le reemplaz'o con una descripci'on de los comandos + internos de LaTeX para compilar bibliograf'ias. +* Se compone el documento con la clase leaflet, para hacer volantes.
\ No newline at end of file diff --git a/info/latexcheat/latexcheat-esmx/latexsheet-esmx.pdf b/info/latexcheat/latexcheat-esmx/latexsheet-esmx.pdf Binary files differnew file mode 100644 index 0000000000..e814cf84ba --- /dev/null +++ b/info/latexcheat/latexcheat-esmx/latexsheet-esmx.pdf diff --git a/info/latexcheat/latexcheat-esmx/latexsheet-esmx.tex b/info/latexcheat/latexcheat-esmx/latexsheet-esmx.tex new file mode 100644 index 0000000000..c2f56a020b --- /dev/null +++ b/info/latexcheat/latexcheat-esmx/latexsheet-esmx.tex @@ -0,0 +1,851 @@ +\documentclass[notumble]{leaflet} +%\documentclass[notumble,letterpaper,10pt]{leaflet} +\setmargins{7mm}{7mm}{7mm}{7mm} +\usepackage{multicol} +%\usepackage{calc} +%\usepackage{ifthen} +%\usepackage[landscape]{geometry} +% opciones para el castellano +%\usepackage[texnansi]{inputenc} +\usepackage[T1]{fontenc} +%\usepackage{mathpazo} +\usepackage{type1ec} +\usepackage[spanish.mexico]{babel} +\usepackage[pdftex]{hyperref} + +% To make this come out properly in landscape mode, do one of the following +% 1. +% pdflatex latexsheet.tex +% +% 2. +% latex latexsheet.tex +% dvips -P pdf -t landscape latexsheet.dvi +% ps2pdf latexsheet.ps + + +% If you're reading this, be prepared for confusion. Making this was +% a learning experience for me, and it shows. Much of the placement +% was hacked in; if you make it better, let me know... + + +% 2008-04 +% Changed page margin code to use the geometry package. Also added code for +% conditional page margins, depending on paper size. Thanks to Uwe Ziegenhagen +% for the suggestions. + +% 2006-08 +% Made changes based on suggestions from Gene Cooperman. <gene at ccs.neu.edu> + + +% To Do: +% \listoffigures \listoftables +% \setcounter{secnumdepth}{0} + + +% This sets page margins to .5 inch if using letter paper, and to 1cm +% if using A4 paper. (This probably isn't strictly necessary.) +% If using another size paper, use default 1cm margins. +%\ifthenelse{\lengthtest { \paperwidth = 11in}} + %{ \geometry{top=.4in,left=.4in,right=.4in,bottom=.4in} } + %{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + %{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + %{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + %} + +% Turn off header and footer +\pagestyle{empty} + + +% Redefine section commands to use less space +%\makeatletter +%\renewcommand{\section}{\@startsection{section}{1}{0mm}% + %{-1ex plus -.5ex minus -.2ex}% + %{0.5ex plus .2ex}%x + %{\normalfont\large\bfseries}} +%\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + %{-1explus -.5ex minus -.2ex}% + %{0.5ex plus .2ex}% + %{\normalfont\normalsize\bfseries}} +%\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + %{-1ex plus -.5ex minus -.2ex}% + %{1ex plus .2ex}% + %{\normalfont\small\bfseries}} +%\makeatother + +% Define BibTeX command +%\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em + %T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} + +% Don't print section numbers +%\setcounter{secnumdepth}{0} + + +%\setlength{\parindent}{0pt} +%\setlength{\parskip}{0pt plus 0.5ex} + + +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +%\scriptsize +\footnotesize +%\begin{multicols}{3} + + +% multicol parameters +% These lengths are set only within the two main columns +%\setlength{\columnseprule}{0.25pt} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\begin{center} + \Large{\textbf{Acorden para \LaTeXe}} \\ +\end{center} + +\section{Clases de documento} +\begin{tabular}{@{}ll@{}} +\verb!book! & Dos lados por omisin. \\ +\verb!report! & No tiene \verb!\part!. \\ +\verb!article! & No tiene \verb!\part! o \verb!\chapter!. \\ +\verb!letter! & Carta. \\ +\verb!slides! & Transparencias para presentaciones. +\end{tabular} + +Se usa exactamente al principio del documento: +\verb!\documentclass{!\textit{clase}\verb!}!. Use +\verb!\begin{document}! para iniciar el documento y \verb!\end{document}! para concluirlo. + + +\subsection{Opciones de \texttt{documentclass} comunes} +\newlength{\MyLen} +\settowidth{\MyLen}{\texttt{letterpaper}/\texttt{a4paper} \ } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\texttt{10pt}/\texttt{11pt}/\texttt{12pt} & Tamao del tipo. \\ +\texttt{letterpaper}/\texttt{a4paper} & Tamao del papel. \\ +\texttt{twocolumn} & Use dos columnas. \\ +\texttt{twoside} & Ajuste mrgenes para imprimir las dos caras de la hoja. \\ +\texttt{landscape} & Apaisado. Use + \texttt{dvips -t landscape} para imprimir con dvips. \\ +%\texttt{draft} & Doble espacio para borrador. +\end{tabular} + +Uso: +\verb!\documentclass[!\textit{opt,opt}\verb!]{!\textit{clase}\verb!}!. + + +\subsection{Paquetera} +\settowidth{\MyLen}{\texttt{multicol} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +%\begin{tabular}{@{}ll@{}} +\texttt{fullpage} & Use mrgenes de 1 pulgada. \\ +%\texttt[cm]{fullpage} & Use mrgenes de 1.5 cm. \\ +\texttt{anysize} & Ajuste mrgenes con \verb!\marginsize{!\textit{l}% + \verb!}{!\textit{r}\verb!}{!\textit{t}% + \verb!}{!\textit{b}\verb!}!. \\ +\texttt{multicol} & Use $n$ columnas: + \verb!\begin{multicols}{!$n$\verb!}!. \\ +\texttt{latexsym} & Use la fuente de smbolos \LaTeX. \\ +\texttt{graphicx} & Inserte imgenes: + \verb!\includegraphics[width=!% + \textit{x}\verb!]{!% + \textit{arch}\verb!}!. \\ +%\texttt{url} & Inserte ligas: \verb!\url{!% +% \textit{http://\ldots}% +% \verb!}!. \\ +\texttt{hyperref} & Inserte ligas activas: + \verb!\href{!\textit{direccin}\verb!}{!\textit{texto}\verb!}! + hace una liga a la \emph{direccin} desde el \emph{texto}.\\ +\texttt{setspace} & Controle espacio interlineal con las rdenes y entornos \texttt{singlespacing, onehalfspacing, doublespacing}. \\ +\texttt{babel} & Aada soporte polglota. + \texttt{spanish} se aade como una opcin. + \texttt{es-sloppy} lo inhabilita casi por completo.\\ +\texttt{inputenc} & Cambie codificacin del texto, + como \texttt{latin1} o \texttt{utf8}.\\ +\texttt{fontenc} & Cambie codificacin de la fundicin/fuente, + como \texttt{T1} o \texttt{LY1}. +\end{tabular} + +Use antes de \verb!\begin{document}!. +Uso: \verb!\usepackage{!\textit{paquete}\verb!}! + + +\subsection{Ttulo} +\settowidth{\MyLen}{\texttt{.author.text.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\author{!\textit{texto}\verb!}! & Autor del documento. \\ +\verb!\title{!\textit{texto}\verb!}! & Ttulo del documento. \\ +\verb!\date{!\textit{texto}\verb!}! & Fecha. \\ +\end{tabular} + +Estas rdenes suelen ir antes de \verb!\begin{document}!, +pero basta ponerlas antes de la orden \verb!\maketitle!. + +\subsection{Varios} +\settowidth{\MyLen}{\texttt{.pagestyle.myheadings.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\pagestyle{empty}! & Omite encabezados y paginacin. \\ +\verb!\pagestyle{myheadings}! & Pone encabezados personalizados con \verb!\markboth{!\textit{izquierda}\verb!}{!\textit{derecha}\verb!}!. +\end{tabular} + + + +\section{Estructura del documento} +\begin{multicols}{2} +\verb!\part{!\textit{ttulo}\verb!}! \\ +\verb!\chapter{!\textit{ttulo}\verb!}! \\ +\verb!\section{!\textit{ttulo}\verb!}! \\ +\verb!\subsection{!\textit{ttulo}\verb!}! \\ +\verb!\subsubsection{!\textit{ttulo}\verb!}! \\ +\verb!\paragraph{!\textit{ttulo}\verb!}! \\ +\verb!\subparagraph{!\textit{ttulo}\verb!}! +\end{multicols} +%{\raggedright +Estas rdenes pueden ser seguidas de una \texttt{*}, +como en \verb!\section*{!\textit{ttulo}\verb!}!, para suprimir +la numeracin. +\verb!\setcounter{secnumdepth}{!$x$\verb!}! +suprime la numeracin al nivel $>x$, donde \verb!chapter! tiene +profundidad 0. +\verb!\tableofcontents! incluye un ndice para el documento. +Tambin hay \verb!\listoftables! y \verb!\listoffigures!. +%} + +\subsection{Entornos de texto} +\settowidth{\MyLen}{\texttt{.begin.quotation.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{abstract}! & Sumario del documento. \\ +\verb!\begin{quote}! & Bloque de cita sangrado. \\ +\verb!\begin{quotation}! & Como \texttt{quote} con pargrafos sangrados. \\ +\verb!\begin{verse}! & Bloques de verso. \\ +\verb!\begin{comment}! & Incluye un comentario al texto no impreso, + con \verb!\usepackage{comment}!\\ +\end{tabular} + +Los versos de una estrofa se separan con la orden \verb!\\!. +%las estrofas se separan con lneas en blanco. + +\subsection{Listas} +\settowidth{\MyLen}{\texttt{.begin.description.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{enumerate}! & Listas numeradas. \\ +\verb!\begin{itemize}! & Listas marcaadas. \\ +\verb!\begin{description}! & Descripciones. \\ +\verb!\item! \textit{texto} & Aade entradas a las listas. \\ +\verb!\item[!\textit{x}\verb!]! \textit{texto} + & Use \textit{x} en lugar de marcas + normales. Obligatorio para descripciones. \\ +\end{tabular} + +\subsection{Referencias bibliogrficas} +\verb!\cite[!\textit{sufijo}\verb!]{!\textit{marcador}\verb!}! pone una referencia a la entrada +bibliogrfica \textit{marcador}. +Si se a\~nade, el [sufijo] se incluye en la referencia. + +Con el entorno \verb!\begin{thebibliography}! se incluye la bibliografa en el documento. + +\verb!\bibitem[etiqueta]{marcador}! introduce cada entrada bibliogrfica. +Si \verb![etiqueta]! se omite, \LaTeX\ la numera automticamente. + +\subsection{Referencias cruzadas} +\settowidth{\MyLen}{\texttt{.pageref.marker..}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\label{!\textit{marca}\verb!}! & Pone una marca para una referencia, + convencionalmente \verb!\label{sec:item}!. \\ +\verb!\ref{!\textit{marca}\verb!}! & Imprime el nmero de seccin de una marca. \\ +\verb!\pageref{!\textit{marca}\verb!}! & Imprime el nmero de pgina de una marca. \\ +\verb!\footnote{!\textit{texto}\verb!}! & Imprime una nota al pie de pgina. \\ +\end{tabular} + + +\subsection{Elementos flotantes} +\settowidth{\MyLen}{\texttt{.begin.equation..place.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{table}[!\textit{lugar}\verb!]! & Aade un cuadro numerado. \\ +\verb!\begin{figure}[!\textit{lugar}\verb!]! & Aade una imagen numerada. \\ +\verb!\begin{equation}[!\textit{lugar}\verb!]! & Aade una ecuacin numerada. \\ +\verb!\caption{!\textit{texto}\verb!}! & Leyenda al pie de foto, cuadro, etc. \\ +\end{tabular} + +El \textit{lugar} es una lista vlida de emplazamientos del elemento. +\texttt{t}=arriba, \texttt{h}=aqu, \texttt{b}=abajo, \texttt{p}=pgina aparte, \texttt{!}=colocar a pesar de defectos. +Los pies de foto y las etiquetas de las marcas deben incluirse en el entorno. + +%--------------------------------------------------------------------------- + +\section{Atributos del texto} + +\subsection{Estilos} +\newcommand{\FontCmd}[3]{\PBS\verb!\#1{!\textit{texto}\verb!}! \> % + \verb!{\#2 !\textit{texto}\verb!}! \> % + \#1{#3}} +\begin{tabular}{@{}l@{}l@{}l@{}} +\textit{Orden} & \textit{Declaracin} & \textit{Efecto} \\ +\verb!\textrm{!\textit{texto}\verb!}! & % + \verb!{\rmfamily !\textit{texto}\verb!}! & % + \textrm{Tipo redondo} \\ +\verb!\textsf{!\textit{texto}\verb!}! & % + \verb!{\sffamily !\textit{texto}\verb!}! & % + \textsf{Palo seco} \\ +\verb!\texttt{!\textit{texto}\verb!}! & % + \verb!{\ttfamily !\textit{texto}\verb!}! & % + \texttt{Mecanogrfico} \\ +\verb!\textmd{!\textit{texto}\verb!}! & % + \verb!{\mdseries !\textit{texto}\verb!}! & % + \textmd{Regular} \\ +\verb!\textbf{!\textit{texto}\verb!}! & % + \verb!{\bfseries !\textit{texto}\verb!}! & % + \textbf{Negrita} \\ +\verb!\textup{!\textit{texto}\verb!}! & % + \verb!{\upshape !\textit{texto}\verb!}! & % + \textup{Vertical} \\ +\verb!\textit{!\textit{texto}\verb!}! & % + \verb!{\itshape !\textit{texto}\verb!}! & % + \textit{Cursiva} \\ +\verb!\textsl{!\textit{texto}\verb!}! & % + \verb!{\slshape !\textit{texto}\verb!}! & % + \textsl{Oblicua} \\ +\verb!\textsc{!\textit{texto}\verb!}! & % + \verb!{\scshape !\textit{texto}\verb!}! & % + \textsc{Versalitas} \\ +\verb!\emph{!\textit{texto}\verb!}! & % + \verb!{\em !\textit{texto}\verb!}! & % + \emph{Enfatizado (cursiva)} \\ +\verb!\textnormal{!\textit{texto}\verb!}! & % + \verb!{\normalfont !\textit{texto}\verb!}! & % + \textnormal{Tipo original} \\ +\verb!\underline{!\textit{texto}\verb!}! & % + & % + \underline{Subrayado} +\end{tabular} + +La orden (t\textit{tt}t) ajusta el espacio mejor que la +declaracin (t{\itshape tt}t), y el \emph{enfatizado}, mejor que +la \textit{itlica}. + +\subsection{Tamao} +\setlength{\columnsep}{10pt} % Need to move columns apart a little +\begin{multicols}{2} +\begin{tabbing} +\verb!\footnotesize! \= \kill +\verb!\tiny! \> \tiny{minsculo} \\ +\verb!\scriptsize! \> \scriptsize{ndices} \\ +\verb!\footnotesize! \> \footnotesize{notas al pie} \\ +\verb!\small! \> \small{pequeo} \\ +\verb!\normalsize! \> \normalsize{normal} \\ +\verb!\large! \> \large{grande} \\ +\verb!\Large! \= \Large{Ms Grande} \\ % Tab hack for new column +\verb!\LARGE! \> \LARGE{MS} \\ +\verb!\huge! \> \huge{enorme} \\ +\verb!\Huge! \> \Huge{Bestial} +\end{tabbing} +\end{multicols} +\setlength{\columnsep}{1pt} % Set column separation back + +Estas rdenes son declaraciones y deben usarse en la forma +\verb!{\small! \ldots\verb!}!, o sin llaves para afectar a todo el entorno +o el documento. + + +\subsection{Texto literal} + +\settowidth{\MyLen}{\texttt{.begin.verbatim..} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb@\begin{verbatim}@ & Entorno literal. \\ +\verb@\begin{verbatim*}@ & Muestra los espacios como en \verb*@ @. \\ +\verb@\verb!text!@ & El texto entre los delimitadores es literal (en este caso, % + `\texttt{!}' es el delimitador). +\end{tabular} + + +\subsection{Justificacin} +\begin{tabular}{@{}ll@{}} +\textit{Entorno} & \textit{Declaracin} \\ +\verb!\begin{center}! & \verb!\centering! \\ +\verb!\begin{flushleft}! & \verb!\raggedright! \\ +\verb!\begin{flushright}! & \verb!\raggedleft! \\ +\end{tabular} + +\subsection{Varios} +\verb!\linespread{!$x$\verb!}! cambia el espacio intralineal por el factor $x$. + + + + + +\section{Smbolos textuales} + +\subsection{Smbolos} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +\& & \verb!\&! & +\_ & \verb!\_! & +\ldots & \verb!\ldots! & +\textbullet & \verb!\textbullet! \\ +\$ & \verb!\$! & +\^{} & \verb!\^{}! & +\textbar & \verb!\textbar! & +\textbackslash & \verb!\textbackslash! \\ +\% & \verb!\%! & +\~{} & \verb!\~{}! & +\# & \verb!\#! & +\S & \verb!\S! \\ +\end{tabular} + +\subsection{Acentos} +\begin{tabular}{@{}l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l@{}} +\`o & \verb!\`o! & +\'o & \verb!\'o! & +\^o & \verb!\^o! & +\~o & \verb!\~o! & +\=o & \verb!\=o! \\ +\.o & \verb!\.o! & +\"o & \verb!\"o! & +\c o & \verb!\c o! & +\v o & \verb!\v o! & +\H o & \verb!\H o! \\ +\c c & \verb!\c c! & +\d o & \verb!\d o! & +\b o & \verb!\b o! & +\t oo & \verb!\t oo! & +\oe & \verb!\oe! \\ +\OE & \verb!\OE! & +\ae & \verb!\ae! & +\AE & \verb!\AE! & +\aa & \verb!\aa! & +\AA & \verb!\AA! \\ +\o & \verb!\o! & +\O & \verb!\O! & +\l & \verb!\l! & +\L & \verb!\L! & +\i & \verb!\i! \\ +\j & \verb!\j! & +!` & \verb~!`~ & +?` & \verb!?`! & +\end{tabular} + + +\subsection{Delimitadores} +\begin{tabular}{@{}l@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }l@{}} +` & \verb!`! & +`` & \verb!``! & +\{ & \verb!\{! & +\lbrack & \verb![! & +( & \verb!(! & +\guillemotleft & \verb!\guillemotleft!* \\ +' & \verb!'! & +'' & \verb!''! & +\} & \verb!\}! & +\rbrack & \verb!]! & +) & \verb!)! & +\guillemotright & \verb!\guillemotright!* \\ +\end{tabular} + +* Se abrevian como \verb!"<! y \verb!">! en \texttt{spanish}. +Requieren \verb!\usepackage[T1]{fontenc}! o similares. + +\subsection{Guiones} +\begin{tabular}{@{}llll@{}} +\textit{Nombre} & \textit{Cdigo} & \textit{Ejemplo} & \textit{Uso} \\ +hyphen & \verb!-! & - & En palabras. \\ +en-dash & \verb!--! & 1--5 & Intervalos entre nmeros. \\ +em-dash & \verb!---! & S ---dijo---. & Guiones largos (parentticos). +\end{tabular} + + +\subsection{Cortes de lnea y pgina} +\settowidth{\MyLen}{\texttt{.pagebreak} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\\! & Corte de lnea sin iniciar otro prrafo. \\ +\verb!\\*! & Inhibe corte de pgina despus de un corte de lnea. \\ +\verb!\kill! & Inhibe la impresin de la lnea actual. \\ +\verb!\pagebreak! & Comienza otra pgina. \\ +\verb!\noindent! & No sangra la lnea actual. +\end{tabular} + + +\subsection{Varios} +\settowidth{\MyLen}{\texttt{.rule.w..h.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\today! & \today. \\ +\verb!$\sim$! & Imprime $\sim$ en vez de \~{} (producido por \verb!\~{}!). \\ +\verb!~! & Espacio visible, inhibiendo el corte de lnea (\verb!A.J.~Cronin!). \\ +\verb!\@.! & Indica que el \verb!.! termina un enunciado aun siguiendo + una mayscula (redundante con \verb!spanish!). \\ +\verb!\hspace{!$l$\verb!}! & Espacio horizontal de medida $l$ + (Ej: $l=\mathtt{20pt}$). \\ +\verb!\vspace{!$l$\verb!}! & Espacio vertical de medida $l$. \\ +\verb!\rule{!$w$\verb!}{!$h$\verb!}! & Lnea de ancho $w$ y altura $h$. \\ +\end{tabular} + + + +\section{Entornos tabulares} + +\subsection{Entorno \texttt{tabbing} (tabulador)} +\begin{tabular}{@{}l@{\hspace{1.5ex}}l@{\hspace{10ex}}l@{\hspace{1.5ex}}l@{}} +\verb!\=! & Poner marca tabular. & +\verb!\>! & Ir a la siguiente marca. +\end{tabular} + +Pueden ponerse marcas tabulares en lneas ``invisibles'' con \verb!\kill! +al final de la lnea. Normalmente se usa \verb!\\! para separar lneas. + + +\subsection{Entorno \texttt{tabular} (cuadros)} +\verb!\begin{array}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular*}{!\textit{ancho}\verb!}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! + + +\subsubsection{Especificacin de columnas en \texttt{tabular}} +\settowidth{\MyLen}{\texttt{p}\{\textit{width}\} \ } +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\texttt{l} & Columna justificada a la izquierda (left). \\ +\texttt{c} & Columna centrada. \\ +\texttt{r} & Columna justificada a la derecha (right). \\ +\verb!p{!\textit{ancho}\verb!}! & Igual que % + \verb!\parbox[t]{!\textit{ancho}\verb!}!. \\ +\verb!@{!\textit{decl}\verb!}! & Inserta \textit{decl} en vez del + espacio entre columnas. \\ +\verb!|! & Inserta una lnea vertical entre columnas. +\end{tabular} + + +\subsubsection{Elementos de \texttt{tabular}} +\settowidth{\MyLen}{\texttt{.cline.x-y..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\hline! & Lnea horizontal entre filas. \\ +\verb!\cline{!$x$\verb!-!$y$\verb!}! & + Lnea horizontal a travs de las columnas $x$ e $y$. \\ +\verb!\multicolumn{!\textit{n}\verb!}{!\textit{cols}\verb!}{!\textit{texto}\verb!}! \\ + & Una celda atraviesa \textit{n} columnas, con la especificacin \textit{cols}. +\end{tabular} + + +\section{Modo matemtico} +Para usar modo matemtico, entorne el texto con \texttt{\$} o \texttt{\$\$}, o use \verb!\(!\textit{expresin}\verb!\)!, \verb!\[!\textit{expresin}\verb!\]! o \verb!\begin{equation}!. + +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +Volado$^{x}$ & +\verb!^{x}! & +Subndice $_{x}$ & +\verb!_{x}! \\ +$\frac{x}{y}$ & +\verb!\frac{x}{y}! & +$\sum_{k=1}^n$ & +\verb!\sum_{k=1}^n! \\ +$\sqrt[n]{x}$ & +\verb!\sqrt[n]{x}! & +$\prod_{k=1}^n$ & +\verb!\prod_{k=1}^n! \\ +\end{tabular} + +\subsection{Smbolos de modo matemtico} + +% The ordering of these symbols is slightly odd. This is because I had to put all the +% long pieces of text in the same column (the right) for it all to fit properly. +% Otherwise, it wouldn't be possible to fit four columns of symbols here. + +\begin{tabular}{@{}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}} l@{\hspace{1em}}l@{\hspace{1ex}}l@{}} +$\leq$ & \verb!\leq! & +$\geq$ & \verb!\geq! & +$\neq$ & \verb!\neq! & +$\approx$ & \verb!\approx! \\ +$\times$ & \verb!\times! & +$\div$ & \verb!\div! & +$\pm$ & \verb!\pm! & +$\cdot$ & \verb!\cdot! \\ +$^{\circ}$ & \verb!^{\circ}! & +$\circ$ & \verb!\circ! & +$\prime$ & \verb!\prime! & +$\cdots$ & \verb!\cdots! \\ +$\infty$ & \verb!\infty! & +$\neg$ & \verb!\neg! & +$\wedge$ & \verb!\wedge! & +$\vee$ & \verb!\vee! \\ +$\supset$ & \verb!\supset! & +$\forall$ & \verb!\forall! & +$\in$ & \verb!\in! & +$\rightarrow$ & \verb!\rightarrow! \\ +$\subset$ & \verb!\subset! & +$\exists$ & \verb!\exists! & +$\notin$ & \verb!\notin! & +$\Rightarrow$ & \verb!\Rightarrow! \\ +$\cup$ & \verb!\cup! & +$\cap$ & \verb!\cap! & +$\mid$ & \verb!\mid! & +$\Leftrightarrow$ & \verb!\Leftrightarrow! \\ +$\dot a$ & \verb!\dot a! & +$\hat a$ & \verb!\hat a! & +$\bar a$ & \verb!\bar a! & +$\tilde a$ & \verb!\tilde a! \\ + +$\alpha$ & \verb!\alpha! & +$\beta$ & \verb!\beta! & +$\gamma$ & \verb!\gamma! & +$\delta$ & \verb!\delta! \\ +$\epsilon$ & \verb!\epsilon! & +$\zeta$ & \verb!\zeta! & +$\eta$ & \verb!\eta! & +$\varepsilon$ & \verb!\varepsilon! \\ +$\theta$ & \verb!\theta! & +$\iota$ & \verb!\iota! & +$\kappa$ & \verb!\kappa! & +$\vartheta$ & \verb!\vartheta! \\ +$\lambda$ & \verb!\lambda! & +$\mu$ & \verb!\mu! & +$\nu$ & \verb!\nu! & +$\xi$ & \verb!\xi! \\ +$\pi$ & \verb!\pi! & +$\rho$ & \verb!\rho! & +$\sigma$ & \verb!\sigma! & +$\tau$ & \verb!\tau! \\ +$\upsilon$ & \verb!\upsilon! & +$\phi$ & \verb!\phi! & +$\chi$ & \verb!\chi! & +$\psi$ & \verb!\psi! \\ +$\omega$ & \verb!\omega! & +$\Gamma$ & \verb!\Gamma! & +$\Delta$ & \verb!\Delta! & +$\Theta$ & \verb!\Theta! \\ +$\Lambda$ & \verb!\Lambda! & +$\Xi$ & \verb!\Xi! & +$\Pi$ & \verb!\Pi! & +$\Sigma$ & \verb!\Sigma! \\ +$\Upsilon$ & \verb!\Upsilon! & +$\Phi$ & \verb!\Phi! & +$\Psi$ & \verb!\Psi! & +$\Omega$ & \verb!\Omega! +\end{tabular} +\footnotesize + +%\subsection{Special symbols} +%\begin{tabular}{@{}ll@{}} +%$^{\circ}$ & \verb!^{\circ}! Ex: $22^{\circ}\mathrm{C}$: \verb!$22^{\circ}\mathrm{C}$!. +%\end{tabular} + +\section{Modelo de documento de \LaTeX} +Este archivo imprime un artculo en papel y mrgenes europeos, +pero usa una codificacin de texto y estilos tipogrfico y bibliogrfico tpicamente norteamericanos.% (\textsc{ascii} de 7 bits y Chicago), y . +\begin{verbatim} +\documentclass[11pt,twoside,a4paper]{article} +\usepackage[cm,myheadings]{fullpage} +\usepackage[spanish.mexico]{babel} +\usepackage[T1]{fontenc} +\pagestyle{myheadings} +\markboth{An\'onimo}{Plantilla} + +\begin{document} +\title{Plantilla} +\author{An\'onimo} +\maketitle +\tableofcontents + +\section{Secci\'on} +\subsection*{Subsecci\'on sin n\'umero} +Texto normal y \textbf{en negrita}. Mates: $2+2=5$ + +\subsection{Subsecci\'on} +M\'as texto, \emph{con} o sin \'enfasis; +con una referencia a los descubridores +de la estructura del ADN \cite[737]{WC:1953}, +y un cuadro: +\begin{table}[!th] +\begin{tabular}{|l|c|r|} +\hline +primera & fila & de datos \\ +segunda & fila & de datos \\ +\hline +\end{tabular} +\caption{Leyenda del cuadro} +\label{ex:table} +\end{table} +con el n\'umero \ref{ex:table}. + +\begin{thebibliography} +\bibitem[WC]{WC:1953} James~D. Watson and Francis Crick: +``Molecular Structure of Nucleic Acids: +A Structure for Deoxyribose Nucleic Acid''. +\emph{Nature} 171 (1953) 737-738. +\end{thebibliography} +\end{document} +\end{verbatim} + +\rule{0.3\linewidth}{0.25pt} +\scriptsize + +Copyright \copyright\ 2006 Winston Chang.\\ +Traduccin \copyright\ 2009-2015 J. Luis Rivera N. +\LaTeX\ Project Public License. + +% Should change this to be date of file, not current date. +%\verb!$Revision: 1.13 $, $Date: 2008/05/29 06:11:56 $.! +%\verb!$Revision: 1.13 $, $Date: 2009/12/30 16:30:00 $.! +\verb!$Revision: 2.00 $, $Date: 2015/04/13 20:30:00 $.! +\tiny +\url{http://www.ctan.org/topic/tut-cheat} + +%\end{multicols} +\end{document} + +\section{Bibliografas con \BibTeX} + +%\LaTeX\ soporta internamente referencias +%bibliogrficas manualmente al final del documento con el entorno +%\verb!\begin{thebibliography}{!\emph{x}\verb!}!, +%donde $x$ es la etiqueta ms ancha que aparece en la bibliografa; +%y referirse a ellas con la orden +%\verb!\cite[!\emph{texto}\verb!]{!\emph{clave}\verb!}!, +%donde \emph{clave} es la etiqueta asignada en la bibliografa +%y \emph{texto} es informacin opcional---como el nmero de pgina. +%Por ejemplo +%\begin{verbatim} +%\begin{thebibliography}{1} +%\bibitem{companion} +% Frank Mittelbach, Michel Goossens, +% Johannes Braams, David Carlisle, Chris Rowley. +% \newblock \emph{The {\LaTeX} Companion, +% (2nd Edition)}. +% \newblock Addison-Wesley, Reading, Massachusetts, +% 2004, ISBN~0-201-36299-6. +%\end{thebibliography} +%\end{verbatim} +%se cita \verb!\cite[cap.~1]{companion}!. En el texto aparece +%``\cite[cap.~1]{companion}'', y en la bibliografa: +% +%\begin{thebibliography}{1} +%\bibitem{companion} +% Frank Mittelbach, Michel Goossens, Johannes Braams, +% David Carlisle, Chris Rowley. +% \newblock \emph{The {\LaTeX} Companion, (2nd Edition)}. +% \newblock Addison-Wesley, Reading, Massachusetts, 2004, ISBN~0-201-36299-6. +%\end{thebibliography} +% +%\subsection{Uso de \BibTeX} + +Use +\verb!\cite[!\emph{texto}\verb!]{!\emph{clave}\verb!}!, +para aadir una referencia en el texto y la obra a la bibliografa, +%donde \emph{clave} es una etiqueta asignada en la bibliografa +%y \emph{texto} es informacin opcional, como el nmero de pgina. +y \verb!\cite*{!\emph{clave}\verb!}! para aadir slo la obra sin referencia. +Use un archivo \textit{nombre}\texttt{.bib} para guardar su bibliografa, +y procese con la orden \verb!bibtex! \emph{nombre}. +Debe ejecutar \texttt{latex}, \texttt{bibtex}, +y \texttt{latex} otras dos veces para resolver dependencias internas. + +Incluya estas rdenes antes de +\verb!\end{document}!: +%\begin{verbatim} +\verb!\bibliographystyle{!\emph{estilo}\verb!}! +\verb!\bibliography{!\emph{biblio}\verb!}! +%\end{verbatim} +donde \emph{biblio} es el nombre del archivo con +la bibliografa de \BibTeX, y \emph{estilo} es el estilo seleccionado. + +\subsection{Algunos estilos biblogrficos de \BibTeX} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{1em}}l@{\hspace{1em}}l@{}} +\verb!plain! & Numrico & +\verb!abbrv! & Nombres abreviados \\ +\verb!unsrt! & Sin ordenar & +\verb!alpha! & \texttt{plain}, por \emph{clave}, no \emph{autor} \\ +\verb!chicago! & Autor-fecha & +\verb!spain! & \texttt{plain}, a la espaola \\ +\end{tabular} + +\subsection{Referencias estilo Chicago} +\settowidth{\MyLen}{\texttt{.shortciteN.clave..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\cite{!\textit{clave}\verb!}! & + Autores y ao en parntesis: (Watson and Crick 1953) \\ +\verb!\citeA{!\textit{clave}\verb!}! & + Slo autores en parntesis: (Watson and Crick) \\ +\verb!\citeN{!\textit{clave}\verb!}! & + Autores y slo ao en parntesis: Watson and Crick (1953) \\ +\verb!\citeyear{!\textit{clave}\verb!}! & + Slo ao en parntesis: (1953) \\ +\verb!\shortcite{!\textit{clave}\verb!}! & + Primer autor y ao: (Watson et al. 1953) \\ +\verb!\shortciteA{!\textit{clave}\verb!}! & + Primer autor en parntesis: (Watson et al.) \\ +\verb!\shortciteN{!\textit{clave}\verb!}! & + Primer autor y slo ao en parntesis: Watson et al. (1953) \\ +\end{tabular} +Todos tienen variaciones \texttt{NP} sin parntesis: +\verb!\citeNP!: Watson and Creek, 1953. +Requieren \verb!\usepackage{chicago}! +y \verb!\bibliographystyle{chicago}!, o compatibles. + +\subsection{Tipos de entrada en \BibTeX} +\settowidth{\MyLen}{\texttt{.mastersthesis.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!@article! & Artculos de revistas. \\ +\verb!@book! & Libro de casa editorial. \\ +\verb!@booklet! & Folleto independiente. \\ +%\verb!@conference! & Ponencia de un coloquio. \\ +\verb!@inbook! & Artculo o captulo de libro. \\ +\verb!@incollection! & Parte de un colectivo con su propio ttulo. \\ +%\verb!@manual! & Technical documentation. \\ +%\verb!@mastersthesis! & Master's thesis. \\ +\verb!@phdthesis! & Tesis doctoral. \\ +\verb!@proceedings! & Actas de un coloquio. \\ +%\verb!@techreport! & Reporte tcnico, parte de una serie. \\ +\verb!@unpublished! & Indito. \\ +\verb!@misc! & Si otra cosa no encaja. \\ +\end{tabular} + +\subsection{Campos de una bibliografa en \BibTeX} +\settowidth{\MyLen}{\texttt{organization.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!address! & Ciudad (no slo \emph{pas}) de edicin. \\ +\verb!author! & Autor(es), separados por \texttt{and}. \\ +\verb!booktitle! & Ttulo del colectivo donde aparece un artculo. \\ +\verb!chapter! & Nmero de captulo o seccin. \\ +\verb!edition! & Nmero de la edicin. \\ +\verb!editor! & Nombre de los compiladores de una coleccin. \\ +%\verb!institution! & Institucin que publica el reporte tcnico. \\ +\verb!journal! & Ttulo de la revista donde aparece un artculo. \\ +\verb!key! & Clave para ordenacin, si no hay autor o ttulo. \\ +\verb!month! & Mes de publicacin. Use abreviaturas. \\ +\verb!note! & Cualquier otra informacin til (traductor?). \\ +\verb!number! & Nmero de la revista donde aparece un artculo. \\ +%\verb!organization! & Institucin patrocinadora. \\ +\verb!pages! & Intervalo de pginas (\verb!2,6,9--12!). \\ +\verb!publisher! & Casa editorial. \\ +\verb!school! & Nombre de la institucin (para tesis). \\ +\verb!series! & Nombre de la serie de un libro. \\ +\verb!title! & Ttulo de la obra (libro, artculo, folleto). \\ +%\verb!type! & Tipo de nota tcnica; p.~ej. ``Manual''. \\ +\verb!volume! & Volumen de la revista donde aparece un artculo. \\ +\verb!year! & Ao de publicacin. \\ +\end{tabular} +No hace falta usar todos los campos. Vea el ejemplo. + +\subsection{Ejemplo de entrada de archivo \BibTeX} +\begin{verbatim} +@String{N = {Na\-ture}} +@Article{WC:1953, + author = {James Watson and Francis Crick}, + title = {A structure for Deoxyribose Nucleic Acid}, + journal = N, + volume = {171}, + pages = {737}, + year = 1953 +} +\end{verbatim} + + diff --git a/info/latexcheat/latexcheat-ptbr/README-ptbr b/info/latexcheat/latexcheat-ptbr/README-ptbr new file mode 100644 index 0000000000..bcb2200c0d --- /dev/null +++ b/info/latexcheat/latexcheat-ptbr/README-ptbr @@ -0,0 +1,6 @@ +Latex cheat sheet +Versão 1.13, 2009/04/05 + +Este é o guia de referência rápida para escrever artigos científicos. Diferentemente de muitos guias de referência rápida diaponíveis na internet, este não foca na matemática, embora alguns símbolos matemáticos sejam listados. Por favor mande sugestões para <winston at stdout.org> ou para <sggranja at gmail.com> + +Licença: LaTeX Project Public License diff --git a/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.pdf b/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.pdf Binary files differnew file mode 100644 index 0000000000..e9511a13b6 --- /dev/null +++ b/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.pdf diff --git a/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.tex b/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.tex new file mode 100644 index 0000000000..a709d59001 --- /dev/null +++ b/info/latexcheat/latexcheat-ptbr/latexsheet-ptbr.tex @@ -0,0 +1,762 @@ +\documentclass[10pt,landscape,a4paper]{article} +\usepackage{multicol} +\usepackage{calc} +\usepackage{ifthen} +\usepackage[landscape]{geometry} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[brazil]{babel} +\usepackage{url} + +% To make this come out properly in landscape mode, do one of the following +% 1. +% pdflatex latexsheet.tex +% +% 2. +% latex latexsheet.tex +% dvips -P pdf -t landscape latexsheet.dvi +% ps2pdf latexsheet.ps + + +% If you're reading this, be prepared for confusion. Making this was +% a learning experience for me, and it shows. Much of the placement +% was hacked in; if you make it better, let me know... + + +% 2008-04 +% Changed page margin code to use the geometry package. Also added code for +% conditional page margins, depending on paper size. Thanks to Uwe Ziegenhagen +% for the suggestions. + +% 2006-08 +% Made changes based on suggestions from Gene Cooperman. <gene at ccs.neu.edu> + + +% To Do: +% \listoffigures \listoftables +% \setcounter{secnumdepth}{0} + + +% This sets page margins to .5 inch if using letter paper, and to 1cm +% if using A4 paper. (This probably isn't strictly necessary.) +% If using another size paper, use default 1cm margins. +\ifthenelse{\lengthtest { \paperwidth = 11in}} + { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } + {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + } + +% Turn off header and footer +\pagestyle{empty} + + +% Redefine section commands to use less space +\makeatletter +\renewcommand{\section}{\@startsection{section}{1}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {0.5ex plus .2ex}%x + {\normalfont\large\bfseries}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + {-1explus -.5ex minus -.2ex}% + {0.5ex plus .2ex}% + {\normalfont\normalsize\bfseries}} +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {1ex plus .2ex}% + {\normalfont\small\bfseries}} +\makeatother + +% Define BibTeX command +\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} + +% Don't print section numbers +\setcounter{secnumdepth}{0} + + +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 0.5ex} + + +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +\footnotesize +\begin{multicols}{3} + + +% multicol parameters +% These lengths are set only within the two main columns +%\setlength{\columnseprule}{0.25pt} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\begin{center} + % \Large{\textbf{\LaTeXe\ Cheat Sheet}} \\ + \Large{\textbf{Guia Rápido \LaTeXe\ }} \\ +\end{center} + +\section{Classes de documentos} +\begin{tabular}{@{}ll@{}} +\verb!book! & Padrão é frente-e-verso. \\ +\verb!report! & Sem divisões \verb!\part! . \\ +\verb!article! & Sem divisões \verb!\part! ou \verb!\chapter! . \\ +\verb!letter! & Carta (?). \\ +\verb!slides! & Fonte sem-serifa grande. +\end{tabular} + +Usado no começo de um documento: +\verb!\documentclass{!\textit{classe}\verb!}!. +Use \verb!\begin{document}! para iniciar os conteúdos e \verb!\end{document}! para +finalizar o documento. + + +\subsection{Opções comuns \texttt{documentclass}} +\newlength{\MyLen} +\settowidth{\MyLen}{\texttt{letterpaper}/\texttt{a4paper} \ } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\texttt{10pt}/\texttt{11pt}/\texttt{12pt} & Tamanho da fonte. \\ +\texttt{letterpaper}/\texttt{a4paper} & Tamanho do papel. \\ +\texttt{twocolumn} & Usa duas colunas. \\ +\texttt{twoside} & Ajusta margens para frente-e-verso (dois-lados). \\ +\texttt{landscape} & Orientação de paisagem. Deve usar + \texttt{dvips -t landscape}. \\ +\texttt{draft} & Linhas de espaço-duplo (?). +\end{tabular} + +Uso: +\verb!\documentclass[!\textit{opt,opt}\verb!]{!\textit{class}\verb!}!. + + +\subsection{Pacotes} +\settowidth{\MyLen}{\texttt{multicol} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +%\begin{tabular}{@{}ll@{}} +\texttt{fullpage} & Usa margens de 1 polegada. \\ +\texttt{anysize} & Ajusta margens: \verb!\marginsize{!\textit{l}% + \verb!}{!\textit{r}\verb!}{!\textit{t}% + \verb!}{!\textit{b}\verb!}!. \\ +\texttt{geometry} & Ajusta margens: \verb!\geometry{!\textit{verbose% + ,a4paper,tmargin =4cm,bmargin=2.5cm,lmargin=2cm% + ,rmargin=2cm, headheight=2cm,headsep=1cm,% + ~footskip=1cm}\verb!}!.\\ +\texttt{multicol} & Usa $n$ colunas: + \verb!\begin{multicols}{!$n$\verb!}!. \\ +\texttt{latexsym} & Usa fonte \LaTeX\ symbol . \\ +\texttt{graphicx} & Mostra imagens: + \verb!\includegraphics[width=!% + \textit{x}\verb!]{!% + \textit{file}\verb!}!. \\ +\texttt{url} & Insere URL: \verb!\url{!% + \textit{http://\ldots}% + \verb!}!. +\end{tabular} + +Use antes de \verb!\begin{document}!. +Uso: \verb!\usepackage{!\textit{pacote}\verb!}! + + +\subsection{Título} +\settowidth{\MyLen}{\texttt{.autor.texto.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\author{!\textit{texto}\verb!}! & Autor do documento. \\ +\verb!\title{!\textit{texto}\verb!}! & Título do documento. \\ +\verb!\date{!\textit{texto}\verb!}! & Data. \\ +\end{tabular} + +Estes comandos vão antes de \verb!\begin{document}!. A declaração +\verb!\maketitle! vai no topo do documento, em geral. + +\subsection{Miscelânea} +\settowidth{\MyLen}{\texttt{.pagestyle.empty.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\pagestyle{empty}! & Cabeçalho, rodapé vazios % + e sem número de página. \\ + +\end{tabular} + + + +\section{Estrutura do documento} +\begin{multicols}{2} +\verb!\part{!\textit{titulo}\verb!}! \\ +\verb!\chapter{!\textit{titulo}\verb!}! \\ +\verb!\section{!\textit{titulo}\verb!}! \\ +\verb!\subsection{!\textit{titulo}\verb!}! \\ +\verb!\subsubsection{!\textit{titulo}\verb!}! \\ +\verb!\paragraph{!\textit{titulo}\verb!}! \\ +\verb!\subparagraph{!\textit{titulo}\verb!}! +\end{multicols} +{\raggedright +Comandos de seção podem ser seguidos com um \texttt{*}, como +\verb!\section*{!\textit{title}\verb!}!, para suprimir números. + \verb!\setcounter{secnumdepth}{!$x$\verb!}! suprime números +numbers de profundidade $>x$, onde \verb!chapter! tem profundidade 0. +} + +\subsection{Ambientes de texto} +\settowidth{\MyLen}{\texttt{.begin.quotation.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{comment}! & Bloco de comentário (não imprimível). \\ +\verb!\begin{quote}! & Bloco quotado indentado. \\ +\verb!\begin{quotation}! & Como \texttt{quote} com parágrafos indentados. \\ +\verb!\begin{verse}! & Bloco de quotação para verso. +\end{tabular} + +\subsection{Listas} +\settowidth{\MyLen}{\texttt{.begin.description.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{enumerate}! & Lista numbereda. \\ +\verb!\begin{itemize}! & Lista pontuada. \\ +\verb!\begin{description}! & Lista de Descrição. \\ +\verb!\item! \textit{texto} & Adiciona um item. \\ +\verb!\item[!\textit{x}\verb!]! \textit{texto} + & Use \textit{x} ao invés de pontos ou números normais. + Necessário para descrições. \\ +\end{tabular} + + + + +\subsection{Referências} +\settowidth{\MyLen}{\texttt{.pageref.marcador..}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\label{!\textit{marcador}\verb!}! & Cria um marcador para referência cruzada, + na forma \verb!\label{sec:item}!. \\ +\verb!\ref{!\textit{marcador}\verb!}! & Dá o número de seção/corpo do marcador. \\ +\verb!\pageref{!\textit{marcador}\verb!}! & Dá o númeor de página do marcador. \\ +\verb!\footnote{!\textit{texto}\verb!}! & imprime nota-de-rodapé no fundo da página. \\ +\end{tabular} + + +\subsection{Materiais flutuantes} +\settowidth{\MyLen}{\texttt{.begin.equation..place.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{table}[!\textit{lugar}\verb!]! & Adiciona uma tabela numerada. \\ +\verb!\begin{figure}[!\textit{lugar}\verb!]! & Adiciona uma figura numerada. \\ +\verb!\begin{equation}[!\textit{lugar}\verb!]! & Adiciona uma equação numerada. \\ +\verb!\caption{!\textit{texto}\verb!}! & Título para o material flutuante. \\ +\end{tabular} + +O \textit{lugar} é uma lista de colocação válida do material. \texttt{t}=topo, +\texttt{h}=aqui, \texttt{b}=fundo, \texttt{p}=página separada, \texttt{!}=aqui definitivamente. Títulos e marcadores devem estar dentro do ambiente. + +%--------------------------------------------------------------------------- + +\section{Propriedades do texto} + +\subsection{Cara da fonte} +\newcommand{\FontCmd}[3]{\PBS\verb!\#1{!\textit{text}\verb!}! \> % + \verb!{\#2 !\textit{text}\verb!}! \> % + \#1{#3}} +\begin{tabular}{@{}l@{}l@{}l@{}} +\textit{Comando} & \textit{Declaração} & \textit{Efeito} \\ +\verb!\textrm{!\textit{texto}\verb!}! & % + \verb!{\rmfamily !\textit{texto}\verb!}! & % + \textrm{Família Romana} \\ +\verb!\textsf{!\textit{texto}\verb!}! & % + \verb!{\sffamily !\textit{texto}\verb!}! & % + \textsf{Família Sem serifa} \\ +\verb!\texttt{!\textit{texto}\verb!}! & % + \verb!{\ttfamily !\textit{texto}\verb!}! & % + \texttt{Fam.~Monoespaçada} \\ +\verb!\textmd{!\textit{texto}\verb!}! & % + \verb!{\mdseries !\textit{texto}\verb!}! & % + \textmd{Série Média} \\ +\verb!\textbf{!\textit{texto}\verb!}! & % + \verb!{\bfseries !\textit{texto}\verb!}! & % + \textbf{Série Negrito} \\ +\verb!\textup{!\textit{texto}\verb!}! & % + \verb!{\upshape !\textit{texto}\verb!}! & % + \textup{Forma reta} \\ +\verb!\textit{!\textit{texto}\verb!}! & % + \verb!{\itshape !\textit{texto}\verb!}! & % + \textit{Forma Itálica} \\ +\verb!\textsl{!\textit{texto}\verb!}! & % + \verb!{\slshape !\textit{texto}\verb!}! & % + \textsl{Forma Inclinada} \\ +\verb!\textsc{!\textit{texto}\verb!}! & % + \verb!{\scshape !\textit{texto}\verb!}! & % + \textsc{Forma Small Caps} \\ +\verb!\emph{!\textit{texto}\verb!}! & % + \verb!{\em !\textit{text}\verb!}! & % + \emph{Emfatizado} \\ +\verb!\textnormal{!\textit{texto}\verb!}! & % + \verb!{\normalfont !\textit{texto}\verb!}! & % + \textnormal{Fonte padrão} \\ +\verb!\underline{!\textit{texto}\verb!}! & % + & % + \underline{Sublinhado} +\end{tabular} + +O comando na forma (\verb.\textit{tt}.) lida melhor com + espaços do que a forma (\verb.\itshape{tt}.) . + +\subsection{Tamanho de fonte} +\setlength{\columnsep}{14pt} % Need to move columns apart a little +\begin{multicols}{2} +\begin{tabbing} +\verb!\footnotesize! \= \kill +\verb!\tiny! \> \tiny{menor} \\ +\verb!\scriptsize! \> \scriptsize{muito reduzido} \\ +\verb!\footnotesize! \> \footnotesize{mais reduzido} \\ +\verb!\small! \> \small{pequeno} \\ +\verb!\normalsize! \> \normalsize{normal} \\ +\verb!\large! \> \large{maior} \\ +\verb!\Large! \= \Large{grande} \\ % Tab hack for new column +\verb!\LARGE! \> \LARGE{grandão} \\ +\verb!\huge! \> \huge{enorme} \\ +\verb!\Huge! \> \Huge{monstro} +\end{tabbing} +\end{multicols} +\setlength{\columnsep}{1pt} % Set column separation back + +Estas são as declarações e deveriam ser usadas na forma +\verb!{\small! \ldots\verb!}!, ou sem chaves para afetar o documento inteiro.% a partir do ponto de sua inclusão. + + +\subsection{Texto Verbatim} + +\settowidth{\MyLen}{\texttt{.begin.verbatim..} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb@\begin{verbatim}@ & ambiente Verbatim. \\ +\verb@\begin{verbatim*}@ & Espaces são mostrados com \verb*@ @. \\ +\verb@\verb!text!@ & Texto entre os caracteres delimitadores (neste caso % + `\texttt{!}') é verbatim. +\end{tabular} + + +\subsection{Justificação} +\begin{tabular}{@{}ll@{}} +\textit{Ambiente} & \textit{Declaração} \\ +\verb!\begin{center}! & \verb!\centering! \\ +\verb!\begin{flushleft}! & \verb!\raggedright! \\ +\verb!\begin{flushright}! & \verb!\raggedleft! \\ +\end{tabular} + +\subsection{Miscelânea} +\verb!\linespread{!$x$\verb!}! muda o espaço entre linhas pelo multiplo $x$. + + + + + +\section{Símbolos no modo texto} + +\subsection{Símbolos} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +\& & \verb!\&! & +\_ & \verb!\_! & +\ldots & \verb!\ldots! & +\textbullet & \verb!\textbullet! \\ +\$ & \verb!\$! & +\^{} & \verb!\^{}! & +\textbar & \verb!\textbar! & +\textbackslash & \verb!\textbackslash! \\ +\% & \verb!\%! & +\~{} & \verb!\~{}! & +\# & \verb!\#! & +\S & \verb!\S! \\ +\end{tabular} + +\subsection{Marcas diacríticas ou acentos} +\begin{tabular}{@{}l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l@{}} +\`o & \verb!\`o! & +\'o & \verb!\'o! & +\^o & \verb!\^o! & +\~o & \verb!\~o! & +\=o & \verb!\=o! \\ +\.o & \verb!\.o! & +\"o & \verb!\"o! & +\c o & \verb!\c o! & +\v o & \verb!\v o! & +\H o & \verb!\H o! \\ +\c c & \verb!\c c! & +\d o & \verb!\d o! & +\b o & \verb!\b o! & +\t oo & \verb!\t oo! & +\oe & \verb!\oe! \\ +\OE & \verb!\OE! & +\ae & \verb!\ae! & +\AE & \verb!\AE! & +\aa & \verb!\aa! & +\AA & \verb!\AA! \\ +\o & \verb!\o! & +\O & \verb!\O! & +\l & \verb!\l! & +\L & \verb!\L! & +\i & \verb!\i! \\ +\j & \verb!\j! & +!` & \verb!~`! & +?` & \verb!?`! & +\end{tabular} + + +\subsection{Delimitadores} +\begin{tabular}{@{}l@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }l@{}} +` & \verb!`! & +`` & \verb!``! & +\{ & \verb!\{! & +\lbrack & \verb![! & +( & \verb!(! & +\textless & \verb!\textless! \\ +' & \verb!'! & +'' & \verb!''! & +\} & \verb!\}! & +\rbrack & \verb!]! & +) & \verb!)! & +\textgreater & \verb!\textgreater! \\ +\end{tabular} + +\subsection{Traços} +\begin{tabular}{@{}llll@{}} +\textit{Nome} & \textit{Fonte} & \textit{Exemplo} & \textit{Uso} \\ +hyphen & \verb!-! & raio-X & Em palavras (hífen). \\ +en-dash & \verb!--! & 1--5 & Intervalos de números. \\ +em-dash & \verb!---! & Sim---ou não? & Pontuação (apóstrofe). +\end{tabular} + + +\subsection{Quebras de linha e página} +\settowidth{\MyLen}{\texttt{.pagebreak} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\\! & Começa nova linha sem novo parágrafo. \\ +\verb!\\*! & Proíbe quebra de página após quebra de linha. \\ +\verb!\kill! & Não imprime a linha corrente. \\ +\verb!\pagebreak! & Começa uma nova página. \\ +\verb!\noindent! & Não indenta a linha corrente. +\end{tabular} + + +\subsection{Miscelânea} +\settowidth{\MyLen}{\texttt{.rule.w..h.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\today! & \today. \\ +\verb!$\sim$! & Imprime $\sim$ ao invés de \verb!\~{}!, que faz \~{}. \\ +\verb!~! & Espaço protegido, não permite quebra de linha (\verb!P.A.~Cabral!). \\ +\verb!\@.! & Indica que o \verb!.! finaliza a sentença quando sequido de uma + letra maiúscula. \\ +\verb!\hspace{!$l$\verb!}! & Espaço horizontal de comprimento $l$ + (Ex: $l=\mathtt{20pt}$). \\ +\verb!\vspace{!$l$\verb!}! & Espaço vertical de coprimento $l$. \\ +\verb!\rule{!$w$\verb!}{!$h$\verb!}! & Linha de largura $w$ and altura $h$. \\ +\end{tabular} + + + +\section{Ambientes de tabulação} + +\subsection{Ambiente \texttt{tabbing}} +\begin{tabular}{@{}l@{\hspace{1.5ex}}l@{\hspace{10ex}}l@{\hspace{1.5ex}}l@{}} +\verb!\=! & Marca a tabulação. & \verb!\>! & Vai para a tabulação. +\end{tabular} + +Paradas de tabulação podem ser feitas sobre linhas ``invisíveis'' com \verb!\kill! +no final da linha. Normalmente \verb!\\! é usado para separar linhas. + + +\subsection{Ambiente \texttt{tabular}} +\verb!\begin{array}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular*}{!\textit{largura}\verb!}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! + + +\subsubsection{Especificação de coluna no \texttt{tabular}} +\settowidth{\MyLen}{\texttt{p}\{\textit{width}\} \ } +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\texttt{l} & Coluna justificada à esquerda. \\ +\texttt{c} & Coluna centralizada. \\ +\texttt{r} & Coluna justificada à direita. \\ +\verb!p{!\textit{width}\verb!}! & O mesmo que % + \verb!\parbox[t]{!\textit{largura}\verb!}!. \\ +\verb!@{!\textit{decl}\verb!}! & Insere \textit{decl} ao invés de + espaço entre colunas space. \\ +\verb!|! & Insere uma linha vertical entre colunas. +\end{tabular} + + +\subsubsection{Elementos do \texttt{tabular}} +\settowidth{\MyLen}{\texttt{.cline.x-y..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\hline! & Linha horizontal entre linhas. \\ +\verb!\cline{!$x$\verb!-!$y$\verb!}! & + Linha horizontal da coluna $x$ até $y$. \\ +\verb!\multicolumn{!\textit{n}\verb!}{!\textit{cols}\verb!}{!\textit{text}\verb!}! \\ + & Uma célula que engloba \textit{n} colunas, com especificação de \textit{cols} colunas. +\end{tabular} + + +\section{Modo matemático} +Para usar o modo matemático, envolva o texto com \texttt{\$} ou use +\verb!\begin{equation}!. + +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +Sobrescrito$^{x}$ & +\verb!^{x}! & +Subscrito$_{x}$ & +\verb!_{x}! \\ +$\frac{x}{y}$ & +\verb!\frac{x}{y}! & +$\sum_{k=1}^n$ & +\verb!\sum_{k=1}^n! \\ +$\sqrt[n]{x}$ & +\verb!\sqrt[n]{x}! & +$\prod_{k=1}^n$ & +\verb!\prod_{k=1}^n! \\ +\end{tabular} + +\subsection{Símbolos no modo matemático} + +% The ordering of these symbols is slightly odd. This is because I had to put all the +% long pieces of text in the same column (the right) for it all to fit properly. +% Otherwise, it wouldn't be possible to fit four columns of symbols here. + +\begin{tabular}{@{}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}} l@{\hspace{1em}}l@{\hspace{1ex}}l@{}} +$\leq$ & \verb!\leq! & +$\geq$ & \verb!\geq! & +$\neq$ & \verb!\neq! & +$\approx$ & \verb!\approx! \\ +$\times$ & \verb!\times! & +$\div$ & \verb!\div! & +$\pm$ & \verb!\pm! & +$\cdot$ & \verb!\cdot! \\ +$^{\circ}$ & \verb!^{\circ}! & +$\circ$ & \verb!\circ! & +$\prime$ & \verb!\prime! & +$\cdots$ & \verb!\cdots! \\ +$\infty$ & \verb!\infty! & +$\neg$ & \verb!\neg! & +$\wedge$ & \verb!\wedge! & +$\vee$ & \verb!\vee! \\ +$\supset$ & \verb!\supset! & +$\forall$ & \verb!\forall! & +$\in$ & \verb!\in! & +$\rightarrow$ & \verb!\rightarrow! \\ +$\subset$ & \verb!\subset! & +$\exists$ & \verb!\exists! & +$\notin$ & \verb!\notin! & +$\Rightarrow$ & \verb!\Rightarrow! \\ +$\cup$ & \verb!\cup! & +$\cap$ & \verb!\cap! & +$\mid$ & \verb!\mid! & +$\Leftrightarrow$ & \verb!\Leftrightarrow! \\ +$\dot a$ & \verb!\dot a! & +$\hat a$ & \verb!\hat a! & +$\bar a$ & \verb!\bar a! & +$\tilde a$ & \verb!\tilde a! \\ + +$\alpha$ & \verb!\alpha! & +$\beta$ & \verb!\beta! & +$\gamma$ & \verb!\gamma! & +$\delta$ & \verb!\delta! \\ +$\epsilon$ & \verb!\epsilon! & +$\zeta$ & \verb!\zeta! & +$\eta$ & \verb!\eta! & +$\varepsilon$ & \verb!\varepsilon! \\ +$\theta$ & \verb!\theta! & +$\iota$ & \verb!\iota! & +$\kappa$ & \verb!\kappa! & +$\vartheta$ & \verb!\vartheta! \\ +$\lambda$ & \verb!\lambda! & +$\mu$ & \verb!\mu! & +$\nu$ & \verb!\nu! & +$\xi$ & \verb!\xi! \\ +$\pi$ & \verb!\pi! & +$\rho$ & \verb!\rho! & +$\sigma$ & \verb!\sigma! & +$\tau$ & \verb!\tau! \\ +$\upsilon$ & \verb!\upsilon! & +$\phi$ & \verb!\phi! & +$\chi$ & \verb!\chi! & +$\psi$ & \verb!\psi! \\ +$\omega$ & \verb!\omega! & +$\Gamma$ & \verb!\Gamma! & +$\Delta$ & \verb!\Delta! & +$\Theta$ & \verb!\Theta! \\ +$\Lambda$ & \verb!\Lambda! & +$\Xi$ & \verb!\Xi! & +$\Pi$ & \verb!\Pi! & +$\Sigma$ & \verb!\Sigma! \\ +$\Upsilon$ & \verb!\Upsilon! & +$\Phi$ & \verb!\Phi! & +$\Psi$ & \verb!\Psi! & +$\Omega$ & \verb!\Omega! +\end{tabular} +\footnotesize + +%\subsection{Special symbols} +%\begin{tabular}{@{}ll@{}} +%$^{\circ}$ & \verb!^{\circ}! Ex: $22^{\circ}\mathrm{C}$: \verb!$22^{\circ}\mathrm{C}$!. +%\end{tabular} + +\section{Referências bibliográficas e citações} +Quando usar \BibTeX, você precisa rodar \texttt{latex}, \texttt{bibtex}, +e \texttt{latex} duas vezes mais para resolver as dependências. + +\subsection{Tipos de citação} +\settowidth{\MyLen}{\texttt{.shortciteN.key..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\cite{!\textit{key}\verb!}! & + Lista completa de autores e ano. (Watson and Crick 1953) \\ +\verb!\citeA{!\textit{key}\verb!}! & + Lista completa de autores. (Watson and Crick) \\ +\verb!\citeN{!\textit{key}\verb!}! & + Lista completa de autores e ano. Watson and Crick (1953) \\ +\verb!\shortcite{!\textit{key}\verb!}! & + Lista abreviada de autores e ano. ? \\ +\verb!\shortciteA{!\textit{key}\verb!}! & + Lista abreviada de autores. ? \\ +\verb!\shortciteN{!\textit{key}\verb!}! & + Lista abreviada de autores e ano. ? \\ +\verb!\citeyear{!\textit{key}\verb!}! & + Cita ano somente. (1953) \\ +\end{tabular} + +Todas as anteriores tem uma variante \texttt{NP} sem parênteses; +Ex. \verb!\citeNP!. + + +\subsection{Tipos de entrada \BibTeX\ } +\settowidth{\MyLen}{\texttt{.mastersthesis.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!@article! & Artigo de jornal ou revista. \\ +\verb!@book! & Livro com publicador. \\ +\verb!@booklet! & Livro sem publicador. \\ +\verb!@conference! & Artigo em um encontro. \\ +\verb!@inbook! & Uma parte de um livro e/ou intervalo de páginas. \\ +\verb!@incollection! & Uma parte de um Livro com seu próprio título. \\ +%\verb!@manual! & Technical documentation. \\ +%\verb!@mastersthesis! & Master's thesis. \\ +\verb!@misc! & Se nada se adequa. \\ +\verb!@phdthesis! & Tese de doutorado. \\ +\verb!@proceedings! & Anais de uma conferência. \\ +\verb!@techreport! & Relatótio técnico, usualmente numerado em série. \\ +\verb!@unpublished! & Não publicado. \\ +\end{tabular} + +\subsection{Campos \BibTeX\ } +\settowidth{\MyLen}{\texttt{organization.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!address! & Endereço do publicador. Não necess. em geral. \\ +\verb!author! & Nomes de autores, de formato .... \\ +\verb!booktitle! & Título do livro quando parte deste é citado. \\ +\verb!chapter! & Capítulo ou número de seção. \\ +\verb!edition! & Edição do livro. \\ +\verb!editor! & Nomes dos editores. \\ +\verb!institution! & Instituição sede do relatório técnico. \\ +\verb!journal! & Nome do jornal. \\ +\verb!key! & Usado para referência cruzada, sem autor. \\ +\verb!month! & Mês publicado. Use abreviação de 3 letras. \\ +\verb!note! & Informação adicional. \\ +\verb!number! & Númerodo jornal ou revista. \\ +\verb!organization! & Organização que sedia a conferência. \\ +\verb!pages! & Intervalo de páginas (\verb!2,6,9--12!). \\ +\verb!publisher! & Nome do publicador. \\ +\verb!school! & Nome da escola (para tese). \\ +\verb!series! & Nome da série de livros. \\ +\verb!title! & Título do trabalho. \\ +\verb!type! & Tipo de relat. técnico, ex. ``Nota de Pesquisa''. \\ +\verb!volume! & Volume de um jornal ou livro. \\ +\verb!year! & Ano de publicação. \\ +\end{tabular} +Nem todos os campos precisam sem preenchidos. Veja exemplo abaixo. + +\subsection{Arquivos de estilo \BibTeX\ comuns} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{3em}}l@{\hspace{1em}}l@{}} +\verb!abbrv! & Padrão & \verb!abstract! & \texttt{alpha} com resumo (abstract) \\ +\verb!alpha! & Padrão & \verb!apa! & APA \\ +\verb!plain! & Padrão & \verb!unsrt! & Não ordenado \\ +\end{tabular} + +O documento \LaTeX\ deve ter as duas linhas seguintesantes do +\verb!\end{document}!, onde \verb!bibfile.bib! é o nome do arquivo +\BibTeX\ . +\begin{verbatim} +\bibliographystyle{plain} +\bibliography{bibfile} +\end{verbatim} + +\subsection{Exemplo \BibTeX\ } +O banco de dados \BibTeX\ vai em um arquivo chamado +\textit{file}\texttt{.bib}, que é processado com \verb!bibtex file!. +\begin{verbatim} +@String{N = {Na\-ture}} +@Article{WC:1953, + author = {James Watson and Francis Crick}, + title = {A structure for Deoxyribose Nucleic Acid}, + journal = N, + volume = {171}, + pages = {737}, + year = 1953 +} +\end{verbatim} + + +\section{Documento amostra \LaTeX\ } +\begin{verbatim} +\documentclass[11pt]{article} +\usepackage{fullpage} +\title{Template} +\author{Name} +\begin{document} +\maketitle + +\section{seção} +\subsection*{subseção sem número} +texto \textbf{texto negrito} texto. +Com matemática: $2+2=5$ +\subsection{subseção} +texto \emph{texto enfatizado} texto. \cite{WC:1953} +descobrio a estrutura do ADN. + +Uma tabela: +\begin{table}[!th] +\begin{tabular}{|l|c|r|} +\hline +primeira & linha & dados \\ +segunda & linhas & dados \\ +\hline +\end{tabular} +\caption{Este é o título} +\label{ex:table} +\end{table} + +A tabela é numerada \ref{ex:table}. +\end{document} +\end{verbatim} + + + +\rule{0.3\linewidth}{0.25pt} +\scriptsize + +Copyright \copyright\ 2006 Winston Chang \\ +Tradução e adaptação \textregistered\ 2009 Silvio C. G. Granja + + + +% Should change this to be date of file, not current date. +%\verb!$Revision: 1.13 $, $Date: 2008/05/29 06:11:56 $.! +\verb!$Revision: 1.13 $, $Data: 2009/04/05 15:26:47 $.! + +\url{http://www.stdout.org/~winston/latex/}\\ +\url{http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=latexcheat} + +\end{multicols} +\end{document} diff --git a/info/latexcheat/latexcheat/README b/info/latexcheat/latexcheat/README new file mode 100644 index 0000000000..c9bb8f5e9d --- /dev/null +++ b/info/latexcheat/latexcheat/README @@ -0,0 +1,9 @@ +Latex cheat sheet +Version 1.13, 2008/05/29 + +This is a latex reference sheet for writing scientific papers. Unlike +many reference sheets available on the internet, it does not focus on +mathematics, although some math symbols are listed. Please send +suggestions to <winston at stdout.org>. + +License: LaTeX Project Public License diff --git a/info/latexcheat/latexcheat/latexsheet.pdf b/info/latexcheat/latexcheat/latexsheet.pdf Binary files differnew file mode 100644 index 0000000000..e3f3e82930 --- /dev/null +++ b/info/latexcheat/latexcheat/latexsheet.pdf diff --git a/info/latexcheat/latexcheat/latexsheet.tex b/info/latexcheat/latexcheat/latexsheet.tex new file mode 100644 index 0000000000..7b24edbc1c --- /dev/null +++ b/info/latexcheat/latexcheat/latexsheet.tex @@ -0,0 +1,755 @@ +\documentclass[10pt,landscape]{article} +\usepackage{multicol} +\usepackage{calc} +\usepackage{ifthen} +\usepackage[landscape]{geometry} + +% To make this come out properly in landscape mode, do one of the following +% 1. +% pdflatex latexsheet.tex +% +% 2. +% latex latexsheet.tex +% dvips -P pdf -t landscape latexsheet.dvi +% ps2pdf latexsheet.ps + + +% If you're reading this, be prepared for confusion. Making this was +% a learning experience for me, and it shows. Much of the placement +% was hacked in; if you make it better, let me know... + + +% 2008-04 +% Changed page margin code to use the geometry package. Also added code for +% conditional page margins, depending on paper size. Thanks to Uwe Ziegenhagen +% for the suggestions. + +% 2006-08 +% Made changes based on suggestions from Gene Cooperman. <gene at ccs.neu.edu> + + +% To Do: +% \listoffigures \listoftables +% \setcounter{secnumdepth}{0} + + +% This sets page margins to .5 inch if using letter paper, and to 1cm +% if using A4 paper. (This probably isn't strictly necessary.) +% If using another size paper, use default 1cm margins. +\ifthenelse{\lengthtest { \paperwidth = 11in}} + { \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} } + {\ifthenelse{ \lengthtest{ \paperwidth = 297mm}} + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + {\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} } + } + +% Turn off header and footer +\pagestyle{empty} + + +% Redefine section commands to use less space +\makeatletter +\renewcommand{\section}{\@startsection{section}{1}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {0.5ex plus .2ex}%x + {\normalfont\large\bfseries}} +\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}% + {-1explus -.5ex minus -.2ex}% + {0.5ex plus .2ex}% + {\normalfont\normalsize\bfseries}} +\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}% + {-1ex plus -.5ex minus -.2ex}% + {1ex plus .2ex}% + {\normalfont\small\bfseries}} +\makeatother + +% Define BibTeX command +\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} + +% Don't print section numbers +\setcounter{secnumdepth}{0} + + +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 0.5ex} + + +% ----------------------------------------------------------------------- + +\begin{document} + +\raggedright +\footnotesize +\begin{multicols}{3} + + +% multicol parameters +% These lengths are set only within the two main columns +%\setlength{\columnseprule}{0.25pt} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +\begin{center} + \Large{\textbf{\LaTeXe\ Cheat Sheet}} \\ +\end{center} + +\section{Document classes} +\begin{tabular}{@{}ll@{}} +\verb!book! & Default is two-sided. \\ +\verb!report! & No \verb!\part! divisions. \\ +\verb!article! & No \verb!\part! or \verb!\chapter! divisions. \\ +\verb!letter! & Letter (?). \\ +\verb!slides! & Large sans-serif font. +\end{tabular} + +Used at the very beginning of a document: +\verb!\documentclass{!\textit{class}\verb!}!. Use +\verb!\begin{document}! to start contents and \verb!\end{document}! to +end the document. + + +\subsection{Common \texttt{documentclass} options} +\newlength{\MyLen} +\settowidth{\MyLen}{\texttt{letterpaper}/\texttt{a4paper} \ } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\texttt{10pt}/\texttt{11pt}/\texttt{12pt} & Font size. \\ +\texttt{letterpaper}/\texttt{a4paper} & Paper size. \\ +\texttt{twocolumn} & Use two columns. \\ +\texttt{twoside} & Set margins for two-sided. \\ +\texttt{landscape} & Landscape orientation. Must use + \texttt{dvips -t landscape}. \\ +\texttt{draft} & Double-space lines. +\end{tabular} + +Usage: +\verb!\documentclass[!\textit{opt,opt}\verb!]{!\textit{class}\verb!}!. + + +\subsection{Packages} +\settowidth{\MyLen}{\texttt{multicol} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +%\begin{tabular}{@{}ll@{}} +\texttt{fullpage} & Use 1 inch margins. \\ +\texttt{anysize} & Set margins: \verb!\marginsize{!\textit{l}% + \verb!}{!\textit{r}\verb!}{!\textit{t}% + \verb!}{!\textit{b}\verb!}!. \\ +\texttt{multicol} & Use $n$ columns: + \verb!\begin{multicols}{!$n$\verb!}!. \\ +\texttt{latexsym} & Use \LaTeX\ symbol font. \\ +\texttt{graphicx} & Show image: + \verb!\includegraphics[width=!% + \textit{x}\verb!]{!% + \textit{file}\verb!}!. \\ +\texttt{url} & Insert URL: \verb!\url{!% + \textit{http://\ldots}% + \verb!}!. +\end{tabular} + +Use before \verb!\begin{document}!. +Usage: \verb!\usepackage{!\textit{package}\verb!}! + + +\subsection{Title} +\settowidth{\MyLen}{\texttt{.author.text.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\author{!\textit{text}\verb!}! & Author of document. \\ +\verb!\title{!\textit{text}\verb!}! & Title of document. \\ +\verb!\date{!\textit{text}\verb!}! & Date. \\ +\end{tabular} + +These commands go before \verb!\begin{document}!. The declaration +\verb!\maketitle! goes at the top of the document. + +\subsection{Miscellaneous} +\settowidth{\MyLen}{\texttt{.pagestyle.empty.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\pagestyle{empty}! & Empty header, footer + and no page numbers. \\ + +\end{tabular} + + + +\section{Document structure} +\begin{multicols}{2} +\verb!\part{!\textit{title}\verb!}! \\ +\verb!\chapter{!\textit{title}\verb!}! \\ +\verb!\section{!\textit{title}\verb!}! \\ +\verb!\subsection{!\textit{title}\verb!}! \\ +\verb!\subsubsection{!\textit{title}\verb!}! \\ +\verb!\paragraph{!\textit{title}\verb!}! \\ +\verb!\subparagraph{!\textit{title}\verb!}! +\end{multicols} +{\raggedright +Section commands can be followed with an \texttt{*}, like +\verb!\section*{!\textit{title}\verb!}!, to supress heading +numbers. \verb!\setcounter{secnumdepth}{!$x$\verb!}! supresses heading +numbers of depth $>x$, where \verb!chapter! has depth 0. +} + +\subsection{Text environments} +\settowidth{\MyLen}{\texttt{.begin.quotation.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{comment}! & Comment block (not printed). \\ +\verb!\begin{quote}! & Indented quotation block. \\ +\verb!\begin{quotation}! & Like \texttt{quote} with indented paragraphs. \\ +\verb!\begin{verse}! & Quotation block for verse. +\end{tabular} + +\subsection{Lists} +\settowidth{\MyLen}{\texttt{.begin.description.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{enumerate}! & Numbered list. \\ +\verb!\begin{itemize}! & Bulleted list. \\ +\verb!\begin{description}! & Description list. \\ +\verb!\item! \textit{text} & Add an item. \\ +\verb!\item[!\textit{x}\verb!]! \textit{text} + & Use \textit{x} instead of normal + bullet or number. Required for descriptions. \\ +\end{tabular} + + + + +\subsection{References} +\settowidth{\MyLen}{\texttt{.pageref.marker..}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\label{!\textit{marker}\verb!}! & Set a marker for cross-reference, + often of the form \verb!\label{sec:item}!. \\ +\verb!\ref{!\textit{marker}\verb!}! & Give section/body number of marker. \\ +\verb!\pageref{!\textit{marker}\verb!}! & Give page number of marker. \\ +\verb!\footnote{!\textit{text}\verb!}! & Print footnote at bottom of page. \\ +\end{tabular} + + +\subsection{Floating bodies} +\settowidth{\MyLen}{\texttt{.begin.equation..place.}} +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\begin{table}[!\textit{place}\verb!]! & Add numbered table. \\ +\verb!\begin{figure}[!\textit{place}\verb!]! & Add numbered figure. \\ +\verb!\begin{equation}[!\textit{place}\verb!]! & Add numbered equation. \\ +\verb!\caption{!\textit{text}\verb!}! & Caption for the body. \\ +\end{tabular} + +The \textit{place} is a list valid placements for the body. \texttt{t}=top, +\texttt{h}=here, \texttt{b}=bottom, \texttt{p}=separate page, \texttt{!}=place even if ugly. Captions and label markers should be within the environment. + +%--------------------------------------------------------------------------- + +\section{Text properties} + +\subsection{Font face} +\newcommand{\FontCmd}[3]{\PBS\verb!\#1{!\textit{text}\verb!}! \> % + \verb!{\#2 !\textit{text}\verb!}! \> % + \#1{#3}} +\begin{tabular}{@{}l@{}l@{}l@{}} +\textit{Command} & \textit{Declaration} & \textit{Effect} \\ +\verb!\textrm{!\textit{text}\verb!}! & % + \verb!{\rmfamily !\textit{text}\verb!}! & % + \textrm{Roman family} \\ +\verb!\textsf{!\textit{text}\verb!}! & % + \verb!{\sffamily !\textit{text}\verb!}! & % + \textsf{Sans serif family} \\ +\verb!\texttt{!\textit{text}\verb!}! & % + \verb!{\ttfamily !\textit{text}\verb!}! & % + \texttt{Typewriter family} \\ +\verb!\textmd{!\textit{text}\verb!}! & % + \verb!{\mdseries !\textit{text}\verb!}! & % + \textmd{Medium series} \\ +\verb!\textbf{!\textit{text}\verb!}! & % + \verb!{\bfseries !\textit{text}\verb!}! & % + \textbf{Bold series} \\ +\verb!\textup{!\textit{text}\verb!}! & % + \verb!{\upshape !\textit{text}\verb!}! & % + \textup{Upright shape} \\ +\verb!\textit{!\textit{text}\verb!}! & % + \verb!{\itshape !\textit{text}\verb!}! & % + \textit{Italic shape} \\ +\verb!\textsl{!\textit{text}\verb!}! & % + \verb!{\slshape !\textit{text}\verb!}! & % + \textsl{Slanted shape} \\ +\verb!\textsc{!\textit{text}\verb!}! & % + \verb!{\scshape !\textit{text}\verb!}! & % + \textsc{Small Caps shape} \\ +\verb!\emph{!\textit{text}\verb!}! & % + \verb!{\em !\textit{text}\verb!}! & % + \emph{Emphasized} \\ +\verb!\textnormal{!\textit{text}\verb!}! & % + \verb!{\normalfont !\textit{text}\verb!}! & % + \textnormal{Document font} \\ +\verb!\underline{!\textit{text}\verb!}! & % + & % + \underline{Underline} +\end{tabular} + +The command (t\textit{tt}t) form handles spacing better than the +declaration (t{\itshape tt}t) form. + +\subsection{Font size} +\setlength{\columnsep}{14pt} % Need to move columns apart a little +\begin{multicols}{2} +\begin{tabbing} +\verb!\footnotesize! \= \kill +\verb!\tiny! \> \tiny{tiny} \\ +\verb!\scriptsize! \> \scriptsize{scriptsize} \\ +\verb!\footnotesize! \> \footnotesize{footnotesize} \\ +\verb!\small! \> \small{small} \\ +\verb!\normalsize! \> \normalsize{normalsize} \\ +\verb!\large! \> \large{large} \\ +\verb!\Large! \= \Large{Large} \\ % Tab hack for new column +\verb!\LARGE! \> \LARGE{LARGE} \\ +\verb!\huge! \> \huge{huge} \\ +\verb!\Huge! \> \Huge{Huge} +\end{tabbing} +\end{multicols} +\setlength{\columnsep}{1pt} % Set column separation back + +These are declarations and should be used in the form +\verb!{\small! \ldots\verb!}!, or without braces to affect the entire +document. + + +\subsection{Verbatim text} + +\settowidth{\MyLen}{\texttt{.begin.verbatim..} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb@\begin{verbatim}@ & Verbatim environment. \\ +\verb@\begin{verbatim*}@ & Spaces are shown as \verb*@ @. \\ +\verb@\verb!text!@ & Text between the delimiting characters (in this case % + `\texttt{!}') is verbatim. +\end{tabular} + + +\subsection{Justification} +\begin{tabular}{@{}ll@{}} +\textit{Environment} & \textit{Declaration} \\ +\verb!\begin{center}! & \verb!\centering! \\ +\verb!\begin{flushleft}! & \verb!\raggedright! \\ +\verb!\begin{flushright}! & \verb!\raggedleft! \\ +\end{tabular} + +\subsection{Miscellaneous} +\verb!\linespread{!$x$\verb!}! changes the line spacing by the +multiplier $x$. + + + + + +\section{Text-mode symbols} + +\subsection{Symbols} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +\& & \verb!\&! & +\_ & \verb!\_! & +\ldots & \verb!\ldots! & +\textbullet & \verb!\textbullet! \\ +\$ & \verb!\$! & +\^{} & \verb!\^{}! & +\textbar & \verb!\textbar! & +\textbackslash & \verb!\textbackslash! \\ +\% & \verb!\%! & +\~{} & \verb!\~{}! & +\# & \verb!\#! & +\S & \verb!\S! \\ +\end{tabular} + +\subsection{Accents} +\begin{tabular}{@{}l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l|l@{\ }l@{}} +\`o & \verb!\`o! & +\'o & \verb!\'o! & +\^o & \verb!\^o! & +\~o & \verb!\~o! & +\=o & \verb!\=o! \\ +\.o & \verb!\.o! & +\"o & \verb!\"o! & +\c o & \verb!\c o! & +\v o & \verb!\v o! & +\H o & \verb!\H o! \\ +\c c & \verb!\c c! & +\d o & \verb!\d o! & +\b o & \verb!\b o! & +\t oo & \verb!\t oo! & +\oe & \verb!\oe! \\ +\OE & \verb!\OE! & +\ae & \verb!\ae! & +\AE & \verb!\AE! & +\aa & \verb!\aa! & +\AA & \verb!\AA! \\ +\o & \verb!\o! & +\O & \verb!\O! & +\l & \verb!\l! & +\L & \verb!\L! & +\i & \verb!\i! \\ +\j & \verb!\j! & +!` & \verb!~`! & +?` & \verb!?`! & +\end{tabular} + + +\subsection{Delimiters} +\begin{tabular}{@{}l@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }ll@{\ }l@{}} +` & \verb!`! & +`` & \verb!``! & +\{ & \verb!\{! & +\lbrack & \verb![! & +( & \verb!(! & +\textless & \verb!\textless! \\ +' & \verb!'! & +'' & \verb!''! & +\} & \verb!\}! & +\rbrack & \verb!]! & +) & \verb!)! & +\textgreater & \verb!\textgreater! \\ +\end{tabular} + +\subsection{Dashes} +\begin{tabular}{@{}llll@{}} +\textit{Name} & \textit{Source} & \textit{Example} & \textit{Usage} \\ +hyphen & \verb!-! & X-ray & In words. \\ +en-dash & \verb!--! & 1--5 & Between numbers. \\ +em-dash & \verb!---! & Yes---or no? & Punctuation. +\end{tabular} + + +\subsection{Line and page breaks} +\settowidth{\MyLen}{\texttt{.pagebreak} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\\! & Begin new line without new paragraph. \\ +\verb!\\*! & Prohibit pagebreak after linebreak. \\ +\verb!\kill! & Don't print current line. \\ +\verb!\pagebreak! & Start new page. \\ +\verb!\noindent! & Do not indent current line. +\end{tabular} + + +\subsection{Miscellaneous} +\settowidth{\MyLen}{\texttt{.rule.w..h.} } +\begin{tabular}{@{}p{\the\MyLen}% + @{}p{\linewidth-\the\MyLen}@{}} +\verb!\today! & \today. \\ +\verb!$\sim$! & Prints $\sim$ instead of \verb!\~{}!, which makes \~{}. \\ +\verb!~! & Space, disallow linebreak (\verb!W.J.~Clinton!). \\ +\verb!\@.! & Indicate that the \verb!.! ends a sentence when following + an uppercase letter. \\ +\verb!\hspace{!$l$\verb!}! & Horizontal space of length $l$ + (Ex: $l=\mathtt{20pt}$). \\ +\verb!\vspace{!$l$\verb!}! & Vertical space of length $l$. \\ +\verb!\rule{!$w$\verb!}{!$h$\verb!}! & Line of width $w$ and height $h$. \\ +\end{tabular} + + + +\section{Tabular environments} + +\subsection{\texttt{tabbing} environment} +\begin{tabular}{@{}l@{\hspace{1.5ex}}l@{\hspace{10ex}}l@{\hspace{1.5ex}}l@{}} +\verb!\=! & Set tab stop. & +\verb!\>! & Go to tab stop. +\end{tabular} + +Tab stops can be set on ``invisible'' lines with \verb!\kill! +at the end of the line. Normally \verb!\\! is used to separate lines. + + +\subsection{\texttt{tabular} environment} +\verb!\begin{array}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! \\ +\verb!\begin{tabular*}{!\textit{width}\verb!}[!\textit{pos}\verb!]{!\textit{cols}\verb!}! + + +\subsubsection{\texttt{tabular} column specification} +\settowidth{\MyLen}{\texttt{p}\{\textit{width}\} \ } +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\texttt{l} & Left-justified column. \\ +\texttt{c} & Centered column. \\ +\texttt{r} & Right-justified column. \\ +\verb!p{!\textit{width}\verb!}! & Same as % + \verb!\parbox[t]{!\textit{width}\verb!}!. \\ +\verb!@{!\textit{decl}\verb!}! & Insert \textit{decl} instead of + inter-column space. \\ +\verb!|! & Inserts a vertical line between columns. +\end{tabular} + + +\subsubsection{\texttt{tabular} elements} +\settowidth{\MyLen}{\texttt{.cline.x-y..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\hline! & Horizontal line between rows. \\ +\verb!\cline{!$x$\verb!-!$y$\verb!}! & + Horizontal line across columns $x$ through $y$. \\ +\verb!\multicolumn{!\textit{n}\verb!}{!\textit{cols}\verb!}{!\textit{text}\verb!}! \\ + & A cell that spans \textit{n} columns, with \textit{cols} column specification. +\end{tabular} + + +\section{Math mode} +To use math mode, surround text with \texttt{\$} or use +\verb!\begin{equation}!. + +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{2em}}l@{\hspace{1em}}l@{}} +Superscript$^{x}$ & +\verb!^{x}! & +Subscript$_{x}$ & +\verb!_{x}! \\ +$\frac{x}{y}$ & +\verb!\frac{x}{y}! & +$\sum_{k=1}^n$ & +\verb!\sum_{k=1}^n! \\ +$\sqrt[n]{x}$ & +\verb!\sqrt[n]{x}! & +$\prod_{k=1}^n$ & +\verb!\prod_{k=1}^n! \\ +\end{tabular} + +\subsection{Math-mode symbols} + +% The ordering of these symbols is slightly odd. This is because I had to put all the +% long pieces of text in the same column (the right) for it all to fit properly. +% Otherwise, it wouldn't be possible to fit four columns of symbols here. + +\begin{tabular}{@{}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}}l@{\hspace{1em}}l@{\hspace{1ex}} l@{\hspace{1em}}l@{\hspace{1ex}}l@{}} +$\leq$ & \verb!\leq! & +$\geq$ & \verb!\geq! & +$\neq$ & \verb!\neq! & +$\approx$ & \verb!\approx! \\ +$\times$ & \verb!\times! & +$\div$ & \verb!\div! & +$\pm$ & \verb!\pm! & +$\cdot$ & \verb!\cdot! \\ +$^{\circ}$ & \verb!^{\circ}! & +$\circ$ & \verb!\circ! & +$\prime$ & \verb!\prime! & +$\cdots$ & \verb!\cdots! \\ +$\infty$ & \verb!\infty! & +$\neg$ & \verb!\neg! & +$\wedge$ & \verb!\wedge! & +$\vee$ & \verb!\vee! \\ +$\supset$ & \verb!\supset! & +$\forall$ & \verb!\forall! & +$\in$ & \verb!\in! & +$\rightarrow$ & \verb!\rightarrow! \\ +$\subset$ & \verb!\subset! & +$\exists$ & \verb!\exists! & +$\notin$ & \verb!\notin! & +$\Rightarrow$ & \verb!\Rightarrow! \\ +$\cup$ & \verb!\cup! & +$\cap$ & \verb!\cap! & +$\mid$ & \verb!\mid! & +$\Leftrightarrow$ & \verb!\Leftrightarrow! \\ +$\dot a$ & \verb!\dot a! & +$\hat a$ & \verb!\hat a! & +$\bar a$ & \verb!\bar a! & +$\tilde a$ & \verb!\tilde a! \\ + +$\alpha$ & \verb!\alpha! & +$\beta$ & \verb!\beta! & +$\gamma$ & \verb!\gamma! & +$\delta$ & \verb!\delta! \\ +$\epsilon$ & \verb!\epsilon! & +$\zeta$ & \verb!\zeta! & +$\eta$ & \verb!\eta! & +$\varepsilon$ & \verb!\varepsilon! \\ +$\theta$ & \verb!\theta! & +$\iota$ & \verb!\iota! & +$\kappa$ & \verb!\kappa! & +$\vartheta$ & \verb!\vartheta! \\ +$\lambda$ & \verb!\lambda! & +$\mu$ & \verb!\mu! & +$\nu$ & \verb!\nu! & +$\xi$ & \verb!\xi! \\ +$\pi$ & \verb!\pi! & +$\rho$ & \verb!\rho! & +$\sigma$ & \verb!\sigma! & +$\tau$ & \verb!\tau! \\ +$\upsilon$ & \verb!\upsilon! & +$\phi$ & \verb!\phi! & +$\chi$ & \verb!\chi! & +$\psi$ & \verb!\psi! \\ +$\omega$ & \verb!\omega! & +$\Gamma$ & \verb!\Gamma! & +$\Delta$ & \verb!\Delta! & +$\Theta$ & \verb!\Theta! \\ +$\Lambda$ & \verb!\Lambda! & +$\Xi$ & \verb!\Xi! & +$\Pi$ & \verb!\Pi! & +$\Sigma$ & \verb!\Sigma! \\ +$\Upsilon$ & \verb!\Upsilon! & +$\Phi$ & \verb!\Phi! & +$\Psi$ & \verb!\Psi! & +$\Omega$ & \verb!\Omega! +\end{tabular} +\footnotesize + +%\subsection{Special symbols} +%\begin{tabular}{@{}ll@{}} +%$^{\circ}$ & \verb!^{\circ}! Ex: $22^{\circ}\mathrm{C}$: \verb!$22^{\circ}\mathrm{C}$!. +%\end{tabular} + +\section{Bibliography and citations} +When using \BibTeX, you need to run \texttt{latex}, \texttt{bibtex}, +and \texttt{latex} twice more to resolve dependencies. + +\subsection{Citation types} +\settowidth{\MyLen}{\texttt{.shortciteN.key..}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!\cite{!\textit{key}\verb!}! & + Full author list and year. (Watson and Crick 1953) \\ +\verb!\citeA{!\textit{key}\verb!}! & + Full author list. (Watson and Crick) \\ +\verb!\citeN{!\textit{key}\verb!}! & + Full author list and year. Watson and Crick (1953) \\ +\verb!\shortcite{!\textit{key}\verb!}! & + Abbreviated author list and year. ? \\ +\verb!\shortciteA{!\textit{key}\verb!}! & + Abbreviated author list. ? \\ +\verb!\shortciteN{!\textit{key}\verb!}! & + Abbreviated author list and year. ? \\ +\verb!\citeyear{!\textit{key}\verb!}! & + Cite year only. (1953) \\ +\end{tabular} + +All the above have an \texttt{NP} variant without parentheses; +Ex. \verb!\citeNP!. + + +\subsection{\BibTeX\ entry types} +\settowidth{\MyLen}{\texttt{.mastersthesis.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!@article! & Journal or magazine article. \\ +\verb!@book! & Book with publisher. \\ +\verb!@booklet! & Book without publisher. \\ +\verb!@conference! & Article in conference proceedings. \\ +\verb!@inbook! & A part of a book and/or range of pages. \\ +\verb!@incollection! & A part of book with its own title. \\ +%\verb!@manual! & Technical documentation. \\ +%\verb!@mastersthesis! & Master's thesis. \\ +\verb!@misc! & If nothing else fits. \\ +\verb!@phdthesis! & PhD. thesis. \\ +\verb!@proceedings! & Proceedings of a conference. \\ +\verb!@techreport! & Tech report, usually numbered in series. \\ +\verb!@unpublished! & Unpublished. \\ +\end{tabular} + +\subsection{\BibTeX\ fields} +\settowidth{\MyLen}{\texttt{organization.}} +\begin{tabular}{@{}p{\the\MyLen}@{}p{\linewidth-\the\MyLen}@{}} +\verb!address! & Address of publisher. Not necessary for major + publishers. \\ +\verb!author! & Names of authors, of format .... \\ +\verb!booktitle! & Title of book when part of it is cited. \\ +\verb!chapter! & Chapter or section number. \\ +\verb!edition! & Edition of a book. \\ +\verb!editor! & Names of editors. \\ +\verb!institution! & Sponsoring institution of tech.\ report. \\ +\verb!journal! & Journal name. \\ +\verb!key! & Used for cross ref.\ when no author. \\ +\verb!month! & Month published. Use 3-letter abbreviation. \\ +\verb!note! & Any additional information. \\ +\verb!number! & Number of journal or magazine. \\ +\verb!organization! & Organization that sponsors a conference. \\ +\verb!pages! & Page range (\verb!2,6,9--12!). \\ +\verb!publisher! & Publisher's name. \\ +\verb!school! & Name of school (for thesis). \\ +\verb!series! & Name of series of books. \\ +\verb!title! & Title of work. \\ +\verb!type! & Type of tech.\ report, ex. ``Research Note''. \\ +\verb!volume! & Volume of a journal or book. \\ +\verb!year! & Year of publication. \\ +\end{tabular} +Not all fields need to be filled. See example below. + +\subsection{Common \BibTeX\ style files} +\begin{tabular}{@{}l@{\hspace{1em}}l@{\hspace{3em}}l@{\hspace{1em}}l@{}} +\verb!abbrv! & Standard & +\verb!abstract! & \texttt{alpha} with abstract \\ +\verb!alpha! & Standard & +\verb!apa! & APA \\ +\verb!plain! & Standard & +\verb!unsrt! & Unsorted \\ +\end{tabular} + +The \LaTeX\ document should have the following two lines just before +\verb!\end{document}!, where \verb!bibfile.bib! is the name of the +\BibTeX\ file. +\begin{verbatim} +\bibliographystyle{plain} +\bibliography{bibfile} +\end{verbatim} + +\subsection{\BibTeX\ example} +The \BibTeX\ database goes in a file called +\textit{file}\texttt{.bib}, which is processed with \verb!bibtex file!. +\begin{verbatim} +@String{N = {Na\-ture}} +@Article{WC:1953, + author = {James Watson and Francis Crick}, + title = {A structure for Deoxyribose Nucleic Acid}, + journal = N, + volume = {171}, + pages = {737}, + year = 1953 +} +\end{verbatim} + + +\section{Sample \LaTeX\ document} +\begin{verbatim} +\documentclass[11pt]{article} +\usepackage{fullpage} +\title{Template} +\author{Name} +\begin{document} +\maketitle + +\section{section} +\subsection*{subsection without number} +text \textbf{bold text} text. Some math: $2+2=5$ +\subsection{subsection} +text \emph{emphasized text} text. \cite{WC:1953} +discovered the structure of DNA. + +A table: +\begin{table}[!th] +\begin{tabular}{|l|c|r|} +\hline +first & row & data \\ +second & row & data \\ +\hline +\end{tabular} +\caption{This is the caption} +\label{ex:table} +\end{table} + +The table is numbered \ref{ex:table}. +\end{document} +\end{verbatim} + + + +\rule{0.3\linewidth}{0.25pt} +\scriptsize + +Copyright \copyright\ 2006 Winston Chang + +% Should change this to be date of file, not current date. +\verb!$Revision: 1.13 $, $Date: 2008/05/29 06:11:56 $.! + +http://www.stdout.org/$\sim$winston/latex/ + + +\end{multicols} +\end{document} diff --git a/info/latexcheat/platexcheat/LICENSE b/info/latexcheat/platexcheat/LICENSE new file mode 100644 index 0000000000..938462acaa --- /dev/null +++ b/info/latexcheat/platexcheat/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright 2017 Takuto ASAKURA (wtsnjp) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/info/latexcheat/platexcheat/README.md b/info/latexcheat/platexcheat/README.md new file mode 100644 index 0000000000..5a62c89b55 --- /dev/null +++ b/info/latexcheat/platexcheat/README.md @@ -0,0 +1,37 @@ +# pLaTeX2e cheat sheet + +This is a translation to Japanese of Winston Chang's LaTeX cheat sheet (a reference sheet for writing scientific papers). It has been adapted to Japanese standards using pLaTeX, and also attached additional information of "standard LaTeX" (especially about math-mode). + +# pLaTeX2e チートシート + +pLaTeX2e でよく用いられる命令を2ページの PDF にまとめたチートシート(コマンド一覧)です.英語版の [LaTeX2e Cheat Sheet](http://www.stdout.org/~winston/latex/) を基に作成を開始しましたが,pLaTeX2e 版独自の改良を多数加えています. + +## 編集方針 + +原版から,以下のような方針で変更を行っています. + +* 紙面の許す限り網羅性を重視 +* 説明は最小限度(LaTeX の基本は既知と仮定) +* 統一感のあるデザイン(ソースは構造化) +* 使用頻度の高い命令を優先 +* 同じ効果の命令が複数ある場合は綴りが短いものを優先 +* 「標準」以外のものは原則扱わない +* TeX の外部プログラムについては言及程度に留める + +## 配布場所など + +* PDF ファイル + * <https://wtsnjp.com/pdf/platexsheet.pdf> + * <https://wtsnjp.com/pdf/platexsheet-jsclasses.pdf> +* CTAN パッケージ:<https://www.ctan.org/pkg/platexcheat> +* GitHub リポジトリ:<https://github.com/wtsnjp/platexcheat> + +PDF ファイルは最新版のみの配布です.それ以外はソースから各自タイプセットしてください(v1.1 以降は [h-kitagawa/plistings](https://github.com/h-kitagawa/plistings) が必要なので注意).GitHub でのコメント・プルリクエスト歓迎です.Twitter で作者に連絡いただいても構いません. + +## ライセンス + +本パッケージには [MIT ライセンス](./LICENSE)が適用されます. + +--- + +Takuto ASAKURA ([wtsnjp](https://twitter.com/wtsnjp)) diff --git a/info/latexcheat/platexcheat/platexsheet-jsclasses.pdf b/info/latexcheat/platexcheat/platexsheet-jsclasses.pdf Binary files differnew file mode 100644 index 0000000000..e3fbcf3375 --- /dev/null +++ b/info/latexcheat/platexcheat/platexsheet-jsclasses.pdf diff --git a/info/latexcheat/platexcheat/platexsheet-jsclasses.tex b/info/latexcheat/platexcheat/platexsheet-jsclasses.tex new file mode 100644 index 0000000000..6b236a2350 --- /dev/null +++ b/info/latexcheat/platexcheat/platexsheet-jsclasses.tex @@ -0,0 +1,628 @@ +\documentclass[10pt,a4paper,landscape,dvipdfmx,nomag]{jsarticle} + +% 使用パッケージ +\usepackage[small]{titlesec} +\usepackage[final]{plistings} +\usepackage{geometry} +\usepackage{graphicx} +\usepackage{multicol} +\usepackage{shortvrb} +\usepackage{siunitx} +\usepackage{xcolor} +\usepackage{otf} +\usepackage{url} + +% ドキュメント設定 +%% ページ +\geometry{top=.85cm, left=.85cm, right=.85cm, bottom=.85cm} +\pagestyle{empty} + +%% 見出し +\setcounter{secnumdepth}{0} +\titlespacing{\section}{0pt}{1pt}{0pt} +\titlespacing{\subsection}{0pt}{0pt}{0pt} +\titlespacing{\subsubsection}{0pt}{0pt}{0pt} +\makeatletter +\protected@xdef\ttl@fonts{% + \ttl@fonts\protect\sffamily\protect\gtfamily\protect\mdseries} +\makeatother + +%% 寸法 +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 4.5pt minus .7pt} +\renewcommand{\arraystretch}{.9} + +%% コード +\MakeShortVerb{\|} +\lstset{ + language={[LaTeX]TeX}, + basicstyle={\scriptsize\ttfamily\gtfamily}, + commentstyle={\scriptsize\textcolor{gray}}, + keywordstyle={\scriptsize\ttfamily\bfseries}, + columns=[l]{fullflexible}} + +% マクロ定義 +\makeatletter + +%% 列挙用テーブル +\def\set@etsep#1#2{\def\etcolsep{#1}\def\etitemsep{#2}} +\newenvironment{entable}[3][\quad\qquad]{% + \set@etsep#1\relax\relax + \begin{tabular}{% + @{}*{\the\numexpr#3-1}{*{\the\numexpr#2-1}{l@{\etcolsep}}l@{\etitemsep}}% + *{\the\numexpr#2-1}{l@{\etcolsep}}l@{}}}{% + \end{tabular}} +\newcommand{\mergecol}[2]{\multicolumn{#1}{@{}l@{}}{#2}} + +%% PXghost <https://gist.github.com/zr-tex8r/4461060> +%%% use an arbitrary font available in T1 encoding +\font\pxqgg@TI=ec-lmr10 at 1.23456pt +\chardef\pxqgg@cwm=23 % compwordmark (in T1) +\xspcode\pxqgg@cwm=3 % allow xkanjiskip around +%%%%<*> \eghostguarded{<text>} +\newcommand*\eghostguarded{% + \ifmmode \expandafter\@firstofone + \else \expandafter\pxqgg@eghostguarded@a + \fi} +\def\pxqgg@eghostguarded@a#1{% + {\pxqgg@TI\pxqgg@cwm}% + #1% + {\pxqgg@TI\pxqgg@cwm}} + +%% ユーザ用マクロ +\chardef\vbar=`\| \chardef\bs=`\\ +\let\lbrace\{ \let\rbrace\} +\chardef\{=`\{ \chardef\}=`\} +\newcommand{\codefont}{\ttfamily\gtfamily} +\newcommand{\cs}[1]{\eghostguarded{{\codefont \bs #1}}} +\newcommand{\code}[1]{\eghostguarded{{\codefont #1}}} +\newcommand{\single}[1]{\eghostguarded{`{\codefont #1}'}} +\newcommand{\mboxtt}[1]{\mbox{\texttt{#1}}} +\newcommand{\Meta}[1]{$\langle$\mbox{}\emph{#1}\mbox{}$\rangle$} + +\makeatother + +% ----------------------------------------------------------------------- + +\begin{document} + +% 三段組を開始 +\setlength{\columnsep}{10pt} +\begin{multicols}{3} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +% 文字サイズ +\footnotesize + +% タイトル +\begin{center} +\Large\sffamily\gtfamily +p\LaTeXe チートシート{\large (\,jsclasses版)} +\end{center} + +\section{p\LaTeXe の基本} + +\begin{entable}{2}{1} +\emph{命令} & \single{\bs}で始まる. + 必須の引数は\code{\{\}},省略可能な引数は\code{[]}で囲う \\ +\emph{環境} & \cs{begin\{\Meta{環境名}\}}と\cs{end\{\Meta{環境名}\}}に挟まれた部分 \\ +\emph{コメント} & \single{\%}以降は行末までコメントとして扱われる(無視される) \\ +\end{entable} + +すべてではないが,多くの命令や環境は入れ子にすることが可能. + +\subsection{長さの単位} + +\begin{entable}{2}{2} +|cm|/|mm|/|in| + & \mergecol{3}{一般的な長さの単位($\SI{1}{in}=\SI{25.4}{mm}$)} \\ +|pt|/|bp|/|sp| + & \mergecol{3}{% + ポイント($\SI{72.27}{pt}=\SI{72}{bp}=\SI{1}{in},\;\SI{65536}{sp}=\SI{1}{pt}$)} \\ +|Q|/|H| + & \mergecol{3}{級と歯($\SI{1}{Q}=\SI{1}{H}=\SI{0.25}{mm}$)} \\ +|em|/|ex|\phantom{/|pt|} & Mの幅とxの高さ & |zw|/|zh| & 和文文字の幅と高さ \\ +\end{entable} + +\section{プリアンブル} + +文書はクラス宣言で開始: +\code{\cs{documentclass}[\Meta{オプション}]\{\Meta{クラス}\}}.\\ +本文はdocument環境に書く.\cs{documentclass}と\code{\cs{begin}\{document\}}の間は +\emph{プリアンブル}と呼ばれ,文書全体に適用する設定などを記述する. + +\subsection{新ドキュメントクラス} + +\begin{entable}{2}{3} +|jsarticle| & 論文用 & |jsreport| & レポート用 & |jsbook| & 書籍用 \\ +\end{entable} + +クラスによってデフォルトのオプションや使える見出し命令などが異なる. + +\subsection{主なクラスオプション} + +\begin{entable}[\enspace\qquad]{2}{2} +\mergecol{4}{% + |a4paper|/|a5paper|/|b4paper|/|b5paper|\enspace 用紙サイズ(B系列はJIS規格)} \\ +\mergecol{4}{% + |9pt|/|10pt|/|11pt|/|12pt|/|14pt|/|17pt|/|21pt|/|25pt|/|30pt|/|36pt|\enspace 文字サイズ}\\ +|landscape| & 用紙を横向き & |twocolumn| & 二段組 \\ +|titlepage| & タイトルを独立ページ & |twoside| & 両面印刷 \\ +|papersize| & PDFも用紙サイズ & |uplatex| & up\LaTeX \\ +|leqno| & 数式番号を左側に表示 & |dvipdfmx| & dviドライバ \\ +|fleqn| & 別行立て数式を左寄せ & |tombo| & トンボを表示 \\ +\end{entable} + +クラスオプションに指定したものは読み込んだパッケージへも適用される. + +\subsection{文書情報} + +\begin{entable}[\enspace\quad]{2}{2} +|\author{|\Meta{著者}|}| + & \mergecol{3}{文書の著者.複数のときは \cs{and}で区切る} \\ +|\thanks{|\Meta{注釈}|}| + & \mergecol{3}{著者名に脚注(主に所属機関)を付ける} \\ +|\title{|\Meta{タイトル}|}| & 文書のタイトル & |\date{|\Meta{日付}|}| & 文書の作成日 \\ +\end{entable} + +本文中\cs{maketitle}を記述すると上記の情報を基に表題が出力される. + +\subsection{ページスタイル} + +\begin{entable}[\enspace\qquad]{2}{2} +|empty| & 空のヘッダ・フッタ & |plain| & ノンブル(ページ番号) \\ +|headings| & 柱とノンブル & |myheadings| & カスタムの柱 +\end{entable} + +\code{\cs{pagestyle}\{\Meta{スタイル}\}}の形式で指定.この命令は本文中でも利用可能. +\code{\cs{thispagestyle}\{\Meta{スタイル}\}}により一時的な変更もできる. +\code{myheadings}指定時は\code{\cs{markboth}\{\Meta{偶数ページ用}\}\{\Meta{奇数ページ用}\}}で +柱を設定. + +\subsection{各種設定など} + +\begin{entable}{2}{1} +|\usepackage[|\Meta{オプション}|]{|\Meta{パッケージ}|}| & パッケージ読み込み \\ +|\setcounter{|\Meta{カウンタ}|}{|\Meta{数値}|}| & カウンタの値を設定 \\ +|\setlength{|\Meta{寸法を表す命令}|}{|\Meta{長さ}|}| & 寸法を設定 \\ +|\newcommand{|\Meta{命令}|}[|\Meta{引数の数}|]{|\Meta{定義}|}| & マクロの定義 \\ +\end{entable} + +\cs{usepackage}はプリアンブルのみで利用可.他の命令は中級者以上向け. + +\section{文書の論理構造} + +\begin{entable}[\enspace\quad]{2}{3} +\mergecol{2}{% + \texttt{\bs part}\enspace 部\quad\texttt{\bs chapter}\enspace 章} & +|\section| & 節 & |\subsection| & 小節 \\ +|\subsubsection| & 小々節 & |\paragraph| & 段落 & |\subparagraph| & 小段落 \\ +\end{entable} + +これらの命令は共通の書式をもつ:\Meta{命令}|[|\Meta{目次用の見出し}|]{|\Meta{見出し}|}|.\\ +\Meta{命令}の直後に\single{*}を付けた場合,見出し番号が付かず目次にも載らない. + +\subsection{箇条書き} + +\begin{entable}[\enspace\qquad]{2}{2} +|\begin{itemize}| & 記号付き & |\begin{enumerate}| & 連番付き \\ +|\begin{description}| & 見出し付き \\ +\end{entable} + +各項目は上記の環境中で\code{\cs{item} \Meta{テキスト}}により表現. +\code{\cs{item}[\Meta{ラベル}]}のようにすると当該項目のラベルのみを変更 +(description環境では必須). + +\subsection{フロート} + +\begin{entable}[\enspace\quad]{2}{2} +|\begin{figure}[|\Meta{位置}|]| & 図を配置 & |\begin{table}[|\Meta{位置}|]| & 表を配置 \\ +\end{entable} + +各環境中\code{\cs{caption}[\Meta{図表目次用}]\{\Meta{説明文}\}}でキャプションを付けられる. +\Meta{位置}は次の文字の組み合わせで指定:$\mboxtt{t}=\mbox{ページ上部}$, +$\mboxtt{b}=\mbox{ページ下部}$,$\mboxtt{p}=\mbox{独立ページ}$,$\mboxtt{h}=\mbox{その場}$, +$\mboxtt{!}=\mbox{条件が悪くても指定位置に配置}$. + +\subsection{引用と注釈} + +\begin{entable}[\enspace\qquad]{2}{2} +|\begin{quote}| & 短い引用 & |\begin{quotation}| & 複数段落の引用 \\ +\mergecol{2}{\code{\cs{footnote}[\Meta{番号}]\{\Meta{脚注}\}}} + & \mergecol{2}{\code{\cs{marginpar}\{\Meta{傍注}\}}} \\ +\end{entable} + +\section{テキストプロパティ} + +\subsection{書体} + +\begin{entable}[\enspace]{3}{1} +|\textmc{|\Meta{テキスト}|}| & |{\mcfamily |\Meta{テキスト}|}| & \textmc{明朝体} \\ +|\textgt{|\Meta{テキスト}|}| & |{\gtfamily |\Meta{テキスト}|}| & \textgt{ゴシック体} \\ +|\textrm{|\Meta{テキスト}|}| & |{\rmfamily |\Meta{テキスト}|}| & \textrm{Roman family} \\ +|\textsf{|\Meta{テキスト}|}| & |{\sffamily |\Meta{テキスト}|}| & \textsf{Sans serif family} \\ +|\texttt{|\Meta{テキスト}|}| & |{\ttfamily |\Meta{テキスト}|}| & \texttt{Typewriter family} \\ +|\textmd{|\Meta{テキスト}|}| & |{\mdseries |\Meta{テキスト}|}| & \textmd{Medium series} \\ +|\textbf{|\Meta{テキスト}|}| & |{\bfseries |\Meta{テキスト}|}| & \textbf{Bold series} \\ +|\textup{|\Meta{テキスト}|}| & |{\upshape |\Meta{テキスト}|}| & \textup{Upright shape} \\ +|\textit{|\Meta{テキスト}|}| & |{\itshape |\Meta{テキスト}|}| & \textit{Italic shape} \\ +|\textsl{|\Meta{テキスト}|}| & |{\slshape |\Meta{テキスト}|}| & \textsl{Slanted shape} \\ +|\textsc{|\Meta{テキスト}|}| & |{\scshape |\Meta{テキスト}|}| & \textsc{Small Caps shape} \\ +\end{entable} + +\code{\cs{textnormal}\{\Meta{テキスト}\}}や\cs{normalfont}で常にデフォルトを適用可能. + +\subsection{装飾} + +\begin{entable}[\enspace]{3}{1} +|\emph{|\Meta{テキスト}|}| & |{\em |\Meta{テキスト}|}| & \emph{強調}(効果は環境依存) \\ +|\underline{|\Meta{テキスト}|}| & & \underline{下線} \\ +\end{entable} + +\subsection{フォントサイズ} + +\bgroup +\setlength{\columnsep}{-20pt} +\begin{multicols}{2} +\begin{tabbing} +|\footnotesize| \= \kill +|\tiny| \> {\tiny 極小} \\ +|\scriptsize| \> {\scriptsize スクリプトサイズ} \\ +|\footnotesize| \> {\footnotesize 脚注サイズ} \\ +|\small| \> {\small 小さい} \\ +|\normalsize| \> {\normalsize 標準サイズ} \\ +|\large| \> {\large 大きい} \\ +|\Large| \> {\Large 超大きい} \\ +|\LARGE| \= {\LARGE 超々大きい} \\ +|\huge| \> {\huge 巨大} \\ +|\Huge| \> {\Huge 超巨大} \\ +|\HUGE| \> {\HUGE 超々巨大} \\ +\end{tabbing} +\end{multicols} +\egroup + +\vspace{-10pt} + +\code{\cs{fontsize}\{\Meta{サイズ}\}\{\Meta{行送り}\}\cs{selectfont}}で寸法による指定も可能. +\break これらの命令は通常\code{\{\Meta{命令} \Meta{テキスト}\}}の形で使用. + +\subsection{入力通りに出力} + +\begin{entable}[\enspace]{2}{1} +|\verb!|\Meta{テキスト}|!| & デリミタ(ここでは\single{!})間の内容をそのまま出力 \\ +|\begin{verbatim}| & 入力通りに出力される環境 \\ +\end{entable} + +\code{\cs{verb*}}や\code{\cs{begin}\{verbatim*\}}を用いると空白 +が\eghostguarded{}`\verb*! !'\eghostguarded{}で明示される. + +\subsection{配置} + +\begin{entable}[\qquad]{3}{1} +|\begin{center}| & |\centering| & 中央寄せ \\ +|\begin{flushleft}| & |\raggedright| & 左寄せ \\ +|\begin{flushright}| & |\raggedleft| & 右寄せ \\ +\end{entable} + +\section{空白・行・ページ} + +\subsection{水平スペース(文字送り方向)} + +\begin{entable}[\enspace\quad]{2}{4} +\verb*!\ ! & 空白 & |\enspace| & \SI{0.5}{em} & |\quad| & \SI{1}{em} & |\,| + & \SI{1/6}{em}程度 \\ +|~| & 改行禁止 & \mergecol{2}{\texttt{\bs hspace\{}\Meta{長さ}\texttt{\}}} + & |\qquad| & \SI{2}{em} \\ +\end{entable} + +\cs{hfill}は無限に伸びる空白.英大文字で終わる文のピリオド直前に置く\cs{@}や +イタリック補正の\cs{/}もスペーシングに影響. + +\subsection{垂直スペース(行送り方向)} + +\begin{entable}[\quad]{6}{1} +|\smallskip| & |\medskip| & |\bigskip| & |\vspace{|\Meta{長さ}|}| & |\vfill| \\ +\end{entable} + +\code{\cs{phantom}\{\Meta{文字列}\}}を用いると\Meta{文字列}と縦横同じ寸法の空白を作る. + +\subsection{行とページ} + +\begin{entable}[\enspace]{2}{2} +|\par| & 改段落(空行と同じ) & |\noindent| & 行のインデントなし \\ +|\\*| & 改行(改ページ禁止) & |\\[|\Meta{長さ}|]| & 改行(+垂直スペース) \\ +|\linebreak| & 行分割を促進 & |\pagebreak| & ページ分割を促進 \\ +|\newpage| & 改ページ(段移動) & |\clearpage| & 全図表出力+改ページ \\ +\end{entable} + +\section{記号・その他} + +\subsection{特殊記号} + +\begin{entable}[\thinspace\quad]{2}{4} +\& & |\&| & \dag & |\dag| & \textasciitilde & |\textasciitilde| & \textbackslash & |\textbackslash| \\ +\% & |\%| & \ddag & |\ddag| & \textasciicircum & |\textasciicircum| & \textbar & |\textbar| \\ +\# & |\#| & \dots & |\dots| & \texttrademark & |\texttrademark| & \textbardbl & |\textbardbl| \\ +\_ & |\_| & \copyright & |\copyright| & \textregistered & |\textregistered| & \textbullet & |\textbullet| \\ +\$ & |\$| & \pounds & |\pounds| & \textordfeminine & |\textordfeminine| & \textless & |\textless| \\ +\P & |\P| & \S & |\S| & \textordmasculine & |\textordmasculine| & \textgreater & |\textgreater| \\ +\end{entable} + +\subsection{括弧類} + +\begin{entable}{2}{6} +` ' & \verb*!` '! & `` '' & \verb*!`` ''! & \lbrace\space\rbrace & \verb*!\{ \}! + & [ ] & \verb*![ ]! & ( ) & \verb*!( )! \\ +\end{entable} + +\subsection{ダッシュ類} + +\begin{entable}[\qquad]{4}{1} +ハイフン & |-| & X-ray & 単語内,2単語の連結 \\ +en-dash & |--| & 1--5 & 範囲を表す場合など \\ +em-dash & |---| & Yes---or no? & 挿入句の導入など \\ +\end{entable} + +\subsection{アクセント類} + +\begin{entable}[\enspace\qquad]{2}{6} +!` & |!`| & ?` & |?`| & \.a & |\.a| & \'a & |\'a| & \"a & |\"a| & \`a & |\`a| \\ +\^a & |\^a| & \=a & |\=a| & \~a & |\~a| & \aa & |\aa| & \AA & |\AA| & \ae & |\ae| \\ +\AE & |\AE| & \b a & |\b a| & \c c & |\c c| & \d a & |\d a| & \H a & |\H a| & \i & |\i| \\ +\j & |\j| & \l & |\l| & \L & |\L| & \o & |\o| & \O & |\O| & \oe & |\oe| \\ +\OE & |\OE| & \r a & |\r a| & \ss & |\ss| & \t oo & |\t oo| & \u a & |\u a| & \v a & |\v a| \\ +\end{entable} + +\subsection{その他} + +\begin{entable}{2}{1} +|\today| & 現在の日付({\codefont\bs 西暦}, {\codefont\bs 和暦}で形式を変更可能) \\ +|\TeX|/|\LaTeX|/|\LaTeXe| & \TeX/\LaTeX/\LaTeXe(ロゴ) \\ +\end{entable} + +\section{表組み} + +\subsection{tabular環境} + +\begin{entable}{1}{2} +|\begin{tabular}{|\Meta{列指定}|}| & |\begin{tabular*}{|\Meta{幅}|}{|\Meta{列指定}|}| \\ +\end{entable} + +\Meta{列指定}は次の文字を並べて指定:$\mboxtt{l}=\mbox{左寄せの列}$, +$\mboxtt{c}=\mbox{中央寄せの列}$,$\mboxtt{r}=\mbox{右寄せの列}$, +$\mboxtt{p\{\Meta{幅}\}}=\mbox{寸法指定の列}$, +$\mboxtt{@\{\Meta{区切り}\}}=\mbox{列間の区切り}$, +$\mboxtt{*\{\Meta{回数}\}\{\Meta{データ}\}}=\mbox{繰り返し}$, +$\mboxtt{\vbar}=\mbox{表全体の縦罫線}$. + +\begin{entable}{2}{2} +|&| & 列の区切り & |\hline| & 表全体の横罫線 \\ +|\\| & 行の終端 & |\cline{|\Meta{開始}|-|\Meta{終了}|}| & 範囲指定の横罫線 \\ +\end{entable} + +セルの結合:\code{\cs{multicolumn}\{\Meta{列数}\}\{\Meta{列指定}\}\{\Meta{テキスト}\}}. + +\subsection{tabbing環境} + +\begin{entable}{2}{2} +|\=| & タブ位置を設定 & |\>| & 次のタブ位置に移動 \\ +|\\| & 行の終端 & |\kill| & 非表示行(タブ位置設定)の終端 \\ +\end{entable} + +\section{数式モード} + +\begin{entable}{2}{2} +|$|\Meta{数式}|$| & インライン数式 & |\begin{equation}| & 別行立て数式 \\ +|\[|\Meta{数式}|\]| & \mergecol{3}{別行立て数式(式番号なし)} \\ +\end{entable} + +\subsection{数式の基本} + +\begin{entable}[\enspace\quad]{2}{5} +$p'=0$ & |p'=0| & $a_1$ & |a_1| & $x^{2}$ & |x^2| & $\frac{3}{4}$ & |\frac{3}{4}| + & $\sqrt[5]{6}$ & |\sqrt[5]{6}| \\ +\mergecol{10}{\code{\cs{begin}\{array\}\{\Meta{列指定}\}}\enspace 行列用の表} \\ +\end{entable} + +数式モードではテキスト中で使える水平スペース命令のほかに以下が使える. + +\begin{entable}{2}{3} +|\:| & \SI{4/18}{em}程度 & |\;| & \SI{5/18}{em}程度 & |\!| & \SI{-3/18}{em}程度 \\ +\end{entable} + +\subsection{スタイルと書体} + +\begin{entable}[\enspace\quad]{2}{2} +|\displaystyle| & 別行立てスタイル & |\textstyle| & インラインスタイル \\ +\end{entable} + +書体の変更には\cs{mathrm}, \cs{mathbf}, \cs{mathit}, \cs{mathsf}, \cs{mathtt}, +\cs{mathmc}, \cs{mathgt}および\cs{mathnormal}を用いる(組み合わせは不可). +英大文字に対してのみカリグラフ体への変更命令\cs{mathcal}が利用できる(例:$\mathcal{ABC}$). + +\subsection{上下の装飾} + +\begin{entable}[\enspace\quad]{2}{3} +$\overline{ab}$ & |\overline{ab}| & $\overrightarrow{ab}$ & |\overrightarrow{ab}| + & $\widehat{ab}$ & |\widehat{ab}| \\ +$\underline{ab}$ & |\underline{ab}| & $\overleftarrow{ab}$ & |\overleftarrow{ab}| + & $\widetilde{ab}$ & |\widetilde{ab}| \\[2pt] +\mergecol{6}{% + $\overbrace{a+b}$\enspace \texttt{\bs overbrace\{a+b\}}\quad + $\underbrace{a+b}$\enspace \texttt{\bs underbrace\{a+b\}}} \\ +\end{entable} + +\subsection{ギリシャ文字} + +\begin{entable}[\enspace\quad]{2}{6} +$\alpha$ & |\alpha| & $\beta$ & |\beta| & $\gamma$ & |\gamma| & $\delta$ & |\delta| & $\epsilon$ & |\epsilon| \\ +$\zeta$ & |\zeta| & $\eta$ & |\eta| & $\theta$ & |\theta| & $\iota$ & |\iota| & $\kappa$ & |\kappa| \\ +$\lambda$ & |\lambda| & $\mu$ & |\mu| & $\nu$ & |\nu| & $\xi$ & |\xi| & $\pi$ & |\pi| \\ +$\rho$ & |\rho| & $\sigma$ & |\sigma| & $\tau$ & |\tau| & $\upsilon$ & |\upsilon| & $\phi$ & |\phi| \\ +$\chi$ & |\chi| & $\omega$ & |\omega| & $\Gamma$ & |\Gamma| & $\Delta$ & |\Delta| & $\Theta$ & |\Theta| \\ +$\Lambda$ & |\Lambda| & $\Xi$ & |\Xi| & $\Pi$ & |\Pi| & $\Sigma$ & |\Sigma| & $\Upsilon$ & |\Upsilon| \\ +$\Phi$ & |\Phi| & $\Psi$ & |\Psi| & $\Omega$ & |\Omega| & $\varpi$ & |\varpi| & $\varphi$ & |\varphi| \\ +$\varepsilon$ & \mergecol{3}{\texttt{\bs varepsilon}} + & $\vartheta$ & \mergecol{3}{\texttt{\bs vartheta}} & $\varsigma$ & |\varsigma| \\ +\end{entable} + +\subsection{二項演算子} + +\begin{entable}[\enspace\quad]{2}{4} +$\times$ & |\times| & $\div$ & |\div| & $\vee$ & |\vee| & $\triangleright$ & |\triangleright| \\ +$\cdot$ & |\cdot| & $\mp$ & |\mp| & $\wedge$ & |\wedge| & $\bigtriangleup$ & |\bigtriangleup| \\ +$\ast$ & |\ast| & $\pm$ & |\pm| & $\uplus$ & |\uplus| & $\bigtriangledown$ & |\bigtriangledown| \\ +$\star$ & |\star| & $\cap$ & |\cap| & $\sqcap$ & |\sqcap| & $\triangleleft$ & |\triangleleft| \\ +$\setminus$ & |\setminus| & $\cup$ & |\cup| & $\sqcup$ & |\sqcup| & $\dagger$ & |\dagger| \\ +$\oslash$ & |\oslash| & $\odot$ & |\odot| & $\bullet$ & |\bullet| & $\ddagger$ & |\ddagger| \\ +$\otimes$ & |\otimes| & $\oplus$ & |\oplus| & $\circ$ & |\circ| & $\bigcirc$ & |\bigcirc| \\ +$\ominus$ & |\ominus| & $\wr$ & |\wr| & $\amalg$ & |\amalg| & & |\mathbin{|\Meta{記号}|}| \\ +\end{entable} + +\subsection{関係演算子} + +\begin{entable}[\enspace\quad]{2}{5} +$\neq$ & |\neq| & $\supset$ & |\supset| & $\perp$ & |\perp| & $\parallel$ & |\parallel| & $\mid$ & |\mid| \\ +$\leq$ & |\leq| & $\subset$ & |\subset| & $\equiv$ & |\equiv| & $\doteq$ & |\doteq| & $\asymp$ & |\asymp| \\ +$\geq$ & |\geq| & $\supseteq$ & |\supseteq| & $\sim$ & |\sim| & $\simeq$ & |\simeq| & $\models$ & |\models| \\ +$\gg$ & |\gg| & $\subseteq$ & |\subseteq| & $\cong$ & |\cong| & $\approx$ & |\approx| & $\propto$ & |\propto| \\ +$\ll$ & |\ll| & $\sqsubseteq$ & |\sqsubseteq| & $\succ$ & |\succ| & $\succeq$ & |\succeq| & $\dashv$ & |\dashv| \\ +$\in$ & |\in| & $\sqsupseteq$ & |\sqsupseteq| & $\prec$ & |\prec| & $\preceq$ & |\preceq| & $\vdash$ & |\vdash| \\ +$\ni$ & |\ni| & $\bowtie$ & |\bowtie| & $\not$ & |\not| & + & \mergecol{3}{\texttt{\bs mathrel\{}\Meta{記号}\texttt{\}}} \\ +\end{entable} + +関係演算子の前に\cs{not}を前置すると,その否定形を作ることができる. + +\subsection{大型演算子} + +\begin{entable}[\enspace\quad]{2}{4} +$\int$ & |\int| & $\bigotimes$ & |\bigotimes| & $\bigcap$ & |\bigcap| & $\bigcup$ & |\bigcup| \\[2pt] +$\oint$ & |\oint| & $\bigoplus$ & |\bigoplus| & $\biguplus$ & |\biguplus| & $\bigsqcup$ & |\bigsqcup| \\[2pt] +$\sum$ & |\sum| & $\bigodot$ & |\bigodot| & $\bigvee$ & |\bigvee| & $\bigwedge$ & |\bigwedge| \\[2pt] +$\prod$ & |\prod| & $\coprod$ & |\coprod| & $\smallint$ & |\smallint| & & |\mathop{|\Meta{記号}|}| \\[2pt] +\end{entable} + +\subsection{括弧類} + +\begin{entable}[\enspace\quad]{2}{6} +$\langle$ & |\langle| & $\lceil$ & |\lceil| & $\lfloor$ & |\lfloor| +& \scalebox{.5}{$\big\lgroup$} & |\lgroup| & \scalebox{.5}{$\big\lmoustache$} & |\lmoustache| \\ +$\rangle$ & |\rangle| & $\rceil$ & |\rceil| & $\rfloor$ & |\rfloor| +& \scalebox{.5}{$\big\rgroup$} & |\rgroup| & \scalebox{.5}{$\big\rmoustache$} & |\rmoustache| \\ +\mergecol{2}{$\vbar$ \texttt{\vbar} \quad $\|$ \texttt{\bs\vbar}} & + & \mergecol{3}{\texttt{\bs mathopen\{}\Meta{記号}\texttt{\}}} & + & \mergecol{3}{\texttt{\bs mathclose\{}\Meta{記号}\texttt{\}}} \\ +\end{entable} + +\cs{left}\Meta{開き括弧}\Meta{数式}\cs{right}\Meta{閉じ括弧}で括弧類のサイズを自動調整. + +\subsection{矢印類} + +\begin{entable}[\thinspace\enspace]{2}{3} +$\to$ & |\to| & $\hookrightarrow$ & |\hookrightarrow| & $\Uparrow$ & |\Uparrow| \\ +$\gets$ & |\gets| & $\hookleftarrow$ & |\hookleftarrow| & $\Downarrow$ & |\Downarrow| \\ +$\nearrow$ & |\nearrow| & $\leftrightarrow$ & |\leftrightarrow| & $\rightleftharpoons$ & |\rightleftharpoons| \\ +$\searrow$ & |\searrow| & $\rightharpoonup$ & |\rightharpoonup| & $\longrightarrow$ & |\longrightarrow| \\ +$\nwarrow$ & |\nwarrow| & $\rightharpoondown$ & |\rightharpoondown| & $\Longrightarrow$ & |\Longrightarrow| \\ +$\swarrow$ & |\swarrow| & $\leftharpoonup$ & |\leftharpoonup| & $\longleftarrow$ & |\longleftarrow| \\ +$\mapsto$ & |\mapsto| & $\leftharpoondown$ & |\leftharpoondown| & $\Longleftarrow$ & |\Longleftarrow| \\ +$\longmapsto$ & |\longmapsto| & $\Leftrightarrow$ & |\Leftrightarrow| & $\longleftrightarrow$ & |\longleftrightarrow| \\ +$\Rightarrow$ & |\Rightarrow| & $\updownarrow$ & |\updownarrow| & $\Longleftrightarrow$ & |\Longleftrightarrow| \\ +$\Leftarrow$ & |\Leftarrow| & $\downarrow$ & |\downarrow| & & |\iff|(前後の空白大) \\ +$\uparrow$ & |\uparrow| & $\Updownarrow$ & |\Updownarrow| \\ +\end{entable} + +\subsection{関数名} + +\begin{entable}[\quad\quad]{1}{8} +|\log| & |\sin| & |\arcsin| & |\sinh| & |\max| & |\arg| & |\exp| & |\ker| \\ +|\lg| & |\cos| & |\arccos| & |\cosh| & |\min| & |\lim| & |\Pr| & |\dim| \\ +|\ln| & |\tan| & |\arctan| & |\tanh| & |\sup| & |\limsup| & |\gcd| & |\hom| \\ +|\sec| & |\csc| & |\cot| & |\coth| & |\inf| & |\liminf| & |\deg| & |\det| \\ +\end{entable} + +\subsection{アクセント類} + +\begin{entable}[\enspace\qquad]{2}{4} +$\bar{a}$ & |\bar{a}| & $\acute{a}$ & |\acute{a}| & $\dot{a}$ & |\dot{a}| & $\ddot{a}$ & |\ddot{a}| \\ +$\vec{a}$ & |\vec{a}| & $\breve{a}$ & |\breve{a}| & $\grave{a}$ & |\grave{a}| & $\mathring{a}$ & |\mathring{a}| \\ +$\hat{a}$ & |\hat{a}| & $\check{a}$ & |\check{a}| & $\tilde{a}$ & |\tilde{a}| & & \\ +\end{entable} + +\subsection{その他} + +\begin{entable}[\enspace\quad]{2}{4} +$\spadesuit$ & |\spadesuit| & $\flat$ & |\flat| & $\surd$ & |\surd| & $\nabla$ & |\nabla| \\ +$\heartsuit$ & |\heartsuit| & $\natural$ & |\natural| & $\smile$ & |\smile| & $\partial$ & |\partial| \\ +$\diamondsuit$ & |\diamondsuit| & $\sharp$ & |\sharp| & $\frown$ & |\frown| & $\infty$ & |\infty| \\ +$\clubsuit$ & |\clubsuit| & $\prime$ & |\prime| & $\top$ & |\top| & $\angle$ & |\angle| \\ +$\diamond$ & |\diamond| & $\Re$ & |\Re| & $\bot$ & |\bot| & $\triangle$ & |\triangle| \\ +$\backslash$ & |\backslash| & $\Im$ & |\Im| & $\forall$ & |\forall| & $\exists$ & |\exists| \\ +$\aleph$ & |\aleph| & $\hbar$ & |\hbar| & $\neg$ & |\neg| & $\emptyset$ & |\emptyset| \\ +$\ell$ & |\ell| & $\wp$ & |\wp| & $\imath$ & |\imath| & $\jmath$ & |\jmath| \\[-6pt] +$\cdots$ & |\cdots| & $\ldots$ & |\ldots| & \raisebox{-2pt}{$\vdots$} & |\vdots| & \raisebox{-2pt}{$\ddots$} & |\ddots| \\ +\end{entable} + +\section{相互参照・目次・索引・文献リスト} + +これらの機能を利用するには一般に\code{platex}を複数回実行する必要がある. + +\subsection{相互参照} + +\begin{entable}{2}{1} +|\label{|\Meta{ラベル}|}| & 相互参照用のラベルをセット \\ +|\ref{|\Meta{ラベル}|}| & ラベル位置(章や図表,式番号など)を出力 \\ +|\pageref{|\Meta{ラベル}|}| & ラベル位置のページ番号を出力 \\ +\end{entable} + +\subsection{目次} + +\begin{entable}[\enspace\qquad]{3}{2} +|toc| & |\tableofcontents| + & \mergecol{4}{目次(|tocdepth| カウンタで掲載項目を調整)} \\ +|lof| & |\listoffigures| & 図目次 & |lot| & |\listoftables| & 表目次 \\ +\end{entable} + +項目の追加: +\code{\cs{addcontentsline}\{\Meta{目次の種類}\}\{\Meta{項目の種類}\}\{\Meta{項目}\}}. + +\subsection{索引} + +\begin{entable}{2}{1} +|\index{|\Meta{上位項目}|!|\Meta{読み}|@|\Meta{項目}\texttt{\vbar}\Meta{体裁}|}| + & 索引項目の追加 \\ +\end{entable} + +indファイルは\code{mendex}で処理.索引の出力には別途パッケージが必要. + +\subsection{文献リスト} + +\begin{entable}{2}{1} +|\cite[|\Meta{コメント}|]{|\Meta{キー}|,|\Meta{キー}|,|\dots|}| & 対応する文献を引用 \\ +|\begin{thebibliography}{|\Meta{最大ラベル}|}| & 文献リスト用の箇条書き \\ +|\bibitem[|\Meta{ラベル}|]{|\Meta{キー}|} |\Meta{テキスト} & 文献項目の記述 \\ +\end{entable} + +\code{pbibtex}を用いて文献リストをデータベースから自動生成する方法もある. + +\section{p\LaTeX 文書のサンプル} + +\lstinputlisting{sample-jsclasses.tex} + +\rule{.3\linewidth}{.25pt} +\scriptsize + +\LaTeXe 版 {\copyright} 2006 Winston Chang \\ +\url{http://www.stdout.org/~winston/latex/} + +p\LaTeXe\ (jsclasses) 版 {\copyright} 2017 Takuto Asakura \\ +\url{https://wtsnjp.com/pdf/platexsheet-jsclasses.pdf} + +バージョン:3.1, 更新日:2018/12/31 + +\end{multicols} +\end{document} diff --git a/info/latexcheat/platexcheat/platexsheet.pdf b/info/latexcheat/platexcheat/platexsheet.pdf Binary files differnew file mode 100644 index 0000000000..19fb60b7f0 --- /dev/null +++ b/info/latexcheat/platexcheat/platexsheet.pdf diff --git a/info/latexcheat/platexcheat/platexsheet.tex b/info/latexcheat/platexcheat/platexsheet.tex new file mode 100644 index 0000000000..6b54ae8ced --- /dev/null +++ b/info/latexcheat/platexcheat/platexsheet.tex @@ -0,0 +1,624 @@ +\documentclass[10pt,a4paper,landscape,dvipdfmx]{jarticle} + +% 使用パッケージ +\usepackage[small]{titlesec} +\usepackage[final]{plistings} +\usepackage{geometry} +\usepackage{graphicx} +\usepackage{multicol} +\usepackage{shortvrb} +\usepackage{siunitx} +\usepackage{xcolor} +\usepackage{otf} +\usepackage{url} + +% ドキュメント設定 +%% ページ +\geometry{top=1cm, left=1cm, right=1cm, bottom=1cm} +\pagestyle{empty} + +%% 見出し +\setcounter{secnumdepth}{0} +\titlespacing{\section}{0pt}{5pt}{0pt} +\titlespacing{\subsection}{0pt}{0pt}{0pt} +\titlespacing{\subsubsection}{0pt}{0pt}{0pt} +\makeatletter +\protected@xdef\ttl@fonts{% + \ttl@fonts\protect\sffamily\protect\gtfamily\protect\mdseries} +\makeatother + +%% 寸法 +\setlength{\parindent}{0pt} +\setlength{\parskip}{0pt plus 4.5pt} + +%% コード +\MakeShortVerb{\|} +\lstset{ + language={[LaTeX]TeX}, + basicstyle={\scriptsize\ttfamily\gtfamily}, + commentstyle={\scriptsize\textcolor{gray}}, + keywordstyle={\scriptsize\ttfamily\bfseries}, + columns=[l]{fullflexible}} + +% マクロ定義 +\makeatletter + +%% 列挙用テーブル +\def\set@etsep#1#2{\def\etcolsep{#1}\def\etitemsep{#2}} +\newenvironment{entable}[3][\quad\qquad]{% + \set@etsep#1\relax\relax + \begin{tabular}{% + @{}*{\the\numexpr#3-1}{*{\the\numexpr#2-1}{l@{\etcolsep}}l@{\etitemsep}}% + *{\the\numexpr#2-1}{l@{\etcolsep}}l@{}}}{% + \end{tabular}} +\newcommand{\mergecol}[2]{\multicolumn{#1}{@{}l@{}}{#2}} + +%% PXghost <https://gist.github.com/zr-tex8r/4461060> +%%% use an arbitrary font available in T1 encoding +\font\pxqgg@TI=ec-lmr10 at 1.23456pt +\chardef\pxqgg@cwm=23 % compwordmark (in T1) +\xspcode\pxqgg@cwm=3 % allow xkanjiskip around +%%%%<*> \eghostguarded{<text>} +\newcommand*\eghostguarded{% + \ifmmode \expandafter\@firstofone + \else \expandafter\pxqgg@eghostguarded@a + \fi} +\def\pxqgg@eghostguarded@a#1{% + {\pxqgg@TI\pxqgg@cwm}% + #1% + {\pxqgg@TI\pxqgg@cwm}} + +%% ユーザ用マクロ +\chardef\vbar=`\| \chardef\bs=`\\ +\let\lbrace\{ \let\rbrace\} +\chardef\{=`\{ \chardef\}=`\} +\newcommand{\codefont}{\ttfamily\gtfamily} +\newcommand{\cs}[1]{\eghostguarded{{\codefont \bs #1}}} +\newcommand{\code}[1]{\eghostguarded{{\codefont #1}}} +\newcommand{\single}[1]{\eghostguarded{`{\codefont #1}'}} +\newcommand{\mboxtt}[1]{\mbox{\texttt{#1}}} +\newcommand{\Meta}[1]{$\langle$\mbox{}\emph{#1}\mbox{}$\rangle$} + +\makeatother + +% ----------------------------------------------------------------------- + +\begin{document} + +% 三段組を開始 +\setlength{\columnsep}{10pt} +\begin{multicols}{3} +\setlength{\premulticols}{1pt} +\setlength{\postmulticols}{1pt} +\setlength{\multicolsep}{1pt} +\setlength{\columnsep}{2pt} + +% 文字サイズ +\footnotesize + +% タイトル +\begin{center} +\Large\sffamily\gtfamily +p\LaTeXe チートシート +\end{center} + +\section{p\LaTeXe の基本} + +\begin{entable}{2}{1} +\emph{命令} & \single{\bs}で始まる. + 必須の引数は\code{\{\}},省略可能な引数は\code{[]}で囲う \\ +\emph{環境} & \cs{begin\{\Meta{環境名}\}}と\cs{end\{\Meta{環境名}\}}に挟まれた部分 \\ +\emph{コメント} & \single{\%}以降は行末までコメントとして扱われる(無視される) \\ +\end{entable} + +すべてではないが,多くの命令や環境は入れ子にすることが可能. + +\subsection{長さの単位} + +\begin{entable}{2}{2} +|cm|/|mm|/|in| + & \mergecol{3}{一般的な長さの単位($\SI{1}{in}=\SI{25.4}{mm}$)} \\ +|pt|/|bp|/|sp| + & \mergecol{3}{% + ポイント($\SI{72.27}{pt}=\SI{72}{bp}=\SI{1}{in},\;\SI{65536}{sp}=\SI{1}{pt}$)} \\ +|Q|/|H| + & \mergecol{3}{級と歯($\SI{1}{Q}=\SI{1}{H}=\SI{0.25}{mm}$)} \\ +|em|/|ex|\phantom{/|pt|} & Mの幅とxの高さ & |zw|/|zh| & 和文文字の幅と高さ \\ +\end{entable} + +\section{プリアンブル} + +文書はクラス宣言で開始: +\code{\cs{documentclass}[\Meta{オプション}]\{\Meta{クラス}\}}.\\ +本文はdocument環境に書く.\cs{documentclass}と\code{\cs{begin}\{document\}}の間は +\emph{プリアンブル}と呼ばれ,文書全体に適用する設定などを記述する. + +\subsection{標準クラス} + +\begin{entable}{2}{2} +|jbook| & 横書き書籍 & |tbook| & 縦書き書籍 \\ +|jarticle| & 横書き論文 & |tarticle| & 縦書き論文 \\ +|jreport| & 横書きレポート & |treport| & 縦書きレポート \\ +\end{entable} + +クラスによってデフォルトのオプションや使える見出し命令などが異なる. + +\subsection{主な標準クラスオプション} + +\begin{entable}[\enspace\qquad]{2}{2} +\mergecol{4}{% + |a4paper|/|a5paper|/|b4paper|/|b5paper|\enspace 用紙サイズ(B系列はJIS規格)} \\ +|a4j|/|a5j|/|b4j|/|b5j| & 上記より余白が狭い & |landscape| & 用紙を横向き \\ +|10pt|/|11pt|/|12pt| & 文字サイズ & |twocolumn| & 二段組 \\ +|titlepage| & タイトルを独立ページ & |twoside| & 両面印刷 \\ +|leqno| & 数式番号を左側に表示 & |dvipdfmx| & dviドライバ \\ +|fleqn| & 別行立て数式を左寄せ & |tombo| & トンボを表示 \\ +\end{entable} + +クラスオプションに指定したものは読み込んだパッケージへも適用される. + +\subsection{文書情報} + +\begin{entable}[\enspace\quad]{2}{2} +|\author{|\Meta{著者}|}| + & \mergecol{3}{文書の著者.複数のときは \cs{and}で区切る} \\ +|\thanks{|\Meta{注釈}|}| + & \mergecol{3}{著者名に脚注(主に所属機関)を付ける} \\ +|\title{|\Meta{タイトル}|}| & 文書のタイトル & |\date{|\Meta{日付}|}| & 文書の作成日 \\ +\end{entable} + +本文中\cs{maketitle}を記述すると上記の情報を基に表題が出力される. + +\subsection{ページスタイル} + +\begin{entable}[\enspace\qquad]{2}{2} +|empty| & 空のヘッダ・フッタ & |plain| & ノンブル(ページ番号) \\ +|headings| & 柱とノンブル & |myheadings| & カスタムの柱 +\end{entable} + +\code{\cs{pagestyle}\{\Meta{スタイル}\}}の形式で指定.この命令は本文中でも利用可能. +\code{\cs{thispagestyle}\{\Meta{スタイル}\}}により一時的な変更もできる. +\code{myheadings}指定時は\code{\cs{markboth}\{\Meta{偶数ページ用}\}\{\Meta{奇数ページ用}\}}で +柱を設定. + +\subsection{各種設定など} + +\begin{entable}{2}{1} +|\usepackage[|\Meta{オプション}|]{|\Meta{パッケージ}|}| & パッケージ読み込み \\ +|\setcounter{|\Meta{カウンタ}|}{|\Meta{数値}|}| & カウンタの値を設定 \\ +|\setlength{|\Meta{寸法を表す命令}|}{|\Meta{長さ}|}| & 寸法を設定 \\ +|\newcommand{|\Meta{命令}|}[|\Meta{引数の数}|]{|\Meta{定義}|}| & マクロの定義 \\ +\end{entable} + +\cs{usepackage}はプリアンブルのみで利用可.他の命令は中級者以上向け. + +\section{文書の論理構造} + +\begin{entable}[\enspace\quad]{2}{3} +\mergecol{2}{% + \texttt{\bs part}\enspace 部\quad\texttt{\bs chapter}\enspace 章} & +|\section| & 節 & |\subsection| & 小節 \\ +|\subsubsection| & 小々節 & |\paragraph| & 段落 & |\subparagraph| & 小段落 \\ +\end{entable} + +これらの命令は共通の書式をもつ:\Meta{命令}|[|\Meta{目次用の見出し}|]{|\Meta{見出し}|}|.\\ +\Meta{命令}の直後に\single{*}を付けた場合,見出し番号が付かず目次にも載らない. + +\subsection{箇条書き} + +\begin{entable}[\enspace\qquad]{2}{2} +|\begin{itemize}| & 記号付き & |\begin{enumerate}| & 連番付き \\ +|\begin{description}| & 見出し付き \\ +\end{entable} + +各項目は上記の環境中で\code{\cs{item} \Meta{テキスト}}により表現. +\code{\cs{item}[\Meta{ラベル}]}のようにすると当該項目のラベルのみを変更 +(description環境では必須). + +\subsection{フロート} + +\begin{entable}[\enspace\quad]{2}{2} +|\begin{figure}[|\Meta{位置}|]| & 図を配置 & |\begin{table}[|\Meta{位置}|]| & 表を配置 \\ +\end{entable} + +各環境中\code{\cs{caption}[\Meta{図表目次用}]\{\Meta{説明文}\}}でキャプションを付けられる. +\Meta{位置}は次の文字の組み合わせで指定:$\mboxtt{t}=\mbox{ページ上部}$, +$\mboxtt{b}=\mbox{ページ下部}$,$\mboxtt{p}=\mbox{独立ページ}$,$\mboxtt{h}=\mbox{その場}$, +$\mboxtt{!}=\mbox{条件が悪くても指定位置に配置}$. + +\subsection{引用と注釈} + +\begin{entable}[\enspace\qquad]{2}{2} +|\begin{quote}| & 短い引用 & |\begin{quotation}| & 複数段落の引用 \\ +\mergecol{2}{\code{\cs{footnote}[\Meta{番号}]\{\Meta{脚注}\}}} + & \mergecol{2}{\code{\cs{marginpar}\{\Meta{傍注}\}}} \\ +\end{entable} + +\section{テキストプロパティ} + +\subsection{書体} + +\begin{entable}[\enspace]{3}{1} +|\textmc{|\Meta{テキスト}|}| & |{\mcfamily |\Meta{テキスト}|}| & \textmc{明朝体} \\ +|\textgt{|\Meta{テキスト}|}| & |{\gtfamily |\Meta{テキスト}|}| & \textgt{ゴシック体} \\ +|\textrm{|\Meta{テキスト}|}| & |{\rmfamily |\Meta{テキスト}|}| & \textrm{Roman family} \\ +|\textsf{|\Meta{テキスト}|}| & |{\sffamily |\Meta{テキスト}|}| & \textsf{Sans serif family} \\ +|\texttt{|\Meta{テキスト}|}| & |{\ttfamily |\Meta{テキスト}|}| & \texttt{Typewriter family} \\ +|\textmd{|\Meta{テキスト}|}| & |{\mdseries |\Meta{テキスト}|}| & \textmd{Medium series} \\ +|\textbf{|\Meta{テキスト}|}| & |{\bfseries |\Meta{テキスト}|}| & \textbf{Bold series} \\ +|\textup{|\Meta{テキスト}|}| & |{\upshape |\Meta{テキスト}|}| & \textup{Upright shape} \\ +|\textit{|\Meta{テキスト}|}| & |{\itshape |\Meta{テキスト}|}| & \textit{Italic shape} \\ +|\textsl{|\Meta{テキスト}|}| & |{\slshape |\Meta{テキスト}|}| & \textsl{Slanted shape} \\ +|\textsc{|\Meta{テキスト}|}| & |{\scshape |\Meta{テキスト}|}| & \textsc{Small Caps shape} \\ +\end{entable} + +\code{\cs{textnormal}\{\Meta{テキスト}\}}や\cs{normalfont}で常にデフォルトを適用可能. + +\subsection{装飾} + +\begin{entable}[\enspace]{3}{1} +|\emph{|\Meta{テキスト}|}| & |{\em |\Meta{テキスト}|}| & \emph{強調}(効果は環境依存) \\ +|\underline{|\Meta{テキスト}|}| & & \underline{下線} \\ +\end{entable} + +\subsection{フォントサイズ} + +\bgroup +\setlength{\columnsep}{14pt} +\begin{multicols}{2} +\begin{tabbing} +|\footnotesize| \= \kill +|\tiny| \> {\tiny 極小} \\ +|\scriptsize| \> {\scriptsize スクリプトサイズ} \\ +|\footnotesize| \> {\footnotesize 脚注サイズ} \\ +|\small| \> {\small 小さい} \\ +|\normalsize| \> {\normalsize 標準サイズ} \\ +|\large| \> {\large 大きい} \\ +|\Large| \= {\Large 超大きい} \\ +|\LARGE| \> {\LARGE 超々大きい} \\ +|\huge| \> {\huge 巨大} \\ +|\Huge| \> {\Huge 超巨大} %\\ +\end{tabbing} +\end{multicols} +\egroup + +\code{\cs{fontsize}\{\Meta{サイズ}\}\{\Meta{行送り}\}\cs{selectfont}}で寸法による指定も可能. +これらの命令は通常\code{\{\Meta{命令} \Meta{テキスト}\}}の形で使用. + +\subsection{入力通りに出力} + +\begin{entable}[\enspace]{2}{1} +|\verb!|\Meta{テキスト}|!| & デリミタ(ここでは\single{!})間の内容をそのまま出力 \\ +|\begin{verbatim}| & 入力通りに出力される環境 \\ +\end{entable} + +\code{\cs{verb*}}や\code{\cs{begin}\{verbatim*\}}を用いると空白 +が\eghostguarded{}`\verb*! !'\eghostguarded{}で明示される. + +\subsection{配置} + +\begin{entable}[\qquad]{3}{1} +|\begin{center}| & |\centering| & 中央寄せ \\ +|\begin{flushleft}| & |\raggedright| & 左寄せ \\ +|\begin{flushright}| & |\raggedleft| & 右寄せ \\ +\end{entable} + +\section{空白・行・ページ} + +\subsection{水平スペース(文字送り方向)} + +\begin{entable}[\enspace\quad]{2}{4} +\verb*!\ ! & 空白 & |\enspace| & \SI{0.5}{em} & |\quad| & \SI{1}{em} & |\,| + & \SI{1/6}{em}程度 \\ +|~| & 改行禁止 & \mergecol{2}{\texttt{\bs hspace\{}\Meta{長さ}\texttt{\}}} + & |\qquad| & \SI{2}{em} \\ +\end{entable} + +\cs{hfill}は無限に伸びる空白.英大文字で終わる文のピリオド直前に置く\cs{@}や +イタリック補正の\cs{/}もスペーシングに影響. + +\subsection{垂直スペース(行送り方向)} + +\begin{entable}[\quad]{6}{1} +|\smallskip| & |\medskip| & |\bigskip| & |\vspace{|\Meta{長さ}|}| & |\vfill| \\ +\end{entable} + +\code{\cs{phantom}\{\Meta{文字列}\}}を用いると\Meta{文字列}と縦横同じ寸法の空白を作る. + +\subsection{行とページ} + +\begin{entable}[\enspace]{2}{2} +|\par| & 改段落(空行と同じ) & |\noindent| & 行のインデントなし \\ +|\\*| & 改行(改ページ禁止) & |\\[|\Meta{長さ}|]| & 改行(+垂直スペース) \\ +|\linebreak| & 行分割を促進 & |\pagebreak| & ページ分割を促進 \\ +|\newpage| & 改ページ(段移動) & |\clearpage| & 全図表出力+改ページ \\ +\end{entable} + +\section{記号・その他} + +\subsection{特殊記号} + +\begin{entable}[\thinspace\quad]{2}{4} +\& & |\&| & \dag & |\dag| & \textasciitilde & |\textasciitilde| & \textbackslash & |\textbackslash| \\ +\% & |\%| & \ddag & |\ddag| & \textasciicircum & |\textasciicircum| & \textbar & |\textbar| \\ +\# & |\#| & \dots & |\dots| & \texttrademark & |\texttrademark| & \textbardbl & |\textbardbl| \\ +\_ & |\_| & \copyright & |\copyright| & \textregistered & |\textregistered| & \textbullet & |\textbullet| \\ +\$ & |\$| & \pounds & |\pounds| & \textordfeminine & |\textordfeminine| & \textless & |\textless| \\ +\P & |\P| & \S & |\S| & \textordmasculine & |\textordmasculine| & \textgreater & |\textgreater| \\ +\end{entable} + +\subsection{括弧類} + +\begin{entable}{2}{6} +` ' & \verb*!` '! & `` '' & \verb*!`` ''! & \lbrace\space\rbrace & \verb*!\{ \}! + & [ ] & \verb*![ ]! & ( ) & \verb*!( )! \\ +\end{entable} + +\subsection{ダッシュ類} + +\begin{entable}[\qquad]{4}{1} +ハイフン & |-| & X-ray & 単語内,2単語の連結 \\ +en-dash & |--| & 1--5 & 範囲を表す場合など \\ +em-dash & |---| & Yes---or no? & 挿入句の導入など \\ +\end{entable} + +\subsection{アクセント類} + +\begin{entable}[\enspace\qquad]{2}{6} +!` & |!`| & ?` & |?`| & \.a & |\.a| & \'a & |\'a| & \"a & |\"a| & \`a & |\`a| \\ +\^a & |\^a| & \=a & |\=a| & \~a & |\~a| & \aa & |\aa| & \AA & |\AA| & \ae & |\ae| \\ +\AE & |\AE| & \b a & |\b a| & \c c & |\c c| & \d a & |\d a| & \H a & |\H a| & \i & |\i| \\ +\j & |\j| & \l & |\l| & \L & |\L| & \o & |\o| & \O & |\O| & \oe & |\oe| \\ +\OE & |\OE| & \r a & |\r a| & \ss & |\ss| & \t oo & |\t oo| & \u a & |\u a| & \v a & |\v a| \\ +\end{entable} + +\subsection{その他} + +\begin{entable}{2}{1} +|\today| & 現在の日付({\codefont\bs 西暦}, {\codefont\bs 和暦}で形式を変更可能) \\ +|\TeX|/|\LaTeX|/|\LaTeXe| & \TeX/\LaTeX/\LaTeXe(ロゴ) \\ +\end{entable} + +\section{表組み} + +\subsection{tabular環境} + +\begin{entable}{1}{2} +|\begin{tabular}{|\Meta{列指定}|}| & |\begin{tabular*}{|\Meta{幅}|}{|\Meta{列指定}|}| \\ +\end{entable} + +\Meta{列指定}は次の文字を並べて指定:$\mboxtt{l}=\mbox{左寄せの列}$, +$\mboxtt{c}=\mbox{中央寄せの列}$,$\mboxtt{r}=\mbox{右寄せの列}$, +$\mboxtt{p\{\Meta{幅}\}}=\mbox{寸法指定の列}$, +$\mboxtt{@\{\Meta{区切り}\}}=\mbox{列間の区切り}$, +$\mboxtt{*\{\Meta{回数}\}\{\Meta{データ}\}}=\mbox{繰り返し}$, +$\mboxtt{\vbar}=\mbox{表全体の縦罫線}$. + +\begin{entable}{2}{2} +|&| & 列の区切り & |\hline| & 表全体の横罫線 \\ +|\\| & 行の終端 & |\cline{|\Meta{開始}|-|\Meta{終了}|}| & 範囲指定の横罫線 \\ +\end{entable} + +セルの結合:\code{\cs{multicolumn}\{\Meta{列数}\}\{\Meta{列指定}\}\{\Meta{テキスト}\}}. + +\subsection{tabbing環境} + +\begin{entable}{2}{2} +|\=| & タブ位置を設定 & |\>| & 次のタブ位置に移動 \\ +|\\| & 行の終端 & |\kill| & 非表示行(タブ位置設定)の終端 \\ +\end{entable} + +\section{数式モード} + +\begin{entable}{2}{2} +|$|\Meta{数式}|$| & インライン数式 & |\begin{equation}| & 別行立て数式 \\ +|\[|\Meta{数式}|\]| & \mergecol{3}{別行立て数式(式番号なし)} \\ +\end{entable} + +\subsection{数式の基本} + +\begin{entable}[\enspace\quad]{2}{5} +$p'=0$ & |p'=0| & $a_1$ & |a_1| & $x^{2}$ & |x^2| & $\frac{3}{4}$ & |\frac{3}{4}| + & $\sqrt[5]{6}$ & |\sqrt[5]{6}| \\ +\mergecol{10}{\code{\cs{begin}\{array\}\{\Meta{列指定}\}}\enspace 行列用の表} \\ +\end{entable} + +数式モードではテキスト中で使える水平スペース命令のほかに以下が使える. + +\begin{entable}{2}{3} +|\:| & \SI{4/18}{em}程度 & |\;| & \SI{5/18}{em}程度 & |\!| & \SI{-3/18}{em}程度 \\ +\end{entable} + +\subsection{スタイルと書体} + +\begin{entable}[\enspace\quad]{2}{2} +|\displaystyle| & 別行立てスタイル & |\textstyle| & インラインスタイル \\ +\end{entable} + +書体の変更には\cs{mathrm}, \cs{mathbf}, \cs{mathit}, \cs{mathsf}, \cs{mathtt}, +\cs{mathmc}, \cs{mathgt}および\cs{mathnormal}を用いる(組み合わせは不可). +英大文字に対してのみカリグラフ体への変更命令\cs{mathcal}が利用できる(例:$\mathcal{ABC}$). + +\subsection{上下の装飾} + +\begin{entable}[\enspace\quad]{2}{3} +$\overline{ab}$ & |\overline{ab}| & $\overrightarrow{ab}$ & |\overrightarrow{ab}| + & $\widehat{ab}$ & |\widehat{ab}| \\ +$\underline{ab}$ & |\underline{ab}| & $\overleftarrow{ab}$ & |\overleftarrow{ab}| + & $\widetilde{ab}$ & |\widetilde{ab}| \\[2pt] +\mergecol{6}{% + $\overbrace{a+b}$\enspace \texttt{\bs overbrace\{a+b\}}\quad + $\underbrace{a+b}$\enspace \texttt{\bs underbrace\{a+b\}}} \\ +\end{entable} + +\subsection{ギリシャ文字} + +\begin{entable}[\enspace\quad]{2}{6} +$\alpha$ & |\alpha| & $\beta$ & |\beta| & $\gamma$ & |\gamma| & $\delta$ & |\delta| & $\epsilon$ & |\epsilon| \\ +$\zeta$ & |\zeta| & $\eta$ & |\eta| & $\theta$ & |\theta| & $\iota$ & |\iota| & $\kappa$ & |\kappa| \\ +$\lambda$ & |\lambda| & $\mu$ & |\mu| & $\nu$ & |\nu| & $\xi$ & |\xi| & $\pi$ & |\pi| \\ +$\rho$ & |\rho| & $\sigma$ & |\sigma| & $\tau$ & |\tau| & $\upsilon$ & |\upsilon| & $\phi$ & |\phi| \\ +$\chi$ & |\chi| & $\omega$ & |\omega| & $\Gamma$ & |\Gamma| & $\Delta$ & |\Delta| & $\Theta$ & |\Theta| \\ +$\Lambda$ & |\Lambda| & $\Xi$ & |\Xi| & $\Pi$ & |\Pi| & $\Sigma$ & |\Sigma| & $\Upsilon$ & |\Upsilon| \\ +$\Phi$ & |\Phi| & $\Psi$ & |\Psi| & $\Omega$ & |\Omega| & $\varpi$ & |\varpi| & $\varphi$ & |\varphi| \\ +$\varepsilon$ & \mergecol{3}{\texttt{\bs varepsilon}} + & $\vartheta$ & \mergecol{3}{\texttt{\bs vartheta}} & $\varsigma$ & |\varsigma| \\ +\end{entable} + +\subsection{二項演算子} + +\begin{entable}[\enspace\quad]{2}{4} +$\times$ & |\times| & $\div$ & |\div| & $\vee$ & |\vee| & $\triangleright$ & |\triangleright| \\ +$\cdot$ & |\cdot| & $\mp$ & |\mp| & $\wedge$ & |\wedge| & $\bigtriangleup$ & |\bigtriangleup| \\ +$\ast$ & |\ast| & $\pm$ & |\pm| & $\uplus$ & |\uplus| & $\bigtriangledown$ & |\bigtriangledown| \\ +$\star$ & |\star| & $\cap$ & |\cap| & $\sqcap$ & |\sqcap| & $\triangleleft$ & |\triangleleft| \\ +$\setminus$ & |\setminus| & $\cup$ & |\cup| & $\sqcup$ & |\sqcup| & $\dagger$ & |\dagger| \\ +$\oslash$ & |\oslash| & $\odot$ & |\odot| & $\bullet$ & |\bullet| & $\ddagger$ & |\ddagger| \\ +$\otimes$ & |\otimes| & $\oplus$ & |\oplus| & $\circ$ & |\circ| & $\bigcirc$ & |\bigcirc| \\ +$\ominus$ & |\ominus| & $\wr$ & |\wr| & $\amalg$ & |\amalg| & & |\mathbin{|\Meta{記号}|}| \\ +\end{entable} + +\subsection{関係演算子} + +\begin{entable}[\enspace\quad]{2}{5} +$\neq$ & |\neq| & $\supset$ & |\supset| & $\perp$ & |\perp| & $\parallel$ & |\parallel| & $\mid$ & |\mid| \\ +$\leq$ & |\leq| & $\subset$ & |\subset| & $\equiv$ & |\equiv| & $\doteq$ & |\doteq| & $\asymp$ & |\asymp| \\ +$\geq$ & |\geq| & $\supseteq$ & |\supseteq| & $\sim$ & |\sim| & $\simeq$ & |\simeq| & $\models$ & |\models| \\ +$\gg$ & |\gg| & $\subseteq$ & |\subseteq| & $\cong$ & |\cong| & $\approx$ & |\approx| & $\propto$ & |\propto| \\ +$\ll$ & |\ll| & $\sqsubseteq$ & |\sqsubseteq| & $\succ$ & |\succ| & $\succeq$ & |\succeq| & $\dashv$ & |\dashv| \\ +$\in$ & |\in| & $\sqsupseteq$ & |\sqsupseteq| & $\prec$ & |\prec| & $\preceq$ & |\preceq| & $\vdash$ & |\vdash| \\ +$\ni$ & |\ni| & $\bowtie$ & |\bowtie| & $\not$ & |\not| & + & \mergecol{3}{\texttt{\bs mathrel\{}\Meta{記号}\texttt{\}}} \\ +\end{entable} + +関係演算子の前に\cs{not}を前置すると,その否定形を作ることができる. + +\subsection{大型演算子} + +\begin{entable}[\enspace\quad]{2}{4} +$\int$ & |\int| & $\bigotimes$ & |\bigotimes| & $\bigcap$ & |\bigcap| & $\bigcup$ & |\bigcup| \\[3pt] +$\oint$ & |\oint| & $\bigoplus$ & |\bigoplus| & $\biguplus$ & |\biguplus| & $\bigsqcup$ & |\bigsqcup| \\[3pt] +$\sum$ & |\sum| & $\bigodot$ & |\bigodot| & $\bigvee$ & |\bigvee| & $\bigwedge$ & |\bigwedge| \\[3pt] +$\prod$ & |\prod| & $\coprod$ & |\coprod| & $\smallint$ & |\smallint| & & |\mathop{|\Meta{記号}|}| \\ +\end{entable} + +\subsection{括弧類} + +\begin{entable}[\enspace\quad]{2}{6} +$\langle$ & |\langle| & $\lceil$ & |\lceil| & $\lfloor$ & |\lfloor| +& \scalebox{.5}{$\big\lgroup$} & |\lgroup| & \scalebox{.5}{$\big\lmoustache$} & |\lmoustache| \\ +$\rangle$ & |\rangle| & $\rceil$ & |\rceil| & $\rfloor$ & |\rfloor| +& \scalebox{.5}{$\big\rgroup$} & |\rgroup| & \scalebox{.5}{$\big\rmoustache$} & |\rmoustache| \\ +\mergecol{2}{$\vbar$ \texttt{\vbar} \quad $\|$ \texttt{\bs\vbar}} & + & \mergecol{3}{\texttt{\bs mathopen\{}\Meta{記号}\texttt{\}}} & + & \mergecol{3}{\texttt{\bs mathclose\{}\Meta{記号}\texttt{\}}} \\ +\end{entable} + +\cs{left}\Meta{開き括弧}\Meta{数式}\cs{right}\Meta{閉じ括弧}で括弧類のサイズを自動調整. + +\subsection{矢印類} + +\begin{entable}[\thinspace\enspace]{2}{3} +$\to$ & |\to| & $\hookrightarrow$ & |\hookrightarrow| & $\Uparrow$ & |\Uparrow| \\ +$\gets$ & |\gets| & $\hookleftarrow$ & |\hookleftarrow| & $\Downarrow$ & |\Downarrow| \\ +$\nearrow$ & |\nearrow| & $\leftrightarrow$ & |\leftrightarrow| & $\rightleftharpoons$ & |\rightleftharpoons| \\ +$\searrow$ & |\searrow| & $\rightharpoonup$ & |\rightharpoonup| & $\longrightarrow$ & |\longrightarrow| \\ +$\nwarrow$ & |\nwarrow| & $\rightharpoondown$ & |\rightharpoondown| & $\Longrightarrow$ & |\Longrightarrow| \\ +$\swarrow$ & |\swarrow| & $\leftharpoonup$ & |\leftharpoonup| & $\longleftarrow$ & |\longleftarrow| \\ +$\mapsto$ & |\mapsto| & $\leftharpoondown$ & |\leftharpoondown| & $\Longleftarrow$ & |\Longleftarrow| \\ +$\longmapsto$ & |\longmapsto| & $\Leftrightarrow$ & |\Leftrightarrow| & $\longleftrightarrow$ & |\longleftrightarrow| \\ +$\Rightarrow$ & |\Rightarrow| & $\updownarrow$ & |\updownarrow| & $\Longleftrightarrow$ & |\Longleftrightarrow| \\ +$\Leftarrow$ & |\Leftarrow| & $\downarrow$ & |\downarrow| & & |\iff|(前後の空白大) \\ +$\uparrow$ & |\uparrow| & $\Updownarrow$ & |\Updownarrow| \\ +\end{entable} + +\subsection{関数名} + +\begin{entable}[\quad\quad]{1}{8} +|\log| & |\sin| & |\arcsin| & |\sinh| & |\max| & |\arg| & |\exp| & |\ker| \\ +|\lg| & |\cos| & |\arccos| & |\cosh| & |\min| & |\lim| & |\Pr| & |\dim| \\ +|\ln| & |\tan| & |\arctan| & |\tanh| & |\sup| & |\limsup| & |\gcd| & |\hom| \\ +|\sec| & |\csc| & |\cot| & |\coth| & |\inf| & |\liminf| & |\deg| & |\det| \\ +\end{entable} + +\subsection{アクセント類} + +\begin{entable}[\enspace\qquad]{2}{4} +$\bar{a}$ & |\bar{a}| & $\acute{a}$ & |\acute{a}| & $\dot{a}$ & |\dot{a}| & $\ddot{a}$ & |\ddot{a}| \\ +$\vec{a}$ & |\vec{a}| & $\breve{a}$ & |\breve{a}| & $\grave{a}$ & |\grave{a}| & $\mathring{a}$ & |\mathring{a}| \\ +$\hat{a}$ & |\hat{a}| & $\check{a}$ & |\check{a}| & $\tilde{a}$ & |\tilde{a}| & & \\ +\end{entable} + +\subsection{その他} + +\begin{entable}[\enspace\quad]{2}{4} +$\spadesuit$ & |\spadesuit| & $\flat$ & |\flat| & $\surd$ & |\surd| & $\nabla$ & |\nabla| \\ +$\heartsuit$ & |\heartsuit| & $\natural$ & |\natural| & $\smile$ & |\smile| & $\partial$ & |\partial| \\ +$\diamondsuit$ & |\diamondsuit| & $\sharp$ & |\sharp| & $\frown$ & |\frown| & $\infty$ & |\infty| \\ +$\clubsuit$ & |\clubsuit| & $\prime$ & |\prime| & $\top$ & |\top| & $\angle$ & |\angle| \\ +$\diamond$ & |\diamond| & $\Re$ & |\Re| & $\bot$ & |\bot| & $\triangle$ & |\triangle| \\ +$\backslash$ & |\backslash| & $\Im$ & |\Im| & $\forall$ & |\forall| & $\exists$ & |\exists| \\ +$\aleph$ & |\aleph| & $\hbar$ & |\hbar| & $\neg$ & |\neg| & $\emptyset$ & |\emptyset| \\ +$\ell$ & |\ell| & $\wp$ & |\wp| & $\imath$ & |\imath| & $\jmath$ & |\jmath| \\[-6pt] +$\cdots$ & |\cdots| & $\ldots$ & |\ldots| & \raisebox{-2pt}{$\vdots$} & |\vdots| & \raisebox{-2pt}{$\ddots$} & |\ddots| \\ +\end{entable} + +\section{相互参照・目次・索引・文献リスト} + +これらの機能を利用するには一般に\code{platex}を複数回実行する必要がある. + +\subsection{相互参照} + +\begin{entable}{2}{1} +|\label{|\Meta{ラベル}|}| & 相互参照用のラベルをセット \\ +|\ref{|\Meta{ラベル}|}| & ラベル位置(章や図表,式番号など)を出力 \\ +|\pageref{|\Meta{ラベル}|}| & ラベル位置のページ番号を出力 \\ +\end{entable} + +\subsection{目次} + +\begin{entable}[\enspace\qquad]{3}{2} +|toc| & |\tableofcontents| + & \mergecol{4}{目次(|tocdepth| カウンタで掲載項目を調整)} \\ +|lof| & |\listoffigures| & 図目次 & |lot| & |\listoftables| & 表目次 \\ +\end{entable} + +項目の追加: +\code{\cs{addcontentsline}\{\Meta{目次の種類}\}\{\Meta{項目の種類}\}\{\Meta{項目}\}}. + +\subsection{索引} + +\begin{entable}{2}{1} +|\index{|\Meta{上位項目}|!|\Meta{読み}|@|\Meta{項目}\texttt{\vbar}\Meta{体裁}|}| + & 索引項目の追加 \\ +\end{entable} + +indファイルは\code{mendex}で処理.索引の出力には別途パッケージが必要. + +\subsection{文献リスト} + +\begin{entable}{2}{1} +|\cite[|\Meta{コメント}|]{|\Meta{キー}|,|\Meta{キー}|,|\dots|}| & 対応する文献を引用 \\ +|\begin{thebibliography}{|\Meta{最大ラベル}|}| & 文献リスト用の箇条書き \\ +|\bibitem[|\Meta{ラベル}|]{|\Meta{キー}|} |\Meta{テキスト} & 文献項目の記述 \\ +\end{entable} + +\code{pbibtex}を用いて文献リストをデータベースから自動生成する方法もある. + +\section{p\LaTeX 文書のサンプル} + +\lstinputlisting{sample.tex} + +\rule{.3\linewidth}{.25pt} +\scriptsize + +\LaTeXe 版 {\copyright} 2006 Winston Chang \\ +\url{http://www.stdout.org/~winston/latex/} + +p\LaTeXe 版 {\copyright} 2017 Takuto Asakura \\ +\url{https://wtsnjp.com/pdf/platexsheet.pdf} + +バージョン:3.1, 更新日:2018/12/31 + +\end{multicols} +\end{document} diff --git a/info/latexcheat/platexcheat/sample-jsclasses.pdf b/info/latexcheat/platexcheat/sample-jsclasses.pdf Binary files differnew file mode 100644 index 0000000000..d25cf97465 --- /dev/null +++ b/info/latexcheat/platexcheat/sample-jsclasses.pdf diff --git a/info/latexcheat/platexcheat/sample-jsclasses.tex b/info/latexcheat/platexcheat/sample-jsclasses.tex new file mode 100644 index 0000000000..d78d42bc7a --- /dev/null +++ b/info/latexcheat/platexcheat/sample-jsclasses.tex @@ -0,0 +1,29 @@ +\documentclass[12pt,a4paper,dvipdfmx]{jsarticle} +\usepackage{url} % \url 命令を利用 +\usepackage{otf} +\title{p\LaTeXe をもっと便利に} +\author{朝倉卓人\thanks{e-mail: \texttt{wtsnjp@gmail.com}}} + +\begin{document} +\maketitle + +\section*{\LaTeX 関連の情報や成果物を入手しよう} +近年人気のディストリビューション(\TeX\ Live等)を利用している場合, +自力で入手しなくとも数多くのクラスやパッケージが最初からインストール +されている. + +より多くの情報や成果物を入手するには表\ref{表:サイト集}掲載のサイトを +訪れるとよい. + +\begin{table}[bth!] +\centering +\caption{\emph{有益なサイト}.英語のサイトも含まれている.} +\label{表:サイト集} +\begin{tabular}{lll} +\emph{サイト名} & \emph{URL} & \emph{説明} \\ \hline +\TeX\ Wiki & \url{https://texwiki.texjp.org/} & 日本語情報の宝庫 \\ +TUG & \url{https://www.tug.org/} & \TeX\ Users Groupのサイト \\ +CTAN & \url{https://www.ctan.org/} & 世界から成果物が集まる \\ +\end{tabular} +\end{table} +\end{document} diff --git a/info/latexcheat/platexcheat/sample.pdf b/info/latexcheat/platexcheat/sample.pdf Binary files differnew file mode 100644 index 0000000000..00db9507da --- /dev/null +++ b/info/latexcheat/platexcheat/sample.pdf diff --git a/info/latexcheat/platexcheat/sample.tex b/info/latexcheat/platexcheat/sample.tex new file mode 100644 index 0000000000..03a1ef676a --- /dev/null +++ b/info/latexcheat/platexcheat/sample.tex @@ -0,0 +1,29 @@ +\documentclass[12pt,a4j,dvipdfmx]{jarticle} +\usepackage{url} % \url 命令を利用 +\usepackage{otf} +\title{p\LaTeXe をもっと便利に} +\author{朝倉卓人\thanks{e-mail: \texttt{wtsnjp@gmail.com}}} + +\begin{document} +\maketitle + +\section*{\LaTeX 関連の情報や成果物を入手しよう} +近年人気のディストリビューション(\TeX\ Live等)を利用している場合, +自力で入手しなくとも数多くのクラスやパッケージが最初からインストール +されている. + +より多くの情報や成果物を入手するには表\ref{表:サイト集}掲載のサイトを +訪れるとよい. + +\begin{table}[bth!] +\centering +\caption{\emph{有益なサイト}.英語のサイトも含まれている.} +\label{表:サイト集} +\begin{tabular}{lll} +\emph{サイト名} & \emph{URL} & \emph{説明} \\ \hline +\TeX\ Wiki & \url{https://texwiki.texjp.org/} & 日本語情報の宝庫 \\ +TUG & \url{https://www.tug.org/} & \TeX\ Users Groupのサイト \\ +CTAN & \url{https://www.ctan.org/} & 世界から成果物が集まる \\ +\end{tabular} +\end{table} +\end{document} |