pandoc-crossref 0.3.19 → 0.3.20
raw patch · 24 files changed
+208/−232 lines, 24 filesdep ~pandocPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: pandoc
API changes (from Hackage documentation)
+ Text.Pandoc.CrossRef: autoEqnLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: autoSectionLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: ccsDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: ccsLabelSep :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: ccsTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: chapDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: chapters :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: chaptersDepth :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: codeBlockCaptions :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: cref :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: crossrefYaml :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: customHeadingLabel :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: customLabel :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnBlockInlineMath :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnBlockTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnDisplayTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnIndexTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnInlineTableTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnInlineTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnPrefix :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: eqnPrefixTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: equationNumberTeX :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: figLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: figPrefix :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: figPrefixTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: figureTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: figureTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: getOptions :: Meta -> Maybe Format -> Options
+ Text.Pandoc.CrossRef: lastDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: linkReferences :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: listItemTitleDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: listOfMetadata :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: listingTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: listingTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: listings :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lofItemTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lofItemTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lofTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lolItemTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lolItemTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lolTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lotItemTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lotItemTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lotTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lstLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lstPrefix :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: lstPrefixTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: nameInLink :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: numberSections :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: outFormat :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: pairDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: rangeDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: refDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: refIndexTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: secHeaderDelim :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: secHeaderTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: secLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: secPrefix :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: secPrefixTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: sectionsDepth :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: setLabelAttribute :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: subfigGrid :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: subfigLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: subfigureChildTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: subfigureRefIndexTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: subfigureTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tableEqns :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tableTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tableTitle :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tblLabels :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tblPrefix :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: tblPrefixTemplate :: ToMetaValue a => a -> Meta
+ Text.Pandoc.CrossRef: titleDelim :: ToMetaValue a => a -> Meta
Files
- CHANGELOG.md +10/−0
- pandoc-crossref.cabal +8/−8
- test/m2m/emptyChapterLabels/expect.tex +1/−1
- test/m2m/eqnInlineTableTemplate/expect.md +3/−4
- test/m2m/equations-tables-auto/expect.md +24/−32
- test/m2m/equations-tables/expect.md +12/−16
- test/m2m/label-precedence/expect.tex +3/−3
- test/m2m/listOfHidden/expect.tex +20/−20
- test/m2m/listOfLinked/expect.tex +9/−9
- test/m2m/listOfOrdering/expect.tex +5/−5
- test/m2m/listOfTemplates-buillet-list/expect.tex +9/−9
- test/m2m/listOfTemplates-ord-list/expect.tex +9/−9
- test/m2m/listOfTemplates/expect.tex +9/−9
- test/m2m/loxItemTitle/expect.tex +9/−9
- test/m2m/numberOverride/expect.tex +7/−7
- test/m2m/secLabels/expect.tex +1/−1
- test/m2m/setLabelAttribute/expect.tex +1/−1
- test/m2m/subfigures-ccsDelim/expect.tex +18/−18
- test/m2m/subfigures-grid/expect.md +10/−31
- test/m2m/subfigures-grid/expect.tex +18/−18
- test/m2m/subfigures-one-row/expect.tex +2/−2
- test/m2m/subfigures/expect.tex +18/−18
- test/m2m/titlesInRefs/expect.tex +1/−1
- test/test-pandoc-crossref.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,13 @@+## 0.3.20++- Support Pandoc 3.7++- Minimal supported Pandoc version is 3.7.0.2++ This is mostly because some changes in 3.7 break tests.++No other changes since 0.3.19.+ ## 0.3.19 ### New features
pandoc-crossref.cabal view
@@ -1,11 +1,11 @@ cabal-version: 2.0 --- This file has been generated from package.yaml by hpack version 0.36.1.+-- This file has been generated from package.yaml by hpack version 0.37.0. -- -- see: https://github.com/sol/hpack name: pandoc-crossref-version: 0.3.19+version: 0.3.20 synopsis: Pandoc filter for cross-references description: pandoc-crossref is a pandoc filter for numbering figures, equations, tables and cross-references to them. category: Text@@ -158,7 +158,7 @@ build-depends: base >=4.16 && <5 , mtl >=1.1 && <2.4- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-crossref-internal , pandoc-types ==1.23.* , text >=1.2.2 && <2.2@@ -211,7 +211,7 @@ , microlens-mtl >=0.2.0.1 && <0.3.0.0 , microlens-th >=0.4.3.10 && <0.5.0.0 , mtl >=1.1 && <2.4- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-types ==1.23.* , syb >=0.4 && <0.8 , template-haskell >=2.7.0.0 && <3.0.0.0@@ -241,7 +241,7 @@ , gitrev >=1.3.1 && <1.4 , open-browser ==0.2.* , optparse-applicative >=0.13 && <0.19- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-crossref , pandoc-types ==1.23.* , template-haskell >=2.7.0.0 && <3.0.0.0@@ -271,7 +271,7 @@ , directory >=1 && <1.4 , filepath >=1.1 && <1.6 , hspec >=2.4.4 && <3- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-crossref , pandoc-types ==1.23.* , text >=1.2.2 && <2.2@@ -306,7 +306,7 @@ , hspec >=2.4.4 && <3 , microlens >=0.4.12.0 && <0.5.0.0 , mtl >=1.1 && <2.4- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-crossref , pandoc-crossref-internal , pandoc-types ==1.23.*@@ -335,7 +335,7 @@ build-depends: base >=4.16 && <5 , criterion >=1.5.9.0 && <1.7- , pandoc >=3.1.8 && <3.7+ , pandoc >=3.7.0.2 && <3.8 , pandoc-crossref , pandoc-types ==1.23.* , text >=1.2.2 && <2.2
test/m2m/emptyChapterLabels/expect.tex view
@@ -4,7 +4,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{./image.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Figure1}]{./image.png}} \caption{Figure1}\label{fig:figure1} \end{figure}
test/m2m/eqnInlineTableTemplate/expect.md view
@@ -1,8 +1,7 @@ ::: {#eq:euler}-+:-------------------------------------------------------------:+-----:+-| $$ e^{i\pi} = -1 (1) (1) 1 1 $$ | $$( |-| | 1)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ e^{i\pi} = -1 (1) (1) 1 1 $$ | $$(1)$$ |++---------------------------------------------------------------+---------+ ::: eq. 1
test/m2m/equations-tables-auto/expect.md view
@@ -2,10 +2,9 @@ <div> -+:-------------------------------------------------------------:+-----:+-| $$ this $$ | $$( |-| | 1)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ this $$ | $$(1)$$ |++---------------------------------------------------------------+---------+ </div> @@ -13,10 +12,9 @@ <div> -+:-------------------------------------------------------------:+-----:+-| $$ for example $$ | $$( |-| | 2)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ for example $$ | $$(2)$$ |++---------------------------------------------------------------+---------+ </div> @@ -26,10 +24,9 @@ <div> -+:-------------------------------------------------------------:+-----:+-| $$ start $$ | $$( |-| | 3)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ start $$ | $$(3)$$ |++---------------------------------------------------------------+---------+ </div> @@ -39,10 +36,9 @@ <div> -+:-------------------------------------------------------------:+-----:+-| $$ separate $$ | $$( |-| | 4)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ separate $$ | $$(4)$$ |++---------------------------------------------------------------+---------+ </div> @@ -51,19 +47,17 @@ This is a test file with some referenced equations, line ::: {#eq:0}-+:-------------------------------------------------------------:+-----:+-| $$ this $$ | $$( |-| | 5)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ this $$ | $$(5)$$ |++---------------------------------------------------------------+---------+ ::: Some equations might be inside of text, ::: {#eq:1}-+:-------------------------------------------------------------:+-----:+-| $$ for example $$ | $$( |-| | 6)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ for example $$ | $$(6)$$ |++---------------------------------------------------------------+---------+ ::: this one.@@ -71,10 +65,9 @@ Some equations might be on start of paragraphs: ::: {#eq:2}-+:-------------------------------------------------------------:+-----:+-| $$ start $$ | $$( |-| | 7)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ start $$ | $$(7)$$ |++---------------------------------------------------------------+---------+ ::: of paragraph.@@ -82,10 +75,9 @@ Other might be on separate paragraphs of their own: ::: {#eq:3}-+:-------------------------------------------------------------:+-----:+-| $$ separate $$ | $$( |-| | 8)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ separate $$ | $$(8)$$ |++---------------------------------------------------------------+---------+ ::: Then they can be referenced:
test/m2m/equations-tables/expect.md view
@@ -15,19 +15,17 @@ This is a test file with some referenced equations, line ::: {#eq:0}-+:-------------------------------------------------------------:+-----:+-| $$ this $$ | $$( |-| | 1)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ this $$ | $$(1)$$ |++---------------------------------------------------------------+---------+ ::: Some equations might be inside of text, ::: {#eq:1}-+:-------------------------------------------------------------:+-----:+-| $$ for example $$ | $$( |-| | 2)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ for example $$ | $$(2)$$ |++---------------------------------------------------------------+---------+ ::: this one.@@ -35,10 +33,9 @@ Some equations might be on start of paragraphs: ::: {#eq:2}-+:-------------------------------------------------------------:+-----:+-| $$ start $$ | $$( |-| | 3)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ start $$ | $$(3)$$ |++---------------------------------------------------------------+---------+ ::: of paragraph.@@ -46,10 +43,9 @@ Other might be on separate paragraphs of their own: ::: {#eq:3}-+:-------------------------------------------------------------:+-----:+-| $$ separate $$ | $$( |-| | 4)$$ |-+---------------------------------------------------------------+------+++:-------------------------------------------------------------:+--------:++| $$ separate $$ | $$(4)$$ |++---------------------------------------------------------------+---------+ ::: Then they can be referenced:
test/m2m/label-precedence/expect.tex view
@@ -4,7 +4,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{image.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={A figure}]{image.png}} \caption{A figure}\label{fig:fig1} \end{figure} @@ -14,7 +14,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{image.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={A figure with custom label}]{image.png}} \caption{A figure with custom label}\label{fig:fig2} \end{figure} @@ -26,7 +26,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Figure}]{fig.png}} \caption{Figure}\label{fig:fig3} \end{figure}
test/m2m/listOfHidden/expect.tex view
@@ -5,7 +5,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first figure}]{figs/fig1.jpg}} \caption{first figure}\label{fig:fig1} \end{figure} @@ -13,7 +13,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second figure}]{figs/fig2.jpg}} \caption{second figure}\label{fig:fig2} \end{figure} @@ -21,7 +21,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig3.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={third figure}]{figs/fig3.jpg}} \caption{third figure}\label{fig:fig3} \end{figure} @@ -30,13 +30,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! first supp figure}]{figs/fig_s1.jpg}} \caption[]{hidden! first supp figure}\label{fig:fig_s1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! second supp figure}]{figs/fig_s2.jpg}} \caption[]{hidden! second supp figure}\label{fig:fig_s2} \end{figure} @@ -44,13 +44,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! first hidden figure}]{figs/fig_s1.jpg}} \caption[]{hidden! first hidden figure}\label{fig:fig_h1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! second hidden figure}]{figs/fig_s2.jpg}} \caption[]{hidden! second hidden figure}\label{fig:fig_h2} \end{figure} @@ -59,13 +59,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! first hidden subsection figure}]{figs/fig_s1.jpg}} \caption[]{hidden! first hidden subsection figure}\label{fig:fig_h1_s} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! second hidden subsection figure}]{figs/fig_s2.jpg}} \caption[]{hidden! second hidden subsection figure}\label{fig:fig_h2_s} \end{figure} @@ -73,13 +73,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first regular section figure}]{figs/fig_s1.jpg}} \caption{first regular section figure}\label{fig:fig_r1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second regular section figure}]{figs/fig_s2.jpg}} \caption{second regular section figure}\label{fig:fig_r2} \end{figure} @@ -87,13 +87,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first normal subsection figure}]{figs/fig_s1.jpg}} \caption{first normal subsection figure}\label{fig:fig_nss1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second normal subsection figure}]{figs/fig_s2.jpg}} \caption{second normal subsection figure}\label{fig:fig_nss2} \end{figure} @@ -101,28 +101,28 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! first hidden subsection figure}]{figs/fig_s1.jpg}} \caption[]{hidden! first hidden subsection figure}\label{fig:fig_ss1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! second hidden subsection figure}]{figs/fig_s2.jpg}} \caption[]{hidden! second hidden subsection figure}\label{fig:fig_ss2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s3.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={visible! overridden visibility}]{figs/fig_s3.jpg}} \caption{visible! overridden visibility}\label{fig:fig_ss3} \end{figure} \begin{pandoccrossrefsubfigures} \subfloat[hidden!-subfigure1]{\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}\label{fig:fig_sss1}}+subfigure1]{\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! subfigure1}]{figs/fig_s2.jpg}}\label{fig:fig_sss1}} \subfloat[hidden!-subfigure2]{\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}\label{fig:fig_sss2}}+subfigure2]{\pandocbounded{\includegraphics[keepaspectratio,alt={hidden! subfigure2}]{figs/fig_s2.jpg}}\label{fig:fig_sss2}} \caption[]{hidden! subfigures}\label{fig:subfigs} @@ -190,13 +190,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first other regular section figure}]{figs/fig_s1.jpg}} \caption{first other regular section figure}\label{fig:fig_or1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second other regular section figure}]{figs/fig_s2.jpg}} \caption{second other regular section figure}\label{fig:fig_or2} \end{figure}
test/m2m/listOfLinked/expect.tex view
@@ -1,54 +1,54 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}} \caption{1}\label{fig:1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}} \caption{2}\label{fig:2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}} \caption{3}\label{fig:3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}} \caption{4}\label{fig:4} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}} \caption{5}\label{fig:5} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}} \caption{6}\label{fig:6} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}} \caption{7}\label{fig:7} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}} \caption{8}\label{fig:8} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}} \caption{9}\label{fig:9} \end{figure}
test/m2m/listOfOrdering/expect.tex view
@@ -5,7 +5,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first figure}]{figs/fig1.jpg}} \caption{first figure}\label{fig:fig1} \end{figure} @@ -13,7 +13,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second figure}]{figs/fig2.jpg}} \caption{second figure}\label{fig:fig2} \end{figure} @@ -21,7 +21,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig3.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={third figure}]{figs/fig3.jpg}} \caption{third figure}\label{fig:fig3} \end{figure} @@ -29,13 +29,13 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s1.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={first supp figure}]{figs/fig_s1.jpg}} \caption{first supp figure}\label{fig:fig_s1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figs/fig_s2.jpg}}+\pandocbounded{\includegraphics[keepaspectratio,alt={second supp figure}]{figs/fig_s2.jpg}} \caption{second supp figure}\label{fig:fig_s2} \end{figure}
test/m2m/listOfTemplates-buillet-list/expect.tex view
@@ -1,54 +1,54 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}} \caption{1}\label{fig:1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}} \caption{2}\label{fig:2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}} \caption{3}\label{fig:3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}} \caption{4}\label{fig:4} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}} \caption{5}\label{fig:5} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}} \caption{6}\label{fig:6} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}} \caption{7}\label{fig:7} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}} \caption{8}\label{fig:8} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}} \caption{9}\label{fig:9} \end{figure}
test/m2m/listOfTemplates-ord-list/expect.tex view
@@ -1,54 +1,54 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}} \caption{1}\label{fig:1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}} \caption{2}\label{fig:2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}} \caption{3}\label{fig:3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}} \caption{4}\label{fig:4} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}} \caption{5}\label{fig:5} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}} \caption{6}\label{fig:6} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}} \caption{7}\label{fig:7} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}} \caption{8}\label{fig:8} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}} \caption{9}\label{fig:9} \end{figure}
test/m2m/listOfTemplates/expect.tex view
@@ -1,54 +1,54 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}} \caption{1}\label{fig:1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}} \caption{2}\label{fig:2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}} \caption{3}\label{fig:3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}} \caption{4}\label{fig:4} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}} \caption{5}\label{fig:5} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}} \caption{6}\label{fig:6} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}} \caption{7}\label{fig:7} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}} \caption{8}\label{fig:8} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}} \caption{9}\label{fig:9} \end{figure}
test/m2m/loxItemTitle/expect.tex view
@@ -1,54 +1,54 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}} \caption{1}\label{fig:1} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}} \caption{2}\label{fig:2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}} \caption{3}\label{fig:3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}} \caption{4}\label{fig:4} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}} \caption{5}\label{fig:5} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}} \caption{6}\label{fig:6} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}} \caption{7}\label{fig:7} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}} \caption{8}\label{fig:8} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}} \caption{9}\label{fig:9} \end{figure}
test/m2m/numberOverride/expect.tex view
@@ -4,7 +4,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1}]{img2.png}} \caption{Image 1}\label{fig:img1} \end{figure} @@ -12,19 +12,19 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.6.2}]{img2.png}} \caption{Image 1.6.2}\label{fig:img2} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.6.100500}]{img2.png}} \caption{Image 1.6.100500}\label{fig:img3} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.6.100501}]{img2.png}} \caption{Image 1.6.100501}\label{fig:img4} \end{figure} @@ -32,18 +32,18 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.7.1}]{img2.png}} \caption{Image 1.7.1}\label{fig:img21} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.7.100500}]{img2.png}} \caption{Image 1.7.100500}\label{fig:img31} \end{figure} \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{img2.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Image 1.7.100501}]{img2.png}} \caption{Image 1.7.100501}\label{fig:img41} \end{figure}
test/m2m/secLabels/expect.tex view
@@ -4,7 +4,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{myfig.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={my figure}]{myfig.png}} \caption{my figure}\label{fig:myfig} \end{figure}
test/m2m/setLabelAttribute/expect.tex view
@@ -2,7 +2,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{./image.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={Figure}]{./image.png}} \caption{Figure}\label{fig:1} \end{figure}
test/m2m/subfigures-ccsDelim/expect.tex view
@@ -2,17 +2,17 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}\label{fig:subfig1}}-\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}\label{fig:subfig2}}-\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}}+\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}}\label{fig:subfig1}}+\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}}\label{fig:subfig2}}+\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}} -\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}\label{fig:subfig4}}-\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}}-\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}\label{fig:subfig6}}+\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}}\label{fig:subfig4}}+\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}}}+\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}}\label{fig:subfig6}} -\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}\label{fig:subfig7}}-\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}}-\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}\label{fig:subfig9}}+\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}}\label{fig:subfig7}}+\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}}}+\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}}\label{fig:subfig9}} \caption{Caption}\label{fig:subfigures} @@ -20,23 +20,23 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}\label{fig:subfig21}}+\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}}\label{fig:subfig21}} -\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}\label{fig:subfig22}}+\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}}\label{fig:subfig22}} -\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}}+\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}} -\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}\label{fig:subfig24}}+\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}}\label{fig:subfig24}} -\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}}+\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}}} -\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}\label{fig:subfig26}}+\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}}\label{fig:subfig26}} -\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}\label{fig:subfig27}}+\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}}\label{fig:subfig27}} -\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}}+\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}}} -\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}\label{fig:subfig29}}+\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}}\label{fig:subfig29}} \caption{Caption}\label{fig:subfigures2}
test/m2m/subfigures-grid/expect.md view
@@ -1,37 +1,16 @@ You can define subfigures: :::: {#fig:subfigures .figure .subfigures}-+:------------------:+:------------------:+:------------------:+-| :::: {#fi | :::: {#fi | :::: figure |-| g:subfig1 .figure} | g:subfig2 .figure} | {width="100%"} |-| png){width="100%"} | png){width="100%"} | |-| | | ::: caption |-| ::: caption | ::: caption | c |-| a | b | ::: |-| ::: | ::: | :::: |-| :::: | :::: | |-+--------------------+--------------------+--------------------+-| :::: {#fi | :::: figure | :::: {#fi |-| g:subfig4 .figure} | {width="100%"} | {width="100%"} | | png){width="100%"} |-| | ::: caption | |-| ::: caption | e | ::: caption |-| d | ::: | f |-| ::: | :::: | ::: |-| :::: | | :::: |-+--------------------+--------------------+--------------------+-| :::: {#fi | :::: figure | :::: {#fi |-| g:subfig7 .figure} | {width="100%"} | {width="100%"} | | png){width="100%"} |-| | ::: caption | |-| ::: caption | h | ::: caption |-| g | ::: | i |-| ::: | :::: | ::: |-| :::: | | :::: |-+--------------------+--------------------+--------------------+++:---------------------------:+:----------------------------:+:----------------------------:++| {#fig:subfig1 | {#fig:subfig2 | {width="100%"} |+| width="100%"} | width="100%"} | |++-----------------------------+------------------------------+------------------------------++| {#fig:subfig4 | {width="100%"} | {#fig:subfig6 |+| width="100%"} | | width="100%"} |++-----------------------------+------------------------------+------------------------------++| {#fig:subfig7 | {width="100%"} | {#fig:subfig9 |+| width="100%"} | | width="100%"} |++-----------------------------+------------------------------+------------------------------+ ::: caption Figure 1: Caption. a --- 1, b --- 2, c --- 3, d --- 4, e --- 5, f --- 6,
test/m2m/subfigures-grid/expect.tex view
@@ -2,17 +2,17 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig1.png}\label{fig:subfig1}}-\subfloat[2]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig2.png}\label{fig:subfig2}}-\subfloat[3]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig3.png}}+\subfloat[1]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={1}]{fig1.png}\label{fig:subfig1}}+\subfloat[2]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={2}]{fig2.png}\label{fig:subfig2}}+\subfloat[3]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={3}]{fig3.png}} -\subfloat[4]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig4.png}\label{fig:subfig4}}-\subfloat[5]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig5.png}}-\subfloat[6]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig6.png}\label{fig:subfig6}}+\subfloat[4]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={4}]{fig4.png}\label{fig:subfig4}}+\subfloat[5]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={5}]{fig5.png}}+\subfloat[6]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={6}]{fig6.png}\label{fig:subfig6}} -\subfloat[7]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig7.png}\label{fig:subfig7}}-\subfloat[8]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig8.png}}-\subfloat[9]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio]{fig9.png}\label{fig:subfig9}}+\subfloat[7]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={7}]{fig7.png}\label{fig:subfig7}}+\subfloat[8]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={8}]{fig8.png}}+\subfloat[9]{\includegraphics[width=0.3\linewidth,height=\textheight,keepaspectratio,alt={9}]{fig9.png}\label{fig:subfig9}} \caption{Caption}\label{fig:subfigures} @@ -20,23 +20,23 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}\label{fig:subfig21}}+\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}}\label{fig:subfig21}} -\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}\label{fig:subfig22}}+\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}}\label{fig:subfig22}} -\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}}+\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}} -\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}\label{fig:subfig24}}+\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}}\label{fig:subfig24}} -\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}}+\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}}} -\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}\label{fig:subfig26}}+\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}}\label{fig:subfig26}} -\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}\label{fig:subfig27}}+\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}}\label{fig:subfig27}} -\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}}+\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}}} -\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}\label{fig:subfig29}}+\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}}\label{fig:subfig29}} \caption{Caption}\label{fig:subfigures2}
test/m2m/subfigures-one-row/expect.tex view
@@ -6,9 +6,9 @@ \begin{pandoccrossrefsubfigures} \subfloat[cool-caption]{\includegraphics[width=0.4\linewidth,height=\textheight,keepaspectratio]{/tmp/LaTeX_logo.svg.png}\label{fig:logo1}}+caption]{\includegraphics[width=0.4\linewidth,height=\textheight,keepaspectratio,alt={cool caption}]{/tmp/LaTeX_logo.svg.png}\label{fig:logo1}} \subfloat[cooler-caption]{\includegraphics[width=0.4\linewidth,height=\textheight,keepaspectratio]{/tmp/LaTeX_logo.svg.png}\label{fig:logo2}}+caption]{\includegraphics[width=0.4\linewidth,height=\textheight,keepaspectratio,alt={cooler caption}]{/tmp/LaTeX_logo.svg.png}\label{fig:logo2}} \caption{Copies of the LaTeX logo}\label{fig:latex}
test/m2m/subfigures/expect.tex view
@@ -2,17 +2,17 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}\label{fig:subfig1}}-\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}\label{fig:subfig2}}-\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}}+\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}}\label{fig:subfig1}}+\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}}\label{fig:subfig2}}+\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}} -\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}\label{fig:subfig4}}-\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}}-\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}\label{fig:subfig6}}+\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}}\label{fig:subfig4}}+\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}}}+\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}}\label{fig:subfig6}} -\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}\label{fig:subfig7}}-\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}}-\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}\label{fig:subfig9}}+\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}}\label{fig:subfig7}}+\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}}}+\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}}\label{fig:subfig9}} \caption{Caption}\label{fig:subfigures} @@ -20,23 +20,23 @@ \begin{pandoccrossrefsubfigures} -\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio]{fig1.png}}\label{fig:subfig21}}+\subfloat[1]{\pandocbounded{\includegraphics[keepaspectratio,alt={1}]{fig1.png}}\label{fig:subfig21}} -\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio]{fig2.png}}\label{fig:subfig22}}+\subfloat[2]{\pandocbounded{\includegraphics[keepaspectratio,alt={2}]{fig2.png}}\label{fig:subfig22}} -\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio]{fig3.png}}}+\subfloat[3]{\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}} -\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio]{fig4.png}}\label{fig:subfig24}}+\subfloat[4]{\pandocbounded{\includegraphics[keepaspectratio,alt={4}]{fig4.png}}\label{fig:subfig24}} -\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio]{fig5.png}}}+\subfloat[5]{\pandocbounded{\includegraphics[keepaspectratio,alt={5}]{fig5.png}}} -\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio]{fig6.png}}\label{fig:subfig26}}+\subfloat[6]{\pandocbounded{\includegraphics[keepaspectratio,alt={6}]{fig6.png}}\label{fig:subfig26}} -\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio]{fig7.png}}\label{fig:subfig27}}+\subfloat[7]{\pandocbounded{\includegraphics[keepaspectratio,alt={7}]{fig7.png}}\label{fig:subfig27}} -\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio]{fig8.png}}}+\subfloat[8]{\pandocbounded{\includegraphics[keepaspectratio,alt={8}]{fig8.png}}} -\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio]{fig9.png}}\label{fig:subfig29}}+\subfloat[9]{\pandocbounded{\includegraphics[keepaspectratio,alt={9}]{fig9.png}}\label{fig:subfig29}} \caption{Caption}\label{fig:subfigures2}
test/m2m/titlesInRefs/expect.tex view
@@ -2,7 +2,7 @@ \begin{figure} \centering-\pandocbounded{\includegraphics[keepaspectratio]{figure.png}}+\pandocbounded{\includegraphics[keepaspectratio,alt={A Figure}]{figure.png}} \caption{A Figure}\label{fig:figure} \end{figure}
test/test-pandoc-crossref.hs view
@@ -324,7 +324,7 @@ it "Image labels" $ figure "img.png" "" "Title" Nothing "figure_label1" <> para (citeGen "fig:figure_label" [1])- `test` "\\begin{figure}\n\\centering\n\\pandocbounded{\\includegraphics[keepaspectratio]{img.png}}\n\\caption{Title}\\label{fig:figure_label1}\n\\end{figure}\n\nfig.~\\ref{fig:figure_label1}"+ `test` "\\begin{figure}\n\\centering\n\\pandocbounded{\\includegraphics[keepaspectratio,alt={Title}]{img.png}}\n\\caption{Title}\\label{fig:figure_label1}\n\\end{figure}\n\nfig.~\\ref{fig:figure_label1}" #ifdef FLAKY it "Eqn labels" $