Home>
  1. I want to display the figure in the image as "figure"
  2. Figure 6: I want to center the test
command
pandoc "-o",
                "${filename} .pdf",
                "-N",
                "-f",
                "markdown + ignore_line_breaks + footnotes + definitions_lists",
                "-V",
                "CJKmainfont = IPAexGothic",
                "-V",
                "titlepage = true",
                "-V",
                "toc-own-page = true",
                "-F",
                "pandoc-crossref",
                "--table-of-contents",
                "--toc-depth = 3",
                "--pdf-engine = lualatex",
                "--template",
                "eisvogel",
                "-V",
                "document class = ltjarticle",
                "--highlight-style",
                "tango",
                "${filename} .md"
Corresponding source code
---
figureTitle: "Figure"
figPrefix: "Figure"
---
! [test] (jpg/unnamed.jpg) {#fig: test}
See [@fig: test]
What I tried

Converting without the template Eisvogel did not cause these two problems. However, I would like to format it while using Eisvogel.
Is there any good way?

Supplementary information (FW/tool version, etc.)
$pandoc -v
pandoc.exe 2.9.2.1
$pandoc-crossref.exe -v
pandoc-crossref v0.3.6.2 git commit fe8e833c1d9a8644ec144ec956b4a89fa30514f2 (HEAD) built with Pandoc v2.9.2.1, pandoc-types v1.20 and GHC 8.6.5
$latex -v
pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX)
  • Answer # 1

    I was worried about exactly the same thing.

    It may have already been resolved, but I've found a solution, so I'll list it here.

    I want to display the figure in the image as "figure"

    Certainly in yaml etc.

    ---
    figureTitle: "Figure"
    figPrefix: "Figure"
    ---


    It was not reflected at all even if I wrote, but immediately after this column

    \ renewcommand {\ figurename} {figure}


    I wrote, but it changed.

    Figure 6: I want to center the test

    When I was looking at the readme on eisvogel's GitHub, it seems that justification should be changed.
    Near line 570 of eisvogel.tex

    \ usepackage [font = {stretch = 1.2}, textfont = {color = caption-color}, position = top, skip = 4mm, labelfont = bf, singlelinecheck = false, justification = $if (caption-justification) $$caption- justification $$else $raggedright $endif $] {caption}


    To

    \ usepackage [font = {stretch = 1.2}, textfont = {color = caption-color}, position = top, skip = 4mm, labelfont = bf, singlelinecheck = false, justification = $if (caption-justification) $$caption- justification $$else $centering $endif $] {caption}

    (raggedrightTocenteringchange to)

    Then I came to the center.