Coder Social home page Coder Social logo

Comments (1)

jfernandz avatar jfernandz commented on July 30, 2024

After a few conversations in ascidoctor-mathematical repo I've realised \[\] and \(\) are not part of asciidoc syntax. That's because I've modified and extended my MWE a little bit.

:stem: latexmath
:icons: font

= Table example with latex syntax

== Testing

I'm also testing a few admonitions

[NOTE]
.First admonition
Here you have a note. 
====
.Table inside a block
[cols=".^a,<.^a,>.^a"]
|===
| (Testing text)
[stem]
++++
X_nY_m
++++

| * stem:[X] with stem:[n=i]
* stem:[Y] with stem:[m=j]
| [cols=">.^"]
!===
! Nested ! Table ! Inside
!===
|===
====

IMPORTANT: Here a second admonition with no title.

.Now a ordered list
. First item with a `stem` macro: stem:[\quad \rightarrow \quad a^2 - y_0] 
. Second item with a `[stem]` block
.. For the first subitem
+
[stem]
++++
y = Ln\left(\frac{a}{a_0}\right)
++++

.Picture of a strange plane.
image::./picture.jpg[Picture!]

I'm trying to test stem macros and blocks in different situations. Particularly I'm getting this document body for the .tex file after give the .adoc file to asciidoctor-latex.

%% Begin Document %%

\begin{document}
\maketitle
\hypertarget{x-testing}{\section*{Testing}}
Iā€™m also testing a few admonitions


\admonition{NOTE}{Here you have a note.}
\begin{example}
\begin{center}
\begin{tabular}{|c|c|c|}
\hline
( & \ & \ \\ 
\hline
\end{tabular}
\end{center}
\end{example}

\admonition{IMPORTANT}{Here a second admonition with no title.}
\begin{enumerate}

\item{First item with a \textttlatexmath macro: \quad \rightarrow \quad a^2 - y_0}

\item{Second item with a \texttt{[stem]} block}

\begin{enumerate}

\item{For the first subitem}

\[
y = Ln\left(\frac{a}{a_0}\right)
\]
\end{enumerate}

\end{enumerate}


\begin{figure}[h]{}
\centering\includegraphics[width=2.5truein]{./picture.jpg}
\caption{}

\end{figure}

\end{document}

Obviously there a malformed body as you can see, there lack a lot of math expressions originally included in the .adoc file, mainly those inside table; but also the in-line math in the first item in the ordered list.

from asciidoctor-latex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.