public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How can I create a template from this tex files ?
@ 2019-10-19 12:44 Kopax Anderson
       [not found] ` <aa09a597-ce2f-4af6-9e9f-0449e116abfb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kopax Anderson @ 2019-10-19 12:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 11270 bytes --]

I am using pandoc v2.7.3 and PDFLatex engine, I'd like to create a pandoc 
template from this .tex file:

%\documentclass[a4paper, 12pt, oneside]{amsart}%Sur une seule colonne
%\usepackage[textheight=700pt, vmarginratio=1:1, hmargin=2.5cm, heightrounded=true]{geometry}%Sur une seule colonne
\documentclass[a4paper, oneside, twocolumn, landscape]{amsart}
\usepackage[columnsep=1cm, top=1.27cm, bottom=1.27cm, left=1cm, right=1cm, heightrounded=true, marginparsep=1pt, marginparwidth=5pt]{geometry}
%rendre quelques warnings silencieux
\providecommand*{\convertMPtoPDF}[3]{\errmessage{MPS files are not supported by choice}}

\usepackage{etoolbox}
\makeatletter
%suppression des \vbox underfull badness
\def\@textbottom{\vskip \z@ \@plus 7pt}
\let\@texttop\relax
%numéros des sections en gras
\def\@secnumfont{\bfseries}
%formatage des sections
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}{6pt plus 2pt minus 2pt}{-.5em}{\normalfont\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{0pt}{6pt plus 2pt minus 0pt}{-.5em}{\normalfont\bfseries}}
\renewcommand\section{\@startsection{section}{1}\z@{0pt}{18pt plus 2pt minus 2pt}{\clearpage\normalfont\bfseries\centering}}
%\renewcommand\section{\@startsection{section}{1}\z@{24pt plus 2pt minus 2pt}{24pt plus 2pt minus 2pt}{\normalfont\bfseries\centering}}
%lignes de points TOC
\newcommand\@dotsep{2}
%\def\l@chapter{\@tocline{0}{0pt}{0pt}{}{}}
%formatage numérotation TOC
\renewcommand{\tocsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.}][l]{#2.}\quad}}#3\dotfill}
\renewcommand{\tocsubsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.00.}][l]{#2.}\quad}}#3\dotfill}
\renewcommand{\tocsubsubsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.00.00}][l]{#2.}\quad}}#3\dotfill}
\def\@seccntformat#1{\csname the#1\endcsname.\,}
\makeatother

\usepackage{subfiles}%tu peux supprimer
\usepackage{amssymb}%tu peux supprimer
\usepackage{enumitem}
\usepackage{thmtools}%tu peux supprimer
\usepackage{mathtools}%tu peux supprimer
\usepackage{physics}%tu peux supprimer
\usepackage{siunitx}%tu peux supprimer
\usepackage{tensor}%tu peux supprimer
\usepackage{booktabs}
\renewcommand{\arraystretch}{1.2}
\usepackage{titleps}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[activate={true, nocompatibility},
 babel=true,
    final,
    tracking=true,
    kerning=true,
    spacing=true,
    factor=1100,
    stretch=10,
    shrink=10]{microtype}
\batchmode%tu peux supprimer
\usepackage{tikz-cd}%%tu peux supprimer sauf si tu veux des graphismes 
\errorstopmode%tu peux supprimer
\usepackage{fixcmex}
\tikzcdset{arrow style=Latin Modern}
\frenchspacing

\newpagestyle{main}{
  \sethead{\scriptsize\thesection.\ \sectiontitle}{}{\scriptsize\thepage}}
\pagestyle{main}

\setlist{noitemsep, font=\normalfont}
\setlist[enumerate,1]{labelindent=1.5em, leftmargin=3em, listparindent=0em}
\setitemize[1]{label={--}}
\setcounter{tocdepth}{2}
%A partir de là ça concerne que les maths. Tu peux tout enlever
\declaretheoremstyle[spaceabove=6pt plus 2pt minus 2pt, spacebelow=6pt plus 2pt minus 2pt, headfont=\scshape, bodyfont=\itshape, postheadspace=5pt plus 1pt minus 1pt]{mythmstyle}
\declaretheoremstyle[spaceabove=6pt plus 2pt minus 2pt, spacebelow=6pt plus 2pt minus 2pt, headfont=\bfseries, bodyfont=\normalfont, postheadspace=5pt plus 1pt minus 1pt, headformat=\NAME\NOTE]{myremstyle}
\declaretheoremstyle[spaceabove=3pt plus 2pt minus 2pt, spacebelow=3pt plus 2pt minus 2pt, headfont=\normalfont\itshape, bodyfont=\normalfont, postheadspace=0.5em, qed=$\qedsymbol$]{myproofstyle} 
\declaretheorem[style=mythmstyle, name=Théorème]{thm}
\declaretheorem[style=mythmstyle, name=Corollaire, numbered=no]{cor}
\declaretheorem[style=mythmstyle, name=Lemme]{lem}
\declaretheorem[style=mythmstyle, name=Lemme]{lemi}
\declaretheorem[style=myremstyle, name=Définition, numbered=no]{defn}
\declaretheorem[style=myremstyle, name=Interprétation géométrique, numbered=no]{intge}
\declaretheorem[style=myremstyle, name=Remarque, numbered=no]{rem}
\declaretheorem[style=myremstyle, name=Exemple, numbered=no]{ex}
\declaretheorem[style=myremstyle, name=Contre-Exemple, numbered=no]{nex}
\declaretheorem[style=myproofstyle, name=Démonstration, numbered=no]{myproof}

\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\DD}{\mathbb{D}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\M}{\mathbb{M}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\A}{\mathbb{A}}
\newcommand{\PP}{\mathbb{P}}
\renewcommand{\S}{\mathbb{S}}
\newcommand{\U}{\mathbb{U}}
\newcommand{\K}{\mathbb{K}}
\newcommand{\II}{\mathbb{I}}
\newcommand{\HH}{\mathbb{H}}
\newcommand{\TT}{\mathbb{T}}
\newcommand{\vare}{\varepsilon}

\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\Cinf}{\mathcal{C}^{\infty}}
\newcommand{\fr}[1]{\mathfrak{#1}}
\newcommand{\mc}[1]{\mathcal{#1}}
\newcommand{\mb}[1]{\mathbf{#1}}
\newcommand{\lis}[2]{#1_1, \dots ,#1_{#2}}
\newcommand{\kx}{k[X_1,\dots, X_n]}
\newcommand{\fo}[1]{\mathcal{O}_{#1}}
\newcommand{\sch}[1]{(#1,\mathcal{O}_{#1})}
\newcommand{\clos}[1]{\mkern 1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu}
\newcommand{\Tt}[2]{\tensor[^\intercal]{#1}{_{#2}}}
\newcommand{\scal}[2]{\left(#1\,\middle\vert\,#2\right)}
\newcommand{\pscal}[2]{\langle\,#1,#2\,\rangle}
\newcommand{\intval}[2]{\left[#1,#2\right]}
\newcommand{\lie}[2]{\left[#1,#2\right]}
\newcommand\indentdisplays[1]{\everydisplay{\addtolength\displayindent{#1}\addtolength\displaywidth{-#1}}}
\newcommand{\centrage}{\everydisplay{\addtolength\displayindent{\parindent}\addtolength\displaywidth{-\parindent}}}
\newcommand{\ff}[1]{#1^{\flat}}

\DeclareMathOperator{\Ab}{\mathbf{Ab}}
\DeclareMathOperator{\Ad}{Ad}
\DeclareMathOperator{\ad}{ad}
\DeclareMathOperator{\Alg}{\mathbf{Alg}}
\DeclareMathOperator{\Ann}{Ann}
\DeclareMathOperator{\Ass}{Ass} 
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Card}{Card}
\DeclareMathOperator{\Ch}{\mathbf{Ch}}
\DeclareMathOperator{\codim}{codim}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\cone}{cone}
\DeclareMathOperator{\Constr}{Constr}
\DeclareMathOperator{\Conv}{Conv}
\DeclareMathOperator{\colim}{colim}
\DeclareMathOperator{\cont}{cont}
\DeclareMathOperator{\D}{D}
\DeclareMathOperator{\depth}{depth}
\DeclareMathOperator{\Der}{Der}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\Diff}{Diff}
\DeclareMathOperator{\Div}{Div}
\DeclareMathOperator{\End}{End} 
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\Fitt}{Fitt}
\DeclareMathOperator{\FV}{\mathcal{FV}}
\DeclareMathOperator{\Gal}{Gal}
\DeclareMathOperator{\gr}{gr}
\DeclareMathOperator{\HE}{H}
\DeclareMathOperator{\height}{height}
\DeclareMathOperator{\het}{ht}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hor}{Hor}
\DeclareMathOperator{\Id}{Id} 
\DeclareMathOperator{\Ind}{Ind}
\DeclareMathOperator{\Int}{Int}
\DeclareMathOperator{\Irrep}{Irrep}
\DeclareMathOperator{\grade}{grade} 
\DeclareMathOperator{\length}{length} 
\DeclareMathOperator{\Long}{long}
\DeclareMathOperator{\Mat}{Mat}
\DeclareMathOperator{\Mf}{\mathbf{Mf}}
\DeclareMathOperator{\fM}{\mathcal{F}\mathbf{M}}
\DeclareMathOperator{\Mod}{\mathbf{Mod}}
\DeclareMathOperator{\Mor}{Mor}
\DeclareMathOperator{\nilrad}{nilrad} 
\DeclareMathOperator{\Obj}{\mathbf{Obj}}
\DeclareMathOperator{\Op}{op}
\DeclareMathOperator{\Out}{Out}
\DeclareMathOperator{\Pic}{Pic}
\DeclareMathOperator{\Proj}{Proj} 
\DeclareMathOperator{\Quot}{Quot}
\DeclareMathOperator{\rad}{rad} 
\DeclareMathOperator{\rang}{rang}
\DeclareMathOperator{\Rep}{Rep}
\DeclareMathOperator{\Ric}{Ric}
\DeclareMathOperator{\Set}{\mathbf{Set}}
\DeclareMathOperator{\Sgn}{sgn}
\DeclareMathOperator{\Spec}{Spec} 
\DeclareMathOperator{\SpecMax}{SpecMax} 
\DeclareMathOperator{\Supp}{Supp}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\Tor}{Tor} 
\DeclareMathOperator{\Tot}{Tot}
\DeclareMathOperator{\trdeg}{trdeg}
\DeclareMathOperator{\TE}{T}
\DeclareMathOperator{\TS}{TS}
\DeclareMathOperator{\TA}{TA}
\DeclareMathOperator{\VE}{V}
\DeclareMathOperator{\Vect}{Vect}

\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\gl}{\fr{gl}}
\DeclareMathOperator{\Pin}{Pin}
\DeclareMathOperator{\PGL}{PGL}
\DeclareMathOperator{\PSL}{PSL}
\DeclareMathOperator{\SL}{SL}
\DeclareMathOperator{\Sl}{\fr{sl}}
\DeclareMathOperator{\SO}{SO}
\DeclareMathOperator{\so}{\fr{so}}
\DeclareMathOperator{\OO}{O}
\DeclareMathOperator{\SP}{Sp}
\DeclareMathOperator{\Sp}{\fr{sp}}
\DeclareMathOperator{\Spin}{Spin}
\DeclareMathOperator{\SU}{SU}
\DeclareMathOperator{\PSU}{PSU}
\DeclareMathOperator{\su}{\fr{su}}
\DeclareMathOperator{\UU}{U}
\DeclareMathOperator{\uu}{\fr{u}}

%A partir de là ça concerne le texte

\begin{document}

\thispagestyle{empty}
\tableofcontents
\vfill\break

\section{Algèbres de Lie complexes semi-simples}

\subsection{Décomposition de Cartan}

Si $L$ est semi-simple finie sur un corps de caractéristique nulle, alors toute algèbre de Cartan $H$ de $L$ est une algèbre \emph{torique} maximale, c'est à dire abélienne et constituée d'éléments semi-simples, et réciproquement. Lorsque le corps est algébriquement clos, les algèbres de Cartan sont celles maximales constituées d'éléments diagonalisables dans la représentation adjointe.

On obtient une décomposition de $L$ suivant les valeurs propres des éléments de $H$ appelées alors \emph{racines} de $L$.

On note $\Phi\subset H^{*}$ l'ensemble des racines non nulles de la décomposition de Cartan $L$ suivant $H$. C'est l'ensemble des formes linéaires $\alpha$ sur $H$ correspondant aux valeurs propres non nulles de la représentation adjointe de $H$ sur $L$. On a toujours $H^*=\C \Phi$. L'espace propre correspondant est noté 
$$L_{\alpha}=\set{x\in L \mid \forall h\in H\ \lie{h}{x}=\alpha(h)x}$$
On a alors la \emph{décomposition de Cartan}
$$L=H \oplus_{\alpha\in \Phi}L_{\alpha}$$
Pour $h\in H$, on a toujours 
$$\lie{h}{e_{\alpha}}=\alpha(h)e_{\alpha}$$
En particulier, les matrices des éléments de $H$ dans la représentation adjointe sont diagonales de diagonale $(\alpha(h))_{\alpha\in \Phi\cup \set{0}}$ dans la base constituée d'une base de $H$ et des générateurs des $L_{\alpha}$ avec $\alpha\in \Phi$

\end{document}


You can convert this file by doing `pdflatex myfile.tex`

I keep having error in pandoc

"template" (line 71, column 171):
unexpected "\\"
expecting letter


What should be kept from the original template, what should be removed, I 
need some help Is there a tutorial I can follow? 




-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aa09a597-ce2f-4af6-9e9f-0449e116abfb%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 38480 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I create a template from this tex files ?
       [not found] ` <aa09a597-ce2f-4af6-9e9f-0449e116abfb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-10-19 12:50   ` Kopax Anderson
  2019-10-21  5:41   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: Kopax Anderson @ 2019-10-19 12:50 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 551 bytes --]

What is in the original template in charge of adding the whole document I'm 
trying to convert between \begin{document} and \end{document} ?

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2b90809d-a809-492f-9fbd-7388c8f6ccb9%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 859 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How can I create a template from this tex files ?
       [not found] ` <aa09a597-ce2f-4af6-9e9f-0449e116abfb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2019-10-19 12:50   ` Kopax Anderson
@ 2019-10-21  5:41   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2019-10-21  5:41 UTC (permalink / raw)
  To: Kopax Anderson, pandoc-discuss


The character '$' has a special meaning in pandoc templates.
So any '$' characters that you want to be passed through
unchanged (e.g. in latex math) need to be escaped as '$$'.

Kopax Anderson <d.kopriwa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I am using pandoc v2.7.3 and PDFLatex engine, I'd like to create a pandoc 
> template from this .tex file:
>
> %\documentclass[a4paper, 12pt, oneside]{amsart}%Sur une seule colonne
> %\usepackage[textheight=700pt, vmarginratio=1:1, hmargin=2.5cm, heightrounded=true]{geometry}%Sur une seule colonne
> \documentclass[a4paper, oneside, twocolumn, landscape]{amsart}
> \usepackage[columnsep=1cm, top=1.27cm, bottom=1.27cm, left=1cm, right=1cm, heightrounded=true, marginparsep=1pt, marginparwidth=5pt]{geometry}
> %rendre quelques warnings silencieux
> \providecommand*{\convertMPtoPDF}[3]{\errmessage{MPS files are not supported by choice}}
>
> \usepackage{etoolbox}
> \makeatletter
> %suppression des \vbox underfull badness
> \def\@textbottom{\vskip \z@ \@plus 7pt}
> \let\@texttop\relax
> %numéros des sections en gras
> \def\@secnumfont{\bfseries}
> %formatage des sections
> \renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}{6pt plus 2pt minus 2pt}{-.5em}{\normalfont\bfseries}}
> \renewcommand\subsection{\@startsection{subsection}{2}{0pt}{6pt plus 2pt minus 0pt}{-.5em}{\normalfont\bfseries}}
> \renewcommand\section{\@startsection{section}{1}\z@{0pt}{18pt plus 2pt minus 2pt}{\clearpage\normalfont\bfseries\centering}}
> %\renewcommand\section{\@startsection{section}{1}\z@{24pt plus 2pt minus 2pt}{24pt plus 2pt minus 2pt}{\normalfont\bfseries\centering}}
> %lignes de points TOC
> \newcommand\@dotsep{2}
> %\def\l@chapter{\@tocline{0}{0pt}{0pt}{}{}}
> %formatage numérotation TOC
> \renewcommand{\tocsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.}][l]{#2.}\quad}}#3\dotfill}
> \renewcommand{\tocsubsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.00.}][l]{#2.}\quad}}#3\dotfill}
> \renewcommand{\tocsubsubsection}[3]{\indentlabel{\@ifnotempty{#2}{\ignorespaces#1\makebox[\widthof{00.00.00}][l]{#2.}\quad}}#3\dotfill}
> \def\@seccntformat#1{\csname the#1\endcsname.\,}
> \makeatother
>
> \usepackage{subfiles}%tu peux supprimer
> \usepackage{amssymb}%tu peux supprimer
> \usepackage{enumitem}
> \usepackage{thmtools}%tu peux supprimer
> \usepackage{mathtools}%tu peux supprimer
> \usepackage{physics}%tu peux supprimer
> \usepackage{siunitx}%tu peux supprimer
> \usepackage{tensor}%tu peux supprimer
> \usepackage{booktabs}
> \renewcommand{\arraystretch}{1.2}
> \usepackage{titleps}
> \usepackage{lmodern}
> \usepackage[T1]{fontenc}
> \usepackage[french]{babel}
> \usepackage[activate={true, nocompatibility},
>  babel=true,
>     final,
>     tracking=true,
>     kerning=true,
>     spacing=true,
>     factor=1100,
>     stretch=10,
>     shrink=10]{microtype}
> \batchmode%tu peux supprimer
> \usepackage{tikz-cd}%%tu peux supprimer sauf si tu veux des graphismes 
> \errorstopmode%tu peux supprimer
> \usepackage{fixcmex}
> \tikzcdset{arrow style=Latin Modern}
> \frenchspacing
>
> \newpagestyle{main}{
>   \sethead{\scriptsize\thesection.\ \sectiontitle}{}{\scriptsize\thepage}}
> \pagestyle{main}
>
> \setlist{noitemsep, font=\normalfont}
> \setlist[enumerate,1]{labelindent=1.5em, leftmargin=3em, listparindent=0em}
> \setitemize[1]{label={--}}
> \setcounter{tocdepth}{2}
> %A partir de là ça concerne que les maths. Tu peux tout enlever
> \declaretheoremstyle[spaceabove=6pt plus 2pt minus 2pt, spacebelow=6pt plus 2pt minus 2pt, headfont=\scshape, bodyfont=\itshape, postheadspace=5pt plus 1pt minus 1pt]{mythmstyle}
> \declaretheoremstyle[spaceabove=6pt plus 2pt minus 2pt, spacebelow=6pt plus 2pt minus 2pt, headfont=\bfseries, bodyfont=\normalfont, postheadspace=5pt plus 1pt minus 1pt, headformat=\NAME\NOTE]{myremstyle}
> \declaretheoremstyle[spaceabove=3pt plus 2pt minus 2pt, spacebelow=3pt plus 2pt minus 2pt, headfont=\normalfont\itshape, bodyfont=\normalfont, postheadspace=0.5em, qed=$\qedsymbol$]{myproofstyle} 
> \declaretheorem[style=mythmstyle, name=Théorème]{thm}
> \declaretheorem[style=mythmstyle, name=Corollaire, numbered=no]{cor}
> \declaretheorem[style=mythmstyle, name=Lemme]{lem}
> \declaretheorem[style=mythmstyle, name=Lemme]{lemi}
> \declaretheorem[style=myremstyle, name=Définition, numbered=no]{defn}
> \declaretheorem[style=myremstyle, name=Interprétation géométrique, numbered=no]{intge}
> \declaretheorem[style=myremstyle, name=Remarque, numbered=no]{rem}
> \declaretheorem[style=myremstyle, name=Exemple, numbered=no]{ex}
> \declaretheorem[style=myremstyle, name=Contre-Exemple, numbered=no]{nex}
> \declaretheorem[style=myproofstyle, name=Démonstration, numbered=no]{myproof}
>
> \newcommand{\R}{\mathbb{R}}
> \newcommand{\C}{\mathbb{C}}
> \newcommand{\DD}{\mathbb{D}}
> \newcommand{\Q}{\mathbb{Q}}
> \newcommand{\Z}{\mathbb{Z}}
> \newcommand{\N}{\mathbb{N}}
> \newcommand{\M}{\mathbb{M}}
> \newcommand{\F}{\mathbb{F}}
> \newcommand{\A}{\mathbb{A}}
> \newcommand{\PP}{\mathbb{P}}
> \renewcommand{\S}{\mathbb{S}}
> \newcommand{\U}{\mathbb{U}}
> \newcommand{\K}{\mathbb{K}}
> \newcommand{\II}{\mathbb{I}}
> \newcommand{\HH}{\mathbb{H}}
> \newcommand{\TT}{\mathbb{T}}
> \newcommand{\vare}{\varepsilon}
>
> \newcommand{\set}[1]{\left\{#1\right\}}
> \newcommand{\Cinf}{\mathcal{C}^{\infty}}
> \newcommand{\fr}[1]{\mathfrak{#1}}
> \newcommand{\mc}[1]{\mathcal{#1}}
> \newcommand{\mb}[1]{\mathbf{#1}}
> \newcommand{\lis}[2]{#1_1, \dots ,#1_{#2}}
> \newcommand{\kx}{k[X_1,\dots, X_n]}
> \newcommand{\fo}[1]{\mathcal{O}_{#1}}
> \newcommand{\sch}[1]{(#1,\mathcal{O}_{#1})}
> \newcommand{\clos}[1]{\mkern 1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu}
> \newcommand{\Tt}[2]{\tensor[^\intercal]{#1}{_{#2}}}
> \newcommand{\scal}[2]{\left(#1\,\middle\vert\,#2\right)}
> \newcommand{\pscal}[2]{\langle\,#1,#2\,\rangle}
> \newcommand{\intval}[2]{\left[#1,#2\right]}
> \newcommand{\lie}[2]{\left[#1,#2\right]}
> \newcommand\indentdisplays[1]{\everydisplay{\addtolength\displayindent{#1}\addtolength\displaywidth{-#1}}}
> \newcommand{\centrage}{\everydisplay{\addtolength\displayindent{\parindent}\addtolength\displaywidth{-\parindent}}}
> \newcommand{\ff}[1]{#1^{\flat}}
>
> \DeclareMathOperator{\Ab}{\mathbf{Ab}}
> \DeclareMathOperator{\Ad}{Ad}
> \DeclareMathOperator{\ad}{ad}
> \DeclareMathOperator{\Alg}{\mathbf{Alg}}
> \DeclareMathOperator{\Ann}{Ann}
> \DeclareMathOperator{\Ass}{Ass} 
> \DeclareMathOperator{\Aut}{Aut}
> \DeclareMathOperator{\Card}{Card}
> \DeclareMathOperator{\Ch}{\mathbf{Ch}}
> \DeclareMathOperator{\codim}{codim}
> \DeclareMathOperator{\coker}{coker}
> \DeclareMathOperator{\cone}{cone}
> \DeclareMathOperator{\Constr}{Constr}
> \DeclareMathOperator{\Conv}{Conv}
> \DeclareMathOperator{\colim}{colim}
> \DeclareMathOperator{\cont}{cont}
> \DeclareMathOperator{\D}{D}
> \DeclareMathOperator{\depth}{depth}
> \DeclareMathOperator{\Der}{Der}
> \DeclareMathOperator{\diag}{diag}
> \DeclareMathOperator{\Diff}{Diff}
> \DeclareMathOperator{\Div}{Div}
> \DeclareMathOperator{\End}{End} 
> \DeclareMathOperator{\Ext}{Ext}
> \DeclareMathOperator{\Fitt}{Fitt}
> \DeclareMathOperator{\FV}{\mathcal{FV}}
> \DeclareMathOperator{\Gal}{Gal}
> \DeclareMathOperator{\gr}{gr}
> \DeclareMathOperator{\HE}{H}
> \DeclareMathOperator{\height}{height}
> \DeclareMathOperator{\het}{ht}
> \DeclareMathOperator{\Hom}{Hom}
> \DeclareMathOperator{\Hor}{Hor}
> \DeclareMathOperator{\Id}{Id} 
> \DeclareMathOperator{\Ind}{Ind}
> \DeclareMathOperator{\Int}{Int}
> \DeclareMathOperator{\Irrep}{Irrep}
> \DeclareMathOperator{\grade}{grade} 
> \DeclareMathOperator{\length}{length} 
> \DeclareMathOperator{\Long}{long}
> \DeclareMathOperator{\Mat}{Mat}
> \DeclareMathOperator{\Mf}{\mathbf{Mf}}
> \DeclareMathOperator{\fM}{\mathcal{F}\mathbf{M}}
> \DeclareMathOperator{\Mod}{\mathbf{Mod}}
> \DeclareMathOperator{\Mor}{Mor}
> \DeclareMathOperator{\nilrad}{nilrad} 
> \DeclareMathOperator{\Obj}{\mathbf{Obj}}
> \DeclareMathOperator{\Op}{op}
> \DeclareMathOperator{\Out}{Out}
> \DeclareMathOperator{\Pic}{Pic}
> \DeclareMathOperator{\Proj}{Proj} 
> \DeclareMathOperator{\Quot}{Quot}
> \DeclareMathOperator{\rad}{rad} 
> \DeclareMathOperator{\rang}{rang}
> \DeclareMathOperator{\Rep}{Rep}
> \DeclareMathOperator{\Ric}{Ric}
> \DeclareMathOperator{\Set}{\mathbf{Set}}
> \DeclareMathOperator{\Sgn}{sgn}
> \DeclareMathOperator{\Spec}{Spec} 
> \DeclareMathOperator{\SpecMax}{SpecMax} 
> \DeclareMathOperator{\Supp}{Supp}
> \DeclareMathOperator{\Sym}{Sym}
> \DeclareMathOperator{\Tor}{Tor} 
> \DeclareMathOperator{\Tot}{Tot}
> \DeclareMathOperator{\trdeg}{trdeg}
> \DeclareMathOperator{\TE}{T}
> \DeclareMathOperator{\TS}{TS}
> \DeclareMathOperator{\TA}{TA}
> \DeclareMathOperator{\VE}{V}
> \DeclareMathOperator{\Vect}{Vect}
>
> \DeclareMathOperator{\GL}{GL}
> \DeclareMathOperator{\gl}{\fr{gl}}
> \DeclareMathOperator{\Pin}{Pin}
> \DeclareMathOperator{\PGL}{PGL}
> \DeclareMathOperator{\PSL}{PSL}
> \DeclareMathOperator{\SL}{SL}
> \DeclareMathOperator{\Sl}{\fr{sl}}
> \DeclareMathOperator{\SO}{SO}
> \DeclareMathOperator{\so}{\fr{so}}
> \DeclareMathOperator{\OO}{O}
> \DeclareMathOperator{\SP}{Sp}
> \DeclareMathOperator{\Sp}{\fr{sp}}
> \DeclareMathOperator{\Spin}{Spin}
> \DeclareMathOperator{\SU}{SU}
> \DeclareMathOperator{\PSU}{PSU}
> \DeclareMathOperator{\su}{\fr{su}}
> \DeclareMathOperator{\UU}{U}
> \DeclareMathOperator{\uu}{\fr{u}}
>
> %A partir de là ça concerne le texte
>
> \begin{document}
>
> \thispagestyle{empty}
> \tableofcontents
> \vfill\break
>
> \section{Algèbres de Lie complexes semi-simples}
>
> \subsection{Décomposition de Cartan}
>
> Si $L$ est semi-simple finie sur un corps de caractéristique nulle, alors toute algèbre de Cartan $H$ de $L$ est une algèbre \emph{torique} maximale, c'est à dire abélienne et constituée d'éléments semi-simples, et réciproquement. Lorsque le corps est algébriquement clos, les algèbres de Cartan sont celles maximales constituées d'éléments diagonalisables dans la représentation adjointe.
>
> On obtient une décomposition de $L$ suivant les valeurs propres des éléments de $H$ appelées alors \emph{racines} de $L$.
>
> On note $\Phi\subset H^{*}$ l'ensemble des racines non nulles de la décomposition de Cartan $L$ suivant $H$. C'est l'ensemble des formes linéaires $\alpha$ sur $H$ correspondant aux valeurs propres non nulles de la représentation adjointe de $H$ sur $L$. On a toujours $H^*=\C \Phi$. L'espace propre correspondant est noté 
> $$L_{\alpha}=\set{x\in L \mid \forall h\in H\ \lie{h}{x}=\alpha(h)x}$$
> On a alors la \emph{décomposition de Cartan}
> $$L=H \oplus_{\alpha\in \Phi}L_{\alpha}$$
> Pour $h\in H$, on a toujours 
> $$\lie{h}{e_{\alpha}}=\alpha(h)e_{\alpha}$$
> En particulier, les matrices des éléments de $H$ dans la représentation adjointe sont diagonales de diagonale $(\alpha(h))_{\alpha\in \Phi\cup \set{0}}$ dans la base constituée d'une base de $H$ et des générateurs des $L_{\alpha}$ avec $\alpha\in \Phi$
>
> \end{document}
>
>
> You can convert this file by doing `pdflatex myfile.tex`
>
> I keep having error in pandoc
>
> "template" (line 71, column 171):
> unexpected "\\"
> expecting letter
>
>
> What should be kept from the original template, what should be removed, I 
> need some help Is there a tutorial I can follow? 
>
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aa09a597-ce2f-4af6-9e9f-0449e116abfb%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2muduu03s.fsf%40johnmacfarlane.net.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-21  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-19 12:44 How can I create a template from this tex files ? Kopax Anderson
     [not found] ` <aa09a597-ce2f-4af6-9e9f-0449e116abfb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-19 12:50   ` Kopax Anderson
2019-10-21  5:41   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).