GeneralUse LaTeX without learning it

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
financialwar
Posts: 29
Joined: Wed Jul 18, 2012 4:55 pm

Use LaTeX without learning it

Post by financialwar »

Anki (flashcard program) has a built in LaTeX support. Would it be possible to use a program such as LyX to generate LaTeX code and put it in Anki, that way I can postpone/avoid learning LaTeX?
MiKTex 2.9, Texmaker 3.5 on Windows 7
Learning LaTeX for Finance and Actuarial Studies.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: Use LaTeX without learning it

Post by Stefan Kottwitz »

Yes, that's possible. You could use LyX as a WYSIWYM tool, export the document as LaTeX code, and copy the relevant LaTeX lines into Anki.

However, I recommend to learn a bit LaTeX. The basic LaTeX, which you would use for short texts on flashcards, is not very hard. You don't need to learn about macro definitions, packages, and classes. I even think, once you have gone the way via export and copy, you have seen and learnt the used LaTeX syntax.

Stefan
LaTeX.org admin
financialwar
Posts: 29
Joined: Wed Jul 18, 2012 4:55 pm

Use LaTeX without learning it

Post by financialwar »

I have been trying to figure out how to export what I have done in LyX's tutorial so far to Anki, I first exported it has plain LaTeX file. The full code is

Code: Select all

%% LyX 2.0.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[oneside,english]{book}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{amsthm}
\usepackage{amsmath}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}

\makeatother

\usepackage{babel}
\begin{document}
This is my first Lyx document!


\section{This is an introduction to my first Lyx document.}


\section{About This Document.}

Sections and subsections are described below. 


\subsection{Section Description }

Sections are bigger than subsections. 


\subsection{Subsection description }

Subsections are smaller than sections.


\section{More Stuff.}

Lyx is better than other word processors because
\begin{enumerate}
\item Tysetting is done for you.
\item Math is WYSIWYG
\item Lists are very easy to create!\end{enumerate}

\end{document}
If I put the full code in Anki it will give me error, I figure that Anki will only aloud me to use

Code: Select all

This is my first Lyx document!


\section{This is an introduction to my first Lyx document.}


\section{About This Document.}

Sections and subsections are described below. 


\subsection{Section Description }

Sections are bigger than subsections. 


\subsection{Subsection description }

Subsections are smaller than sections.


\section{More Stuff.}

Lyx is better than other word processors because
\begin{enumerate}
\item Tysetting is done for you.
\item Math is WYSIWYG
\item Lists are very easy to create!\end{enumerate}
Is there a way to get font information into Anki because everything look so large.
MiKTex 2.9, Texmaker 3.5 on Windows 7
Learning LaTeX for Finance and Actuarial Studies.
Post Reply