Converting from LaTeX to PreTeXt

279 views
Skip to first unread message

Oscar Chavez

unread,
Aug 23, 2018, 1:03:04 PM8/23/18
to PreTeXt support
I am new to PreTeXt, ready to work on my first document. I would like to use LaTeX content that I already have, but I can't find anywhere whether there is a way to convert that LaTeX source to PreTeXt source. Even if it is not perfect, I'd rather try converting, rather than changing the markup in a 40-page document by hand. Pandoc doesn't do it, although it can convert LaTeX to DocBook. Would that help?

David Farmer

unread,
Aug 23, 2018, 1:13:23 PM8/23/18
to PreTeXt support

Dear Oscar Chavez,

There is no automated way to convert, and there never will be,
because there is no official specification of proper LaTeX markup,
and even if there was, people would keep doing the same crazy
things.

However, I have helped people convert their LaTeX to PreTeXt.
The success depends on how crazy or inconsistent your LaTeX is.

The best way to proceed is to put your files in a GitHub repository
and send me the link. If that is not an option for you, email me
with a suggestion.

However you do it, it is important that I get your LaTeX files in the
exact way you currently compile them, with the existing directory and
file structure. Any attempt to "clean up" the files will just make it
harder for me. I do not need the images.

Regards,

David Farmer
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> pretext-suppo...@googlegroups.com.
> To post to this group, send email to pretext...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/4e52bdfe-3ebe-4a8c-aa27-4180e0b2925f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

Bob Plantz

unread,
Aug 23, 2018, 1:14:30 PM8/23/18
to pretext...@googlegroups.com
I looked into this about a year and a half ago, when I first started using (then) MathBook. I wasted LOTS of time trying to automate the process. I ended up converting a 560 page book by hand. To be fair, it was an adaptation of another book I had written, so it involved a fair amount of rewriting anyway. If you're curious, you can see the two books at bob.cs.sonoma.edu. The online x86_64 book was converted to HTML from LaTeX, the Raspberry Pi book authored in PreTeXt. You can see that converting from LaTeX to HTML is not a pretty process.

My recommendation is to spend your time doing the conversion by hand rather than look for a way to automate the process, unless somebody has come up with a good tool since I tackled the issue. I do think it's worth the effort.

--Bob Plantz

On Thu, Aug 23, 2018 at 10:03 AM Oscar Chavez <chave...@gmail.com> wrote:
I am new to PreTeXt, ready to work on my first document. I would like to use LaTeX content that I already have, but I can't find anywhere whether there is a way to convert that LaTeX source to PreTeXt source. Even if it is not perfect, I'd rather try converting, rather than changing the markup in a 40-page document by hand. Pandoc doesn't do it, although it can convert LaTeX to DocBook. Would that help?

--

David Farmer

unread,
Aug 23, 2018, 2:16:56 PM8/23/18
to pretext...@googlegroups.com

(This is on this thread because it concerns the difficulty of
converting LaTeX to PreTeXt.)

As some of you know, I have made some effort to try to understand
how people actually write LaTeX.

A particular amusement of mine is my list of different ways
people define the macro "\be". Just today I added the 67th
entry to the list. It is:

\boldsymbol{\epsilon}

At the bottom of this email I will paste *some of* the macros
that were in that same paper. Name witheld to protect the guilty.

--David

------------------

\newcommand{\mcA}{\mathcal{A}}
\newcommand{\mcB}{\mathcal{B}}
\newcommand{\mcC}{\mathcal{C}}
\newcommand{\mcD}{\mathcal{D}}
\newcommand{\mcE}{\mathcal{E}}
\newcommand{\mcF}{\mathcal{F}}
\newcommand{\mcG}{\mathcal{G}}
\newcommand{\mcH}{\mathcal{H}}
\newcommand{\mcI}{\mathcal{I}}
\newcommand{\mcJ}{\mathcal{J}}
\newcommand{\mcK}{\mathcal{K}}
\newcommand{\mcL}{\mathcal{L}}
\newcommand{\mcM}{\mathcal{M}}
\newcommand{\mcN}{\mathcal{N}}
\newcommand{\mcO}{\mathcal{O}}
\newcommand{\mcP}{\mathcal{P}}
\newcommand{\mcQ}{\mathcal{Q}}
\newcommand{\mcR}{\mathcal{R}}
\newcommand{\mcS}{\mathcal{S}}
\newcommand{\mcT}{\mathcal{T}}
\newcommand{\mcU}{\mathcal{U}}
\newcommand{\mcV}{\mathcal{V}}
\newcommand{\mcW}{\mathcal{W}}
\newcommand{\mcX}{\mathcal{X}}
\newcommand{\mcY}{\mathcal{Y}}
\newcommand{\mcZ}{\mathcal{Z}}
\newcommand{\msA}{\mathscr{A}}
\newcommand{\msB}{\mathscr{B}}
\newcommand{\msC}{\mathscr{C}}
\newcommand{\msD}{\mathscr{D}}
\newcommand{\msE}{\mathscr{E}}
\newcommand{\msF}{\mathscr{F}}
\newcommand{\msG}{\mathscr{G}}
\newcommand{\msH}{\mathscr{H}}
\newcommand{\msI}{\mathscr{I}}
\newcommand{\msJ}{\mathscr{J}}
\newcommand{\msK}{\mathscr{K}}
\newcommand{\msL}{\mathscr{L}}
\newcommand{\msM}{\mathscr{M}}
\newcommand{\msN}{\mathscr{N}}
\newcommand{\msO}{\mathscr{O}}
\newcommand{\msP}{\mathscr{P}}
\newcommand{\msQ}{\mathscr{Q}}
\newcommand{\msR}{\mathscr{R}}
\newcommand{\msS}{\mathscr{S}}
\newcommand{\msT}{\mathscr{T}}
\newcommand{\msU}{\mathscr{U}}
\newcommand{\msV}{\mathscr{V}}
\newcommand{\msW}{\mathscr{W}}
\newcommand{\msX}{\mathscr{X}}
\newcommand{\msY}{\mathscr{Y}}
\newcommand{\msZ}{\mathscr{Z}}
\newcommand{\mfA}{\mathfrak{A}}
\newcommand{\mfB}{\mathfrak{B}}
\newcommand{\mfC}{\mathfrak{C}}
\newcommand{\mfD}{\mathfrak{D}}
\newcommand{\mfE}{\mathfrak{E}}
\newcommand{\mfF}{\mathfrak{F}}
\newcommand{\mfG}{\mathfrak{G}}
\newcommand{\mfH}{\mathfrak{H}}
\newcommand{\mfI}{\mathfrak{I}}
\newcommand{\mfJ}{\mathfrak{J}}
\newcommand{\mfK}{\mathfrak{K}}
\newcommand{\mfL}{\mathfrak{L}}
\newcommand{\mfM}{\mathfrak{M}}
\newcommand{\mfN}{\mathfrak{N}}
\newcommand{\mfO}{\mathfrak{O}}
\newcommand{\mfP}{\mathfrak{P}}
\newcommand{\mfQ}{\mathfrak{Q}}
\newcommand{\mfR}{\mathfrak{R}}
\newcommand{\mfS}{\mathfrak{S}}
\newcommand{\mfT}{\mathfrak{T}}
\newcommand{\mfU}{\mathfrak{U}}
\newcommand{\mfV}{\mathfrak{V}}
\newcommand{\mfW}{\mathfrak{W}}
\newcommand{\mfX}{\mathfrak{X}}
\newcommand{\mfY}{\mathfrak{Y}}
\newcommand{\mfZ}{\mathfrak{Z}}
\newcommand{\mfa}{\mathfrak{a}}
\newcommand{\mfb}{\mathfrak{b}}
\newcommand{\mfc}{\mathfrak{c}}
\newcommand{\mfd}{\mathfrak{d}}
\newcommand{\mfe}{\mathfrak{e}}
\newcommand{\mff}{\mathfrak{f}}
\newcommand{\mfg}{\mathfrak{g}}
\newcommand{\mfh}{\mathfrak{h}}
\newcommand{\mfi}{\mathfrak{i}}
\newcommand{\mfj}{\mathfrak{j}}
\newcommand{\mfk}{\mathfrak{k}}
\newcommand{\mfl}{\mathfrak{l}}
\newcommand{\mfm}{\mathfrak{m}}
\newcommand{\mfn}{\mathfrak{n}}
\newcommand{\mfo}{\mathfrak{o}}
\newcommand{\mfp}{\mathfrak{p}}
\newcommand{\mfq}{\mathfrak{q}}
\newcommand{\mfr}{\mathfrak{r}}
\newcommand{\mfs}{\mathfrak{s}}
\newcommand{\mft}{\mathfrak{t}}
\newcommand{\mfu}{\mathfrak{u}}
\newcommand{\mfv}{\mathfrak{v}}
\newcommand{\mfw}{\mathfrak{w}}
\newcommand{\mfx}{\mathfrak{x}}
\newcommand{\mfy}{\mathfrak{y}}
\newcommand{\mfz}{\mathfrak{z}}
\newcommand{\tfA}{\textfrak{A}}
\newcommand{\tfB}{\textfrak{B}}
\newcommand{\tfC}{\textfrak{C}}
\newcommand{\tfD}{\textfrak{D}}
\newcommand{\tfE}{\textfrak{E}}
\newcommand{\tfF}{\textfrak{F}}
\newcommand{\tfG}{\textfrak{G}}
\newcommand{\tfH}{\textfrak{H}}
\newcommand{\tfI}{\textfrak{I}}
\newcommand{\tfJ}{\textfrak{J}}
\newcommand{\tfK}{\textfrak{K}}
\newcommand{\tfL}{\textfrak{L}}
\newcommand{\tfM}{\textfrak{M}}
\newcommand{\tfN}{\textfrak{N}}
\newcommand{\tfO}{\textfrak{O}}
\newcommand{\tfP}{\textfrak{P}}
\newcommand{\tfQ}{\textfrak{Q}}
\newcommand{\tfR}{\textfrak{R}}
\newcommand{\tfS}{\textfrak{S}}
\newcommand{\tfT}{\textfrak{T}}
\newcommand{\tfU}{\textfrak{U}}
\newcommand{\tfV}{\textfrak{V}}
\newcommand{\tfW}{\textfrak{W}}
\newcommand{\tfX}{\textfrak{X}}
\newcommand{\tfY}{\textfrak{Y}}
\newcommand{\tfZ}{\textfrak{Z}}
\newcommand{\tfa}{\textfrak{a}}
\newcommand{\tfb}{\textfrak{b}}
\newcommand{\tfc}{\textfrak{c}}
\newcommand{\tfd}{\textfrak{d}}
\newcommand{\tfe}{\textfrak{e}}
\newcommand{\tff}{\textfrak{f}}
\newcommand{\tfg}{\textfrak{g}}
\newcommand{\tfh}{\textfrak{h}}
\newcommand{\tfi}{\textfrak{i}}
\newcommand{\tfj}{\textfrak{j}}
\newcommand{\tfk}{\textfrak{k}}
\newcommand{\tfl}{\textfrak{l}}
\newcommand{\tfm}{\textfrak{m}}
\newcommand{\tfn}{\textfrak{n}}
\newcommand{\tfo}{\textfrak{o}}
\newcommand{\tfp}{\textfrak{p}}
\newcommand{\tfq}{\textfrak{q}}
\newcommand{\tfr}{\textfrak{r}}
\newcommand{\tfs}{\textfrak{s}}
\newcommand{\tft}{\textfrak{t}}
\newcommand{\tfu}{\textfrak{u}}
\newcommand{\tfv}{\textfrak{v}}
\newcommand{\tfw}{\textfrak{w}}
\newcommand{\tfx}{\textfrak{x}}
\newcommand{\tfy}{\textfrak{y}}
\newcommand{\tfz}{\textfrak{z}}
\newcommand{\tgA}{\textgoth{A}}
\newcommand{\tgB}{\textgoth{B}}
\newcommand{\tgC}{\textgoth{C}}
\newcommand{\tgD}{\textgoth{D}}
\newcommand{\tgE}{\textgoth{E}}
\newcommand{\tgF}{\textgoth{F}}
\newcommand{\tgG}{\textgoth{G}}
\newcommand{\tgH}{\textgoth{H}}
\newcommand{\tgI}{\textgoth{I}}
\newcommand{\tgJ}{\textgoth{J}}
\newcommand{\tgK}{\textgoth{K}}
\newcommand{\tgL}{\textgoth{L}}
\newcommand{\tgM}{\textgoth{M}}
\newcommand{\tgN}{\textgoth{N}}
\newcommand{\tgO}{\textgoth{O}}
\newcommand{\tgP}{\textgoth{P}}
\newcommand{\tgQ}{\textgoth{Q}}
\newcommand{\tgR}{\textgoth{R}}
\newcommand{\tgS}{\textgoth{S}}
\newcommand{\tgT}{\textgoth{T}}
\newcommand{\tgU}{\textgoth{U}}
\newcommand{\tgV}{\textgoth{V}}
\newcommand{\tgW}{\textgoth{W}}
\newcommand{\tgX}{\textgoth{X}}
\newcommand{\tgY}{\textgoth{Y}}
\newcommand{\tgZ}{\textgoth{Z}}
\newcommand{\tga}{\textgoth{a}}
\newcommand{\tgb}{\textgoth{b}}
\newcommand{\tgc}{\textgoth{c}}
\newcommand{\tgd}{\textgoth{d}}
\newcommand{\tge}{\textgoth{e}}
\newcommand{\tgf}{\textgoth{f}}
\newcommand{\tgg}{\textgoth{g}}
\newcommand{\tgh}{\textgoth{h}}
\newcommand{\tgi}{\textgoth{i}}
\newcommand{\tgj}{\textgoth{j}}
\newcommand{\tgk}{\textgoth{k}}
\newcommand{\tgl}{\textgoth{l}}
\newcommand{\tgm}{\textgoth{m}}
\newcommand{\tgn}{\textgoth{n}}
\newcommand{\tgo}{\textgoth{o}}
\newcommand{\tgp}{\textgoth{p}}
\newcommand{\tgq}{\textgoth{q}}
\newcommand{\tgr}{\textgoth{r}}
\newcommand{\tgs}{\textgoth{s}}
\newcommand{\tgt}{\textgoth{t}}
\newcommand{\tgu}{\textgoth{u}}
\newcommand{\tgv}{\textgoth{v}}
\newcommand{\tgw}{\textgoth{w}}
\newcommand{\tgx}{\textgoth{x}}
\newcommand{\tgy}{\textgoth{y}}
\newcommand{\tgz}{\textgoth{z}}
\newcommand{\tsA}{\textswab{A}}
\newcommand{\tsB}{\textswab{B}}
\newcommand{\tsC}{\textswab{C}}
\newcommand{\tsD}{\textswab{D}}
\newcommand{\tsE}{\textswab{E}}
\newcommand{\tsF}{\textswab{F}}
\newcommand{\tsG}{\textswab{G}}
\newcommand{\tsH}{\textswab{H}}
\newcommand{\tsI}{\textswab{I}}
\newcommand{\tsJ}{\textswab{J}}
\newcommand{\tsK}{\textswab{K}}
\newcommand{\tsL}{\textswab{L}}
\newcommand{\tsM}{\textswab{M}}
\newcommand{\tsN}{\textswab{N}}
\newcommand{\tsO}{\textswab{O}}
\newcommand{\tsP}{\textswab{P}}
\newcommand{\tsQ}{\textswab{Q}}
\newcommand{\tsR}{\textswab{R}}
\newcommand{\tsS}{\textswab{S}}
\newcommand{\tsT}{\textswab{T}}
\newcommand{\tsU}{\textswab{U}}
\newcommand{\tsV}{\textswab{V}}
\newcommand{\tsW}{\textswab{W}}
\newcommand{\tsX}{\textswab{X}}
\newcommand{\tsY}{\textswab{Y}}
\newcommand{\tsZ}{\textswab{Z}}
\newcommand{\tsa}{\textswab{a}}
\newcommand{\tsb}{\textswab{b}}
\newcommand{\tsc}{\textswab{c}}
\newcommand{\tsd}{\textswab{d}}
\newcommand{\tse}{\textswab{e}}
\newcommand{\tsf}{\textswab{f}}
\newcommand{\tsg}{\textswab{g}}
\newcommand{\tsh}{\textswab{h}}
\newcommand{\tsi}{\textswab{i}}
\newcommand{\tsj}{\textswab{j}}
\newcommand{\tsk}{\textswab{k}}
\newcommand{\tsl}{\textswab{l}}
\newcommand{\tsm}{\textswab{m}}
\newcommand{\tsn}{\textswab{n}}
\newcommand{\tso}{\textswab{o}}
\newcommand{\tsp}{\textswab{p}}
\newcommand{\tsq}{\textswab{q}}
\newcommand{\tsr}{\textswab{r}}
\newcommand{\tss}{\textswab{s}}
\newcommand{\tst}{\textswab{t}}
\newcommand{\tsu}{\textswab{u}}
\newcommand{\tsv}{\textswab{v}}
\newcommand{\tsw}{\textswab{w}}
\newcommand{\tsx}{\textswab{x}}
\newcommand{\tsy}{\textswab{y}}
\newcommand{\tsz}{\textswab{z}}
\newcommand{\mbbA}{\mathbb{A}}
\newcommand{\mbbB}{\mathbb{B}}
\newcommand{\mbbC}{\mathbb{C}}
\newcommand{\mbbD}{\mathbb{D}}
\newcommand{\mbbE}{\mathbb{E}}
\newcommand{\mbbF}{\mathbb{F}}
\newcommand{\mbbG}{\mathbb{G}}
\newcommand{\mbbH}{\mathbb{H}}
\newcommand{\mbbI}{\mathbb{I}}
\newcommand{\mbbJ}{\mathbb{J}}
\newcommand{\mbbK}{\mathbb{K}}
\newcommand{\mbbL}{\mathbb{L}}
\newcommand{\mbbM}{\mathbb{M}}
\newcommand{\mbbN}{\mathbb{N}}
\newcommand{\mbbO}{\mathbb{O}}
\newcommand{\mbbP}{\mathbb{P}}
\newcommand{\mbbQ}{\mathbb{Q}}
\newcommand{\mbbR}{\mathbb{R}}
\newcommand{\mbbS}{\mathbb{S}}
\newcommand{\mbbT}{\mathbb{T}}
\newcommand{\mbbU}{\mathbb{U}}
\newcommand{\mbbV}{\mathbb{V}}
\newcommand{\mbbW}{\mathbb{W}}
\newcommand{\mbbX}{\mathbb{X}}
\newcommand{\mbbY}{\mathbb{Y}}
\newcommand{\mbbZ}{\mathbb{Z}}
\newcommand{\mbba}{\mathbb{a}}
\newcommand{\mbbb}{\mathbb{b}}
\newcommand{\mbbc}{\mathbb{c}}
\newcommand{\mbbd}{\mathbb{d}}
\newcommand{\mbbe}{\mathbb{e}}
\newcommand{\mbbf}{\mathbb{f}}
\newcommand{\mbbg}{\mathbb{g}}
\newcommand{\mbbh}{\mathbb{h}}
\newcommand{\mbbi}{\mathbb{i}}
\newcommand{\mbbj}{\mathbb{j}}
\newcommand{\mbbk}{\mathbb{k}}
\newcommand{\mbbl}{\mathbb{l}}
\newcommand{\mbbm}{\mathbb{m}}
\newcommand{\mbbn}{\mathbb{n}}
\newcommand{\mbbo}{\mathbb{o}}
\newcommand{\mbbp}{\mathbb{p}}
\newcommand{\mbbq}{\mathbb{q}}
\newcommand{\mbbr}{\mathbb{r}}
\newcommand{\mbbs}{\mathbb{s}}
\newcommand{\mbbt}{\mathbb{t}}
\newcommand{\mbbu}{\mathbb{u}}
\newcommand{\mbbv}{\mathbb{v}}
\newcommand{\mbbw}{\mathbb{w}}
\newcommand{\mbbx}{\mathbb{x}}
\newcommand{\mbby}{\mathbb{y}}
\newcommand{\mbbz}{\mathbb{z}}
\newcommand{\mbfA}{\mathbf{A}}
\newcommand{\mbfB}{\mathbf{B}}
\newcommand{\mbfC}{\mathbf{C}}
\newcommand{\mbfD}{\mathbf{D}}
\newcommand{\mbfE}{\mathbf{E}}
\newcommand{\mbfF}{\mathbf{F}}
\newcommand{\mbfG}{\mathbf{G}}
\newcommand{\mbfH}{\mathbf{H}}
\newcommand{\mbfI}{\mathbf{I}}
\newcommand{\mbfJ}{\mathbf{J}}
\newcommand{\mbfK}{\mathbf{K}}
\newcommand{\mbfL}{\mathbf{L}}
\newcommand{\mbfM}{\mathbf{M}}
\newcommand{\mbfN}{\mathbf{N}}
\newcommand{\mbfO}{\mathbf{O}}
\newcommand{\mbfP}{\mathbf{P}}
\newcommand{\mbfQ}{\mathbf{Q}}
\newcommand{\mbfR}{\mathbf{R}}
\newcommand{\mbfS}{\mathbf{S}}
\newcommand{\mbfT}{\mathbf{T}}
\newcommand{\mbfU}{\mathbf{U}}
\newcommand{\mbfV}{\mathbf{V}}
\newcommand{\mbfW}{\mathbf{W}}
\newcommand{\mbfX}{\mathbf{X}}
\newcommand{\mbfY}{\mathbf{Y}}
\newcommand{\mbfZ}{\mathbf{Z}}
\newcommand{\mbfa}{\mathbf{a}}
\newcommand{\mbfb}{\mathbf{b}}
\newcommand{\mbfc}{\mathbf{c}}
\newcommand{\mbfd}{\mathbf{d}}
\newcommand{\mbfe}{\mathbf{e}}
\newcommand{\mbff}{\mathbf{f}}
\newcommand{\mbfg}{\mathbf{g}}
\newcommand{\mbfh}{\mathbf{h}}
\newcommand{\mbfi}{\mathbf{i}}
\newcommand{\mbfj}{\mathbf{j}}
\newcommand{\mbfk}{\mathbf{k}}
\newcommand{\mbfl}{\mathbf{l}}
\newcommand{\mbfm}{\mathbf{m}}
\newcommand{\mbfn}{\mathbf{n}}
\newcommand{\mbfo}{\mathbf{o}}
\newcommand{\mbfp}{\mathbf{p}}
\newcommand{\mbfq}{\mathbf{q}}
\newcommand{\mbfr}{\mathbf{r}}
\newcommand{\mbfs}{\mathbf{s}}
\newcommand{\mbft}{\mathbf{t}}
\newcommand{\mbfu}{\mathbf{u}}
\newcommand{\mbfv}{\mathbf{v}}
\newcommand{\mbfw}{\mathbf{w}}
\newcommand{\mbfx}{\mathbf{x}}
\newcommand{\mbfy}{\mathbf{y}}
\newcommand{\mbfz}{\mathbf{z}}
\newcommand{\0}{\mathbf{0}}
\newcommand{\3}{\mathbf{3}}
\newcommand{\4}{\mathbf{4}}
\newcommand{\5}{\mathbf{5}}
\newcommand{\6}{\mathbf{6}}
\newcommand{\7}{\mathbf{7}}
\newcommand{\8}{\mathbf{8}}
\newcommand{\9}{\mathbf{9}}
\renewcommand{\a}{\alpha}
\renewcommand{\b}{\beta}
\renewcommand{\c}{\chi}
\renewcommand{\d}{\delta}
\newcommand{\e}{\epsilon}
\newcommand{\f}{\phi}
\newcommand{\g}{\gamma}
\newcommand{\ph}{\phi}
\newcommand{\vph}{\varphi}
\newcommand{\et}{\eta}
\renewcommand{\i}{\iota}
\renewcommand{\j}{\upsilon}
\renewcommand{\k}{\kappa}
\renewcommand{\l}{\lambda}
\newcommand{\m}{\mu}
\newcommand{\n}{\nu}
\newcommand{\p}{\pi}
\newcommand{\ps}{\psi}
\renewcommand{\r}{\rho}
\newcommand{\s}{\sigma}
\renewcommand{\t}{\tau}
\renewcommand{\th}{\theta}
\renewcommand{\v}{\vartheta}
\newcommand{\w}{\omega}
\newcommand{\x}{\xi}
\newcommand{\z}{\zeta}
\newcommand{\D}{\Delta}
\newcommand{\F}{\Phi}
\newcommand{\G}{\Gamma}
\newcommand{\Ph}{\Phi}
\newcommand{\Up}{\Upsilon}
\newcommand{\K}{\Kappa}
\renewcommand{\L}{\Lambda}
\renewcommand{\O}{\Omega}
\renewcommand{\P}{\Pi}
\newcommand{\Ps}{\Psi}
\renewcommand{\S}{\Sigma}
\newcommand{\Th}{\Theta}
\newcommand{\W}{\Omega}
\newcommand{\X}{\Xi}
\newcommand{\ba}{\boldsymbol{\alpha}}
\newcommand{\bb}{\boldsymbol{\beta}}
\newcommand{\bc}{\boldsymbol{\chi}}
\newcommand{\bd}{\boldsymbol{\delta}}
\newcommand{\be}{\boldsymbol{\epsilon}}
\newcommand{\bg}{\boldsymbol{\gamma}}
\newcommand{\bph}{\boldsymbol{\phi}}
\newcommand{\bvph}{\boldsymbol{\varphi}}
\newcommand{\bet}{\boldsymbol{\eta}}
\newcommand{\bi}{\boldsymbol{\iota}}
\newcommand{\bup}{\boldsymbol{\upsilon}}
\newcommand{\bk}{\boldsymbol{\kappa}}
\newcommand{\bl}{\boldsymbol{\lambda}}
\newcommand{\bm}{\boldsymbol{\mu}}
\newcommand{\bn}{\boldsymbol{\nu}}
\newcommand{\bp}{\boldsymbol{\pi}}
\newcommand{\bps}{\boldsymbol{\psi}}
\newcommand{\br}{\boldsymbol{\rho}}
\newcommand{\bs}{\boldsymbol{\sigma}}
\newcommand{\bt}{\boldsymbol{\tau}}
\newcommand{\bth}{\boldsymbol{\theta}}
\newcommand{\bv}{\boldsymbol{\vartheta}}
\newcommand{\bw}{\boldsymbol{\omega}}
\newcommand{\bx}{\boldsymbol{\xi}}
\newcommand{\bchi}{\boldsymbol{\chi}}
\newcommand{\bz}{\boldsymbol{\zeta}}
\newcommand{\bD}{\boldsymbol{\Delta}}
\newcommand{\bF}{\boldsymbol{\Phi}}
\newcommand{\bG}{\boldsymbol{\Gamma}}
\newcommand{\bPh}{\boldsymbol{\Phi}}
\newcommand{\bUp}{\boldsymbol{\Upsilon}}
\newcommand{\bL}{\boldsymbol{\Lambda}}
\newcommand{\bO}{\boldsymbol{\Omega}}
\newcommand{\bP}{\boldsymbol{\Pi}}
\newcommand{\bPs}{\boldsymbol{\Psi}}
\newcommand{\bS}{\boldsymbol{\Sigma}}
\newcommand{\bTh}{\boldsymbol{\Theta}}
\newcommand{\bW}{\boldsymbol{\Omega}}
\newcommand{\bX}{\boldsymbol{\Xi}}

David Farmer

unread,
Aug 23, 2018, 4:41:11 PM8/23/18
to pretext...@googlegroups.com

It you are pretty good at regular expressions in perl or python,
or are pretty good at using a real text editor, then you will learn a lot
about the PreTeXt markup if you convert your book yourself.

If not, then I can give it a try.

And even if you are, maybe you can try doing it yourself and also
ask me, and then compare.

Either way, make sure you can successfully build HTML and TeX from
both the sample article and sample book, and that you can add
material to either of those and have it do what you want. You need
to get over that first bump before you start working with your
converted LaTeX that initially will contain errors.

David
> To view this discussion on the web visithttps://groups.google.com/d/msgid/pretext-support/CAEDO_YXAh8Oe6%3DRBp-%2B7a2R-FQ%2BkvW7HZFMS%2B1gd4_tgLUAQ
> 6g%40mail.gmail.com.

Oscar Chavez

unread,
Aug 29, 2018, 9:37:48 AM8/29/18
to PreTeXt support
Fortunately, I don't use \newcommand all that much, if at all. This list of new commands is awful!

Oscar Chavez

unread,
Aug 29, 2018, 9:38:25 AM8/29/18
to PreTeXt support
I'll do that. I apologize for the late response. Thank you very much.

Oscar
Reply all
Reply to author
Forward
0 new messages